/* =========================================================
   工贸企业对外独立站 - 全局样式
   主题：暖阳金 + 深海军蓝（太阳能照明品牌调性）
   ========================================================= */
/* =========================================================
   工贸企业对外独立站 - 全局样式
   主题：跨境电商风格（国际商务蓝 + 活力橙 CTA + 深藏青）
   ========================================================= */
:root {
  /* 主色：国际商务蓝（信任、专业、全球化） */
  --primary: #1657d8;
  --primary-dark: #0f3fa8;
  --primary-light: #eaf1ff;
  /* CTA 强调色：活力橙（跨境电商行动号召） */
  --accent: #ff7a1a;
  --accent-dark: #e86600;
  --accent-light: #fff4e8;
  /* 深色系：深藏青 */
  --dark: #0c2340;
  --dark-2: #143357;
  --text: #2b3a4a;
  --text-light: #6b7a8d;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: #e6ebf3;
  --danger: #e5493b;
  --success: #1f9d63;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(12,35,64,.08);
  --shadow-lg: 0 16px 48px rgba(12,35,64,.14);
  --font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: all .2s; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,122,26,.35); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-ghost { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost:hover { background: #ffe9d4; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 42px; width: auto; object-fit: contain; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; color: var(--dark); letter-spacing: 1px; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text); font-weight: 500; transition: all .2s;
}
.main-nav a:hover { color: var(--primary-dark); background: var(--primary-light); }
.main-nav a.active { color: var(--primary-dark); background: var(--primary-light); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); color: var(--dark); transition: all .2s; }
.cart-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--danger); color: #fff; font-size: 11px; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
}
.menu-toggle { display: none; font-size: 24px; color: var(--dark); width: 42px; height: 42px; border-radius: 10px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden;
  background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .8s ease; }
.hero.fading .hero-bg { opacity: .25; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,35,64,.88), rgba(12,35,64,.28)); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; padding: 70px 0; }
.hero-tag {
  display: inline-block; background: rgba(255,122,26,.16); color: #ffb066; border: 1px solid rgba(255,122,26,.45);
  padding: 5px 14px; border-radius: 30px; font-size: 13px; letter-spacing: 2px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.2; margin-bottom: 16px; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--primary-dark); font-size: 13px; letter-spacing: 3px; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--dark); margin: 8px 0 10px; font-weight: 800; }
.section-head p { color: var(--text-light); }

