/* 源头淘官网 v4 设计系统（2026-10-08 重规划）——设计令牌+统一组件。首页专用，批准后迁移全站。 */
:root {
  --brand: #00b96b;
  --brand-deep: #00875a;
  --brand-soft: #eefaf4;
  --price: #e4393c;
  --c-tb: #ff5000;
  --c-jd: #e1251b;
  --c-pdd: #e02e24;
  --canvas: #f6f8f7;
  --surface: #ffffff;
  --line: #e7ebe8;
  --text-1: #17211b;
  --text-2: #45524b;
  --text-3: #7a867f;
  --text-4: #a8b1ab;
  --shadow-card: 0 1px 2px rgba(23, 60, 42, 0.04), 0 4px 16px rgba(23, 60, 42, 0.05);
  --r-card: 14px;
  --r-input: 10px;
  --r-pill: 999px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--text-1); background: var(--canvas); font-size: 15px; line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: color 0.15s; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- 导航（全站唯一版） ---- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 26px; }
.logo { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; }
.logo em { font-style: normal; color: var(--brand); }
.hdr nav { display: flex; gap: 22px; }
.hdr nav a { font-size: 14px; color: var(--text-2); padding: 6px 2px; }
.hdr nav a:hover, .hdr nav a.on { color: var(--brand-deep); font-weight: 600; }
.hdr .sp { flex: 1; }
.hsearch { display: flex; align-items: center; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-pill); height: 38px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.hsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 185, 107, 0.12); }
.hsearch input { border: none; background: transparent; outline: none; font-size: 13px; padding: 0 4px 0 16px; width: 170px; color: var(--text-1); }
.hsearch button { border: none; background: var(--brand); color: #fff; border-radius: var(--r-pill); padding: 7px 16px; font-size: 13px; cursor: pointer; margin-right: 3px; white-space: nowrap; flex-shrink: 0; }
.hsearch button:hover { background: var(--brand-deep); }
.hsearch button:active { transform: scale(0.98); }
.gh-dev { font-size: 14px; color: var(--brand-deep); font-weight: 600; white-space: nowrap; }
.gh-dev:hover { color: var(--brand); }
@media (max-width: 860px) {
  .hdr-in { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 0; }
  .hdr nav { display: flex; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 20px; padding: 6px 0 10px; }
  .hdr nav::-webkit-scrollbar { display: none; }
  .hdr .hsearch { display: none; }
}

/* ---- Hero ---- */
.hero { padding: 68px 0 46px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--canvas) 100%); border-bottom: 1px solid var(--line); }
.hero .kicker { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid #d3efdf; padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.hero h1 { font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: 0.3px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero .sub { font-size: 16px; color: var(--text-2); margin-top: 14px; }
.hero .hsearch { margin: 26px auto 0; width: min(520px, 92%); height: 48px; background: var(--surface); box-shadow: var(--shadow-card); }
.hero .hsearch input { width: 100%; flex: 1; min-width: 0; font-size: 14px; }
.hero .hsearch button { padding: 10px 26px; font-size: 14px; }
.plat-trust { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.plat-pill { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 16px; border-radius: var(--r-pill); }
.plat-pill i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; font-style: normal; }

/* ---- 通用板块 ---- */
.sec { padding: 44px 0 8px; }
.sec-hd { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.sec-hd h2 { font-size: 21px; font-weight: 700; }
.sec-hd .more { font-size: 13px; color: var(--text-3); margin-left: auto; }
.sec-hd .more:hover { color: var(--brand-deep); }

/* 平台精选三卡 */
.plat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard3 { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 22px 19px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.pcard3:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pcard3::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pcard3.tbk::before { background: var(--c-tb); }
.pcard3.jd::before { background: var(--c-jd); }
.pcard3.pdd::before { background: var(--c-pdd); }
.pcard3 .pn { font-size: 17px; font-weight: 700; }
.pcard3.tbk .pn { color: var(--c-tb); }
.pcard3.jd .pn { color: var(--c-jd); }
.pcard3.pdd .pn { color: var(--c-pdd); }
.pcard3 .pd { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.65; }
.pcard3 .go { font-size: 13px; color: var(--text-3); margin-top: 12px; }
.pcard3:hover .go { color: var(--brand-deep); }

/* 三步买 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.step .no { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 15px; font-weight: 600; margin-top: 10px; }
.step p { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.7; }

/* 上新预告条（商品区占位） */
.soon { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px dashed #c9d6cf; border-radius: var(--r-card); padding: 22px 26px; }
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 185, 107, 0.15); flex-shrink: 0; }
.soon .t1 { font-size: 15px; font-weight: 600; }
.soon .t2 { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.soon .lnk { margin-left: auto; font-size: 13px; color: var(--brand-deep); font-weight: 600; white-space: nowrap; }

/* 内容区 */
.art3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; transition: box-shadow 0.2s, transform 0.2s; }
.acard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.acard .tag { font-size: 11.5px; color: var(--brand-deep); background: var(--brand-soft); padding: 2px 10px; border-radius: var(--r-pill); }
.acard h3 { font-size: 15.5px; font-weight: 600; margin-top: 10px; line-height: 1.5; }
.acard p { font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.7; }

/* 双受众卡 */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 26px; }
.dcard .who { font-size: 12.5px; font-weight: 600; color: var(--brand-deep); }
.dcard h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.dcard p { font-size: 13.5px; color: var(--text-2); margin-top: 8px; line-height: 1.75; }
.dcard .act { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: #fff; background: var(--brand); padding: 9px 24px; border-radius: var(--r-pill); }
.dcard .act:hover { background: var(--brand-deep); }
.dcard .act:active { transform: scale(0.98); }
.dcard .ghost { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand-deep); background: var(--surface); border: 1px solid var(--brand); padding: 8px 24px; border-radius: var(--r-pill); }
.dcard .ghost:hover { background: var(--brand-soft); }
.dcard .lnks { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }
.dcard .lnks a { color: var(--text-2); border-bottom: 1px solid var(--line); }
.dcard .lnks a:hover { color: var(--brand-deep); }

/* ---- Footer（全站唯一版：四列索引） ---- */
.ftr { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); }
.ftr-in { max-width: 1120px; margin: 0 auto; padding: 40px 24px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; }
.ftr h4 { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; }
.ftr a { display: block; font-size: 13px; color: var(--text-3); padding: 3.5px 0; }
.ftr a:hover { color: var(--brand-deep); }
.ftr .fbrand p { font-size: 13px; color: var(--text-3); line-height: 1.8; margin-top: 8px; }
.ftr-btm { max-width: 1120px; margin: 0 auto; padding: 16px 24px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-4); flex-wrap: wrap; }
@media (max-width: 860px) { .plat3, .steps, .art3, .dual { grid-template-columns: 1fr; } .ftr-in { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 25px; } }

