/* ============================================================
   集泰建筑胶官方商城 · 主题 jitai（OpenCart 风格门店布局，响应式）
   ============================================================ */
:root {
  --primary: #2f7df6;
  --primary-d: #1a56c4;
  --success: #28b471;
  --danger: #e8504f;
  --warning: #f2a33c;
  --text: #2b2f36;
  --muted: #8a919c;
  --border: #e6e9ef;
  --bg: #f5f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }
code { background: #eef2f9; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mt14 { margin-top: 14px; }
.price { color: var(--danger); font-weight: 700; }
.price.vip { color: #b8860b; }
.price-tag { font-size: 11px; background: #fdf3e0; color: #b8860b; border-radius: 3px; padding: 1px 6px; margin-left: 6px; }

/* 顶栏 */
.topbar { background: #1d2430; color: #b8c0cc; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #d6dbe3; margin-left: 4px; }
.topbar b { color: #fff; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.site-header-in { display: flex; align-items: center; gap: 24px; padding: 14px 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-ic { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-d)); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.logo-tx { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--text); }
.logo-tx small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.header-search { flex: 1; display: flex; max-width: 480px; }
.header-search input { flex: 1; border: 2px solid var(--primary); border-right: none; border-radius: 6px 0 0 6px; padding: 9px 12px; font-size: 13.5px; outline: none; }
.header-search button { background: var(--primary); color: #fff; border: none; border-radius: 0 6px 6px 0; padding: 0 22px; cursor: pointer; font-size: 13.5px; }
.header-cart { margin-left: auto; background: #fff7ef; border: 1px solid #f5ddc0; border-radius: 6px; padding: 8px 14px; color: #b8741a; font-size: 13.5px; white-space: nowrap; }
.header-cart b { color: var(--danger); }

/* 导航 */
.nav-menu { list-style: none; margin: 0; padding: 0 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.nav-menu li a { display: block; padding: 11px 18px; color: var(--text); font-weight: 500; border-bottom: 2px solid transparent; }
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 主区 */
.page-main { min-height: 480px; padding-top: 18px; padding-bottom: 40px; }
.breadcrumb { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.page-h { margin: 6px 0 14px; font-size: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.section-head h2 { margin: 0; font-size: 19px; padding-left: 10px; border-left: 4px solid var(--primary); }
.section-head .more { font-size: 13px; }

/* 轮播 */
.banner { position: relative; border-radius: 12px; overflow: hidden; height: 280px; background: linear-gradient(120deg, #16324f, #2f7df6); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: flex; align-items: center; justify-content: center; text-align: center; }
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(2) { background: linear-gradient(120deg, #14503a, #28b471); }
.banner-slide:nth-child(3) { background: linear-gradient(120deg, #5b3d14, #f2a33c); }
.banner-inner h2 { color: #fff; font-size: 32px; margin: 0 0 10px; }
.banner-inner p { color: #ffffffcc; font-size: 15px; margin: 0; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.banner-dots .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ffffff66; margin: 0 4px; cursor: pointer; }
.banner-dots .dot.active { background: #fff; }

/* 服务特色 */
.home-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 6px; }
.feat { background: #fff; border-radius: 10px; padding: 14px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); }
.feat .fi { font-size: 26px; }
.feat b { display: block; font-size: 14px; }
.feat small { color: var(--muted); }

/* 商品网格 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 8px 24px rgba(31,60,96,.12); transform: translateY(-2px); }
.product-card > a { padding: 0 0 8px; color: inherit; }
.product-thumb { height: 150px; display: flex; align-items: center; justify-content: center; color: #ffffffcc; font-size: 22px; letter-spacing: 1px; background: linear-gradient(135deg, #35507a, #6f8fc0); }
.product-name { padding: 10px 12px 2px; font-weight: 600; font-size: 14px; }
.product-spec { padding: 0 12px; color: var(--muted); font-size: 12px; }
.product-price-row { padding: 6px 12px; font-size: 15px; }
.product-card .add-cart { margin: 4px 12px 12px; }

/* 按钮 */
.btn { display: inline-block; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 6px; padding: 8px 18px; cursor: pointer; font-size: 13.5px; text-align: center; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-lg { padding: 11px 26px; font-size: 15px; }
.btn-text { border: none; background: none; color: var(--primary); padding: 4px 6px; }
.btn-text.danger { color: var(--danger); }
.inq-btn { margin-top: 14px; }

/* 首页两栏 */
.home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.col-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px 18px 18px; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text); }
.a-title { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-date { color: var(--muted); font-size: 12.5px; }
.qual-list { list-style: none; padding: 0; margin: 8px 0 0; }
.qual-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); color: #3c6e46; }

/* 商品页 */
.product-page { display: grid; grid-template-columns: 420px 1fr; gap: 26px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.p-gallery img { width: 100%; border-radius: 10px; display: block; }
.p-info h1 { margin: 0 0 8px; font-size: 24px; }
.p-sku { color: var(--muted); font-size: 13px; }
.p-price-box { background: #fff8f0; border: 1px solid #ffe3bd; border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.p-price { font-size: 28px; font-weight: 700; color: var(--danger); }
.p-price.vip { color: #b8860b; }
.p-price-tag { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.p-attrs { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.p-attrs th { width: 90px; text-align: left; color: var(--muted); font-weight: 400; padding: 7px 0; }
.p-attrs td { color: var(--text); }
.p-attrs .ok { color: var(--success); }
.p-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p-buy { display: flex; gap: 10px; }
.p-detail { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; line-height: 1.9; }

/* 筛选 */
.filter-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin-bottom: 14px; }
.filter-bar .sep { flex: 1; }
.sort { padding: 5px 12px; border-radius: 5px; color: var(--muted); }
.sort.active, .sort:hover { background: #ecf3ff; color: var(--primary); }

/* 表格 */
.site-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.site-table th { background: #f8f9fb; text-align: left; padding: 11px 14px; font-size: 13px; color: #5a6472; }
.site-table td { padding: 11px 14px; border-top: 1px solid var(--border); }
.site-table .num { text-align: right; }
.qty-form { margin: 0; }

/* 表单 */
.inp { width: 100%; border: 1px solid #d8dee8; border-radius: 6px; padding: 9px 12px; font-size: 13.5px; outline: none; }
.inp:focus { border-color: var(--primary); }
label { display: block; margin: 12px 0 5px; font-size: 13px; color: #4a5261; }
textarea.inp { resize: vertical; }

/* 购物车页脚 / 结算 */
.cart-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.cart-total .price { font-size: 20px; margin-right: 14px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.ck-left, .ck-right { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.order-total { text-align: right; padding: 12px 0; font-size: 16px; }
.notice { background: #fff8f0; border: 1px solid #ffe3bd; color: #9a6b1f; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }
.warn-box { background: #fdf0f0; border: 1px solid #f5c6c6; color: var(--danger); border-radius: 8px; padding: 10px 14px; font-size: 13px; }

/* 成功页 */
.success-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; text-align: center; padding: 40px 20px; margin-bottom: 20px; }
.ok-ic { width: 64px; height: 64px; margin: 0 auto 14px; background: #e6f7ee; color: var(--success); border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.success-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }

/* 认证/询价框 */
.auth-box { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 30px; }
.pill { background: #ecf3ff; border-radius: 6px; padding: 8px 12px; font-size: 13px; }

/* 会员中心 */
.acct-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.acct-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px; text-align: center; }
.acct-avatar { width: 62px; height: 62px; margin: 0 auto 12px; background: linear-gradient(135deg, var(--primary), var(--primary-d)); color: #fff; border-radius: 50%; font-size: 26px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px; text-align: center; color: var(--text); }
.stat b { display: block; font-size: 30px; color: var(--primary); }
.stat span { color: var(--muted); }
.acct-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.st { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 12px; }
.st-pushed, .st-green { background: #e6f7ee; color: var(--success); }
.st-failed { background: #fdeaea; color: var(--danger); }
.st-submitted { background: #ecf3ff; color: var(--primary); }
.st-pending { background: #fdf6ec; color: #b8860b; }
.st-gold { background: #fdf3e0; color: #b8860b; }
.st-gray { background: #f0f2f5; color: var(--muted); }

/* 文章 */
.article-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.article-card h3 { margin: 0 0 6px; font-size: 16px; }
.article-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.article-page, .p-detail { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 30px; }
.article-page h1 { margin-top: 0; }
.article-content { line-height: 2; }
.desc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.desc-cards div { font-size: 13px; }
.desc-cards b { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-bottom: 4px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.contact-info, .contact-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }

/* 空态 / 提示 */
.empty { text-align: center; color: var(--muted); padding: 40px 0; background: #fff; border: 1px dashed var(--border); border-radius: 10px; grid-column: 1/-1; }
.empty-box { text-align: center; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 60px 0; }
.site-alert { border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.site-alert-success { background: #e6f7ee; color: var(--success); border: 1px solid #bfead2; }
.site-alert-error { background: #fdeaea; color: var(--danger); border: 1px solid #f5c6c6; }
.site-alert-info { background: #ecf3ff; color: var(--primary); border: 1px solid #cfe1ff; }

/* 页脚 */
.site-footer { background: #1d2430; color: #9aa4b1; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 16px; }
.f-col h4 { color: #e6eaef; font-size: 14.5px; margin: 0 0 12px; }
.f-col a { display: block; color: #9aa4b1; padding: 4px 0; }
.f-col a:hover { color: #fff; }
.f-col p { margin: 6px 0; font-size: 12.5px; }

/* 响应式（REQ-WEB-007：375px 可用） */
@media (max-width: 860px) {
  .product-grid, .home-features, .home-cols, .checkout-grid, .acct-grid, .article-cards, .contact-grid, .footer-in { grid-template-columns: 1fr 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .banner { height: 190px; }
  .banner-inner h2 { font-size: 22px; }
}
@media (max-width: 520px) {
  .product-grid, .home-features, .home-cols, .checkout-grid, .acct-grid, .article-cards, .contact-grid, .footer-in { grid-template-columns: 1fr; }
  .site-header-in { flex-wrap: wrap; gap: 10px; }
  .nav-menu li a { padding: 9px 12px; font-size: 13px; }
  .site-table th:nth-child(2), .site-table td:nth-child(2) { }
}
