/* ==========================================================================
   suiyi-Md 官网样式 —— 「笺 · 词牌为笺，AI 为笔，网文为坊」
   设计语言：东方纸本 × 现代排版。纸张底、朱砂主色、宋体标题、金作点缀。
   ========================================================================== */

:root {
  /* 纸本底 */
  --paper: #faf9f6;
  --paper-2: #f3f0e9;
  --paper-3: #ebe6da;
  --card: #ffffff;
  --nav-bg: rgba(250, 249, 246, 0.86);
  /* 墨 */
  --ink: #201d1a;
  --ink-2: #3a352f;
  --muted: #7a756d;
  --muted-2: #a49d92;
  /* 朱砂（主强调）+ 金（辅点缀） */
  --accent: #b34b3a;
  --accent-deep: #8f3a2e;
  --accent-soft: rgba(179, 75, 58, 0.08);
  --gold: #a8823c;
  --gold-soft: rgba(168, 130, 60, 0.10);
  /* 夜游宫（深色区） */
  --night: #17140f;
  --night-2: #201c16;
  --night-ink: #ece7db;
  --night-muted: #a79f90;
  /* 边框 / 阴影 */
  --line: rgba(32, 29, 26, 0.09);
  --line-strong: rgba(32, 29, 26, 0.16);
  --shadow-sm: 0 1px 2px rgba(32, 29, 26, 0.05);
  --shadow-md: 0 8px 30px rgba(32, 29, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(32, 29, 26, 0.12);
  /* 字体 */
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  /* 布局 */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --------------------------------------------------------------------------
   应用图标 Logo —— 与应用 AppIcon 一致（白底圆角 + 青灰「笺」印）
   -------------------------------------------------------------------------- */
.logo {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand__name { font-size: 17px; letter-spacing: 0.4px; }
.brand__tag { font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.site-nav__links { display: flex; gap: 26px; margin-left: auto; }
.site-nav__links a {
  color: var(--muted); font-size: 14px; letter-spacing: 0.3px;
  transition: color 0.15s ease;
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a.is-active { color: var(--accent); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  padding: 10px 22px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(179, 75, 58, 0.28); }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--card); color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--lg { font-size: 15px; padding: 14px 30px; }
.btn--sm { font-size: 13px; padding: 8px 18px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--gold-soft), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, var(--accent-soft), transparent 55%),
    var(--paper);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px; letter-spacing: 0.5px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.22; font-weight: 700; letter-spacing: 0.5px;
  color: var(--ink); max-width: 16em;
}
.hero h1 .ink-accent { color: var(--accent); }
/* 标题里的英文缩写（AI/Skills 等）：用无衬线粗体，与中文宋体标题基线对齐 */
.en {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero__sub {
  font-size: 17px; color: var(--muted); max-width: 34em;
  margin-top: 22px; line-height: 1.9;
}
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; font-size: 13px; color: var(--muted-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { opacity: 0.7; }

/* 竖排词牌装饰条（Hero 右侧，桌面端） */
.hero__seal-col {
  position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: center; gap: 12px;
  color: var(--accent); font-family: var(--serif); letter-spacing: 6px;
  writing-mode: vertical-rl; font-size: 15px; opacity: 0.55;
}
@media (min-width: 1280px) { .hero__seal-col { display: flex; } }

/* --------------------------------------------------------------------------
   通用 section
   -------------------------------------------------------------------------- */
.section { padding: 92px 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--night { background: var(--night); color: var(--night-ink); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: 0.5; }
.section--night .eyebrow { color: var(--gold); }
.section--night .eyebrow::after { background: var(--gold); }
.section h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700; line-height: 1.3; letter-spacing: 0.5px; color: var(--ink);
}
.section--night h2 { color: var(--night-ink); }
.section__lead { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.9; }
.section--night .section__lead { color: var(--night-muted); }

/* --------------------------------------------------------------------------
   三支柱卡片
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar__mark {
  font-family: var(--serif); font-size: 13px; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
}
.pillar__mark::before { content: ""; width: 16px; height: 1px; background: var(--accent); opacity: 0.6; }
.pillar h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--ink); }
.pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.pillar__num {
  position: absolute; right: 22px; top: 22px;
  font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--paper-3);
}

/* --------------------------------------------------------------------------
   功能栅格（子页 + 首页通用）
   -------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card__icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); font-size: 18px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.card--night { background: var(--night-2); border-color: rgba(255,255,255,0.07); }
.card--night h3 { color: var(--night-ink); }
.card--night p { color: var(--night-muted); }
.card--night .card__icon { background: var(--gold-soft); color: var(--gold); }

/* --------------------------------------------------------------------------
   截图 / 展示块
   -------------------------------------------------------------------------- */
.shot {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--card);
}
.shot img { display: block; width: 100%; height: auto; }
.shot video { display: block; width: 100%; height: auto; background: #000; }
.shot__caption {
  padding: 14px 18px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__text h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; color: var(--ink); }
.section--night .split__text h3 { color: var(--night-ink); }
.split__text p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.section--night .split__text p { color: var(--night-muted); }
.tick-list { list-style: none; margin-top: 6px; }
.tick-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
}
.section--night .tick-list li { color: var(--night-ink); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.section--night .tick-list li::before { color: var(--gold); }

/* --------------------------------------------------------------------------
   承诺
   -------------------------------------------------------------------------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise { text-align: left; padding: 26px 22px; border-left: 2px solid var(--accent); }
.promise h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.promise p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* --------------------------------------------------------------------------
   适合谁（表格化 persona）
   -------------------------------------------------------------------------- */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.who__item {
  display: flex; gap: 16px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.who__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.who__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  flex: 0 0 auto;
}
.who__icon svg { width: 21px; height: 21px; }
.who__item h3 { font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.who__item p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   下载 CTA 区
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    linear-gradient(180deg, var(--accent-soft), var(--gold-soft)),
    var(--paper-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: 84px 0;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); }
.cta-band__sub { margin: 16px auto 0; max-width: 30em; color: var(--muted); font-size: 15px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.cta-band__meta { margin-top: 24px; font-size: 13px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night); color: var(--night-muted);
  padding: 60px 0 36px; font-size: 13.5px;
}
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand .brand { color: var(--night-ink); margin-bottom: 14px; }
.site-footer__brand p { max-width: 30em; line-height: 1.8; }
.site-footer h4 {
  color: var(--night-ink); font-size: 13px; letter-spacing: 2px;
  margin-bottom: 16px; font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--night-muted); }
.site-footer ul a:hover { color: var(--night-ink); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; color: var(--night-muted);
}
.site-footer__bottom a { color: var(--night-muted); }
.site-footer__bottom a:hover { color: var(--night-ink); }

/* --------------------------------------------------------------------------
   内容子页（about / features / download / privacy / terms / contact）
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 72px 0 40px; text-align: center;
  background: radial-gradient(800px 300px at 50% -20%, var(--accent-soft), transparent 60%), var(--paper);
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--ink); }
.page-hero p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.page-body { padding: 40px 0 96px; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 40px 0 14px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.prose strong { color: var(--ink); }

/* 功能表 */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 12px 14px; font-size: 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.spec-table th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 1px; width: 160px; }
.spec-table td { color: var(--ink-2); }

/* 下载卡片 */
.dl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md); max-width: 640px; margin: 0 auto; text-align: center;
}
.dl-card__ver { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.dl-card__meta { color: var(--muted); font-size: 14px; margin: 8px 0 24px; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .site-nav__links { display: none; }
  .pillars, .grid, .promises { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pillars, .grid, .grid--2, .promises { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-nav__inner { height: 60px; }
  .wrap { padding: 0 20px; }
  .brand__tag { display: none; }
  .hero__cta .btn { padding: 11px 20px; font-size: 13px; }
  .spec-table th { width: 104px; }
  .spec-table th, .spec-table td { padding: 10px 8px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   主题切换器（与应用十二词牌主题联动）
   -------------------------------------------------------------------------- */
.theme-switcher { position: relative; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 19px; height: 19px; }

.theme-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 352px; max-height: min(78vh, 640px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.theme-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.theme-menu__header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 2px 6px 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.theme-menu__title { font-size: 13px; font-weight: 600; color: var(--ink); }
.theme-menu__verse {
  font-size: 11px; color: var(--muted); font-family: var(--serif);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 66%;
}

.theme-sys {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; margin: 0 0 2px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  transition: background 0.14s ease, border-color 0.14s ease;
}
.theme-sys:hover { background: var(--paper-2); }
.theme-sys.is-active { border-color: var(--accent); background: var(--accent-soft); }
.theme-sys__swatch {
  width: 30px; height: 20px; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(135deg, #F1F5F3 0 49%, #0E1216 51% 100%);
  border: 1px solid var(--line);
}
.theme-sys__name { flex: 1; }

.theme-menu__label {
  font-size: 11px; letter-spacing: 2px; color: var(--muted-2);
  padding: 14px 6px 8px;
}

.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 7px; border: 1px solid var(--line); border-radius: 11px;
  background: transparent; cursor: pointer; text-align: center;
  font-family: var(--sans);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.theme-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.theme-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.theme-card__swatch {
  position: relative;
  height: 42px; border-radius: 7px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.theme-card__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
}
.theme-card__name { font-size: 11.5px; color: var(--ink); line-height: 1.2; }
.theme-card.is-active .theme-card__name { color: var(--accent); font-weight: 600; }

.check {
  position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
  display: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.theme-card > .check { top: 7px; right: 7px; }
.theme-sys > .check { top: 50%; right: 10px; transform: translateY(-50%); }
.is-active > .check { display: inline-block; }

/* 移动端：主题菜单改为固定定位、铺满屏宽，避免左右被裁切/遮挡 */
@media (max-width: 620px) {
  .theme-menu {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 88px);
  }
}

/* --------------------------------------------------------------------------
   关于页 —— 数字统计条 + 词牌引言
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; }
.stat { padding: 16px 6px; }
.stat__num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat__num small { font-size: 16px; font-weight: 600; }
.stat__label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.pull-quote {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  text-align: center; padding: 20px 26px; margin: 30px 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
  line-height: 2;
}
.pull-quote .src { display: block; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
