/* =========================================================
   AI回忆录（AIMemory）官网 · 设计系统
   风格：暖色记忆风（sepia / 琥珀 / 墨黑），温暖、可信、克制
   ========================================================= */

:root {
  /* 品牌色 · 阳光热烈风（亮橙 / 珊瑚红 / 暖阳黄 / 清新绿） */
  --ink: #2E2519;          /* 主文字 · 暖墨黑 */
  --ink-soft: #8A7355;     /* 次级文字 */
  --ink-faint: #B39C82;    /* 弱化文字 */
  --paper: #FFF7E9;        /* 页面底色 · 暖阳米 */
  --paper-2: #FFFFFF;      /* 卡片底色 */
  --line: #F6E6CC;         /* 描边 */
  --gold: #FB8B1E;         /* 主橙 · 阳光 */
  --gold-2: #FFB23E;       /* 亮橙 · 暖阳 */
  --gold-soft: #FFE9C7;    /* 琥珀浅底 · 蜜桃 */
  --rose: #FF6B5C;         /* 珊瑚红 · 热烈强调 */
  --green: #2FB36B;        /* 清新绿 · 成功态 */
  --sky: #38A8E0;          /* 晴空蓝 · 点缀 */
  --shadow-sm: 0 2px 10px rgba(120,70,10,.07);
  --shadow: 0 12px 32px rgba(120,70,10,.12);
  --shadow-lg: 0 24px 60px rgba(120,70,10,.16);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.gold { color: var(--gold); }
.serif { font-family: var(--serif); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; font-size: 19px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block;
  box-shadow: 0 4px 12px rgba(200,136,30,.35);
}
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink-faint); letter-spacing: .12em; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-links a.active { color: var(--gold); font-weight: 600; background: var(--gold-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 8px 20px rgba(251,139,30,.34); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(251,139,30,.46); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 540px at 82% -12%, rgba(255,178,62,.34), transparent 60%),
    radial-gradient(900px 440px at 0% 118%, rgba(255,107,92,.18), transparent 55%),
    radial-gradient(700px 360px at 48% 122%, rgba(56,168,224,.10), transparent 55%),
    var(--paper);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); padding: 6px 13px; border-radius: 999px; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 18px 0 16px; }
.hero h1 .hl { color: var(--gold); position: relative; white-space: nowrap; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ink); }
.hero-stats .lbl { font-size: 13px; color: var(--ink-faint); }

/* Hero 视觉卡 */
.hero-visual { position: relative; }
.book-mock {
  background: linear-gradient(160deg, #fff, #fbf2e2);
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg); transform: rotate(-2deg);
}
.book-mock .book-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.book-mock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-2); }
.book-mock h4 { margin: 0; font-size: 15px; color: var(--ink-faint); font-weight: 600; }
.book-mock .line { height: 10px; border-radius: 6px; background: var(--gold-soft); margin: 10px 0; }
.book-mock .line.s { width: 70%; }
.book-mock .line.m { width: 88%; }
.book-mock .photo { height: 120px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-soft), #f3dcb8); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 15px; margin-top: 6px; }
.book-mock .photo-grid { display: block; margin-top: 6px; height: 190px; cursor: pointer; }
.book-mock .photo-grid figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; height: 100%; box-shadow: 0 4px 14px rgba(160,110,40,.18); transition: transform .25s ease, box-shadow .25s ease; }
.book-mock .photo-grid:hover figure { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(251,139,30,.28); }
.book-mock .photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-mock .photo-grid figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  font-size: 11px; line-height: 1.4; color: #fff; text-align: center;
  background: rgba(90,60,20,.44); backdrop-filter: blur(4px);
  padding: 5px 9px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-mock .photo-grid::after {
  content: "查看成品 →"; position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(251,107,92,.92);
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(251,107,92,.4);
}
@media (max-width: 560px) { .book-mock .photo-grid { height: 160px; } }
.float-card {
  position: absolute; right: -10px; bottom: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 17px; }
