/* 图书批发商城 - 前台样式 */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #f43f5e;
  --ink: #1e293b;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(79, 70, 229, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); }
.logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 18px;
  box-shadow: var(--shadow-lg);
}
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 6px 6px 16px; width: 260px; transition: .2s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-box input { border: none; outline: none; background: none; flex: 1; font-size: 14px; }
.search-box button {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--primary); color: #fff; transition: .2s;
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px;
  display: grid; place-items: center; font-weight: 700;
}
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600; font-size: 14px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 76px 20px 84px; position: relative; z-index: 1;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; line-height: 1.28; }
.hero p { margin-top: 14px; font-size: 16px; opacity: .92; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  padding: 7px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-cta { display: flex; gap: 14px; margin: 26px 0 24px; flex-wrap: wrap; }
.trust-strip {
  max-width: 1200px; margin: -30px auto 0; padding: 0 20px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.trust-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px; display: flex; align-items: center; gap: 14px; transition: .25s;
  border: 1px solid transparent;
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #e0e7ff; }
.trust-item .t-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); flex-shrink: 0;
}
.trust-item b { display: block; font-size: 15px; }
.trust-item span { font-size: 12px; color: var(--ink-3); }
.disc-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(244,63,94,.92); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.disc-badge {
  padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3;
}
.contact-form-wrap { margin-top: 26px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form-grid .full { grid-column: 1 / -1; }
.contact-form-grid textarea { resize: vertical; }
@media (max-width: 860px) {
  .trust-strip { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .hero h1 { font-size: 32px; }
  .contact-form-grid { grid-column: 1fr; grid-template-columns: 1fr; }
}
.hero-tags { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-tags span {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; backdrop-filter: blur(4px);
}
.hero-deco {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 18px; opacity: .35; pointer-events: none;
}
.hero-deco .book-spine {
  width: 52px; height: 240px; border-radius: 8px;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.4);
}
.hero-deco .book-spine:nth-child(2) { height: 300px; }
.hero-deco .book-spine:nth-child(3) { height: 200px; }

/* ---------- 通用布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 18px; }
.section-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head h2::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px; background: linear-gradient(#6366f1, #a855f7);
}
.section-head .more { color: var(--ink-3); font-size: 14px; }

/* ---------- 图书卡片 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.book-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .25s; display: flex; flex-direction: column; border: 1px solid transparent;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #e0e7ff; }
.book-cover {
  height: 190px; display: flex; align-items: flex-end; padding: 14px; position: relative;
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1.45; overflow: hidden;
}
.book-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45));
}
.book-cover .cover-title { position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.book-cover .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(255,255,255,.22); border-right: 1px solid rgba(255,255,255,.3); }
.book-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.book-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px;
}
.book-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.book-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-now { color: var(--accent); font-weight: 800; font-size: 19px; }
.price-now small { font-size: 12px; font-weight: 700; }
.price-old { color: var(--ink-3); font-size: 12.5px; text-decoration: line-through; }
.add-cart-btn {
  margin-top: 4px; padding: 8px; border-radius: 10px; background: var(--primary-light);
  color: var(--primary-dark); font-weight: 700; font-size: 13.5px; transition: .2s;
}
.add-cart-btn:hover { background: var(--primary); color: #fff; }
.stock-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #f0fdf4; color: #16a34a; width: fit-content; }
.stock-tag.low { background: #fef2f2; color: #dc2626; }
.stock-tag.zero { background: #f1f5f9; color: #94a3b8; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 36px; margin-top: 24px; }
.detail-cover {
  border-radius: var(--radius); height: 440px; color: #fff; padding: 26px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; font-size: 20px; font-weight: 800; line-height: 1.5;
}
.detail-cover::before { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5)); }
.detail-cover .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: rgba(255,255,255,.22); border-right: 1px solid rgba(255,255,255,.35); }
.detail-cover span { position: relative; z-index: 1; }
.detail-info h1 { font-size: 26px; font-weight: 800; line-height: 1.4; }
.spec-table { margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.spec-table .row { display: grid; grid-template-columns: 120px 1fr 120px 1fr; font-size: 14px; }
.spec-table .row > div { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.spec-table .row:last-child > div { border-bottom: none; }
.spec-table .k { background: #f8fafc; color: var(--ink-2); font-weight: 600; }

/* 图书介绍板块 */
.intro-panel { margin: 26px 0 40px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.intro-title { font-size: 18px; font-weight: 800; margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.intro-body { font-size: 15px; line-height: 2; color: var(--ink-2); white-space: pre-wrap; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-ctrl button { width: 38px; height: 38px; background: #fff; font-size: 18px; color: var(--ink-2); }
.qty-ctrl button:hover { background: var(--primary-light); color: var(--primary); }
.qty-ctrl input { width: 64px; height: 38px; border: none; outline: none; text-align: center; font-weight: 700; }
.buy-actions { display: flex; gap: 14px; }
.btn {
  padding: 13px 34px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fef2f2; color: #dc2626; }
.btn-danger:hover { background: #fee2e2; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 购物车 ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--ink-3); }
.cart-empty .icon { font-size: 52px; margin-bottom: 12px; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; gap: 14px; }
.cart-total { font-size: 15px; color: var(--ink-2); }
.cart-total b { color: var(--accent); font-size: 26px; }
.min-order-tip { font-size: 13px; margin-top: 6px; }
.min-order-tip.ok { color: #16a34a; }
.min-order-tip.no { color: #dc2626; }
.progress-bar { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: 8px; max-width: 420px; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, #6366f1, #a855f7); border-radius: 999px; transition: .3s; }

/* ---------- 表单 ---------- */
.form-card { max-width: 420px; margin: 60px auto; }
.form-card h2 { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.form-card .sub { text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  outline: none; transition: .2s; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-error { background: #fef2f2; color: #dc2626; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.form-ok { background: #f0fdf4; color: #16a34a; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.link-line { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.link-line a { color: var(--primary); font-weight: 600; }

/* ---------- 订单列表 ---------- */
.order-card { margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--border); flex-wrap: wrap; gap: 8px; }
.order-no { font-weight: 700; font-size: 14px; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.st-pending { background: #fffbeb; color: #d97706; }
.st-verifying { background: #fef3c7; color: #b45309; }
.st-paid { background: #eff6ff; color: #2563eb; }
.st-shipped { background: #f5f3ff; color: #7c3aed; }
.st-completed { background: #f0fdf4; color: #16a34a; }
.st-cancelled { background: #f1f5f9; color: #94a3b8; }
.st-refunded { background: #fee2e2; color: #dc2626; }

/* ---------- 支付核实进度（会员订单卡片） ---------- */
.pay-progress { margin-top: 10px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 14px; }
.pay-progress-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); padding: 3px 0; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pp-submitted { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.pp-confirmed { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.pp-rejected { background: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.pp-refunded { background: #64748b; box-shadow: 0 0 0 3px #e2e8f0; }
.pp-cancelled { background: #cbd5e1; box-shadow: 0 0 0 3px #f1f5f9; }
.order-item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px dashed #f1f5f9; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; flex-wrap: wrap; gap: 10px; }
.order-total b { color: var(--accent); font-size: 20px; }

/* ---------- 支付页 ---------- */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.pay-method {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center;
  cursor: pointer; transition: .2s; background: #fff;
}
.pay-method:hover { border-color: #c7d2fe; }
.pay-method.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-method .pm-icon { font-size: 30px; }
.pay-method .pm-name { font-weight: 700; margin-top: 6px; }
.pay-method .pm-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 会员中心 ---------- */
.member-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.avatar {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-size: 26px; font-weight: 800;
}
.member-level { padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fefce8; color: #ca8a04; border: 1px solid #fde68a; }

/* ---------- 页脚 ---------- */
.footer { background: #0f172a; color: #94a3b8; padding: 36px 20px; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 13.5px; }
.footer b { color: #e2e8f0; display: block; margin-bottom: 8px; font-size: 14.5px; }
.footer .promise { display: flex; gap: 28px; flex-wrap: wrap; }
.footer .promise div { display: flex; align-items: center; gap: 8px; }
.footer .promise .p-icon { font-size: 20px; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 80px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: slideIn .3s; max-width: 340px;
}
.toast.ok { background: #16a34a; }
.toast.err { background: #dc2626; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-cover { height: 260px; }
  .nav-links { display: none; }
  .search-box { width: 150px; }
  .hero h1 { font-size: 28px; }
  .hero-deco { display: none; }
  .spec-table .row { grid-template-columns: 100px 1fr; }
  .spec-table .row > div:nth-child(2) { border-bottom: 1px solid var(--border); }
  .pay-methods { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .step-flow { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pifa-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pifa-hero h1 { font-size: 30px !important; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

/* ---------- 通用：居中小节标题 ---------- */
.section-head.center { justify-content: center; }
.section-head.center h2 { font-size: 26px; }

/* ---------- 特价推荐页 ---------- */
.sale-hero {
  background: linear-gradient(120deg, #f43f5e 0%, #f97316 60%, #f59e0b 100%);
  color: #fff; position: relative; overflow: hidden;
}
.sale-hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 20px 60px; position: relative; z-index: 1; }
.sale-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: 1px; }
.sale-hero p { margin-top: 12px; font-size: 16px; opacity: .94; max-width: 640px; }
.sale-badge {
  display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

/* ---------- 图书批发页 ---------- */
.pifa-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(168,85,247,.35), transparent 60%),
    linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  color: #fff; overflow: hidden; position: relative;
}
.pifa-hero-inner { max-width: 1200px; margin: 0 auto; padding: 72px 20px 78px; position: relative; z-index: 1; }
.pifa-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  color: #c7d2fe; border: 1px solid rgba(199,210,254,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.pifa-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.3; letter-spacing: 1px; }
.pifa-hero p { margin-top: 16px; font-size: 16px; opacity: .88; max-width: 620px; }
.pifa-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.pifa-hero-deco {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 18px; opacity: .28; pointer-events: none;
}
.pifa-hero-deco .book-spine {
  width: 52px; height: 240px; border-radius: 8px;
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.38);
}
.pifa-hero-deco .book-spine:nth-child(2) { height: 300px; }
.pifa-hero-deco .book-spine:nth-child(3) { height: 200px; }
.btn-white { background: #fff; color: #312e81; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.btn-ghost-white { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost-white:hover { background: rgba(255,255,255,.2); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 1200px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 2;
}
.stat-item {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 16px; text-align: center; margin: 0 6px;
}
.stat-item:first-child { margin-left: 0; } .stat-item:last-child { margin-right: 0; }
.stat-num { font-size: 32px; font-weight: 800; background: linear-gradient(120deg, #4f46e5, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num small { font-size: 16px; }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 22px; transition: .25s; border: 1px solid transparent;
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #e0e7ff; }
.adv-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); margin-bottom: 16px;
}
.adv-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.adv-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

.step-flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.step-item {
  flex: 1; min-width: 180px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 20px; text-align: center; position: relative; transition: .25s;
}
.step-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-no {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.step-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.step-item p { font-size: 13px; color: var(--ink-3); }
.step-arrow { align-self: center; color: #c7d2fe; font-size: 22px; font-weight: 800; }

.pifa-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin-top: 52px; align-items: center; }
.audience-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.audience-chips span {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--primary-light); color: var(--primary-dark); border: 1px solid #e0e7ff;
}
.warehouse-visual {
  background: linear-gradient(150deg, #1e293b, #334155); border-radius: var(--radius);
  padding: 34px 30px 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.warehouse-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, rgba(139,92,246,.25), transparent 60%);
}
.wh-shelf { display: flex; gap: 8px; margin-bottom: 14px; position: relative; }
.wh-shelf i {
  flex: 1; height: 52px; border-radius: 4px 4px 0 0; opacity: .9;
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.wh-shelf i:nth-child(1) { background: linear-gradient(180deg, #6366f1, #4338ca); }
.wh-shelf i:nth-child(2) { background: linear-gradient(180deg, #f43f5e, #be123c); }
.wh-shelf i:nth-child(3) { background: linear-gradient(180deg, #10b981, #047857); }
.wh-shelf i:nth-child(4) { background: linear-gradient(180deg, #f59e0b, #b45309); }
.wh-shelf i:nth-child(5) { background: linear-gradient(180deg, #06b6d4, #0e7490); }
.wh-shelf i:nth-child(6) { background: linear-gradient(180deg, #a855f7, #7e22ce); }
.wh-caption { color: #cbd5e1; font-size: 13px; text-align: center; margin-top: 16px; letter-spacing: 1px; position: relative; }

.cta-band {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
  color: #fff; margin-top: 60px; padding: 46px 20px;
}
.cta-band-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { opacity: .9; margin-top: 6px; font-size: 14.5px; }
.cta-band-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- 联系我们页 ---------- */
.contact-hero {
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff; text-align: center;
}
.contact-hero-inner { max-width: 1200px; margin: 0 auto; padding: 52px 20px 58px; }
.contact-hero h1 { font-size: 34px; font-weight: 800; }
.contact-hero p { margin-top: 10px; opacity: .9; font-size: 15.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -34px; position: relative; z-index: 2; }
.contact-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 24px; text-align: center; transition: .25s; border: 1px solid transparent;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #e0e7ff; }
.contact-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); margin: 0 auto 16px;
}
.contact-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.contact-value { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.contact-value small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.contact-card p { font-size: 13px; color: var(--ink-3); margin: 12px 0 18px; line-height: 1.7; }
.contact-faq { margin-top: 26px; }
.faq-item { padding: 14px 4px; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 4px; }
.faq-item:last-child { border-bottom: none; }
.faq-item b { font-size: 14.5px; }
.faq-item span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 页脚补充 ---------- */
.footer-copy {
  max-width: 1200px; margin: 22px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(148,163,184,.18); font-size: 12.5px; color: #64748b; text-align: center;
}

/* ---------- 图形验证码（注册页） ---------- */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 2px; }
.captcha-img {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; min-width: 120px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #fff; cursor: pointer; flex: none;
}
.captcha-img svg { display: block; }
.captcha-img:hover { border-color: var(--primary); }

/* ---------- 支付页（微信 / 支付宝扫码） ---------- */
.pay-page-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; margin-top: 26px; }
.pay-form-panel { padding: 34px 30px; }
.pay-qr-panel { text-align: center; padding: 30px 26px; }
.pay-qr-panel h3 { font-size: 17px; font-weight: 700; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--accent); margin: 8px 0 14px; }
.pay-qr-box { display: grid; place-items: center; }
.pay-qr-box img { width: 240px; height: 240px; object-fit: contain; border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: #fff; }
.pay-qr-empty {
  width: 240px; height: 240px; border: 2px dashed #c7d2fe; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 44px; color: var(--ink-3);
}
.pay-qr-empty span { font-size: 13px; line-height: 1.8; }
.pay-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; white-space: pre-wrap; }
.pay-tip { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 860px) { .pay-page-grid { grid-template-columns: 1fr; } }
