/* SmartUSBHub — 共享设计系统 (Arduino 风 · Claude 橙) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
:root{
  --teal:#D97757; --teal-d:#A8482C; --teal-l:#FBEDE6; --teal-btn:#B85539;
  --ink:#2e2722; --muted:#6b5f57; --dim:#a3948b;
  --bg:#ffffff; --bg-soft:#f6f2ee; --border:#ebe4dd; --panel:#f4efe9;
  --head:'Poppins','Noto Sans SC',sans-serif;
  --body:'Noto Sans SC','Poppins',-apple-system,'Segoe UI',sans-serif;
  --mono:'SF Mono','Consolas','Fira Code',monospace;
  --radius:14px; --shadow:0 8px 28px rgba(40,20,10,.08);
}
html{ -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body{ font-family:var(--body); color:var(--ink); background:var(--bg); line-height:1.6; font-size:16px; }
h1,h2,h3,h4{ font-family:var(--head); font-weight:700; line-height:1.14; letter-spacing:-0.01em; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 32px; }
hr.rule{ border:none; border-top:1px solid var(--border); }

/* bilingual */
.en{ display:none; } body.lang-en .zh{ display:none; } body.lang-en .en{ display:inline; }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; font-family:var(--head); font-weight:600; font-size:15px; padding:13px 28px; border-radius:999px; cursor:pointer; transition:.18s; border:2px solid transparent; }
.btn-teal{ background:var(--teal-btn); color:#fff; }
.btn-teal:hover{ background:var(--teal-d); transform:translateY(-1px); }
.btn-ghost{ border-color:var(--teal); color:var(--teal-d); background:transparent; }
.btn-ghost:hover{ background:var(--teal-l); }
.btn-sm{ font-size:14px; padding:9px 20px; }

/* ── nav ── */
.nav{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.nav-in{ display:flex; align-items:center; gap:28px; height:64px; max-width:1200px; margin:0 auto; padding:0 32px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--head); font-weight:700; font-size:18px; color:var(--ink); }
.brand .mark{ width:34px; height:34px; border-radius:9px; background:var(--teal); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.nav-links{ display:flex; gap:26px; margin-left:8px; }
.nav-links a{ font-family:var(--head); font-weight:500; font-size:15px; color:var(--ink); }
.nav-links a:hover{ color:var(--teal-d); }
.nav-links a.active{ color:var(--teal-d); }
.nav-right{ margin-left:auto; display:flex; align-items:center; gap:16px; }
.lang{ display:flex; align-items:center; gap:4px; font-family:var(--head); font-weight:600; font-size:13px; color:var(--dim); }
.lang button{ background:none; border:none; cursor:pointer; color:var(--dim); font:inherit; padding:2px 4px; }
.lang button.on{ color:var(--teal-d); }

/* ── page header ── */
.page-head{ background:var(--bg-soft); border-bottom:1px solid var(--border); }
.page-head-in{ max-width:1200px; margin:0 auto; padding:64px 32px 60px; }
.kicker{ font-family:var(--head); font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-d); margin-bottom:16px; }
.page-head h1{ font-size:clamp(34px,4.2vw,52px); margin-bottom:18px; }
.page-head p{ color:var(--muted); font-size:18px; line-height:1.7; max-width:600px; }

/* ── section ── */
.section{ padding:72px 0; }
.section-tag{ font-family:var(--head); font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-d); margin-bottom:28px; }
.section-header{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:40px; }
.section-header .section-tag{ margin-bottom:0; }
.section-header a{ font-family:var(--head); font-weight:600; font-size:14px; color:var(--teal-d); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }

/* ── cards ── */
.card{ background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:30px; transition:.2s; }
.card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); border-color:#ecd5c9; }

