/* ==================================================================
   墨点 inkdot · 视觉系统「纸感墨色 · 印章红」
   ------------------------------------------------------------------
   设计语言：宣纸暖底 · 浓墨文字 · 朱砂印章 · 霞鹜文楷
   零构建：本文件即最终样式，改这里即可换肤，无需任何编译。
   ================================================================== */

/* ---------- 字体 ----------
   霞鹜文楷采用官方分片（assets/fonts/lxgw/font.css，194 个 @font-face，
   浏览器按 unicode-range 只下载页面实际用到的字符，通常仅几十 KB）。
   在 HTML 中于本样式表之前引入 <link rel="stylesheet" href=".../lxgw/font.css">。
   若字体加载失败，--font-brand 会优雅回退到系统楷体 / 宋体。 */

/* ---------- 设计变量 ---------- */
:root {
  /* 纸张 */
  --paper:        #f6f2e9;
  --paper-2:      #fbf9f3;
  --paper-3:      #efe9db;
  /* 墨色 */
  --ink-900:      #201d19;
  --ink-700:      #423c33;
  --ink-500:      #6b6459;
  --ink-400:      #8e877a;
  --ink-300:      #b3ac9e;
  /* 墨线 */
  --line:         #e3dbcb;
  --line-2:       #d2c8b5;
  /* 朱砂印章 */
  --seal:         #b5453a;
  --seal-dark:    #96362e;
  --seal-soft:    #f4e5e1;
  /* 竹青（辅助） */
  --jade:         #5e7a6b;
  --jade-soft:    #e8eee8;

  --shadow-sm: 0 1px 2px rgba(32, 29, 25, .05), 0 2px 8px rgba(32, 29, 25, .04);
  --shadow-md: 0 4px 12px rgba(32, 29, 25, .07), 0 12px 32px rgba(32, 29, 25, .06);
  --shadow-lg: 0 10px 28px rgba(32, 29, 25, .10), 0 28px 60px rgba(32, 29, 25, .08);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;

  --font-brand: "LXGW WenKai", "Songti SC", "STSong", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

[data-theme="dark"] {
  --paper:      #181613;
  --paper-2:    #211e19;
  --paper-3:    #2a261f;
  --ink-900:    #efe9dc;
  --ink-700:    #cfc7b7;
  --ink-500:    #a49b8a;
  --ink-400:    #8a8171;
  --ink-300:    #6d6556;
  --line:       #342f27;
  --line-2:     #464034;
  --seal:       #d95b4d;
  --seal-dark:  #ef7d6d;
  --seal-soft:  #3a2421;
  --jade:       #8fae9b;
  --jade-soft:  #26332b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 18px rgba(0,0,0,.35);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.45);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* 纸纹叠加：极淡噪点，营造宣纸质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--seal-soft); color: var(--seal-dark); }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  padding: 5px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 21px; color: var(--ink-900); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--ink-500);
  padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--seal); background: var(--paper-3); }
.nav-link.active { color: var(--seal); }
.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-500);
  border-radius: 50%;
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--seal); border-color: var(--seal); transform: rotate(18deg); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }

/* 墨滴 logo 是深墨色透明图，深色背景下需反色才清晰。
   注意：只对单色墨滴反色，彩色应用图标（PDF 红底等）反色会变色，保持原样。 */
[data-theme="dark"] .brand-mark img,
[data-theme="dark"] .hero-logo-mobile img,
[data-theme="dark"] .about-mark img,
[data-theme="dark"] .footer-brand img { filter: invert(1) brightness(.92); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-size: 15px; font-weight: 600; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--seal); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--seal) 28%, transparent);
}
.btn-primary:hover { background: var(--seal-dark); box-shadow: 0 10px 26px color-mix(in srgb, var(--seal) 38%, transparent); }
.btn-ghost {
  background: var(--paper-2); color: var(--ink-700); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-400); color: var(--ink-900); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- 印章 ---------- */