.float-card b { font-family: var(--serif); display: block; font-size: 15px; }
.float-card span { font-size: 12px; color: var(--ink-faint); }

/* ---------- 区块通用 ---------- */
section.block { padding: 76px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .tag { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* 价值主张 / 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d2bb; }
.card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 17px; margin: 14px 0 6px; }
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* 信任状 / 引用 */
.quote {
  background: linear-gradient(160deg, #fff, var(--gold-soft));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center;
}
.quote blockquote { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 18px; line-height: 1.6; }
.quote .by { color: var(--ink-soft); font-size: 15px; }

/* CTA 区 */
.cta {
  background: linear-gradient(135deg, var(--ink), #3a322a); color: #fff; border-radius: 24px;
  padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 80% 0%, rgba(255,178,62,.30), transparent 60%); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.78); position: relative; max-width: 560px; margin: 0 auto 26px; }
.cta .btn-primary { position: relative; }

/* ---------- 产品页 ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-text .tag { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.feature-text h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0 14px; }
.feature-text p { color: var(--ink-soft); font-size: 16px; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; color: var(--ink-soft); font-size: 15px; }
.feature-list li .tick { color: var(--green); font-weight: 700; flex: none; }
.feature-visual {
  background: linear-gradient(160deg, #fff, var(--gold-soft)); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow); min-height: 260px; display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.ui-bar { display: flex; align-items: center; gap: 8px; }
.ui-bar .b { height: 10px; border-radius: 6px; background: var(--gold-soft); }
.ui-bar .b.s { width: 30%; } .ui-bar .b.l { width: 60%; } .ui-bar .b.xl { width: 85%; }
.ui-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; color: var(--ink-soft); width: fit-content; }
.ui-photo { height: 96px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-soft), #f0d9b6); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); }

/* ---------- 应用页 ---------- */
.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.app-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.app-card .badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 5px 11px; border-radius: 999px; width: fit-content; margin-bottom: 16px; letter-spacing: .04em; }
.app-card h3 { font-size: 22px; margin-bottom: 8px; }
.app-card .desc { color: var(--ink-soft); font-size: 15px; flex: 1; }
.app-card .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); display: flex; gap: 18px; flex-wrap: wrap; }
.app-logo { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 26px; margin-bottom: 18px; font-family: var(--serif); }
.lo-amber { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.lo-rose { background: linear-gradient(135deg, #d97a6f, var(--rose)); }
.lo-ink { background: linear-gradient(135deg, #4a4036, var(--ink)); }
.lo-green { background: linear-gradient(135deg, #6fae8a, var(--green)); }

/* ---------- 文档页（协议/隐私） ---------- */
.doc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.doc-toc h4 { font-size: 14px; color: var(--ink-faint); margin: 0 0 12px; letter-spacing: .08em; }
.doc-toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.doc-toc a:hover { background: var(--gold-soft); color: var(--ink); }
.doc-content { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; box-shadow: var(--shadow-sm); }
.doc-content h1 { font-size: 30px; margin-bottom: 6px; }
.doc-content .doc-meta { color: var(--ink-faint); font-size: 13px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc-content h2 { font-size: 21px; margin: 34px 0 10px; }
.doc-content p, .doc-content li { color: var(--ink-soft); font-size: 15px; }
.doc-content ul { padding-left: 20px; }
.doc-content strong { color: var(--ink); }
.doc-content .note { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); margin: 18px 0; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 20px; }
.contact-info .k { font-size: 13px; color: var(--ink-faint); }
.contact-info .v { font-size: 17px; font-weight: 600; }
.contact-info .v a:hover { color: var(--gold); }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 15px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,136,30,.14); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.form-ok { display: none; background: #eaf5ee; border: 1px solid #bfe3cd; color: var(--green); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.footer-about { font-size: 14px; color: rgba(255,255,255,.6); max-width: 280px; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.62); }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact { font-size: 14px; color: rgba(255,255,255,.62); }
.footer-contact .k { color: rgba(255,255,255,.4); display: inline-block; width: 64px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--gold-2); }
.beian { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* 占位提示条 */
.placeholder-note { font-size: 12px; color: var(--gold); }

/* 返回顶部 */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; color: var(--gold); font-size: 20px; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* =========================================================
   频道页通用（心灵驿站 / 贴心工具）
   ========================================================= */
.channel-hero {
  position: relative; overflow: hidden; padding: 60px 0 52px;
  background:
    radial-gradient(900px 400px at 88% -20%, rgba(232,163,61,.20), transparent 62%),
    radial-gradient(700px 360px at 4% 120%, rgba(63,125,91,.12), transparent 58%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.channel-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 12px; }
.channel-hero p.lead { color: var(--ink-soft); font-size: 17px; max-width: 640px; }
.channel-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); padding: 6px 13px; border-radius: 999px; letter-spacing: .04em;
}
.channel-hero .meta-strip { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.channel-hero .meta-strip .k { font-size: 12px; color: var(--ink-faint); }
.channel-hero .meta-strip .v { font-family: var(--serif); font-size: 20px; font-weight: 700; }

/* ---------- 紧凑版频道头（心灵驿站：左文案 + 右 banner） ---------- */
.channel-hero.compact { padding: 18px 0; }
.channel-hero.compact .channel-hero-flex {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.channel-hero.compact h1 { font-size: clamp(22px, 2.2vw, 28px); margin: 6px 0 4px; }
.channel-hero.compact p.lead { font-size: 13.5px; max-width: 640px; }
.channel-hero.compact .meta-strip { margin-top: 10px; gap: 18px; }
.channel-hero.compact .meta-strip > div { display: flex; align-items: baseline; gap: 6px; }
.channel-hero.compact .meta-strip .v { font-size: 15px; }
.channel-hero.compact .channel-hero-banner {
  flex: 0 0 auto; width: 300px; height: 110px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(120,72,20,.10);
}
@media (max-width: 720px) {
  .channel-hero.compact { padding: 16px 0; }
  .channel-hero.compact .channel-hero-flex { flex-direction: column; align-items: flex-start; gap: 14px; }
  .channel-hero.compact .channel-hero-banner { width: 100%; height: 110px; }
}

/* ---------- 心灵驿站 · 列表 ---------- */
.healing-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 30px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .2s; font-family: var(--sans);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; border-color: transparent; font-weight: 600; }
.healing-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; min-width: 240px;
}
.healing-search input { border: 0; outline: none; font-size: 14px; font-family: var(--sans); width: 100%; background: transparent; color: var(--ink); }

/* 首篇大卡 */
.healing-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 26px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.healing-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.healing-feature .cover { min-height: 300px; position: relative; display: grid; place-items: center; }
.healing-feature .body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.healing-feature h2 { font-size: clamp(22px, 2.5vw, 30px); margin: 12px 0 12px; }
.healing-feature p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.healing-feature .read-more { color: var(--gold); font-weight: 600; font-size: 15px; margin-top: 20px; }

.healing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.healing-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.healing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0d2bb; }
.healing-card .cover { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; }
.healing-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.healing-card h3 { font-size: 18px; margin: 10px 0 8px; line-height: 1.45; }
.healing-card p { color: var(--ink-soft); font-size: 14px; margin: 0; flex: 1; }
.healing-card .foot {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-faint);
}
.healing-card .cat-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.9);
  color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.cover-mark { font-family: var(--serif); font-size: 40px; color: rgba(255,255,255,.85); line-height: 1; }
.cover-mark.sm { font-size: 26px; }
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(43,38,32,.20)); }

.healing-empty, .healing-loading { text-align: center; padding: 70px 20px; color: var(--ink-faint); }
.spinner {
  width: 30px; height: 30px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.healing-more { text-align: center; margin-top: 34px; }

/* 文章弹层 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(43,38,32,.55); backdrop-filter: blur(4px);
  z-index: 100; display: none; overflow-y: auto; padding: 40px 20px;
}
.modal-mask.show { display: block; }
.modal-box {
  max-width: 760px; margin: 0 auto; background: var(--paper-2); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-box .modal-cover { height: 190px; position: relative; display: grid; place-items: center; }
.modal-box .modal-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-box .modal-body { padding: 38px 44px 44px; }
.modal-box .modal-body h2 { font-size: clamp(23px, 3vw, 32px); margin: 8px 0 16px; }
.modal-box .modal-meta { color: var(--ink-faint); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-box .modal-body .article p { color: var(--ink-soft); font-size: 16px; line-height: 1.9; margin: 0 0 1.15em; }
.modal-box .modal-body .article p:first-of-type::first-letter { font-size: 1.05em; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; cursor: pointer; font-size: 20px; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-tags span { font-size: 12px; color: var(--ink-soft); background: var(--gold-soft); padding: 4px 11px; border-radius: 999px; }

/* ---------- 文章文末 · 产品广告位（两行紧凑长条） ---------- */
.article-ad-bar {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px; padding: 13px 18px; text-decoration: none; color: var(--ink);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FBF1DD, #F4E4C4);
  border: 1px solid #ead6b4;
  transition: transform .15s, box-shadow .15s;
}
.article-ad-bar:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200,136,30,.14); }
.article-ad-bar .ad-bar-badge {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); padding: 6px 12px; border-radius: 999px;
}
.article-ad-bar .ad-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.article-ad-bar .ad-bar-text b { font-family: var(--serif); font-size: 16px; }
.article-ad-bar .ad-bar-text i { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.article-ad-bar .ad-bar-cta {
  flex: none; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--gold); padding: 9px 16px; border-radius: 999px;
}
@media (max-width: 560px) {
  .article-ad-bar { flex-wrap: wrap; }
  .article-ad-bar .ad-bar-cta { margin-left: auto; }
  .article-ad-bar .ad-bar-text { order: 3; flex-basis: 100%; }
}

