/* ==========================================================
   爱购鲸返 · 前台样式
   主色：深墨蓝 #0f172a（顶栏、页脚、标题）
   强调：蓝 #2563eb（按钮、链接）
   平台色：京东 #c81623 / 淘宝 #ff5000 / 唯品会 #e4007f
   ========================================================== */

*,*::before,*::after{box-sizing:border-box}

:root{
  --ink:#0f172a;
  --ink-2:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --bg:#f7f9fc;
  --card:#ffffff;
  --blue:#2563eb;
  --blue-d:#1d4ed8;
  --jd:#c81623;
  --tb:#ff5000;
  --vip:#e4007f;
  --ok:#059669;
  --warn:#d97706;
  --err:#dc2626;
  --radius:10px;
  --shadow:0 1px 3px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
}

html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:15px/1.75 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{margin:0 0 .6em;line-height:1.35;font-weight:600}
h1{font-size:26px;letter-spacing:-.2px}
h2{font-size:20px}
h3{font-size:16px}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.3em}
li{margin-bottom:.35em}
code{background:#f1f5f9;padding:1px 5px;border-radius:4px;font-size:.9em}

.wrap{max-width:1080px;margin:0 auto;padding:0 18px}

/* ---------- 顶栏 ---------- */
.topbar{
  background:var(--ink);color:#fff;position:sticky;top:0;z-index:50;
  box-shadow:0 1px 0 rgba(255,255,255,.06);
}
.topbar .wrap{display:flex;align-items:center;height:58px;gap:20px}
.logo{display:flex;align-items:center;gap:9px;color:#fff;flex-shrink:0}
.logo:hover{text-decoration:none}
.logo-mark{
  width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#3b82f6,#8b5cf6);font-size:15px;font-weight:700;color:#fff;
}
.logo-text{font-size:16px;font-weight:600;letter-spacing:.3px}
.nav{margin-left:auto;display:flex;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.nav a{
  color:#cbd5e1;font-size:13.5px;padding:6px 11px;border-radius:6px;white-space:nowrap;
}
.nav a:hover{color:#fff;background:rgba(255,255,255,.08);text-decoration:none}
.nav a.on{color:#fff;background:rgba(255,255,255,.13)}

/* ---------- 首屏 ---------- */
.hero{
  background:linear-gradient(160deg,#0f172a 0%,#1e293b 55%,#243b6b 100%);
  color:#fff;padding:44px 0 52px;
}
.hero h1{color:#fff;font-size:29px;margin-bottom:12px}
.hero .lede{
  color:#cbd5e1;font-size:15px;max-width:720px;margin-bottom:26px;
}
.hero .lede strong{color:#fff;font-weight:600}

/* ---------- 查询框 ---------- */
.qbox{background:#fff;border-radius:14px;padding:18px;box-shadow:0 12px 40px rgba(0,0,0,.22)}
.qbox .tabs{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.tab{
  border:1px solid var(--line);background:#f8fafc;color:var(--muted);
  padding:7px 15px;border-radius:999px;font-size:13.5px;cursor:pointer;
  font-family:inherit;transition:.15s;
}
.tab:hover{background:#f1f5f9}
.tab.on{color:#fff;border-color:transparent;font-weight:600}
.tab.on[data-p="jd"]{background:var(--jd)}
.tab.on[data-p="tb"]{background:var(--tb)}
.tab.on[data-p="vip"]{background:var(--vip)}
.tab:disabled{opacity:.4;cursor:not-allowed}
.tab .dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  vertical-align:middle;margin-right:6px;background:currentColor;opacity:.7;
}
.tab.on .dot{opacity:1;background:#fff}

/* 每个平台一个独立面板：切标签只切显示，输入内容和查询结果各自保留 */
.qbox .panel{display:none}
.qbox .panel.on{display:block}

/* 唯品会导流位：面板里没有输入框，只有一句把人引到公众号的话 */
.notice-card{
  text-align:center;
  padding:30px 22px 26px;
  border-radius:12px;
  background:linear-gradient(180deg,#fff5fa 0%,#fff 100%);
  border:1px solid #fbd5e8;
}
.notice-line{
  font-size:17px;
  line-height:1.75;
  color:#334155;
  font-weight:500;
}
.notice-line .hl{
  color:var(--vip);
  font-weight:800;
  font-size:1.14em;
  padding:0 2px;
  /* 加一层下划底色，扫一眼就记住这个名字 */
  background:linear-gradient(180deg,transparent 62%,rgba(228,0,127,.15) 62%);
}
.notice-sub{
  margin:14px 0 0;
  font-size:13px;
  color:#94a3b8;
  line-height:1.7;
}

.qrow{display:flex;gap:10px}
.qrow input[type=text]{
  flex:1;min-width:0;padding:13px 15px;border:1.5px solid var(--line);border-radius:9px;
  font-size:14.5px;font-family:inherit;color:var(--ink);background:#fff;
}
.qrow input[type=text]:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.13);
}
.qrow button{
  flex-shrink:0;padding:0 26px;border:0;border-radius:9px;background:var(--blue);color:#fff;
  font-size:15px;font-weight:500;font-family:inherit;cursor:pointer;transition:.15s;
}
.qrow button:hover{background:var(--blue-d)}
.qrow button:disabled{background:#94a3b8;cursor:not-allowed}
.qhint{margin-top:10px;font-size:12.5px;color:var(--muted);line-height:1.6;display:flex;gap:10px;align-items:flex-start}
.qhint .clear{
  flex-shrink:0;border:0;background:none;color:var(--blue);cursor:pointer;
  font-size:12.5px;font-family:inherit;padding:0;
}
.qhint .clear:hover{text-decoration:underline}

.qerr{margin-top:12px;padding:10px 13px;border-radius:8px;background:#fef2f2;color:#991b1b;
  border:1px solid #fecaca;font-size:13.5px;display:none}
.qerr.show{display:block}

/* ---------- 结果卡 ---------- */
.result{margin-top:18px;display:none}
.result.show{display:block}
.goods{
  display:flex;gap:16px;padding:16px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;
}
.goods .pic{
  width:96px;height:96px;flex-shrink:0;border-radius:8px;background:#e2e8f0;overflow:hidden;
}
.goods .pic img{width:100%;height:100%;object-fit:cover}
.goods .meta{flex:1;min-width:0}
.goods .title{font-size:14.5px;font-weight:600;color:var(--ink);margin-bottom:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.goods .prices{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.goods .prices .now{font-size:19px;font-weight:700;color:var(--err)}
.goods .prices .was{text-decoration:line-through}
.goods .shop{margin-top:6px;font-size:12.5px;color:var(--muted)}

.giftbox{
  margin-top:14px;padding:18px;border-radius:10px;text-align:center;
  background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1.5px dashed #fdba74;
}
.giftbox .lab{font-size:13px;color:#9a3412;margin-bottom:6px}
.giftbox .amt{font-size:38px;font-weight:800;color:#ea580c;line-height:1.1;letter-spacing:-1px}
.giftbox .amt small{font-size:16px;font-weight:600;margin-left:2px}
.giftbox .sub{font-size:12.5px;color:#c2410c;margin-top:6px}
.giftbox.zero{background:#f8fafc;border-color:var(--line)}
.giftbox.zero .lab,.giftbox.zero .sub{color:var(--muted)}
.giftbox.zero .amt{color:var(--muted);font-size:22px;font-weight:600}

.act{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:12px 26px;border:0;border-radius:9px;font-size:15px;font-weight:500;
  font-family:inherit;cursor:pointer;transition:.15s;
}
.btn.primary{background:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blue-d);text-decoration:none}
.btn.ghost{background:#fff;color:var(--ink-2);border:1.5px solid var(--line)}
.btn.ghost:hover{background:#f8fafc;text-decoration:none}
.btn:disabled{opacity:.6;cursor:not-allowed}

/* ---------- 通用区块 ---------- */
.sec{padding:38px 0}
.sec.alt{background:#fff}
.sec-head{text-align:center;margin-bottom:26px}
.sec-head h2{margin-bottom:8px}
.sec-head p{color:var(--muted);font-size:14px;margin:0}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.step{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 16px}
.step .n{
  width:26px;height:26px;border-radius:50%;background:#eff6ff;color:var(--blue);
  font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:10px;
}
.step h3{font-size:14.5px;margin-bottom:6px}
.step p{font-size:13px;color:var(--muted);margin:0;line-height:1.65}

.plats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.plat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;border-top:3px solid}
.plat.p-jd{border-top-color:var(--jd)}
.plat.p-tb{border-top-color:var(--tb)}
.plat.p-vip{border-top-color:var(--vip)}
.plat h3{font-size:15px;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.plat h3 .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.plat.p-jd .dot{background:var(--jd)}
.plat.p-tb .dot{background:var(--tb)}
.plat.p-vip .dot{background:var(--vip)}
.plat p{font-size:13px;color:var(--muted);margin:0 0 10px;line-height:1.65}
.plat .st{font-size:12px;padding:2px 9px;border-radius:10px}
.plat .st.on{background:#dcfce7;color:#166534}
.plat .st.off{background:#f1f5f9;color:#64748b}

/* ---------- 折叠问答 ---------- */
details{
  background:#fff;border:1px solid var(--line);border-radius:9px;
  padding:14px 16px;margin-bottom:10px;
}
details[open]{border-color:#c7d2fe;background:#fcfdff}
summary{
  cursor:pointer;font-weight:600;font-size:14.5px;list-style:none;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--muted);font-size:19px;font-weight:400;line-height:1}
details[open] summary::after{content:"−"}
details .ans{margin-top:11px;font-size:13.8px;color:#475569;line-height:1.8}
details .ans p:last-child{margin-bottom:0}

/* ---------- 文章 ---------- */
.article{background:#fff;border:1px solid var(--line);border-radius:12px;padding:30px 32px;max-width:1080px;margin:0 auto}
.article h1{font-size:25px;margin-bottom:10px}
.article .meta{font-size:12.5px;color:var(--muted);margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.article h2{font-size:18px;margin-top:30px;padding-left:11px;border-left:3px solid var(--blue)}
.article h3{font-size:15px;margin-top:20px;color:var(--ink-2)}
.article p{color:#334155;font-size:14.6px;line-height:1.9}
.article table{width:100%;border-collapse:collapse;font-size:13.5px;margin:16px 0;display:block;overflow-x:auto}
.article table th,.article table td{padding:9px 12px;border:1px solid var(--line);text-align:left}
.article table th{background:#f8fafc;font-weight:600;white-space:nowrap}
.article .note{
  background:#eff6ff;border-left:3px solid var(--blue);padding:13px 16px;border-radius:0 7px 7px 0;
  font-size:13.8px;color:#1e40af;margin:18px 0;
}
.article .note p:last-child{margin-bottom:0}

/* ---------- 提示条 ---------- */
.banner{
  background:#fffbeb;border:1px solid #fde68a;color:#92400e;
  padding:11px 15px;border-radius:8px;font-size:13.5px;margin-bottom:18px;
}

/* ---------- 空态 ---------- */
.empty{text-align:center;padding:50px 20px;color:var(--muted)}
.empty .ico{font-size:38px;margin-bottom:12px;opacity:.35}

/* ---------- 页脚 ---------- */
.foot{background:var(--ink);color:#94a3b8;padding:40px 0 26px;margin-top:50px;font-size:13px}
.foot-cols{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:32px;margin-bottom:28px}
.foot-col h4{color:#e2e8f0;font-size:13.5px;margin-bottom:12px;font-weight:600}
.foot-col p{font-size:12.8px;line-height:1.8;margin:0;color:#94a3b8}
.foot-col ul{list-style:none;padding:0;margin:0}
.foot-col li{margin-bottom:7px;font-size:12.8px}
.foot-col a{color:#cbd5e1}
.foot-col a:hover{color:#fff}
.foot-bottom{
  border-top:1px solid rgba(255,255,255,.09);padding-top:18px;
  display:flex;flex-wrap:wrap;gap:14px;font-size:12.3px;color:#64748b;
}
.foot-bottom a{color:#94a3b8}
.foot-note{width:100%;color:#475569;font-size:12px}

/* ---------- 加载态 ---------- */
.spin{
  display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite;vertical-align:-2px;margin-right:6px;
}
@keyframes sp{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);
  background-size:400% 100%;animation:sk 1.3s ease infinite;border-radius:6px}
@keyframes sk{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ---------- 响应式 ---------- */
@media(max-width:860px){
  .steps{grid-template-columns:repeat(2,1fr)}
  .plats{grid-template-columns:1fr}
  .foot-cols{grid-template-columns:1fr 1fr;gap:24px}
  .foot-col:first-child{grid-column:1/-1}
}
@media(max-width:640px){
  body{font-size:14.5px}
  .hero{padding:30px 0 38px}
  .hero h1{font-size:22px}
  .hero .lede{font-size:13.8px;margin-bottom:20px}
  .qbox{padding:14px;border-radius:12px}
  .notice-card{padding:24px 16px 22px}
  .notice-line{font-size:15.5px}
  .qrow{flex-direction:column}
  .qrow button{padding:13px;width:100%}
  .goods{gap:12px;padding:13px}
  .goods .pic{width:76px;height:76px}
  .giftbox .amt{font-size:32px}
  .steps{grid-template-columns:1fr}
  .sec{padding:28px 0}
  .article{padding:22px 18px;border-radius:10px}
  .article h1{font-size:21px}
  .act .btn{flex:1 1 100%}
  .topbar .wrap{height:52px;gap:12px}
  .nav{margin-left:0;flex:1;justify-content:flex-end}
  .nav a{padding:5px 8px;font-size:12.5px}
}
@media(max-width:400px){
  .nav a:nth-child(n+4){display:none}
}

/* ---------- 打印 ---------- */
@media print{
  .topbar,.foot,.qbox,.act{display:none!important}
  body{background:#fff}
  .article{border:0;padding:0;max-width:none}
  a{color:#000;text-decoration:underline}
  details{page-break-inside:avoid;border:1px solid #ccc}
}