.seal-stamp {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: var(--seal); color: #fff;
  border-radius: 7px;
  font-family: var(--font-brand); font-weight: 700; font-size: 15px; line-height: 1.05;
  text-align: center; letter-spacing: .06em;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 4px 12px color-mix(in srgb, var(--seal) 30%, transparent);
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { margin-bottom: 38px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--seal); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--seal); border-radius: 2px; }
.section-title {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25;
  color: var(--ink-900); margin: 12px 0 0;
}
.section-sub { font-size: 16px; color: var(--ink-500); margin: 12px 0 0; max-width: 620px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 66px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .5;
}
.hero::before { width: 360px; height: 360px; top: -150px; right: -80px; background: color-mix(in srgb, var(--seal) 16%, transparent); }
.hero::after  { width: 300px; height: 300px; bottom: -160px; left: -100px; background: color-mix(in srgb, var(--jade) 16%, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-logo-mobile { display: none; }
.hero-title {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(64px, 11vw, 104px); line-height: 1;
  color: var(--ink-900); margin: 0; letter-spacing: .02em;
}
.hero-title .dot { color: var(--seal); }
.hero-slogan { font-size: clamp(19px, 2.6vw, 25px); color: var(--ink-500); margin: 18px 0 0; font-weight: 500; }
.hero-desc { font-size: 16px; color: var(--ink-500); margin: 18px 0 0; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--seal); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hero-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }

.promise-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.promise-card::after {
  content: "印"; position: absolute; top: 18px; right: 22px;
  font-family: var(--font-brand); font-size: 13px; color: var(--seal);
  border: 1.5px solid var(--seal); border-radius: 5px;
  width: 26px; height: 26px; display: grid; place-items: center;
  transform: rotate(-8deg); opacity: .8;
}
.promise-title { font-family: var(--font-brand); font-weight: 700; font-size: 24px; color: var(--ink-900); margin: 0; }
.promise-sub { font-size: 14px; color: var(--ink-400); margin: 4px 0 0; }
.promise-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.promise-list li { display: flex; align-items: flex-start; gap: 13px; }
.promise-tag {
  flex: none; font-family: var(--font-brand); font-weight: 700; font-size: 14px;
  color: var(--seal); background: var(--seal-soft);
  padding: 4px 11px; border-radius: 8px; min-width: 52px; text-align: center;
}
.promise-text { font-size: 14.5px; color: var(--ink-500); line-height: 1.55; padding-top: 2px; }

/* ---------- 精选工具 ---------- */
.featured-wrap { background: var(--paper-3); border-block: 1px solid var(--line); }
.featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-media { position: relative; background: var(--paper-3); min-height: 320px; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.featured-badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--seal); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px; letter-spacing: .05em;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--seal) 32%, transparent);
}
.featured-body { padding: 38px 36px; display: flex; flex-direction: column; }
.featured-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.featured-icon {
  width: 62px; height: 62px; flex: none; border-radius: 15px;
  padding: 3px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.featured-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.featured-name { font-family: var(--font-brand); font-weight: 700; font-size: 30px; color: var(--ink-900); margin: 0; line-height: 1.2; }
.featured-tagline { font-size: 15px; color: var(--seal); margin: 4px 0 0; font-weight: 600; }
.featured-desc { font-size: 15.5px; color: var(--ink-500); line-height: 1.75; margin: 0 0 22px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  background: var(--paper-3); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px;
}
.featured-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.version { font-size: 13px; color: var(--ink-400); font-weight: 600; }

/* ---------- 工具网格 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.app-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.app-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.app-card-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; padding: 2px; background: var(--paper-3); }
.app-card-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.app-card-name { font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: var(--ink-900); margin: 0; }
.app-card-ver { font-size: 12px; color: var(--ink-400); font-weight: 600; margin-top: 2px; }
.app-card-sum { font-size: 14px; color: var(--ink-500); line-height: 1.65; margin: 0 0 18px; flex: 1; }
.app-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.app-card-tags .tag { font-size: 12px; padding: 4px 10px; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); }
.app-card-link { font-size: 14px; font-weight: 700; color: var(--seal); display: inline-flex; align-items: center; gap: 6px; }
.app-card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.app-card:hover .app-card-link svg { transform: translateX(3px); }

/* 即将上线占位卡 */
.app-card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.app-card.soon .app-card-icon { background: var(--paper-3); display: grid; place-items: center; }
.soon-glyph { font-family: var(--font-brand); font-size: 22px; color: var(--ink-300); }
.soon-pill {
  font-size: 12px; font-weight: 700; color: var(--ink-400);
  background: var(--paper-3); padding: 5px 11px; border-radius: 7px;
}

/* ---------- 关于 ---------- */
.about { text-align: center; }
.about-text { font-size: 17px; color: var(--ink-500); line-height: 1.9; max-width: 640px; margin: 18px auto 0; }
.about-title .accent { font-family: var(--font-brand); color: var(--seal); }
.about-mark { display: inline-block; margin-bottom: 10px; }
.about-mark img { width: 60px; height: 60px; object-fit: contain; margin-inline: auto; }
.about-actions { margin-top: 28px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: auto; }
.footer-main { padding: 46px 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--ink-900); }
.footer-brand-slogan { font-size: 14px; color: var(--ink-400); margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 14.5px; color: var(--ink-500); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--seal); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-400); }
.footer-bottom a { color: var(--ink-400); transition: color .2s; }
.footer-bottom a:hover { color: var(--seal); }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--ink-400); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--seal); }
.crumbs .sep { color: var(--ink-300); }

