/* ============ 电动三轮车外贸销售站 · 全站样式 ============ */
:root {
  --navy: #0d2740;
  --navy-2: #153a5c;
  --ink: #1c2b3a;
  --muted: #5d6d7e;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #e3e9f1;
  --accent: #ee7d1a;
  --accent-d: #d96b0c;
  --green: #1f9d55;
  --shadow: 0 10px 30px rgba(13, 39, 64, .08);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.full { grid-column: 1 / -1; }

/* ---------- 顶部信息条 ---------- */
.topline { background: var(--navy); color: #cfe0f0; font-size: 13px; }
.topline-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topline-item { white-space: nowrap; }

/* ---------- 头部 ---------- */
#site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.headrow { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .2px; }
.brand-logo { font-size: 24px; }
.brand-name { color: var(--navy); font-size: 19px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 9px; color: var(--ink); font-weight: 600; }
.nav a:hover { background: #eef3f9; }
.nav a.active { color: var(--accent-d); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.langbtn {
  border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 13px;
}
.langbtn:hover { border-color: var(--accent); color: var(--accent-d); }
.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-weight: 700; border-radius: 10px; padding: 11px 20px;
  font-size: 15px; transition: .15s; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; margin-top: 6px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1200px 500px at 85% -10%, #1d5c96 0%, transparent 55%),
  linear-gradient(135deg, #0a2036 0%, #0d2c4a 60%, #123d63 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 64px 0 70px; }
.hero .overline { display: inline-block; background: rgba(238, 125, 26, .16); color: #ffc896; border: 1px solid rgba(238,125,26,.4); padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; font-weight: 900; letter-spacing: .3px; }
.hero h1 br { display: none; }
.hero .sub { margin: 18px 0 26px; color: #c7d8ea; font-size: 16px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { position: relative; border-radius: 18px; min-height: 380px; overflow: hidden;
  background: linear-gradient(160deg, #123f66, #0c2742); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-side .hero-svg-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-chip { position: absolute; z-index: 2; background: rgba(255,255,255,.94); color: var(--navy); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.hero-chip.c1 { top: 20px; left: 18px; } .hero-chip.c2 { bottom: 22px; right: 16px; }
.hero-chip small { display: block; color: var(--muted); font-weight: 600; }

/* ---------- 栏目 ---------- */
.section { padding: 58px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head .eyebrow { color: var(--accent-d); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 8px 0 10px; }
.section-head p { color: var(--muted); }
.white { background: #fff; }

/* ---------- 信任条 ---------- */
.trust-band { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-ico { width: 44px; height: 44px; border-radius: 12px; background: #eef5ff; color: var(--navy); display: grid; place-items: center; font-size: 20px; flex: none; }
.trust-item b { display: block; font-size: 15px; color: var(--navy); }
.trust-item small { color: var(--muted); }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catcard { position: relative; border-radius: var(--radius); overflow: hidden; padding: 26px 22px 22px; color: #fff; display: block;
  background: linear-gradient(140deg, var(--c1), color-mix(in srgb, var(--c1) 62%, #000 38%)); box-shadow: var(--shadow); transition: .18s; }
.catcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.catcard-emo { font-size: 34px; }
.catcard h3 { margin: 10px 0 2px; font-size: 20px; }
.catcard-n { opacity: .9; font-size: 13px; }
.catcard-go { position: absolute; right: 18px; bottom: 14px; font-size: 22px; opacity: .8; }

/* ---------- 产品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pvis { position: relative; }
.pvis-ph { position: relative; height: 178px; background:
  radial-gradient(320px 150px at 80% 0%, rgba(255,255,255,.35), transparent 60%),
  linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #071d30 40%)); display: grid; place-items: center; }
.pvis-emo { font-size: 66px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); position: relative; z-index: 1; }
.pvis-ghost { position: absolute; right: 10px; bottom: -6px; font-size: 62px; font-weight: 900; color: rgba(255,255,255,.16); letter-spacing: 2px; user-select: none; }
.pvis-img { width: 100%; height: 178px; object-fit: contain; background: #eef1f5; display: block; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip-cat { background: #eef2ff; color: var(--navy); position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pcard > .pno { position: absolute; top: 9px; right: 10px; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .5px; text-shadow: 0 1px 4px rgba(0,0,0,.3); z-index: 2; }
.pname { padding: 14px 16px 2px; font-size: 18px; color: var(--navy); }
.ptag { padding: 4px 16px 8px; color: var(--muted); font-size: 13.5px; flex: 1; }
.pquick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 6px; }
.qchip { font-size: 12px; background: #f1f5fa; color: var(--ink); border-radius: 7px; padding: 3px 8px; font-weight: 600; }
.pprice { padding: 6px 16px 4px; display: flex; align-items: baseline; gap: 8px; }
.pprice b { color: var(--accent-d); font-size: 19px; }
.pprice small { color: var(--muted); }
.pactions { display: flex; gap: 8px; padding: 10px 16px 16px; }
.pactions .btn { flex: 1; padding: 9px 8px; font-size: 14px; }

/* 卡片内展开的规格 */
.pspecs { display: none; padding: 0 16px 16px; }
.pcard.open .pspecs { display: block; animation: fadein .2s; }
.pspecs-note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.sptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.sptable td { padding: 6px 8px; border-bottom: 1px dashed var(--line); }
.sptable .spk { color: var(--muted); width: 42%; }
.sptable .spv { font-weight: 600; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* ---------- 外贸流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ---------- 选购 CTA 横幅 ---------- */
.quiz-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #ee7d1a, #d9660f); color: #fff; border-radius: 20px; padding: 40px 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.quiz-band h2 { font-size: clamp(22px, 3vw, 30px); }
.quiz-band p { opacity: .92; margin-top: 6px; max-width: 640px; }
.quiz-band .btn { background: #fff; color: var(--accent-d); }
.quiz-band .btn:hover { background: #fff3e6; }

/* ---------- 联系区块 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.contact-info .ci { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.ci .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; font-size: 19px; }
.ci b { color: var(--navy); }
.ci p { color: var(--muted); font-size: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-card h3 { color: var(--navy); margin-bottom: 4px; }
.contact-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
label span.req { color: var(--accent-d); }
input, select, textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(238,125,26,.35); border-color: var(--accent); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 120; background: rgba(8, 20, 34, .55); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 26px 14px; overflow-y: auto; }
.modal-mask.show { display: flex; }
.modal { position: relative; background: #fff; border-radius: 18px; max-width: 720px; width: 100%; padding: 26px 26px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .22s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #eef2f7; cursor: pointer; font-size: 15px; }
.modal-title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-right: 30px; }
.qm-summary:empty { display: none; }
.qm-row { display: flex; gap: 16px; background: #f7fafd; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; align-items: center; }
.qm-vis { width: 150px; flex: none; border-radius: 10px; overflow: hidden; }
.qm-vis .pvis-ph { height: 96px; }
.qm-vis .pvis-img { height: 96px; }
.qm-info h4 { color: var(--navy); font-size: 16px; }
.qm-info .pquick { padding: 6px 0; }
.qm-info .pprice { padding: 2px 0; }

/* ---------- 页脚 ---------- */
#site-footer { background: var(--navy); color: #c6d6e6; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 26px; padding: 46px 22px 30px; }
.foot-col .brand-name { color: #fff; }
.foot-col p { font-size: 14px; margin: 10px 0; color: #a9bfd4; }
.foot-col h4 { color: #fff; margin-bottom: 12px; }
.foot-col a { display: block; margin: 7px 0; color: #a9bfd4; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0; font-size: 13px; color: #8ba2ba; text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 12px; z-index: 200; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 12px 30px rgba(0,0,0,.3); font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 补充 ---------- */
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
.hero-side .pvis-ph { height: 300px; }
.hero-side .pvis-img { height: 300px; }
.hero-side .pvis-emo { font-size: 104px; }
.hero-side .pvis-ghost { font-size: 96px; right: 6px; bottom: -12px; }
.hero-visual { display: block; }
.result-hero { border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 10px; color: var(--accent-d); font-weight: 800; }
.trust-ico.gold { background: #fff3e0; color: var(--accent-d); }

/* ---------- 内页头部 ---------- */
.pagehead { background: linear-gradient(135deg, #0a2036, #123f66); color: #fff; padding: 44px 0; }
.pagehead h1 { font-size: clamp(26px, 3.4vw, 38px); }
.pagehead p { color: #c7d8ea; margin-top: 8px; }

/* ---------- 产品页筛选 ---------- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 22px 0 18px; }
.filterchip { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.filterchip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.countline { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* ---------- 选购向导 ---------- */
.quiz-card { max-width: 760px; margin: 30px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 26px; box-shadow: var(--shadow); }
.quiz-progress { height: 6px; background: #e8eef6; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.quiz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-d)); border-radius: 99px; transition: width .3s; }
.quiz-q { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.quiz-hint { color: var(--muted); margin-bottom: 18px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qopt { text-align: left; border: 2px solid var(--line); background: #fbfcfe; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: .12s; }
.qopt:hover { border-color: var(--accent); }
.qopt.sel { border-color: var(--accent); background: #fff6ec; }
.qopt .qo-ico { font-size: 22px; }
.qopt b { display: block; color: var(--navy); }
.qopt span { font-size: 12.5px; color: var(--muted); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.quiz-stepno { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* 向导结果 */
.quiz-result { animation: fadein .3s; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.match-main { background: linear-gradient(180deg, #fff6ec, #fff); border: 2px solid var(--accent); }
.match .pcard { border-radius: 14px; }
.match .pname { font-size: 17px; }
.reason { margin: 16px 0 4px; font-size: 14.5px; color: var(--ink); background: #f2f8f2; border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 8px; }
.reason.alt { background: #f2f6fc; border-color: var(--navy); }
.restart { text-align: center; margin-top: 18px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .hero-side { min-height: 260px; }
  .cat-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .match { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .headrow { flex-wrap: wrap; }
  .cat-grid, .steps-grid { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}


/* ============ 深色主题（黑白切换按钮） ============ */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] { --bg:#0b141f; --card:#15202e; --line:#26364a; --ink:#e3ebf4; --muted:#8fa3b8; }
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] #site-header { background: rgba(13,20,30,.9); }
html[data-theme="dark"] .brand-name { color:#eef4fa; }
html[data-theme="dark"] .nav a:hover { background:#1c2a3b; }
html[data-theme="dark"] .langbtn { background:#15202e; color:#dfe8f2; border-color:#2c3d52; }
html[data-theme="dark"] .langbtn:hover { border-color:var(--accent); color:#ffb27a; }
html[data-theme="dark"] .white { background:#101a26; }
html[data-theme="dark"] .trust-band { background:#101a26; }
html[data-theme="dark"] .trust-ico { background:#1d2d3f; }
html[data-theme="dark"] .trust-ico.gold { background:#2f2412; }
html[data-theme="dark"] .trust-item b, html[data-theme="dark"] .ci b { color:#e3ebf4; }
html[data-theme="dark"] .hero-chip { background:#21344b; color:#eef4fa; }
html[data-theme="dark"] .hero-chip small { color:#a9bccd; }
html[data-theme="dark"] .pvis-img { background:#121c29; }
html[data-theme="dark"] .chip-cat { background:#1e3048; color:#dce9f7; }
html[data-theme="dark"] .pname, html[data-theme="dark"] .section-head h2 { color:#eef4fa; }
html[data-theme="dark"] .qchip { background:#1c2b3c; }
html[data-theme="dark"] .btn-ghost { background:#15202e; color:#e3ebf4; }
html[data-theme="dark"] .btn-ghost:hover { border-color:#8fa3b8; }
html[data-theme="dark"] .step, html[data-theme="dark"] .contact-card { background:#15202e; }
html[data-theme="dark"] .step h3, html[data-theme="dark"] .contact-card h3 { color:#eef4fa; }
html[data-theme="dark"] .contact-info .ci .ico { background:#1d2d3f; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background:#15202e; color:#e3ebf4; }
html[data-theme="dark"] label { color:#cfdeee; }
html[data-theme="dark"] .modal { background:#15202e; }
html[data-theme="dark"] .modal-x { background:#22344c; color:#dfe8f2; }
html[data-theme="dark"] .modal-title, html[data-theme="dark"] .qm-info h4 { color:#eef4fa; }
html[data-theme="dark"] .qm-row { background:#182536; }
html[data-theme="dark"] .filterchip { background:#15202e; color:#e3ebf4; }
html[data-theme="dark"] .filterchip.active { background:var(--navy); color:#fff; }
html[data-theme="dark"] .quiz-card { background:#15202e; }
html[data-theme="dark"] .quiz-progress { background:#22324a; }
html[data-theme="dark"] .quiz-q { color:#eef4fa; }
html[data-theme="dark"] .qopt { background:#182536; }
html[data-theme="dark"] .qopt b { color:#e3ebf4; }
html[data-theme="dark"] .qopt.sel { border-color:var(--accent); background:#33230f; }
html[data-theme="dark"] .match-main { background:linear-gradient(180deg,#2b1d0e,#182330); border-color:var(--accent); }
html[data-theme="dark"] .reason { background:#14231a; }
html[data-theme="dark"] .reason.alt { background:#182433; }
html[data-theme="dark"] .toast { background:#101c2b; }
@media (max-width:640px){ html[data-theme="dark"] .nav { background:#15202e; } }
