/* ============================================================================
 * UVPRO WHOLESALE — 全站样式表（单文件设计系统，无构建依赖）
 * 修改主色只需改下面的 --brand / --accent 两个变量。
 * ==========================================================================*/

:root {
  --ink: #0f1a22;
  --ink-2: #3c4a54;
  --ink-3: #6b7a85;
  --line: #e3e9ed;
  --line-2: #d2dbe1;
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --bg-3: #eef2f5;

  --brand: #123f52;
  --brand-2: #1b5a74;
  --brand-soft: #eaf2f6;
  --accent: #d9531e;
  --accent-2: #bf461a;
  --ok: #2c7a50;
  --ok-soft: #eaf4ee;

  --radius: 10px;
  --radius-sm: 6px;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(15, 26, 34, 0.06), 0 10px 28px -14px rgba(15, 26, 34, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 34px; letter-spacing: -0.4px; }
h2 { font-size: 24px; letter-spacing: -0.2px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 14px; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-3); margin-bottom: 0; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* ------------------------------------------------------------- 示例数据提示条 */
.warnbar {
  background: #fdf3e7; border-bottom: 1px solid #f0d9bb; color: #8a4b12;
  font-size: 13px; padding: 9px 0;
}
.warnbar .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.warnbar strong { color: #6d3a0c; }

/* --------------------------------------------------------------- 顶部信息条 */
.topbar { background: var(--brand); color: #d7e6ec; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.topbar .routes { display: flex; gap: 22px; }
.topbar .routes span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fd39a; flex: none; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- 页头 */
.header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -0.3px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none;
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--brand); text-decoration: none; }
.nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 7px 11px; font-size: 14px; color: var(--ink); cursor: pointer;
}

/* -------------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: 0.15s;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- Hero */
.hero { background: linear-gradient(180deg, var(--brand) 0%, #0d3243 100%); color: #cddde4; padding: 64px 0 56px; }
.hero h1 { color: #fff; max-width: 760px; font-size: 40px; letter-spacing: -0.8px; }
.hero p.lead { font-size: 17px; max-width: 680px; color: #b9d0d9; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-stats div { min-width: 130px; }
.hero-stats b { display: block; color: #fff; font-size: 22px; font-weight: 700; }
.hero-stats span { font-size: 13px; color: #9fbcc7; }

/* --------------------------------------------------------------- 路线卡片 */
.route-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.route-card h3 { margin-bottom: 6px; }
.route-card .badge { margin-bottom: 12px; }
.route-card ul { margin-bottom: 0; }
.route-card li { font-size: 14px; }

/* --------------------------------------------------------------- 通用卡片 */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-side { grid-template-columns: 1.6fr 1fr; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-flat { background: var(--bg-2); }

.trust-card { border-top: 3px solid var(--accent); }
.trust-card h3 { font-size: 15px; }
.trust-card p { font-size: 14px; color: var(--ink-3); margin-bottom: 0; }

/* ------------------------------------------------------------------ 徽章 */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
  background: var(--brand-soft); color: var(--brand-2); letter-spacing: 0.02em;
}
.badge-accent { background: #fbe9e0; color: var(--accent-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }

/* --------------------------------------------------------------- 商品卡片 */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: 0.18s;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.prod-thumb { background: var(--bg-3); position: relative; }
.prod-thumb svg { display: block; width: 100%; height: auto; }
.prod-thumb .badge { position: absolute; top: 12px; left: 12px; }
.prod-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-sku { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 6px; }
.prod-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.prod-name a { color: inherit; }
.prod-meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.prod-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.prod-price b { font-size: 20px; color: var(--ink); font-weight: 700; }
.prod-price span { font-size: 13px; color: var(--ink-3); }
.prod-actions { margin-top: 14px; display: flex; gap: 10px; }

/* ------------------------------------------------------------- 阶梯价表格 */
.tier-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tier-table th, .tier-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tier-table th { background: var(--bg-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; }
.tier-table .best { background: var(--ok-soft); }
.tier-table .best td { color: var(--ok); font-weight: 600; }

/* ---------------------------------------------------------------- 规格表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.spec-table th { width: 40%; font-weight: 600; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------ 商品详情布局 */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px 44px; align-items: start; }
.pdp > div[style*="grid-column"] { margin-top: 0; }
.pdp-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.pdp-media svg { display: block; width: 100%; height: auto; }
.pdp h1 { font-size: 27px; }
.pdp-price-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.pdp-price-box .from { font-size: 13px; color: var(--ink-3); }
.pdp-price-box .amt { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pdp-price-box .amt span { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pdp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 18px 0; font-size: 14px; }
.pdp-facts div b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; }

/* ------------------------------------------------------------------ 面包屑 */
.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 7px; }

/* ---------------------------------------------------------------- 筛选栏 */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13px;
  color: var(--ink-2); background: #fff; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--ink-3); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toolbar input[type="search"], .toolbar select {
  padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.toolbar .spacer { margin-left: auto; }
.result-count { font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------ 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-note { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfdccb; }
.form-status.err { background: #fbe9e0; color: var(--accent-2); border: 1px solid #f0cdb8; }

/* ------------------------------------------------------------------ 页脚 */
.footer { background: #0d2530; color: #9db6c0; padding: 52px 0 26px; margin-top: 64px; font-size: 14px; }
.footer a { color: #c3d6dd; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer .brandline { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer .brandline .logo-mark { background: #fff; color: var(--brand); }
.footer .contact-line { margin-bottom: 7px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-row span { border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; padding: 3px 9px; font-size: 12px; color: #b7cdd5; }

/* ------------------------------------------------------------- 悬浮客服 */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 10px;
}
.float-cta a {
  display: flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
  padding: 11px 16px; border-radius: 100px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(15, 26, 34, 0.5);
}
.float-cta a.wa { background: #1f9d55; }
.float-cta a:hover { text-decoration: none; filter: brightness(1.06); }

/* --------------------------------------------------------------- 其他组件 */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; }
.step-num {
  counter-increment: s; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.step h4 { margin-bottom: 4px; }
.step p { margin-bottom: 0; font-size: 14px; }

.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 8px; font-size: 16px; }
.faq-item p:last-child { margin-bottom: 0; }

.notice { background: var(--brand-soft); border-left: 3px solid var(--brand-2); padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; }
.notice-warn { background: #fdf3e7; border-left-color: var(--accent); }

.cta-band { background: var(--brand); color: #cfe0e6; padding: 44px 0; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin-bottom: 20px; max-width: 640px; }
.cta-band .hero-actions { margin-bottom: 0; }

.empty { padding: 48px 0; text-align: center; color: var(--ink-3); }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .grid-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  h1 { font-size: 27px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin-left: 0;
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav.open a.active { border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta .btn { display: none; }
  .grid-2, .grid-3, .route-cards, .prod-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar .routes span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdp-facts { grid-template-columns: 1fr; }
  .float-cta { right: 12px; bottom: 12px; }
  .float-cta a { padding: 10px 14px; font-size: 13px; }
}

@media print {
  .header, .topbar, .footer, .float-cta, .warnbar, .toolbar { display: none; }
}