/* ---------- 详情页：工具头 ---------- */
.detail-head { padding: 44px 0 40px; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.detail-icon {
  display: block;
  width: 84px; height: 84px; border-radius: 20px; padding: 4px;
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.detail-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.detail-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(34px, 5vw, 48px); color: var(--ink-900); margin: 18px 0 0; line-height: 1.15; }
.detail-tagline { font-size: 18px; color: var(--seal); font-weight: 600; margin: 8px 0 0; }
.detail-meta { font-size: 13px; color: var(--ink-400); margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-desc { font-size: 16px; color: var(--ink-500); line-height: 1.8; margin: 18px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.detail-cover {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.detail-cover img { width: 100%; }

/* ---------- 详情页：下载区 ---------- */
.download-band { background: var(--paper-3); border-block: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--seal); }
.dl-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--seal-soft); color: var(--seal);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--font-brand);
}
.dl-body { min-width: 0; display: flex; flex-direction: column; }
.dl-label { display: block; font-size: 15px; font-weight: 700; color: var(--ink-900); }
.dl-note { display: block; font-size: 12.5px; color: var(--ink-400); margin-top: 3px; }
.dl-code { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 3px 9px; border: 1px dashed var(--seal); border-radius: 7px; background: var(--seal-soft); font-size: 12px; color: var(--ink-500); cursor: pointer; user-select: none; transition: background .2s; }
.dl-code:hover { background: var(--seal); color: #fff; }
.dl-code:hover b, .dl-code:hover .dl-copy { color: #fff; }
.dl-code b { font-family: var(--font-brand); font-size: 13px; letter-spacing: 1px; color: var(--seal); }
.dl-copy { font-size: 11px; color: var(--ink-400); border-left: 1px solid currentColor; padding-left: 6px; }
.dl-arrow { margin-left: auto; color: var(--seal); flex: none; }
.dl-arrow svg { width: 20px; height: 20px; }
.dl-hint { font-size: 13px; color: var(--ink-400); margin-top: 18px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.dl-hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--seal); }

/* ---------- 内容表 / 文档 ---------- */
.content-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 90px; }
.side-nav-title { font-family: var(--font-brand); font-weight: 700; font-size: 18px; color: var(--ink-900); margin: 0 0 12px; }
.side-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-nav ul a { display: block; font-size: 14.5px; color: var(--ink-500); padding: 9px 13px; border-radius: 9px; border-left: 2px solid transparent; transition: all .2s; }
.side-nav ul a:hover { color: var(--seal); background: var(--paper-3); }
.side-nav ul a.active { color: var(--seal); background: var(--seal-soft); border-left-color: var(--seal); font-weight: 600; }
.prose h2 { font-family: var(--font-brand); font-size: 25px; color: var(--ink-900); margin: 0 0 18px; }
.prose h3 { font-family: var(--font-brand); font-size: 20px; color: var(--ink-900); margin: 34px 0 14px; padding-left: 12px; border-left: 3px solid var(--seal); }
.prose p { font-size: 15.5px; color: var(--ink-500); line-height: 1.85; margin: 0 0 16px; }
.prose strong { color: var(--ink-900); }
.prose ul, .prose ol { font-size: 15.5px; color: var(--ink-500); line-height: 1.85; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-weight: 700; color: var(--ink-900); background: var(--paper-3); width: 30%; }
.data-table td { color: var(--ink-500); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.prose-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.faq-q .q-mark { font-family: var(--font-brand); color: var(--seal); font-size: 18px; flex: none; }
.faq-q .plus { margin-left: auto; color: var(--ink-400); flex: none; transition: transform .25s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--seal); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 18px 32px; font-size: 15px; color: var(--ink-500); line-height: 1.8; }