/* ---- 文章/规则页正文（全站统一） ---- */
.prose { max-width: 800px; margin: 0 auto; padding: 46px 24px 0; }
.prose .kicker { font-size: 12.5px; font-weight: 600; color: var(--brand-deep); margin-bottom: 10px; }
.prose h1 { font-size: 27px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.prose .lede { font-size: 14.5px; color: var(--text-3); margin-bottom: 26px; }
.prose h2 { font-size: 19px; font-weight: 700; margin: 34px 0 12px; }
.prose h3 { font-size: 15.5px; font-weight: 600; margin: 22px 0 8px; }
.prose p, .prose ul { font-size: 14.5px; color: var(--text-2); line-height: 1.85; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--text-1); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0 18px; }
.prose th { text-align: left; padding: 9px 12px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.prose th:first-child { border-radius: 8px 0 0 8px; } .prose th:last-child { border-radius: 0 8px 8px 0; }
.prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose .rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 16px 0; }
.prose .rule-card h3 { margin-top: 0; }
.prose .faq-item h3 { font-size: 14.5px; color: var(--text-1); margin: 16px 0 4px; }
.prose .faq-item p { margin-bottom: 0; }
.prose .cta { margin-top: 36px; padding: 16px 20px; background: var(--brand-soft); border: 1px solid #d3efdf; border-radius: var(--r-card); font-size: 14px; color: var(--text-2); }
.prose .cta a { color: var(--brand-deep); font-weight: 600; }
.prose .rel { margin-top: 30px; }
.prose .rel h2 { margin-bottom: 10px; }
.prose .rel a { display: block; font-size: 14px; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.prose .rel a:hover { color: var(--brand-deep); }