/* ---------- 优势卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  text-align: center; transition: all .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-light); font-size: 30px;
}
.feature-card h3 { color: var(--dark); font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* ---------- 商品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: all .25s; cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info { padding: 16px 18px 18px; }
.product-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info .spec { color: var(--text-light); font-size: 13px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.price { color: var(--accent); font-size: 22px; font-weight: 800; }
.price-inquiry { color: var(--text-light); font-size: 18px; font-weight: 600; letter-spacing: 2px; }
.price small { font-size: 13px; font-weight: 600; }
.stock-tag { font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.stock-tag.in { background: #e6f7ef; color: var(--success); }
.stock-tag.low { background: #fff3dc; color: var(--primary-dark); }
.stock-tag.out { background: #fdeceb; color: var(--danger); }
.badge-featured {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--primary); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 600;
}

/* ---------- 数据条 ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 26px 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.stat-item .num { font-size: 34px; font-weight: 800; color: var(--primary-dark); }
.stat-item .label { color: var(--text-light); font-size: 14px; margin-top: 4px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: 30px; color: var(--dark); margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: var(--text); }
.about-points { margin-top: 18px; display: grid; gap: 10px; }
.about-points li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.about-points li::before { content: "✔"; color: var(--success); font-weight: 700; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--dark-2), var(--dark)); color: #fff; text-align: center; padding: 64px 0;
}
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 26px; }

/* ---------- 商品页 ---------- */
.page-hero { background: linear-gradient(120deg, var(--dark-2), var(--dark)); color: #fff; padding: 52px 0; }
.page-hero h1 { font-size: 30px; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.7); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 7px 16px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-size: 14px;
  color: var(--text); transition: all .2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-box { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 0 6px 0 16px; overflow: hidden; }
.search-box input { border: none; outline: none; padding: 9px 0; width: 190px; }
.search-box button { background: var(--primary); color: #fff; border-radius: 24px; padding: 7px 16px; font-weight: 600; }
.load-more-wrap { text-align: center; margin-top: 34px; }
.pagination { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer; transition: all .18s;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary-dark); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-ellipsis { color: var(--text-light); padding: 0 2px; }
.page-info { margin-left: 10px; color: var(--text-light); font-size: 13px; }

/* ---------- 商品详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.detail-img { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; }
.detail-img img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.detail-img .zoom-in { animation: imgZoom .3s ease; }
@keyframes imgZoom { from { transform: scale(1.03); opacity: .7; } to { transform: scale(1); opacity: 1; } }
.detail-gallery { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-gallery img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--line); transition: all .15s; flex-shrink: 0;
}
.detail-gallery img:hover { border-color: var(--primary); }
.detail-gallery img.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.detail-info h1 { font-size: 26px; color: var(--dark); margin-bottom: 6px; }
.detail-info .d-code { color: var(--text-light); font-size: 13px; margin-bottom: 14px; }
.detail-price-box { background: var(--primary-light); border-radius: 10px; padding: 16px 20px; margin: 16px 0; display: flex; align-items: center; gap: 16px; }
.detail-price-box .price { font-size: 32px; }
.detail-price-box .unit { color: var(--text-light); font-size: 13px; }
.d-meta { display: grid; gap: 8px; margin: 14px 0; }
.d-meta .row { display: flex; font-size: 14px; }
.d-meta .row .k { color: var(--text-light); width: 88px; flex-shrink: 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-stepper button { width: 38px; height: 38px; font-size: 18px; background: var(--bg-soft); color: var(--dark); }
.qty-stepper button:hover { background: var(--primary-light); color: var(--primary-dark); }
.qty-stepper input { width: 54px; height: 38px; text-align: center; border: none; outline: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.d-buy-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.d-detail-panel { margin-top: 56px; }
.d-detail-panel h3 { font-size: 20px; color: var(--dark); padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; margin-bottom: 20px; }
.d-detail-content { color: var(--text); }
.d-detail-content ul { padding-left: 20px; }
.d-detail-content li { margin: 6px 0; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: all .25s; cursor: pointer; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .date { color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.news-card h3 { font-size: 16px; color: var(--dark); margin: 10px 0 8px; }
.news-card p { color: var(--text-light); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-more { color: var(--primary); font-size: 13px; margin-top: 12px; font-weight: 500; }

/* 新闻详情 */
.news-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 860px; margin: 0 auto; }
.news-detail-head { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.news-detail-head h2 { font-size: 26px; color: var(--dark); margin-bottom: 10px; }
.news-detail-head .date { color: var(--text-light); font-size: 14px; }
.news-detail-content { font-size: 15px; line-height: 1.9; color: var(--text); }
.news-detail-content p { margin-bottom: 14px; }
.news-detail-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.news-detail-content h2, .news-detail-content h3 { margin: 18px 0 10px; color: var(--dark); }
.news-detail-back { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--primary-light); display: grid; place-items: center; font-size: 20px; }
.contact-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.contact-info p { color: var(--text-light); font-size: 14px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--text-light); }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; outline: none; transition: border .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 10px; }