/* 法律页 */
.legal-wrap { max-width: 780px; margin-inline: auto; }
.legal-head { text-align: center; margin-bottom: 44px; }
.legal-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(30px, 5vw, 42px); color: var(--ink-900); margin: 0; }
.legal-sub { font-size: 16px; color: var(--ink-500); margin: 10px 0 0; }
.legal-updated { font-size: 13px; color: var(--ink-400); margin-top: 14px; }
.legal-body .prose h3 { margin-top: 30px; }

/* 分隔墨线 */
.ink-divider { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 8px 0; }
.ink-divider::before, .ink-divider::after { content: ""; width: 44px; height: 1px; background: var(--line-2); }
.ink-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }

/* 提示条 */
.notice {
  background: var(--jade-soft); border: 1px solid color-mix(in srgb, var(--jade) 25%, transparent);
  border-radius: var(--radius); padding: 16px 20px; font-size: 14.5px; color: var(--ink-500);
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; margin: 22px 0;
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--jade); margin-top: 2px; }
.notice a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 图文教程页 ---------- */
.guide-head { max-width: 720px; margin-bottom: 44px; }
.guide-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-weight: 700; font-size: 15px;
  color: var(--seal); background: var(--seal-soft);
  padding: 7px 14px; border-radius: 9px;
}
.guide-kicker svg { width: 17px; height: 17px; }
.guide-title {
  font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(32px, 5vw, 46px); line-height: 1.2;
  color: var(--ink-900); margin: 18px 0 0;
}
.guide-sub { font-size: 17px; color: var(--ink-500); margin: 12px 0 0; line-height: 1.75; }
.guide-meta { font-size: 13.5px; color: var(--ink-400); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-meta a { color: var(--seal); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.guide-meta a svg { width: 14px; height: 14px; }
.guide-lead { font-size: 16px; color: var(--ink-500); line-height: 1.85; margin: -6px 0 8px; }

/* 真实截图框 */
.shot-frame {
  margin: 0 0 34px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-3); box-shadow: var(--shadow-md);
}
.shot-frame img { width: 100%; display: block; }
.shot-frame figcaption {
  font-size: 13px; color: var(--ink-400); text-align: center;
  padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper-2);
}

/* 步骤卡片 */
.steps { display: grid; gap: 16px; margin: 6px 0 30px; }
.step-card {
  display: grid; grid-template-columns: 42px 1fr; gap: 16px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-brand); font-weight: 700; font-size: 20px;
  color: #fff; background: var(--seal);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--seal) 28%, transparent);
}
.step-title { font-family: var(--font-brand); font-size: 20px; color: var(--ink-900); margin: 1px 0 8px; }
.step-body { font-size: 15px; color: var(--ink-500); line-height: 1.8; margin: 0; }
.step-tip {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 12px; padding: 11px 14px;
  background: var(--jade-soft); border-radius: 10px;
  font-size: 13.5px; color: var(--ink-500); line-height: 1.65;
}
.step-tip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--jade); }

/* 步骤内配图（真实界面局部截图） */
.step-shot { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-3); }
.step-shot img { width: 100%; display: block; }
.step-shot figcaption { font-size: 12.5px; color: var(--ink-400); padding: 8px 12px; background: var(--paper-2); border-top: 1px solid var(--line); line-height: 1.6; }

/* 输出命名 */
.naming-box {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--paper-3); border: 1px dashed var(--line-2);
  border-radius: var(--radius); padding: 20px 22px; margin: 4px 0 28px;
}
.naming-mark {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--font-brand); font-weight: 700;
  color: var(--seal); background: var(--paper-2); border: 1px solid var(--line);
}
.naming-box p { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-500); line-height: 1.8; }

/* 注意事项列表 */
.note-list { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 12px; }
.note-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-500); line-height: 1.75; }
.note-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--jade); }

