/* ============================================================
   NectarLink 中文官网 · 共享样式
   浅色暖蜂蜜色系 / 蜂巢纹理 / 移动端适配
   ============================================================ */

/* ─── tokens ─── */
:root {
  --bg: #FBFAF6;            /* 暖米白底 */
  --bg-deep: #F5F1E8;       /* 稍深一档的米色，用于分节 */
  --surface: #FFFFFF;
  --ink: #221C11;           /* 暖黑 */
  --ink-soft: #574F3E;
  --muted: #948A76;
  --border: #EAE3D3;
  --border-strong: #DCD3BE;

  --honey: #F2A70B;         /* 蜂蜜亮色：主按钮填充 */
  --honey-deep: #DB9405;    /* 蜂蜜亮色 hover */
  --accent: #A65B07;        /* 文字用琥珀色（浅底上 ≥4.5:1） */
  --accent-soft: rgba(166, 91, 7, 0.08);

  --ok: #1A7A3E;
  --danger: #B42318;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(60, 48, 20, 0.05), 0 8px 28px rgba(60, 48, 20, 0.07);
  --shadow-float: 0 2px 6px rgba(60, 48, 20, 0.08), 0 20px 50px rgba(60, 48, 20, 0.14);
}

/* ─── base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--font-mono); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ─── 蜂巢纹理（无缝平铺） ─── */
.comb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43.32' height='75' viewBox='0 0 43.32 75'%3E%3Cg fill='none' stroke='%23E9DFC9' stroke-width='1.4'%3E%3Cpath d='M21.66 0L43.32 12.5V37.5L21.66 50L0 37.5V12.5Z'/%3E%3Cpath d='M0 37.5L21.66 50V75'/%3E%3Cpath d='M43.32 37.5L21.66 50'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 43.32px 75px;
}

/* ─── 文字工具 ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.lede { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }

/* ─── 顶部导航 ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .cn { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { color: var(--ink-soft); font-size: 15px; }
.main-nav > a:hover { color: var(--ink); text-decoration: none; }

/* ─── 按钮 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-honey { background: var(--honey); color: #2A1D05; }
.btn-honey:hover { background: var(--honey-deep); }
.btn-ink { background: var(--ink); color: #FDFCF9; }
.btn-ink:hover { background: #3A3222; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-wrap { white-space: normal; text-align: left; line-height: 1.45; word-break: break-all; }
@media (max-width: 560px) {
  .btn-wrap { text-align: center; }
}

/* ─── Hero ─── */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 14px 0 18px;
}
.hero h1 .hl { color: var(--accent); white-space: nowrap; }
.hero .lede { font-size: 17px; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-platforms {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
}
.chip svg { width: 14px; height: 14px; flex: none; }

.hero-shot { position: relative; }
.hero-shot img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
  width: 100%;
}

/* ─── 事实条 ─── */
.factbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.factbar .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.fact b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.fact span { font-size: 13px; color: var(--muted); }

/* ─── 通用 section ─── */
section { padding: 72px 0; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 10px 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ─── 特性（不对称网格） ─── */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.feature {
  grid-column: span 2;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
}
.feature.wide { grid-column: span 3; }
.feature.full { grid-column: span 6; }
.feature.full p { max-width: 70em; }
.feature .ficon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature .ficon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.feature .ftags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature .ftags span {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--bg-deep);
  border-radius: 5px;
  padding: 2px 8px;
}

/* ─── 截图画廊 ─── */
.gallery { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-bottom: 20px; }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.shot img { border-radius: 8px; border: 1px solid var(--border); width: 100%; }
.shot-tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.shot figcaption { padding: 12px 6px 4px; font-size: 13.5px; color: var(--ink-soft); }
.shot figcaption b { color: var(--ink); font-weight: 600; }

/* ─── 隐私段 ─── */
.privacy { background: var(--bg-deep); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.pcard h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pcard h3 svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.7; flex: none; }
.pcard p { font-size: 14.5px; color: var(--ink-soft); }
.pcard code { font-size: 13px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

/* ─── 对比表 ─── */
.compare { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.cmp th, table.cmp td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: top;
}
table.cmp tr:last-child td { border-bottom: none; }
table.cmp thead th {
  background: var(--bg-deep);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
table.cmp thead th.us { color: var(--accent); }
table.cmp td.us { background: #FDF8EC; }
table.cmp td .yes { color: var(--ok); font-weight: 600; }
table.cmp td .no { color: var(--muted); }
table.cmp td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ─── FAQ ─── */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 150ms ease;
  flex: none;
  margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-list details p, .faq-list details li { padding: 0 22px 18px; color: var(--ink-soft); font-size: 15px; }
.faq-list details ul { padding: 0 22px 18px 40px; }
.faq-list details li { padding: 2px 0; color: var(--ink-soft); font-size: 15px; }
.faq-list a { font-weight: 500; }

/* ─── 下载 CTA 大块 ─── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(180deg, #FDF3D8 0%, #FAE7B8 100%); border-top: 1px solid var(--border-strong); }
.cta-band .inner { position: relative; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.015em; font-weight: 700; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); max-width: 44em; margin: 0 auto 28px; font-size: 16px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── 页脚 ─── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 44px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 13px; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 12px; font-weight: 650; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--ink-soft); }
.footer-brand p { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ─── 下载页专属 ─── */
.dl-primary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 36px;
}
.dl-fast {
  background: linear-gradient(180deg, #FDF3D8, #FAE9BD);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.dl-fast .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--honey);
  color: #2A1D05;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.dl-fast h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 8px; }
.dl-fast p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.dl-github {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.dl-github .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-deep);
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.dl-github h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 8px; }
.dl-github p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }

.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pcard-dl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcard-dl .os { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pcard-dl .os svg { width: 22px; height: 22px; fill: var(--ink-soft); }
.pcard-dl .os h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.pcard-dl .osreq { font-size: 13px; color: var(--muted); }
.pcard-dl ul { list-style: none; margin: 4px 0 8px; flex: 1; }
.pcard-dl ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pcard-dl ul li a { font-weight: 600; white-space: nowrap; }
.pcard-dl ul li .size { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.pcard-dl .btn { width: 100%; }

.codebox {
  background: #2B2416;
  color: #F4EAD2;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}
.codebox .cm { color: #A6977A; }
.codebox .hl { color: #F2C14E; }

.notice {
  display: flex;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid #EBD9BC;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.notice.danger { background: #FCEFED; border-color: #EBCBC5; }
.notice.danger svg { stroke: var(--danger); }
.notice b { color: var(--ink); }

/* ─── 教程页专属 ─── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
}
.step h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; }
.step h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step p, .step li { font-size: 14.5px; color: var(--ink-soft); }
.step ol, .step ul { padding-left: 20px; margin-top: 6px; }
.step li { margin-bottom: 4px; }
.step .codebox { margin-top: 12px; }

/* ─── 页面标题头（下载/教程页） ─── */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 12px 0 14px;
}
.page-hero .lede { font-size: 16.5px; max-width: 40em; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.wide { grid-column: span 1; }
  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-2 { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .dl-primary { grid-template-columns: 1fr; }
  .main-nav .nav-link { display: none; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-cards { grid-template-columns: 1fr; }
  .factbar .row { gap: 14px; }
  .fact { min-width: 110px; flex: 1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-list summary { padding: 16px 18px; font-size: 15px; }
  .faq-list details p, .faq-list details li { font-size: 14.5px; }
  .cta-band .inner { padding: 56px 0; }
  .dl-fast, .dl-github { padding: 24px 20px; }
}

/* ─── 可访问性 ─── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