/* ---------- 贴心工具 · 老照片修复 ---------- */
.tool-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.tool-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.tool-card h3 { font-size: 19px; margin-bottom: 6px; }
.tool-card > p.hint { color: var(--ink-soft); font-size: 14px; }

.dropzone {
  display: block; position: relative;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 46px 24px; text-align: center;
  background: linear-gradient(160deg, #fff, var(--gold-soft)); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: linear-gradient(160deg, #fff, #f2e0c4); }
.dropzone .dz-ic { font-size: 40px; margin-bottom: 12px; }
.dropzone b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.dropzone span { color: var(--ink-faint); font-size: 13px; }
.dropzone input[type=file] { display: none; }

.mode-picker { display: grid; gap: 10px; margin: 18px 0 4px; }
.mode-opt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all .2s;
}
.mode-opt:hover { border-color: #ddc9a6; }
.mode-opt.sel { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(200,136,30,.12); }
.mode-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 3px; position: relative; background: #fff; }
.mode-opt.sel .radio { border-color: var(--gold); }
.mode-opt.sel .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.mode-opt b { font-size: 15px; display: block; }
.mode-opt small { color: var(--ink-faint); font-size: 13px; }
.mode-opt .eta { margin-left: auto; font-size: 12px; color: var(--gold); white-space: nowrap; font-weight: 600; }

.compare {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--ink); user-select: none; touch-action: none;
}
.compare img { width: 100%; display: block; }
.compare .after-wrap { position: absolute; inset: 0; overflow: hidden; }
.compare .after-wrap img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35);
  cursor: ew-resize; z-index: 3;
}
.compare .handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow);
}
.compare .lab {
  position: absolute; bottom: 10px; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(43,38,32,.62); padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 4;
}
.compare .lab.l { left: 10px; } .compare .lab.r { right: 10px; }