/* ---------- 打赏区块 ---------- */
.donate-box {
  display: flex; gap: 20px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.donate-mark { flex: none; }
.donate-seal {
  display: grid; place-items: center; width: 54px; height: 54px;
  background: var(--seal); color: #fff; border-radius: 9px;
  font-family: var(--font-brand); font-weight: 700; font-size: 22px;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 5px 14px color-mix(in srgb, var(--seal) 30%, transparent);
}
.donate-copy { min-width: 0; }
.donate-title { font-family: var(--font-brand); font-size: 21px; color: var(--ink-900); margin: 0; }
.donate-note { font-size: 14px; color: var(--ink-500); margin: 6px 0 12px; line-height: 1.7; }
.donate-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--seal); }
.donate-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.donate-link-arrow { width: 15px; height: 15px; transition: transform .2s; }
.donate-link:hover .donate-link-arrow { transform: translateX(3px); }
.donate-qr { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.donate-qr img { width: 116px; height: 116px; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.donate-qr span { font-size: 13px; color: var(--ink-400); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-logo-mobile { display: block; margin-bottom: 8px; }
  .hero-logo-mobile img { width: 62px; height: 62px; object-fit: contain; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; gap: 32px; }
  .download-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 44px; }
  .app-grid { grid-template-columns: 1fr; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .brand-name { font-size: 19px; }
  .featured-body { padding: 26px 22px; }
  .featured-head { gap: 12px; }
  .featured-name { font-size: 25px; }
  .promise-card { padding: 24px 20px; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .data-table th { width: auto; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 14px; }
  .prose-card { padding: 20px; }
  .step-card { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px; }
  .step-num { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .step-title { font-size: 18px; }
  .donate-box { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .shot-frame figcaption { padding: 10px 12px; }
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==================================================================
   视觉重构 v2 · 2026-11-13（覆盖层，删掉本段即可整体回滚到 v1）
   ------------------------------------------------------------------
   方向：中性暖白替代偏黄宣纸 · 墨黑作为主操作色 · 朱砂收敛为小面积点缀
        提高正文对比度 · 圆角/阴影更利落 · 字级与留白节奏统一
   ================================================================== */
:root {
  --paper:      #faf9f6;
  --paper-2:    #ffffff;
  --paper-3:    #f2f0ea;
  --ink-900:    #1b1916;
  --ink-700:    #3a362f;
  --ink-500:    #5b554a;
  --ink-400:    #7d766a;
  --ink-300:    #a6a092;
  --line:       #e7e3d9;
  --line-2:     #d8d2c4;
  --seal:       #b44436;
  --seal-dark:  #92352a;
  --seal-soft:  #fbece8;
  --jade:       #4f776a;
  --jade-soft:  #eaf1ec;

  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(28,26,23,.04), 0 2px 10px rgba(28,26,23,.035);
  --shadow-md: 0 4px 12px rgba(28,26,23,.06), 0 12px 30px rgba(28,26,23,.05);
  --shadow-lg: 0 10px 26px rgba(28,26,23,.09), 0 26px 56px rgba(28,26,23,.07);

  /* 主操作按钮：墨黑，朱砂只做点缀 */
  --btn-bg:       #221f1b;
  --btn-fg:       #ffffff;
  --btn-bg-hover: #3b352d;
}
[data-theme="dark"] {
  --paper:      #141311;
  --paper-2:    #1c1a17;
  --paper-3:    #26231e;
  --ink-900:    #f3eee2;
  --ink-700:    #d6cfbf;
  --ink-500:    #ada592;
  --ink-400:    #8b8372;
  --ink-300:    #6d6557;
  --line:       #322e27;
  --line-2:     #464034;
  --seal:       #dd6a58;
  --seal-dark:  #ee8575;
  --seal-soft:  #38221f;
  --jade:       #8fae9b;
  --jade-soft:  #233029;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.28);
  --shadow-md: 0 6px 18px rgba(0,0,0,.34);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.44);
  --btn-bg:       #c9503f;
  --btn-fg:       #ffffff;
  --btn-bg-hover: #df6452;
}

/* 排版节奏 */
body { line-height: 1.75; }
.section { padding: 78px 0; }
.section-head { margin-bottom: 42px; }
.hero { padding: 80px 0 72px; }
.hero-title { font-size: clamp(56px, 9vw, 88px); letter-spacing: -.02em; }
.hero::before, .hero::after { opacity: .32; }
.section-title, .guide-title, .detail-title, .legal-title { letter-spacing: -.01em; }
.eyebrow { letter-spacing: .12em; }
.prose p, .prose li, .step-body, .note-list li { color: var(--ink-700); }
.section-sub, .guide-sub, .detail-desc, .about-text { color: var(--ink-500); }
.app-card { padding: 26px; }
.app-card:hover, .featured:hover { transform: translateY(-3px); }
.step-card { padding: 24px; }
.shot-frame { border-radius: var(--radius-lg); }

/* 导航/品牌 */
.nav { height: 68px; }
.brand-mark { border-radius: 10px; }
.nav-link { font-weight: 600; letter-spacing: .01em; }
.nav-link.active { position: relative; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--seal);
}

/* 按钮：墨黑主操作，明确的 hover / focus，红色退为点缀 */
.btn { border-radius: 10px; letter-spacing: .01em; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 4px 12px rgba(28,26,23,.16);
}
.btn-primary:hover {
  background: var(--btn-bg-hover); color: var(--btn-fg);
  box-shadow: 0 8px 22px rgba(28,26,23,.22);
}
.btn-primary:focus-visible { outline-color: var(--seal); }
.btn svg { color: currentColor; }
.side-download { margin-top: 22px; }
.side-download-hint {
  margin: 10px 0 0; text-align: center;
  font-size: 12px; color: var(--ink-400); letter-spacing: .02em;
}
/* 侧栏目录与按钮之间加一条呼吸线 */
.side-nav ul { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* 步骤序号、印章等：保留朱砂点缀，但降低红色密度 */
.step-num { box-shadow: 0 3px 10px rgba(28,26,23,.14); }
.featured-badge { box-shadow: 0 3px 10px rgba(28,26,23,.15); }
.guide-kicker { letter-spacing: .02em; }

/* 纸纹减弱，避免旧纸的浑浊感 */
body::before { opacity: .018; }

/* ==================================================================
   更新记录页 · 2026-11-13
   ================================================================== */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-item {
  display: grid;
  grid-template-columns: 104px 24px 1fr;
  align-items: stretch;
}
.log-date { padding-top: 20px; text-align: right; }
.log-day {
  font-size: 13px; font-weight: 600; color: var(--ink-400);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.log-rail { position: relative; }
.log-rail::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line-2); transform: translateX(-.5px);
  opacity: .8;
}
.log-item:first-child .log-rail::before { top: 26px; }
.log-item:last-child .log-rail::before { bottom: auto; height: 26px; }
.log-dot {
  position: absolute; top: 24px; left: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--seal); transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--paper);
}
.log-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.log-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.log-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-app { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-900); }
.log-app img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: var(--paper-3); padding: 2px; }
.log-app span { font-family: var(--font-brand); font-size: 18px; line-height: 1.2; }
.log-app:hover { color: var(--seal); }
.log-ver {
  font-size: 12.5px; font-weight: 700; color: var(--seal);
  background: var(--seal-soft); border-radius: 7px; padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.log-kind {
  font-size: 12.5px; font-weight: 600; color: var(--ink-500);
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 7px; padding: 3px 9px;
}
.log-link {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-400);
  display: inline-flex; align-items: center; gap: 4px; transition: color .2s;
}
.log-link:hover { color: var(--seal); }
.log-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.log-items li {
  position: relative; padding-left: 16px;
  font-size: 14.5px; color: var(--ink-700); line-height: 1.72;
}
.log-items li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-2);
}
.log-foot { margin: 26px 0 0; font-size: 13px; color: var(--ink-400); text-align: center; }