/* product cards */
.pcard{ background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.pcard-media{ background:var(--panel); display:flex; align-items:center; justify-content:center; padding:32px; min-height:240px; }
.pcard-media img{ width:100%; max-width:420px; }
.pcard-reserve{ width:100%; min-height:200px; border:2px dashed #e8d2c6; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:#fff; }
.pcard-reserve .rk{ font-family:var(--head); font-weight:600; font-size:13px; color:var(--muted); }
.pcard-reserve .rt{ font-size:12px; color:var(--dim); }
.pcard-body{ padding:30px 30px 34px; }
.pcard-sku{ font-family:var(--head); font-weight:600; font-size:12px; letter-spacing:.06em; color:var(--teal-d); margin-bottom:8px; }
.pcard h2{ font-size:26px; margin-bottom:14px; }
.pcard p{ color:var(--muted); margin-bottom:22px; }

/* chips */
.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.chip{ font-family:var(--head); font-weight:600; font-size:12px; background:var(--teal-l); color:var(--teal-d); padding:6px 12px; border-radius:999px; }

/* ── spec table ── */
.spec-table{ width:100%; border-collapse:collapse; font-size:15px; }
.spec-table tr{ border-bottom:1px solid var(--border); }
.spec-table td{ padding:14px 0; vertical-align:top; line-height:1.5; }
.spec-table td:first-child{ color:var(--muted); width:46%; }

/* ── compare table ── */
.compare-table{ width:100%; border-collapse:collapse; font-size:15px; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.compare-table th,.compare-table td{ padding:16px 20px; text-align:left; border-bottom:1px solid var(--border); }
.compare-table thead th{ font-family:var(--head); font-weight:600; background:var(--bg-soft); color:var(--ink); }
.compare-table th:first-child{ color:var(--muted); }
.compare-table td:first-child{ color:var(--muted); }
.compare-table tr:last-child td{ border-bottom:none; }
.check{ display:inline-block; width:18px; height:18px; border-radius:50%; background:var(--teal); position:relative; }
.check::after{ content:''; position:absolute; left:5px; top:4px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }

/* ── ordering ── */
.order-block{ border:1px solid var(--border); border-radius:12px; padding:22px 26px; display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:12px; }
.order-code{ font-family:var(--mono); font-size:15px; color:var(--ink); }
.order-desc{ color:var(--muted); font-size:14px; max-width:420px; }

/* ── code ── */
.code-card{ background:#241f1c; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
.code-bar{ display:flex; align-items:center; gap:8px; padding:11px 16px; background:#1b1714; border-bottom:1px solid #332b26; }
.code-bar .dot{ width:12px; height:12px; border-radius:50%; }
.code-bar .dot.r{ background:#ff5f57; } .code-bar .dot.y{ background:#febc2e; } .code-bar .dot.g{ background:#cfcdc9; }
.code-name{ margin-left:8px; font-family:var(--mono); font-size:12px; color:#8a8078; }
.code-card pre,.code-block{ margin:0; padding:20px 24px; font-family:var(--mono); font-size:13.5px; line-height:1.8; color:#ece6e0; white-space:pre; overflow-x:auto; tab-size:4; }
.code-block{ background:#241f1c; border-radius:12px; }
.code-card .cmt,.code-block .cmt{ color:#7c736b; }
.code-card .kw,.code-block .kw{ color:#e0a07a; }
.code-card .fn,.code-block .fn{ color:#f0c68a; }
.code-card .str,.code-block .str{ color:#a9c98c; }
.code-card .num,.code-block .num{ color:#d8a6ca; }
.code-card .pkg,.code-block .pkg{ color:#ece6e0; }

/* ── inline list / platform / steps ── */
.inline-list{ list-style:none; }
.inline-list li{ display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--border); }
.inline-list li::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--teal); flex-shrink:0; }
.platform-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.platform-badge{ font-family:var(--head); font-weight:600; font-size:12px; color:var(--muted); border:1px solid var(--border); padding:6px 14px; border-radius:999px; }
.steps{ counter-reset:step; }
.step{ display:flex; gap:28px; padding:30px 0; border-bottom:1px solid var(--border); counter-increment:step; }
.step-num{ font-family:var(--head); font-weight:700; font-size:18px; color:var(--teal); width:44px; flex-shrink:0; }
.step-num::before{ content:"0" counter(step); }
.step-content h3{ font-size:22px; margin-bottom:10px; }
.step-content p{ color:var(--muted); margin-bottom:14px; }

/* ── doc cards ── */
.doc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.doc-card{ background:var(--bg); border:1px solid var(--border); border-radius:var(--radius); padding:30px 28px 34px; transition:.2s; display:block; }
.doc-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); border-color:#ecd5c9; }
.doc-card-icon{ width:48px; height:48px; border-radius:12px; background:var(--teal-l); color:var(--teal-d); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.doc-card-title{ font-family:var(--head); font-weight:600; font-size:20px; margin-bottom:10px; }
.doc-card-body{ color:var(--muted); font-size:15px; line-height:1.65; }

/* ── footer ── */
footer.site-footer{ background:#2a160e; color:#e2d2c8; padding:60px 0 0; }
.foot-in{ max-width:1200px; margin:0 auto; padding:0 32px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:36px; }
.footer-brand{ font-family:var(--head); font-weight:700; font-size:18px; color:#fff; margin-bottom:14px; }
.footer-tagline{ color:#bda393; font-size:14px; line-height:1.7; max-width:260px; }
.footer-col h4{ font-family:var(--head); font-weight:600; font-size:13px; color:#fff; margin-bottom:16px; letter-spacing:.04em; }
.footer-col a{ display:block; color:#cbab9b; font-size:14px; margin-bottom:10px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:44px; padding:22px 32px; display:flex; justify-content:space-between; max-width:1200px; margin-left:auto; margin-right:auto; font-size:13px; color:#a98c7c; }

@media(max-width:900px){
  .two-col{ grid-template-columns:1fr; gap:36px; }
  .doc-grid{ grid-template-columns:1fr; }
  .foot-in{ grid-template-columns:1fr 1fr; }
}
/* ── 移动端导航：折行显示，不再隐藏链接 ── */
@media(max-width:820px){
  .nav-in{ flex-wrap:wrap; height:auto; padding:10px 24px; gap:6px 16px; }
  .nav-links{ order:3; width:100%; justify-content:center; gap:20px; margin-left:0;
    padding-top:8px; border-top:1px solid var(--border); font-size:14px; flex-wrap:wrap; }
}
/* ── 手机端排版 ── */
@media(max-width:600px){
  .wrap{ padding:0 20px; }
  .nav-in{ padding:10px 20px; }
  .nav-right .btn{ padding:8px 14px; font-size:13px; }
  .section{ padding:48px 0; }
  .page-head-in{ padding:40px 20px 36px; }
  .page-head p{ font-size:16px; }
  .foot-in{ grid-template-columns:1fr; padding:0 20px; gap:28px; }
  .footer-bottom{ flex-direction:column; gap:8px; text-align:center; padding:22px 20px; }
  .order-block{ flex-direction:column; align-items:flex-start; gap:6px; padding:18px 20px; }
  .order-desc{ max-width:none; }
  .spec-table{ font-size:14px; }
  .spec-table td{ padding:12px 0; }
  .spec-table td:first-child{ width:42%; }
  .compare-table{ font-size:13px; }
  .compare-table th,.compare-table td{ padding:11px 12px; }
  .step{ gap:16px; padding:24px 0; }
  .step-num{ width:34px; }
  .step-content h3{ font-size:19px; }
  .pcard-body{ padding:24px 22px 28px; }
  .code-card pre,.code-block{ padding:16px 16px; font-size:12.5px; }
}
