/* 1edo 全站样式 — 按 4.13 UI 风格规范（参照 Logitech 交互骨架）
   设计稿 1920 / 容器 max-width 1600 / 断点 5 档 / 中性色纪律 + 1edo 红点缀 */

/* Figtree 可变字体（SIL OFL 开源，自托管；气质对标 Logitech 的 Brown 双层 a 几何人文风） */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #161616;          /* 主按钮墨色（罗技式双色 CTA 体系） */
  --ink-hover: #000;
  --accent: #EA543F;       /* 1edo 红 — 全站唯一点缀色（≤5% 面积） */
  --accent-dark: #C74633;
  --accent-soft: #FDEEEB;
  --bg: #FFFFFF;
  --surface: #F5F5F4;      /* 产品图浅灰底 */
  --surface-2: #EFEFED;
  --border: #E4E4E2;
  --text: #1A1A1A;
  --muted: #6E6E6B;
  --ok: #2E7D46;
  --radius: 12px;
  --container: 1600px;
  --font: "Figtree", "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

.container { max-width: calc(var(--container) + 96px); margin: 0 auto; padding: 0 48px; }
@media (max-width: 1599px) { .container { max-width: none; padding: 0 40px; } }
@media (max-width: 1023px)  { .container { padding: 0 24px; } }
@media (max-width: 767px)   { .container { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: .01em; color: var(--ink); display: flex; align-items: baseline; }
.logo .deg { color: var(--accent); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 8px;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover { color: var(--ink); background: var(--surface); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 8px; display: none;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .dropdown.open { display: block; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.dropdown a:hover { background: var(--surface); color: var(--ink); }
.dropdown .dd-label { padding: 8px 14px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-search { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); cursor: pointer; font-family: inherit; }
.cart-link { position: relative; font-size: 20px; line-height: 1; padding: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); padding: 6px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-radius: 20px; margin-top: 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 64px 64px; }
.hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.hero p.lede { margin: 16px 0 28px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-visual { background: #E9E9E7; border-radius: 16px; min-height: 320px; display: flex; align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 999px; padding: 14px 28px;
  cursor: pointer; border: 0; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }         /* 仅大促/活动页允许红底 */
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.section-head .more { font-size: 14px; font-weight: 600; color: var(--muted); }
.section-head .more:hover { color: var(--accent-dark); }

/* ---------- Product cards ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.card-media { background: var(--surface); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; position: relative; }
.card-media svg { width: 62%; height: 62%; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-series { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.card-benefit { font-size: 13.5px; color: var(--muted); flex: 1; }
.card-price { font-size: 16px; font-weight: 800; }
.card-price .accent { color: var(--accent); }   /* 价格强调是红色允许出现的三处之一 */
.card-actions { margin-top: 10px; }
.badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.badge.sale { background: var(--accent); }        /* Sale badge 允许红 */
.badge.new { background: var(--ink); }
.badge.bestseller { background: #3A3A38; }
.badge.lowstock { background: #7A5B2E; }

/* ---------- Category tiles ---------- */
.grid-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px 20px; text-align: center; transition: transform .18s ease; border: 1px solid transparent; }
.tile:hover { transform: translateY(-3px); border-color: var(--border); }
.tile svg { width: 56px; height: 56px; margin: 0 auto 12px; }
.tile .t-name { font-weight: 700; font-size: 15px; }
.tile .t-count { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--surface); border-radius: 20px; padding: 32px 40px; margin: 56px 0; }
.trustbar .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.trust-item { text-align: center; font-size: 13.5px; }
.trust-item .t-icon { font-size: 24px; margin-bottom: 8px; }
.trust-item b { display: block; font-size: 14px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; min-width: 640px; }
table.spec th, table.spec td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.spec th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td .accent { color: var(--accent); font-weight: 800; }
table.spec a { color: var(--accent-dark); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 16px; color: var(--muted); max-width: 80ch; }

/* ---------- Article / long-form ---------- */
.article { max-width: 860px; margin: 0 auto; }   /* 长文内文限宽 ≤860px（4.13 规范） */
.article h2 { font-size: 26px; margin: 40px 0 16px; letter-spacing: -.01em; }
.article h3 { font-size: 20px; margin: 28px 0 12px; }
.article p, .article li { color: #333; margin-bottom: 14px; max-width: 80ch; }
.article ul { padding-left: 20px; list-style: disc; }
.article table { margin: 16px 0; }
.article .callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; margin: 20px 0; }
.footnote { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 32px; }

/* ---------- PDP ---------- */
.pdp-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 32px 0; }
.pdp-gallery { background: var(--surface); border-radius: 16px; min-height: 460px; display: flex; align-items: center; justify-content: center; position: relative; }
.pdp-gallery svg { width: 55%; }
.pdp-info h1 { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.pdp-series { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.pdp-lede { color: var(--muted); margin: 12px 0 20px; font-size: 17px; }
.pdp-price { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.pdp-price .accent { color: var(--accent); }
.pdp-stock { font-size: 14px; color: var(--ok); font-weight: 600; margin-bottom: 20px; }
.pdp-cta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.pdp-usps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.pdp-usps li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .sb-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.sticky-bar .sb-name { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar .sb-price { font-weight: 800; }

/* ---------- Directory / hub lists ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: transform .15s ease; }
.dir-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.dir-card b { display: block; margin-bottom: 4px; }
.dir-card span { font-size: 13.5px; color: var(--muted); }

/* ---------- Quiz / 表单面板 —— 4.13 墨色特性面板（双色体系，红点缀） ---------- */
.quiz { position: relative; background: var(--ink); color: #fff; border-radius: 20px; padding: 48px; max-width: 760px; margin: 0 auto; text-align: center; overflow: hidden; }
.quiz::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.quiz-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.quiz h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.quiz .quiz-sub { color: rgba(255,255,255,.72); font-size: 15px; margin: 0 0 8px; }
.quiz .q-step { margin: 22px 0 0; }
.quiz .q-step > b { display: block; font-size: 16px; margin-bottom: 2px; }
.quiz .q-opts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.quiz .q-opt { border: 1.5px solid rgba(255,255,255,.28); background: transparent; color: #fff; border-radius: 999px; padding: 12px 24px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 15px; transition: border-color .15s, background .15s, color .15s; }
.quiz .q-opt:hover { border-color: rgba(255,255,255,.65); }
.quiz .q-opt.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz .q-result { margin: 24px auto 0; max-width: 560px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 18px 22px; font-size: 17px; }
.quiz .q-result a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.quiz .q-result a:hover { color: var(--accent); }
.quiz input, .quiz textarea { background: #fff; color: var(--ink); }
.quiz .quiz-note { color: rgba(255,255,255,.55); font-size: 13px; }
.btn-quiz { background: #fff; color: var(--ink); border: 1.5px solid #fff; }
.btn-quiz:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }

/* 首页 Quiz — 全宽墨色特性面板，与 hero 同语言（左介绍右问题两栏） */
.quiz.quiz-feature {
  max-width: none; text-align: left;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
  padding: 56px 64px;
}
.quiz.quiz-feature .quiz-eyebrow { margin: 0 0 16px; }
.quiz.quiz-feature h2 { font-size: 34px; margin: 0 0 14px; }
.quiz.quiz-feature .quiz-sub { font-size: 16px; margin: 0; max-width: 40ch; }
.quiz.quiz-feature .q-step { margin: 0; }
.quiz.quiz-feature .q-step + .q-step { margin-top: 26px; }
.quiz.quiz-feature .q-opts { justify-content: flex-start; margin-top: 12px; }
.quiz.quiz-feature .q-result { margin: 26px 0 0; max-width: none; text-align: left; }
@media (max-width: 1279px) { .quiz.quiz-feature { grid-template-columns: 1fr; gap: 36px; padding: 44px 40px; align-items: start; } }
@media (max-width: 767px)  { .quiz.quiz-feature { padding: 32px 20px; gap: 28px; } .quiz.quiz-feature h2 { font-size: 26px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFCFCC; margin-top: 80px; padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #CFCFCC; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a { display: block; padding: 4px 0; }
.footer-bottom a { display: inline; padding: 0; color: #CFCFCC; }
.footer-bottom a:hover { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; font-size: 22px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8A8A87; }

/* ---------- SEO text block ---------- */
.seo-block { max-width: 900px; margin: 0 auto; color: var(--muted); font-size: 14.5px; }
.seo-block h2 { font-size: 20px; color: var(--text); margin-bottom: 10px; }
.seo-block a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Banners / intro strip ---------- */
.page-intro { padding: 28px 0 8px; max-width: 900px; }
.page-intro h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.page-intro .lede { color: var(--muted); font-size: 16.5px; margin-top: 10px; max-width: 72ch; }

/* ---------- Device quick-picks ---------- */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.pick b { display: block; margin-bottom: 6px; }
.pick span { font-size: 13.5px; color: var(--muted); display: block; }
.pick .pick-cta { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent-dark); }

/* ---------- Responsive: 5 breakpoints ---------- */
@media (max-width: 1599px) {
  .grid-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1279px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .trustbar .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1023px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 24px 20px; box-shadow: 0 16px 32px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav > .nav-item { width: 100%; }
  .dropdown { position: static; box-shadow: none; border: 0; display: none; padding-left: 16px; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 32px; }
  .hero h1 { font-size: 34px; }
  .pdp-layout { grid-template-columns: 1fr; gap: 32px; }
  .grid-tiles { grid-template-columns: repeat(3, 1fr); }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .picks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .header-inner { height: 60px; gap: 12px; }
  .logo { font-size: 20px; }
  .btn-search { display: none; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-actions .btn { width: 100%; padding: 10px 12px; font-size: 12px; }
  .grid-tiles { grid-template-columns: repeat(2, 1fr); }
  .trustbar .grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar { padding: 24px 20px; }
  .hero h1 { font-size: 28px; }
  .hero-inner { padding: 32px 20px; }
  .header-actions .btn { font-size: 11px; padding: 8px 12px; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .dir-grid { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .page-intro h1 { font-size: 26px; }
  .pdp-info h1 { font-size: 24px; }
  .quiz { padding: 28px 20px; }
  section.block { padding: 36px 0; }
}
@media (min-width: 1600px) {
  body { font-size: 16.5px; }
}

/* ---------- A11y / misc ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn, .nav-link, .q-opt, .tile, summary { touch-action: manipulation; min-height: 44px; }
.to-top { position: fixed; right: 24px; bottom: 88px; z-index: 30; background: var(--ink); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
@media print { .site-header, .site-footer, .sticky-bar, .to-top { display: none; } }

/* ---------- 合规体检整改：cookie 同意条 + footer 6 栏 ---------- */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff;
  display: flex; gap: 16px; align-items: center; justify-content: center; padding: 14px 20px;
  font-size: 14px; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.consent-bar a { color: #fff; text-decoration: underline; }
.consent-bar[hidden] { display: none; }
.consent-bar .btn-ink { background: var(--accent); border-color: var(--accent); }
.consent-bar .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