.progress-bar { height: 8px; border-radius: 999px; background: var(--gold-soft); overflow: hidden; margin: 14px 0 8px; }
.progress-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .5s ease; }
.tool-steps { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; }
.tool-steps li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-faint); }
.tool-steps li.done { color: var(--ink-soft); }
.tool-steps li .dot2 { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 4px; }
.tool-steps li.done .dot2 { background: var(--green); border-color: var(--green); }
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tool-note { font-size: 12px; color: var(--ink-faint); margin-top: 14px; line-height: 1.7; }
.result-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }
.result-meta b { font-family: var(--serif); font-size: 16px; color: var(--ink); }

.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.mini-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; }
.mini-card h4 { font-size: 16px; margin-bottom: 6px; }
.mini-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* 工具列表页卡片 */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tool-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e6cfa6; }
.tool-tile .tile-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(43,38,32,.12); }
.tool-tile h3 { font-size: 21px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-tile .tile-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }
.tool-tile .hot { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg,#FF6B5C,#FB8B1E); padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.tile-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tile-tags span { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.t-free { color: var(--green); background: #eaf5ee; border: 1px solid #bfe3cd; }
.t-ai { color: var(--gold); background: var(--gold-soft); border: 1px solid #ecd9b6; }
.t-hot { color: #fff; background: linear-gradient(135deg,#FF6B5C,#FB8B1E); }
.t-line { color: #5b6b7a; background: #eef2f6; border: 1px solid #d8e0e8; }
.t-soon { color: #7a8694; background: #f1f3f6; border: 1px solid #e1e6ec; }
.tile-go { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--gold); font-size: 15px; }
.tile-go--muted { color: #9aa6b2; }
.tool-tile--soon { background: repeating-linear-gradient(45deg,#fbf7ef,#fbf7ef 12px,#f7f1e6 12px,#f7f1e6 24px); border-style: dashed; }
.tool-tile--soon .tile-ic { filter: grayscale(.3); }
.back-link { margin-top: 18px; font-size: 14px; }
.back-link a { color: var(--gold); font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* API 文档块 */
.api-box { background: var(--ink); color: rgba(255,255,255,.82); border-radius: var(--radius); padding: 28px 30px; overflow-x: auto; }
.api-box h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.api-box p { font-size: 14px; color: rgba(255,255,255,.6); }
.api-box code, .api-box pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; }
.api-box pre { background: rgba(255,255,255,.07); border-radius: 10px; padding: 16px 18px; margin: 14px 0 0; overflow-x: auto; line-height: 1.7; white-space: pre; }
.api-box .verb { display: inline-block; font-weight: 700; padding: 2px 9px; border-radius: 6px; font-size: 12px; margin-right: 8px; font-family: var(--sans); }
.verb.get { background: rgba(63,125,91,.28); color: #8fd0aa; }
.verb.post { background: rgba(232,163,61,.24); color: var(--gold-2); }
.api-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.api-row:last-child { border-bottom: 0; }
.api-row .path { color: #fff; }
.api-row .desc { color: rgba(255,255,255,.5); margin-left: auto; text-align: right; font-size: 12.5px; }

.badge-soft { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); background: #eaf5ee; border: 1px solid #bfe3cd; padding: 4px 11px; border-radius: 999px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .healing-grid { grid-template-columns: repeat(2, 1fr); }
  .healing-feature { grid-template-columns: 1fr; }
  .healing-feature .cover { min-height: 200px; }
  .healing-feature .body { padding: 26px 24px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr; }
  .modal-box .modal-body { padding: 28px 24px 32px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 64px; }
  .hero-visual { max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .app-hero { grid-template-columns: 1fr; }
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .healing-grid { grid-template-columns: 1fr; }
  .healing-search { min-width: 0; width: 100%; }
  .channel-hero { padding: 44px 0 38px; }
  .tool-card { padding: 22px; }
  .dropzone { padding: 32px 16px; }
  .hero-stats { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  section.block { padding: 56px 0; }
  .doc-content { padding: 30px 22px; }
  .quote { padding: 30px 24px; }
}