/* ---------- 购物车 ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(12,35,64,.55); z-index: 200; opacity: 0; visibility: hidden; transition: all .3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 201;
  transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(12,35,64,.16);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { font-size: 18px; color: var(--dark); }
.drawer-close { font-size: 26px; color: var(--text-light); line-height: 1; }
.drawer-close:hover { color: var(--danger); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--text-light); padding: 60px 0; }
.cart-empty .big { font-size: 48px; margin-bottom: 12px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-item img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 14px; color: var(--dark); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .price-line { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.cart-item .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart-item .line-total { color: var(--accent); font-weight: 700; font-size: 15px; }
.cart-item .remove { color: var(--text-light); font-size: 12px; }
.cart-item .remove:hover { color: var(--danger); }
.qty-stepper.sm button { width: 28px; height: 28px; font-size: 15px; }
.qty-stepper.sm input { width: 40px; height: 28px; font-size: 13px; }
.cart-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-row strong { color: var(--accent); font-size: 24px; }

/* ---------- 结算 ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel h3 { font-size: 18px; color: var(--dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-summary .sum-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text); }
.order-summary .sum-item.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 700; color: var(--dark); }
.order-summary .sum-item.total strong { color: var(--accent); font-size: 24px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: all .2s; }
.pay-option:hover { border-color: var(--primary); }
.pay-option.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-option input { accent-color: var(--primary); }

/* ---------- 订单查询 ---------- */
.order-query { max-width: 760px; margin: 0 auto; }
.order-query-form { display: flex; gap: 12px; }
.order-query-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; outline: none; }
.order-query-form input:focus { border-color: var(--primary); }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.order-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.order-card .no { font-size: 15px; color: var(--dark); font-weight: 700; }
.status-pill { padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-pill.submitted { background: var(--primary-light); color: var(--primary-dark); }
.status-pill.paid { background: #e6f2ff; color: #2b7bd6; }
.status-pill.shipped { background: #e8f6ff; color: #1a9cb0; }
.status-pill.completed { background: #e6f7ef; color: var(--success); }
.status-pill.cancelled { background: #fdeceb; color: var(--danger); }
.status-pill.pending { background: var(--accent-light); color: var(--accent-dark); }
.pay-option .pay-icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); font-size: 14px; flex-shrink: 0; }
.pay-option[data-stripe] .pay-icon { background: #635bff; color: #fff; }
.pay-option.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-option input { accent-color: var(--primary); }
#placeOrder, .go-checkout-btn { background: var(--accent); }
#placeOrder:hover, .go-checkout-btn:hover { background: var(--accent-dark); }
.order-meta { display: grid; gap: 6px; font-size: 14px; margin-bottom: 16px; }
.order-meta .row { display: flex; }
.order-meta .k { color: var(--text-light); width: 90px; flex-shrink: 0; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th, .order-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th { background: var(--bg-soft); color: var(--text-light); font-weight: 600; }
.order-table td .p-name { color: var(--dark); font-weight: 600; }
.order-amount-row { text-align: right; margin-top: 14px; font-size: 15px; }
.order-amount-row strong { color: var(--accent); font-size: 22px; }

/* ---------- 成功页 ---------- */
.success-box { max-width: 560px; margin: 30px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 36px; }
.success-box .icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: #e6f7ef; color: var(--success); font-size: 40px; display: grid; place-items: center; }
.success-box h2 { font-size: 24px; color: var(--dark); margin-bottom: 10px; }
.success-box p { color: var(--text-light); margin-bottom: 8px; }
.success-box .order-no-box { background: var(--bg-soft); border-radius: 8px; padding: 14px; margin: 18px 0; }
.success-box .order-no-box .no { font-size: 22px; font-weight: 800; color: var(--primary-dark); letter-spacing: 1px; }

/* ---------- 通用 ---------- */
.empty-state { text-align: center; color: var(--text-light); padding: 60px 0; }
.spinner {
  width: 42px; height: 42px; margin: 60px auto; border: 4px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap { text-align: center; padding: 40px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%) translateY(-16px); z-index: 300;
  background: var(--dark); color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px;
  opacity: 0; visibility: hidden; transition: all .3s; box-shadow: var(--shadow-lg); max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 9px; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .feature-grid, .product-grid, .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .detail-grid, .contact-grid, .checkout-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 600px) {
  .feature-grid, .product-grid, .stats-bar, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .hero { min-height: 460px; }
}

.sub-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -10px 0 20px; padding: 10px 14px; background: rgba(27,68,120,0.05); border-radius: 10px; }
.sub-filter-label { font-size: 12px; font-weight: 600; color: #4a6fa5; white-space: nowrap; }

/* ============================================================
   商城模块：会员中心 / 登录注册 / 收藏 / 排序筛选
   ============================================================ */

/* 导航栏会员入口 */
.nav-member { display: flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: 8px; transition: background .2s; }
.nav-member:hover { background: rgba(27,68,120,.06); color: var(--primary); }

/* 登录/注册弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: rgba(15,23,42,.55);
  z-index: 1000;
  display: grid;
  place-items: center;
  -webkit-align-items: center;
  -webkit-justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 28px 26px 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  box-sizing: border-box;
}
.modal-box h3 { font-size: 18px; margin-bottom: 18px; color: var(--text); }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; color: var(--text-light); cursor: pointer; line-height: 1; }
.form-row { margin-bottom: 12px; }
.form-row input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; outline: none; box-sizing: border-box; transition: border .2s; }
.form-row input:focus { border-color: var(--primary); }
.auth-field label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--text); font-weight: 500; }
.auth-field .req { color: #E8590C; font-style: normal; margin-left: 2px; }
.auth-links { margin: 4px 0 14px; display: flex; justify-content: space-between; align-items: center; }

/* 会员中心布局 */
.member-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.member-side { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.member-side-item { display: block; padding: 11px 14px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; margin-bottom: 2px; transition: background .15s; }
.member-side-item:hover { background: rgba(27,68,120,.06); }
.member-side-item.active { background: var(--primary); color: #fff; }
.member-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-height: 400px; }
.member-main h2 { font-size: 17px; margin-bottom: 16px; }
.member-profile-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.member-profile-row label { width: 90px; font-size: 13px; color: var(--text-light); }
.member-profile-row input { flex: 1; min-width: 220px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; }

/* 地址卡片 */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.addr-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; }
.addr-card .name { font-weight: 600; font-size: 14px; }
.addr-card .detail { font-size: 13px; color: var(--text-light); margin: 6px 0; line-height: 1.6; }
.addr-card .default-tag { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; padding: 1px 6px; }
.addr-card .actions { display: flex; gap: 10px; margin-top: 8px; }
.addr-card .actions button { background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 0; }
.addr-card .actions button.danger { color: #e05b5b; }
.addr-empty { text-align: center; color: var(--text-light); padding: 50px 0; font-size: 14px; }

/* 我的订单 */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.order-no { font-size: 13px; font-weight: 600; }
.order-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.order-status.pending { background: #fff7e6; color: #b8860b; }
.order-status.success { background: #e8f7ee; color: #2e9e5b; }
.order-status.warn { background: #eef3fb; color: var(--primary); }
.order-status.cancel { background: #f5f5f5; color: #999; }
.order-meta { font-size: 12.5px; color: var(--text-light); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.order-amount { font-size: 15px; font-weight: 700; color: var(--primary); }
.order-erp-track { background: rgba(27,68,120,.05); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--text); margin-top: 8px; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.order-erp-track b { color: var(--primary); font-weight: 600; }

/* 收藏卡片 */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fav-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.fav-card:hover { box-shadow: var(--shadow); }
.fav-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.fav-card .info { padding: 10px 12px; }
.fav-card .info .name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card .info .price { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 5px; }
.fav-card .info .actions { display: flex; gap: 10px; margin-top: 8px; }
.fav-card .info .actions button { background: none; border: none; color: var(--primary); font-size: 12.5px; cursor: pointer; padding: 0; }
.fav-card .info .actions button.danger { color: #e05b5b; }

/* 收藏按钮（产品详情页） */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 18px; font-size: 14px; cursor: pointer; transition: all .2s; color: var(--text); }
.fav-btn:hover { border-color: var(--primary); color: var(--primary); }
.fav-btn.active { border-color: #e05b5b; color: #e05b5b; background: #fdf1f1; }

/* 产品中心排序/筛选条 */
.mall-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.mall-toolbar .sep { width: 1px; height: 20px; background: var(--line); }
.sort-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 13px; border-radius: 20px; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--text); transition: all .15s; user-select: none; }
.sort-chip:hover { border-color: var(--primary); color: var(--primary); }
.sort-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.type-chip { display: inline-flex; padding: 6px 13px; border-radius: 20px; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--text); transition: all .15s; user-select: none; }
.type-chip:hover { border-color: var(--primary); color: var(--primary); }
.type-chip.active { background: rgba(27,68,120,.1); color: var(--primary); border-color: var(--primary); }

/* 移动端会员布局 */
@media (max-width: 768px) {
  .member-layout { grid-template-columns: 1fr; }
  .member-side { display: flex; overflow-x: auto; padding: 6px; }
  .member-side-item { white-space: nowrap; }
  .nav-member span { display: none; }
  .nav-member { padding: 6px; }
}

/* ============ 四期：批发阶梯价 & 优惠券 ============ */
.tier-box { margin-top:16px; padding:14px 16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; }
.tier-title { font-size:14px; font-weight:600; color:#1a1b1c; margin-bottom:8px; display:flex; align-items:baseline; gap:8px; }
.tier-title .sub { font-size:12px; color:#8a94a6; font-weight:400; }
.tier-table { width:100%; border-collapse:collapse; font-size:13px; }
.tier-table th { color:#8a94a6; font-weight:500; text-align:left; padding:5px 8px; white-space:nowrap; }
.tier-table td { padding:5px 8px; color:#1a1b1c; }
.tier-table .tier-price { color:#e8590c; font-weight:600; }

.coupon-box { border:1px dashed #d0d5dd; border-radius:10px; padding:10px 12px; margin:8px 0; background:#fffdf5; }
.coupon-title { font-size:13px; font-weight:600; color:#1a1b1c; margin-bottom:6px; }
.coupon-select { width:100%; padding:8px 10px; border:1px solid #d0d5dd; border-radius:8px; font-size:13px; background:#fff; }
.coupon-tip { font-size:12px; color:#8a94a6; margin-top:6px; }

.coupon-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; margin-bottom:8px; }
.coupon-card { display:flex; border-radius:12px; overflow:hidden; border:1px solid #f1c40f55; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.coupon-card.coupon-off { opacity:0.55; filter:grayscale(0.4); }
.coupon-left { background:linear-gradient(135deg,#f8b500,#f5a000); color:#fff; width:110px; min-width:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:12px; position:relative; }
.coupon-left::after { content:""; position:absolute; right:-8px; top:50%; transform:translateY(-50%); width:16px; height:16px; background:#fff; border-radius:50%; }
.coupon-value { font-size:22px; font-weight:700; }
.coupon-name { font-size:11px; text-align:center; line-height:1.4; }
.coupon-right { flex:1; padding:12px 14px; display:flex; flex-direction:column; gap:5px; }
.coupon-cond { font-size:13px; font-weight:600; color:#1a1b1c; }
.coupon-date { font-size:11px; color:#8a94a6; }
.coupon-use { font-size:13px; color:#e8590c; font-weight:600; text-decoration:none; }
.coupon-used { font-size:12px; color:#8a94a6; }
.coupon-order { font-size:11px; color:#b0b8c4; }

/* ================= 在线客服 ================= */
.kefu-launcher { position:fixed; right:22px; bottom:22px; z-index:9999; width:56px; height:56px; border-radius:50%; background:transparent; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 6px 18px rgba(22,87,216,0.35); transition:transform .2s; overflow:hidden; }
.kefu-launcher img.kefu-logo { width:100%; height:100%; object-fit:cover; display:block; }
.kefu-launcher:hover { transform:scale(1.06); }
@keyframes kefuNudge { 0%,100%{transform:translateX(0);} 15%{transform:translateX(-6px);} 30%{transform:translateX(5px);} 45%{transform:translateX(-4px);} 60%{transform:translateX(3px);} 75%{transform:translateX(-2px);} }
.kefu-launcher.kefu-nudge { animation:kefuNudge 1.1s ease-in-out 2; }
.kefu-badge { position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; border-radius:999px; background:#e8590c; color:#fff; font-size:12px; font-weight:700; align-items:center; justify-content:center; padding:0 5px; box-sizing:border-box; }
.kefu-panel { position:fixed; right:22px; bottom:88px; z-index:9999; width:360px; max-width:calc(100vw - 32px); height:480px; max-height:calc(100vh - 120px); background:#fff; border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.18); display:flex; flex-direction:column; overflow:hidden; border:1px solid #e6e8ee; }
.kefu-head { display:flex; align-items:center; justify-content:space-between; padding:13px 16px; background:linear-gradient(135deg,#1d63e0,#1657d8); color:#fff; }
.kefu-head-t { display:flex; align-items:center; gap:8px; font-size:15px; }
.kefu-online-dot { width:8px; height:8px; border-radius:50%; background:#4cd964; box-shadow:0 0 0 3px rgba(76,217,100,0.25); }
.kefu-close { background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1; padding:2px 6px; }
.kefu-body { flex:1; overflow-y:auto; padding:14px; background:#f6f7fb; display:flex; flex-direction:column; gap:8px; }
.kefu-welcome { background:#eef2fb; color:#44506b; font-size:12.5px; line-height:1.55; border-radius:10px; padding:9px 11px; max-width:86%; }
.kefu-msg { display:flex; flex-direction:column; max-width:86%; }
.kefu-msg.mine { align-self:flex-end; align-items:flex-end; }
.kefu-msg-name { font-size:11px; color:#8a94a6; margin-bottom:2px; }
.kefu-bubble { padding:9px 12px; border-radius:12px; font-size:13.5px; line-height:1.5; word-break:break-word; background:#fff; border:1px solid #e6e8ee; }
.kefu-msg.mine .kefu-bubble { background:#1657d8; color:#fff; border-color:#1657d8; }
.kefu-msg-time { font-size:10px; color:#b0b8c4; margin-top:2px; }
.kefu-ended { text-align:center; font-size:12.5px; color:#8a94a6; background:#f0f1f5; border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px; align-items:center; }
.kefu-foot { border-top:1px solid #eef0f4; padding:10px 12px; background:#fff; position:relative; }
.kefu-contact { width:100%; box-sizing:border-box; padding:8px 11px; border:1px solid #e2e5ec; border-radius:8px; font-size:12.5px; margin-bottom:8px; }
.kefu-input-row { display:flex; gap:8px; }
.kefu-input-row input { flex:1; min-width:0; padding:10px 12px; border:1px solid #e2e5ec; border-radius:8px; font-size:13.5px; box-sizing:border-box; }
.kefu-input-row .btn { white-space:nowrap; }
@media (max-width:480px) { .kefu-panel { right:10px; bottom:76px; left:10px; width:auto; height:60vh; } .kefu-launcher { right:14px; bottom:16px; } }

/* ===== 在线客服增强（一期/二期） ===== */
.kefu-online-txt{font-size:12px;color:#2ecc71;margin-left:6px;font-weight:400;}
.kefu-queue{background:#fff7e6;border-bottom:1px solid #ffe7ba;color:#b26b00;font-size:12px;padding:6px 10px;}
.kefu-leave{padding:8px 10px;background:#f8f9fa;border-top:1px solid #eee;}
.kefu-leave textarea{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:6px;padding:6px 8px;font-size:13px;resize:none;font-family:inherit;}
.kefu-leave .btn{margin-top:6px;width:100%;}
.kefu-img-btn{border:1px solid #ddd;background:#fff;border-radius:6px 0 0 6px;cursor:pointer;font-size:14px;padding:0 8px;line-height:34px;height:34px;flex:0 0 auto;}
.kefu-img-btn:hover{background:#f0f0f0;}
.kefu-input-row .btn{border-radius:0 6px 6px 0;}
.kefu-input-row #kefuInput{border-radius:0;}
.kefu-img{max-width:200px;max-height:200px;border-radius:8px;display:block;cursor:zoom-in;border:1px solid #eee;}
.kefu-rate{position:absolute;left:0;right:0;bottom:0;top:0;background:rgba(255,255,255,.97);z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;}
.kefu-rate-t{font-size:14px;color:#333;font-weight:600;}
.kefu-rate-stars{font-size:26px;letter-spacing:6px;color:#f5a623;cursor:pointer;user-select:none;}
.kefu-rate-stars span:hover{transform:scale(1.15);display:inline-block;}
.kefu-ended{text-align:center;color:#999;font-size:12px;padding:8px 0;}
.kefu-ended .btn{margin-left:8px;}

/* ---- 客服：表情包 / 文件卡片 ---- */
.kefu-emoji{position:absolute;bottom:56px;left:12px;right:12px;background:#fff;border:1px solid #e2e5ec;border-radius:10px;padding:8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:2px;max-height:170px;overflow-y:auto;z-index:5;box-shadow:0 6px 18px rgba(0,0,0,.12);}
.kefu-emoji-i{font-size:20px;text-align:center;padding:4px;cursor:pointer;border-radius:6px;}
.kefu-emoji-i:hover{background:#f0f2f6;}
.kefu-file-card{display:flex;align-items:center;gap:10px;max-width:280px;}
.kefu-file-ic{font-size:22px;flex:0 0 auto;}
.kefu-file-info{min-width:0;flex:1;}
.kefu-file-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kefu-file-meta{font-size:11px;opacity:.7;margin-top:2px;}
.kefu-file-dl{flex:0 0 auto;font-size:12px;color:#1657d8;text-decoration:none;font-weight:600;padding:4px 10px;border:1px solid currentColor;border-radius:6px;}
.kefu-msg.mine .kefu-file-dl{color:#fff;border-color:rgba(255,255,255,.8);}
.kefu-msg.mine .kefu-file-name{color:#fff;}
.kefu-msg.mine .kefu-file-meta{color:rgba(255,255,255,.85);}