@media (max-width: 700px) {
  .log-item { grid-template-columns: 1fr; }
  .log-date { padding: 0 0 8px; text-align: left; }
  .log-rail { display: none; }
  .log-card { padding: 18px 16px 16px; }
  .log-link { margin-left: 0; }
  .log-app span { font-size: 17px; }
}

/* 首页「最近改了什么」 */
.update-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.update-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.update-list li { border-bottom: 1px solid var(--line); }
.update-row {
  display: grid; grid-template-columns: 92px 200px 1fr;
  gap: 18px; align-items: center;
  padding: 14px 10px; border-radius: 8px;
  transition: background .2s, transform .2s;
}
.update-row:hover { background: var(--paper-2); }
.update-date { font-size: 13px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.update-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.update-who img {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  background: var(--paper-3); padding: 2px; object-fit: contain;
}
.update-app { font-family: var(--font-brand); font-weight: 700; font-size: 15.5px; color: var(--ink-900); white-space: nowrap; }
.update-ver {
  font-size: 12px; font-weight: 700; color: var(--seal); background: var(--seal-soft);
  padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.update-text {
  font-size: 14px; color: var(--ink-500); line-height: 1.6;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.update-row:hover .update-app { color: var(--seal); }

@media (max-width: 700px) {
  .update-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 4px; }
  .update-text { white-space: normal; }
  .update-head .btn { margin-top: 4px; }
}

