/* ============================================================
   AI 教育 · 培养不被 AI 替代的孩子
   独立站点样式 — 暖琥珀色系 / 圆形母题
   ============================================================ */

:root {
    /* book-specific palette derived from cover-04 sunlight tone */
    --ae-bg: #FBF6EE;
    --ae-bg-soft: #F4EBDA;
    --ae-bg-deep: #2A1D11;
    --ae-ink: #2B1E12;
    --ae-ink-mid: #5C4A35;
    --ae-ink-mute: #8B7B61;
    --ae-line: rgba(112, 88, 56, 0.18);
    --ae-line-strong: rgba(112, 88, 56, 0.34);
    --ae-amber: #C57B3A;
    --ae-amber-deep: #A0552A;
    --ae-amber-soft: #F3D6A6;
    --ae-sun: #E8A65B;
    --ae-cream: #F9EBD0;
    --ae-glass: rgba(255, 250, 240, 0.6);
    --ae-glass-strong: rgba(255, 250, 240, 0.88);
    --ae-shadow-soft: 0 30px 80px -30px rgba(83, 53, 18, 0.32);
    --ae-shadow-card: 0 12px 32px -16px rgba(83, 53, 18, 0.22);

    /* fonts inherited from main site tokens, restated for safety */
    --ae-font-cn: 'Noto Sans SC', 'PingFang SC', sans-serif;
    --ae-font-cn-serif: 'Noto Serif SC', 'Songti SC', serif;
    --ae-font-en: 'Inter Tight', system-ui, sans-serif;
    --ae-font-en-serif: 'Source Serif 4', Georgia, serif;
    --ae-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ae-font-cn);
    background: var(--ae-bg);
    color: var(--ae-ink);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ambient grain texture */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(232, 166, 91, 0.16), transparent 42%),
        radial-gradient(circle at 88% 76%, rgba(160, 85, 42, 0.10), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; word-break: break-word; }

/* Custom scrollbar — match warm palette (light/dark) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(160, 85, 42, 0.22);
    border-radius: 999px;
    border: 3px solid var(--ae-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 85, 42, 0.42);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(232, 166, 91, 0.22);
    border-color: var(--ae-bg);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 166, 91, 0.42);
}

/* Selection — warm highlight, not default blue */
::selection {
    background: rgba(232, 166, 91, 0.35);
    color: var(--ae-ink);
}
[data-theme="dark"] ::selection {
    background: rgba(232, 166, 91, 0.45);
    color: var(--ae-cream);
}

/* ============================================================
   NAV
   ============================================================ */
.ae-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 246, 238, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--ae-line);
}
.ae-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.ae-nav-back {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ae-ink-mute);
    transition: color .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.ae-nav-back:hover { color: var(--ae-amber-deep); }
.ae-nav-title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--ae-ink);
}
.ae-nav-title .sub {
    color: var(--ae-ink-mute);
    font-weight: 400;
    margin-left: 10px;
    font-size: 12px;
}
.ae-nav-links {
    margin-left: auto;
    display: flex; gap: 24px;
    font-size: 13px;
    color: var(--ae-ink-mid);
}
.ae-nav-links a {
    transition: color .2s;
    position: relative;
}
.ae-nav-links a:hover { color: var(--ae-amber-deep); }
.ae-nav-links a::after {
    content: ''; position: absolute;
    left: 0; right: 100%; bottom: -6px; height: 1.5px;
    background: var(--ae-amber-deep);
    transition: right .25s ease;
}
.ae-nav-links a:hover::after { right: 0; }

/* ============================================================
   WRAPPERS / SHARED
   ============================================================ */
.ae-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.ae-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

.ae-section {
    padding: 128px 0;
    position: relative; z-index: 1;
}

.ae-eyebrow {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ae-amber-deep);
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.ae-eyebrow::before {
    content: ''; width: 24px; height: 1px;
    background: var(--ae-amber-deep);
    display: inline-block;
}

.ae-section-title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    color: var(--ae-ink);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.ae-section-lead {
    font-family: var(--ae-font-cn-serif);
    font-size: 19px;
    line-height: 1.9;
    color: var(--ae-ink-mid);
    max-width: 720px;
}

.ae-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}
.ae-section-head .meta {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ae-ink-mute);
    text-align: right;
}
.ae-section-head .meta strong {
    display: block;
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--ae-ink);
    letter-spacing: 0;
    margin-top: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.ae-hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.ae-hero::after {
    content: '';
    position: absolute;
    right: -180px; top: -120px;
    width: 720px; height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--ae-sun) 0%, var(--ae-amber-soft) 38%, transparent 70%);
    opacity: 0.62;
    pointer-events: none;
    filter: blur(2px);
}
.ae-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ae-hero-tag {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--ae-amber-deep);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
.ae-hero-tag .dot {
    width: 7px; height: 7px;
    background: var(--ae-sun);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 166, 91, 0.22);
}
.ae-hero-title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 1.08;
    color: var(--ae-ink);
    letter-spacing: -0.005em;
    margin-bottom: 28px;
}
.ae-hero-title em {
    font-style: normal;
    color: var(--ae-amber-deep);
    background: linear-gradient(180deg, transparent 70%, rgba(232, 166, 91, 0.36) 70%);
    padding: 0 4px;
}
/* Subtitle clarifier between H1 and main sub — "不是与 AI 对立，而是与 AI 共进化" */
.ae-hero-tagline {
    font-family: var(--ae-font-cn-serif);
    font-weight: 500;
    font-size: clamp(15.5px, 1.6vw, 18px);
    line-height: 1.5;
    color: var(--ae-ink-mid);
    margin: -8px 0 28px;     /* pull up close to H1 */
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(232, 166, 91, 0.10), rgba(232, 166, 91, 0.04));
    border-left: 2px solid var(--ae-amber);
    border-radius: 0 12px 12px 0;
    max-width: 100%;
}
.ae-hero-tagline em {
    font-style: normal;
    font-weight: 700;
    color: var(--ae-amber-deep);
    margin: 0 1px;
}
.ae-hero-tagline .dash {
    color: var(--ae-amber);
    font-family: var(--ae-font-mono);
    opacity: 0.7;
    font-size: 11px;
    letter-spacing: 0.2em;
}
[data-theme="dark"] .ae-hero-tagline em { color: var(--ae-sun); }
[data-theme="dark"] .ae-hero-tagline {
    background: linear-gradient(135deg, rgba(232, 166, 91, 0.14), rgba(232, 166, 91, 0.06));
}
@media (max-width: 720px) {
    .ae-hero-tagline {
        font-size: 14.5px;
        gap: 8px;
        padding: 8px 12px;
        margin: -4px 0 24px;
    }
    .ae-hero-tagline .dash { display: none; }
}

.ae-hero-sub {
    font-family: var(--ae-font-cn-serif);
    font-size: 20px;
    line-height: 1.85;
    color: var(--ae-ink-mid);
    margin-bottom: 32px;
    max-width: 580px;
}
.ae-hero-author {
    font-family: var(--ae-font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--ae-ink-mute);
    text-transform: uppercase;
    margin-bottom: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--ae-line);
    display: flex; gap: 28px;
}
.ae-hero-author span strong {
    display: block;
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    color: var(--ae-ink);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 4px;
}
.ae-hero-cta {
    display: flex; gap: 16px; flex-wrap: wrap;
}

/* "Continue reading" resume bar — shown on landing if user has a saved progress */
.ae-resume-bar {
    margin-top: 20px;
    padding: 14px 22px;
    background: linear-gradient(135deg, rgba(232, 166, 91, 0.14), rgba(160, 85, 42, 0.08));
    border: 1px solid rgba(232, 166, 91, 0.42);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--ae-font-cn-serif);
    font-size: 14px;
    color: var(--ae-ink);
    text-decoration: none;
    transition: all .25s;
    max-width: 100%;
    flex-wrap: wrap;
}
.ae-resume-bar:hover {
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.18);
    transform: translateY(-1px);
}
.ae-resume-bar .ae-resume-lbl {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ae-amber-deep);
}
.ae-resume-bar .ae-resume-title {
    font-weight: 600;
}
.ae-resume-bar .ae-resume-arrow {
    color: var(--ae-amber-deep);
    font-family: var(--ae-font-mono);
    font-size: 12px;
}
.ae-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-family: var(--ae-font-cn);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all .25s;
    border: 1.5px solid transparent;
}
.ae-btn.primary {
    background: var(--ae-ink);
    color: var(--ae-bg);
}
.ae-btn.primary:hover {
    background: var(--ae-amber-deep);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -16px var(--ae-amber-deep);
}
.ae-btn.ghost {
    border-color: var(--ae-line-strong);
    color: var(--ae-ink);
    background: var(--ae-glass);
}
.ae-btn.ghost:hover {
    border-color: var(--ae-ink);
    background: var(--ae-glass-strong);
}
.ae-btn .arrow { font-family: var(--ae-font-en); font-weight: 400; }

/* HERO audio CTA — a separate "side note" treatment, doesn't compete with primary CTAs */
.ae-hero-audio-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 12px 20px 12px 14px;
    border-radius: 999px;
    background: rgba(232, 166, 91, 0.10);
    border: 1px solid rgba(232, 166, 91, 0.32);
    color: var(--ae-ink);
    text-decoration: none;
    transition: all .25s cubic-bezier(.2,.7,.3,1);
    max-width: 100%;
}
.ae-hero-audio-cta:hover {
    background: rgba(232, 166, 91, 0.18);
    border-color: var(--ae-amber-deep);
    transform: translateY(-1px);
}
.ae-hero-audio-cta .play-ic {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding-left: 3px;  /* visually center the triangle */
}
.ae-hero-audio-cta .copy {
    display: flex; flex-direction: column;
    line-height: 1.4;
}
.ae-hero-audio-cta .copy-l {
    font-family: var(--ae-font-cn-serif);
    font-size: 14px;
    color: var(--ae-ink);
}
.ae-hero-audio-cta .copy-l strong {
    color: var(--ae-amber-deep);
    font-weight: 600;
}
.ae-hero-audio-cta .copy-r {
    font-family: var(--ae-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--ae-ink-mute);
    margin-top: 2px;
}
[data-theme="dark"] .ae-hero-audio-cta { background: rgba(232, 166, 91, 0.10); }
[data-theme="dark"] .ae-hero-audio-cta .copy-l { color: var(--ae-cream); }
[data-theme="dark"] .ae-hero-audio-cta .copy-l strong { color: var(--ae-sun); }
[data-theme="dark"] .ae-hero-audio-cta .play-ic { background: var(--ae-sun); color: var(--ae-bg-deep); }

/* ============================================================
   POLISH: Opening big-quote decoration
   ============================================================ */
.ae-opening-inner {
    position: relative;
}
.ae-opening-inner::before {
    content: '"';
    position: absolute;
    top: -20px; left: -8px;
    font-family: var(--ae-font-cn-serif);
    font-size: 180px;
    line-height: 1;
    color: rgba(160, 85, 42, 0.12);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .ae-opening-inner::before { color: rgba(232, 166, 91, 0.10); }
.ae-opening blockquote, .ae-opening .ae-eyebrow, .ae-opening .credit, .ae-opening .ae-audio {
    position: relative;
    z-index: 1;
}

/* ============================================================
   POLISH: Quote-card hover lifts + subtle accent bar
   ============================================================ */
.ae-quote {
    transition: all .35s cubic-bezier(.2,.7,.3,1);
    position: relative;
}
.ae-quote::before {
    content: '';
    position: absolute;
    left: 28px; top: 28px;
    width: 28px; height: 2px;
    background: var(--ae-amber);
    opacity: 0.7;
    transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.ae-quote:hover::before { width: 48px; opacity: 1; }
.ae-quote:nth-child(odd):hover { transform: translateY(-4px) rotate(-0.3deg); }
.ae-quote:nth-child(even):hover { transform: translateY(-4px) rotate(0.3deg); }

/* ============================================================
   POLISH: Chapter card lift with subtle shadow
   ============================================================ */
.ae-chapter {
    transition: transform .3s cubic-bezier(.2,.7,.3,1),
                border-color .3s, box-shadow .3s, background .3s;
}
.ae-chapter:hover {
    transform: translateY(-3px);
    border-color: var(--ae-amber);
    box-shadow: 0 16px 36px -16px rgba(160, 85, 42, 0.25);
}
[data-theme="dark"] .ae-chapter:hover {
    box-shadow: 0 16px 36px -16px rgba(232, 166, 91, 0.18);
}

/* ============================================================
   POLISH: Scroll-reveal — fade-in-up first paint of each section
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.2,.7,.3,1),
                transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   POLISH: Section-head number alignment + subtle bottom rule
   ============================================================ */
.ae-section-head {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ae-line);
}

/* ============================================================
   POLISH: Section eyebrow has its own accent dot
   ============================================================ */
.ae-eyebrow::after {
    display: none;  /* keep clean */
}

/* ============================================================
   POLISH: Why-cards numbered accent
   ============================================================ */
.ae-why-card { transition: all .35s cubic-bezier(.2,.7,.3,1); }
.ae-why-card .idx {
    transition: color .25s;
}
.ae-why-card:hover .idx { color: var(--ae-ink); }
.ae-why-card:hover {
    border-color: var(--ae-amber);
}

/* ============================================================
   POLISH: Author section — separator + signature
   ============================================================ */
.ae-author-left h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--ae-amber);
    margin-bottom: 22px;
    border-radius: 2px;
}

@media (max-width: 640px) {
    .ae-opening-inner::before { font-size: 120px; top: -10px; }
    .ae-hero-audio-cta { width: 100%; }
}

/* Nav 「音频版」 link — slightly accented */
.ae-nav-links a.ae-nav-audio {
    color: var(--ae-amber-deep);
    font-weight: 500;
}
.ae-nav-links a.ae-nav-audio:hover {
    color: var(--ae-ink);
}
[data-theme="dark"] .ae-nav-links a.ae-nav-audio { color: var(--ae-sun); }
[data-theme="dark"] .ae-nav-links a.ae-nav-audio:hover { color: var(--ae-cream); }

/* "听完整 17 集" link under each audio player */
.ae-audio .audio-more {
    flex-basis: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--ae-line);
    font-family: var(--ae-font-cn);
    font-size: 13px;
    color: var(--ae-amber-deep);
    transition: color .2s;
    text-decoration: none;
}
.ae-audio .audio-more:hover {
    color: var(--ae-ink);
}
[data-theme="dark"] .ae-audio .audio-more { color: var(--ae-sun); }
[data-theme="dark"] .ae-audio .audio-more:hover { color: var(--ae-cream); }

/* hero cover artwork */
.ae-hero-art {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: linear-gradient(160deg, #F3D7B8 0%, #F1B989 50%, #E7D7C7 100%);
    box-shadow: var(--ae-shadow-soft);
    position: relative;
    overflow: hidden;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ae-hero-art .num {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: rgba(43, 30, 18, 0.62);
}
.ae-hero-art .num em { font-style: normal; color: var(--ae-amber-deep); font-weight: 500; }
.ae-hero-art .sun {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 38% 38%, #F7D99E 0%, #E8A65B 50%, #C57B3A 88%);
    box-shadow: 0 0 100px rgba(232, 166, 91, 0.42);
}
.ae-hero-art .sun::after {
    content: '';
    position: absolute; inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FCE6BD, #E8A65B);
    opacity: 0.7;
}
.ae-hero-art .cover-title {
    position: relative;
    z-index: 2;
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    color: var(--ae-bg-deep);
    letter-spacing: 0.04em;
}
.ae-hero-art .cover-sub {
    position: relative;
    z-index: 2;
    font-family: var(--ae-font-cn-serif);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(43, 30, 18, 0.7);
    margin-top: 10px;
    letter-spacing: 0.02em;
}
.ae-hero-art .cover-en {
    font-family: var(--ae-font-en-serif);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(43, 30, 18, 0.5);
}

/* ============================================================
   WHY · 三段判断墙
   ============================================================ */
.ae-section.ae-why { background: var(--ae-bg-soft); }

.ae-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 64px;
}
.ae-why-card {
    position: relative;
    padding: 42px 36px 36px;
    background: var(--ae-glass-strong);
    border-radius: 24px;
    border: 1px solid var(--ae-line);
    transition: transform .35s, box-shadow .35s;
}
.ae-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ae-shadow-card);
}
.ae-why-card .idx {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ae-amber-deep);
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
}
.ae-why-card .idx::after {
    content: ''; flex: 1; height: 1px;
    background: var(--ae-line-strong);
    margin-left: 8px;
}
.ae-why-card h3 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 27px;
    line-height: 1.4;
    color: var(--ae-ink);
    margin-bottom: 16px;
}
.ae-why-card h3 em {
    font-style: normal;
    color: var(--ae-amber-deep);
}
.ae-why-card p {
    font-size: 16px;
    line-height: 1.82;
    color: var(--ae-ink-mid);
}
.ae-why-card .vs {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--ae-line-strong);
    display: flex; gap: 10px; align-items: baseline;
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ae-ink-mute);
}
.ae-why-card .vs strong {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ae-ink);
    letter-spacing: 0;
}
.ae-why-card .vs em { font-style: normal; color: var(--ae-amber-deep); font-weight: 600; }

/* ============================================================
   SYSTEM · 三方共进化
   ============================================================ */
.ae-system-stage {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.ae-system-diagram {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
}
.ae-system-diagram svg { width: 100%; height: 100%; }

.ae-system-actor {
    position: absolute;
    width: 132px;
    text-align: center;
    transform: translate(-50%, -50%);
}
.ae-system-actor .role {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ae-amber-deep);
    margin-bottom: 4px;
}
.ae-system-actor .name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--ae-ink);
    margin-bottom: 4px;
}
.ae-system-actor .meta {
    font-size: 12px;
    color: var(--ae-ink-mid);
    line-height: 1.45;
}
.ae-system-actor.parent { top: 12%; left: 50%; }
.ae-system-actor.child { top: 80%; left: 18%; }
.ae-system-actor.ai { top: 80%; left: 82%; }

.ae-system-roles {
    display: flex; flex-direction: column; gap: 24px;
}
.ae-system-role {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--ae-line);
}
.ae-system-role:last-child { border-bottom: none; }
.ae-system-role .badge {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--ae-bg);
}
.ae-system-role.parent .badge { background: var(--ae-ink); }
.ae-system-role.child .badge { background: var(--ae-amber-deep); }
.ae-system-role.ai .badge { background: var(--ae-sun); color: var(--ae-bg-deep); }
.ae-system-role h4 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ae-ink);
    margin-bottom: 6px;
}
.ae-system-role h4 .from {
    font-size: 13px;
    color: var(--ae-ink-mute);
    font-weight: 400;
    margin-left: 8px;
}
.ae-system-role p {
    font-size: 14px;
    color: var(--ae-ink-mid);
    line-height: 1.7;
}

/* ============================================================
   STRUCTURE · 四部 · 十六章
   ============================================================ */
.ae-section.ae-structure { background: var(--ae-bg-soft); }

/* compact full-book TOC at top of #structure */
.ae-toc-compact {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 20px;
    padding: 32px 36px 28px;
    margin-top: 8px;
    margin-bottom: 24px;
}
.ae-toc-compact .toc-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ae-line);
}
.ae-toc-compact .toc-compact-head .lbl {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--ae-ink);
    letter-spacing: 0.04em;
}
.ae-toc-compact .toc-compact-head .hint {
    font-family: var(--ae-font-cn);
    font-size: 12px;
    color: var(--ae-ink-mute);
}
.ae-toc-compact .toc-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 22px;
}
.ae-toc-compact .toc-compact-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ae-toc-compact .toc-compact-part {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ae-amber-deep);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--ae-line-strong);
}
.ae-toc-compact .toc-compact-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    align-items: baseline;
    transition: all .18s;
    margin: 0 -6px;
}
.ae-toc-compact .toc-compact-row:hover {
    background: rgba(232, 166, 91, 0.1);
    transform: translateX(2px);
}
.ae-toc-compact .toc-compact-row .ch-n {
    font-family: var(--ae-font-cn);
    font-size: 12px;
    color: var(--ae-ink-mute);
    letter-spacing: 0.04em;
}
.ae-toc-compact .toc-compact-row:hover .ch-n {
    color: var(--ae-amber-deep);
}
.ae-toc-compact .toc-compact-row .ch-t {
    font-family: var(--ae-font-cn-serif);
    font-weight: 500;
    font-size: 15px;
    color: var(--ae-ink);
    line-height: 1.45;
}
.ae-toc-compact .toc-compact-row .ch-m {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    color: var(--ae-ink-mute);
    letter-spacing: 0.06em;
}
.ae-toc-compact .toc-compact-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--ae-line);
    display: flex;
    justify-content: space-between;
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ae-ink-mute);
}

.ae-part {
    margin-top: 96px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--ae-line-strong);
}
.ae-part:last-child { border-bottom: none; padding-bottom: 0; }
.ae-part-head .part-num {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
    margin-bottom: 10px;
}
.ae-part-head .part-name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.3;
    color: var(--ae-ink);
    margin-bottom: 14px;
}
.ae-part-head .part-desc {
    font-family: var(--ae-font-cn-serif);
    font-size: 14px;
    line-height: 1.75;
    color: var(--ae-ink-mid);
}
.ae-part-flow {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--ae-line-strong);
}
.ae-part-flow .flow-label {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ae-amber-deep);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.ae-part-flow .flow-chain {
    font-family: var(--ae-font-cn-serif);
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ae-ink-mid);
}
.ae-part-flow .flow-chain em {
    font-style: normal;
    color: var(--ae-amber-deep);
    font-weight: 600;
}
.ae-part-flow .flow-chain .arr {
    color: var(--ae-amber);
    margin: 0 4px;
    font-weight: 600;
}
.ae-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.ae-chapter {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    padding: 26px 26px 28px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ae-chapter:hover {
    transform: translateY(-3px);
    border-color: var(--ae-amber);
    box-shadow: var(--ae-shadow-card);
}
.ae-chapter .num {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ae-amber-deep);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.ae-chapter .name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 23px;
    color: var(--ae-ink);
    line-height: 1.32;
    letter-spacing: 0.005em;
    margin-bottom: 4px;
}
.ae-chapter .core {
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--ae-ink-mid);
    margin-top: 4px;
}
.ae-chapter .next-hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--ae-line);
    font-family: var(--ae-font-cn-serif);
    font-size: 13px;
    line-height: 1.65;
    color: var(--ae-ink-mute);
    font-style: italic;
}
.ae-chapter .next-hint .arr {
    color: var(--ae-amber-deep);
    font-style: normal;
    font-weight: 600;
    margin-right: 4px;
}
.ae-chapter:hover .next-hint {
    color: var(--ae-ink-mid);
}

/* ============================================================
   STAGES · 年龄阶梯
   ============================================================ */
.ae-stages {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    position: relative;
}
.ae-stage {
    background: var(--ae-bg-soft);
    border: 1px solid var(--ae-line);
    padding: 28px 22px 32px;
    transition: background .25s, transform .25s;
    position: relative;
    border-radius: 4px;
}
.ae-stage:hover {
    background: var(--ae-cream);
    transform: translateY(-2px);
    z-index: 2;
}
.ae-stage:nth-child(1) { border-top-left-radius: 18px; border-bottom-left-radius: 18px; }
.ae-stage:nth-child(5) { border-top-right-radius: 18px; border-bottom-right-radius: 18px; }
.ae-stage .age {
    font-family: var(--ae-font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--ae-amber-deep);
    font-weight: 500;
    margin-bottom: 6px;
}
.ae-stage .stage-name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--ae-ink);
    margin-bottom: 14px;
}
.ae-stage .stage-theme {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ae-ink-mid);
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--ae-line-strong);
}
.ae-stage .role-row {
    margin-bottom: 14px;
    display: flex; flex-direction: column;
}
.ae-stage .role-row:last-child { margin-bottom: 0; }
.ae-stage .role-label {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ae-ink-mute);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.ae-stage .role-value {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 14px;
    color: var(--ae-ink);
    line-height: 1.4;
}

/* ============================================================
   TOOLKIT · 三张可视化卡
   ============================================================ */
.ae-section.ae-toolkit { background: var(--ae-bg-deep); color: var(--ae-cream); }
.ae-section.ae-toolkit .ae-section-title { color: var(--ae-cream); }
.ae-section.ae-toolkit .ae-section-lead { color: rgba(249, 235, 208, 0.74); }
.ae-section.ae-toolkit .ae-eyebrow { color: var(--ae-sun); }
.ae-section.ae-toolkit .ae-eyebrow::before { background: var(--ae-sun); }
.ae-section.ae-toolkit .meta { color: rgba(249, 235, 208, 0.5); }
.ae-section.ae-toolkit .meta strong { color: var(--ae-cream); }

.ae-toolkit-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 32px;
}
.ae-tool {
    background: rgba(255, 250, 240, 0.04);
    border: 1px solid rgba(232, 166, 91, 0.24);
    border-radius: 24px;
    padding: 36px 32px;
    backdrop-filter: blur(20px);
    transition: border-color .3s, background .3s;
}
.ae-tool:hover {
    border-color: rgba(232, 166, 91, 0.6);
    background: rgba(255, 250, 240, 0.06);
}
.ae-tool .tool-num {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-sun);
    margin-bottom: 14px;
}
.ae-tool h3 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--ae-cream);
    margin-bottom: 8px;
}
.ae-tool .tool-sub {
    font-size: 13px;
    color: rgba(249, 235, 208, 0.6);
    margin-bottom: 28px;
}

/* tool 1: design thinking 5 rings */
.ae-rings {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto 28px;
}
.ae-rings svg { width: 100%; height: 100%; }
.ae-rings-list {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 13px;
    color: var(--ae-cream);
    text-align: center;
}
.ae-rings-list span {
    padding: 6px 0;
    border-top: 1px solid rgba(232, 166, 91, 0.4);
    color: var(--ae-sun);
}

/* tool 2: flywheel checklist */
.ae-flywheel-list {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 4px;
}
.ae-flywheel-list .step {
    display: grid; grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 166, 91, 0.18);
}
.ae-flywheel-list .step:last-child { border-bottom: none; }
.ae-flywheel-list .step .n {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--ae-sun);
    color: var(--ae-sun);
    font-family: var(--ae-font-mono);
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.ae-flywheel-list .step .t {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--ae-cream);
    margin-bottom: 4px;
}
.ae-flywheel-list .step .d {
    font-size: 12.5px;
    color: rgba(249, 235, 208, 0.65);
    line-height: 1.55;
}

/* tool 3: menu - picker - culture */
.ae-mpc {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 4px;
}
.ae-mpc .row {
    padding: 18px;
    border-radius: 14px;
    background: rgba(232, 166, 91, 0.08);
    border-left: 3px solid var(--ae-sun);
}
.ae-mpc .row .label {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ae-sun);
    margin-bottom: 4px;
}
.ae-mpc .row .who {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 18px;
    color: var(--ae-cream);
    margin-bottom: 6px;
}
.ae-mpc .row .what {
    font-size: 13px;
    color: rgba(249, 235, 208, 0.7);
    line-height: 1.6;
}

/* ============================================================
   QUOTES · 金句墙
   ============================================================ */
.ae-quotes-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ae-quote {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    padding: 32px 28px 26px;
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.ae-quote:hover {
    transform: translateY(-3px);
    box-shadow: var(--ae-shadow-card);
}
.ae-quote .mark {
    font-family: var(--ae-font-cn-serif);
    font-size: 56px;
    line-height: 0.5;
    color: var(--ae-amber);
    opacity: 0.45;
    position: absolute;
    top: 24px;
    left: 24px;
}
.ae-quote blockquote {
    font-family: var(--ae-font-cn-serif);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.75;
    color: var(--ae-ink);
    margin: 24px 0 18px;
    padding-left: 28px;
}
.ae-quote blockquote em {
    font-style: normal;
    color: var(--ae-amber-deep);
    background: linear-gradient(180deg, transparent 70%, rgba(232, 166, 91, 0.3) 70%);
    padding: 0 2px;
}
.ae-quote .source {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ae-ink-mute);
    padding-top: 14px;
    border-top: 1px solid var(--ae-line);
    display: flex; justify-content: space-between; align-items: center;
}
.ae-quote .source .ch { font-family: var(--ae-font-cn); font-size: 12px; letter-spacing: 0; }

/* ============================================================
   AUTHOR / FOOTER
   ============================================================ */
.ae-author {
    background: var(--ae-bg-soft);
    padding: 100px 0;
    border-top: 1px solid var(--ae-line);
}
.ae-author-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;   /* give the right column a bit more breathing room */
    gap: 72px;
    align-items: start;
}
.ae-author-left .eyebrow {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
    margin-bottom: 14px;
}
.ae-author-left h2 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.3;
    color: var(--ae-ink);
    margin-bottom: 24px;
}
.ae-author-left p {
    font-family: var(--ae-font-cn-serif);
    font-size: 17px;
    line-height: 1.9;
    color: var(--ae-ink-mid);
    margin-bottom: 18px;
}

.ae-publish-card {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    padding: 32px;
}
.ae-publish-row {
    padding: 14px 0;
    border-bottom: 1px dashed var(--ae-line);
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 14px;
}
.ae-publish-row:last-child { border-bottom: none; }
.ae-publish-row .k {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ae-ink-mute);
    text-transform: uppercase;
}
.ae-publish-row .v {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    color: var(--ae-ink);
}
.ae-publish-row .v.amber { color: var(--ae-amber-deep); }

.ae-footer {
    padding: 40px 32px;
    text-align: center;
    color: var(--ae-ink-mute);
    font-family: var(--ae-font-mono);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.14em;
    border-top: 1px solid var(--ae-line);
}
.ae-footer a {
    color: var(--ae-amber-deep);
    text-decoration: none;
    transition: color .2s;
}
.ae-footer a:hover { color: var(--ae-ink); }
[data-theme="dark"] .ae-footer a:hover { color: var(--ae-cream); }

/* ============================================================
   READING UX · progress bar / TOC / back-to-top
   ============================================================ */

/* top scroll progress bar */
.ae-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--ae-sun), var(--ae-amber-deep));
    z-index: 60;
    transition: width .08s linear;
    pointer-events: none;
}

/* floating TOC (desktop only) */
.ae-toc {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex; flex-direction: column;
    gap: 4px;
    padding: 18px 14px;
    background: rgba(251, 246, 238, 0.86);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--ae-shadow-card);
}
.ae-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ae-ink-mute);
    padding: 6px 10px;
    border-radius: 999px;
    transition: all .22s;
    text-transform: uppercase;
}
.ae-toc a .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ae-line-strong);
    transition: all .22s;
}
.ae-toc a:hover {
    color: var(--ae-ink);
    background: rgba(232, 166, 91, 0.08);
}
.ae-toc a:hover .dot { background: var(--ae-amber-deep); }
.ae-toc a.is-active {
    color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.12);
}
.ae-toc a.is-active .dot {
    background: var(--ae-amber-deep);
    box-shadow: 0 0 0 4px rgba(232, 166, 91, 0.22);
}
.ae-toc a .ch {
    font-family: var(--ae-font-cn);
    font-size: 11px;
    letter-spacing: 0;
}

/* back to top */
.ae-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ae-ink);
    color: var(--ae-bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ae-font-en);
    font-size: 18px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all .3s;
    pointer-events: none;
    box-shadow: 0 12px 32px -10px rgba(43, 30, 18, 0.5);
}
.ae-back-top:focus-visible {
    outline: 2px solid var(--ae-amber-deep);
    outline-offset: 3px;
}
.ae-back-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ae-back-top:hover {
    background: var(--ae-amber-deep);
    transform: translateY(-3px) scale(1.05);
}

/* ============================================================
   OPENING · 父亲端茶推门
   ============================================================ */
.ae-opening {
    padding: 100px 0 80px;
    background:
        linear-gradient(180deg, var(--ae-bg) 0%, var(--ae-bg-soft) 100%);
}
.ae-opening-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}
.ae-opening .ae-eyebrow { margin-bottom: 22px; }
.ae-opening blockquote {
    font-family: var(--ae-font-cn-serif);
    font-weight: 400;
    font-size: clamp(21px, 2.5vw, 27px);
    line-height: 1.9;
    color: var(--ae-ink);
    border-left: 3px solid var(--ae-amber);
    padding: 8px 0 8px 32px;
    margin-bottom: 28px;
}
.ae-opening blockquote em {
    font-style: normal;
    color: var(--ae-amber-deep);
    background: linear-gradient(180deg, transparent 70%, rgba(232, 166, 91, 0.3) 70%);
    padding: 0 3px;
}
.ae-opening .credit {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ae-ink-mute);
    text-transform: uppercase;
    display: flex; align-items: center; gap: 12px;
}
.ae-opening .credit::before {
    content: ''; width: 32px; height: 1px;
    background: var(--ae-amber-deep);
}

/* ============================================================
   READING PATHS · 3 条阅读路径
   ============================================================ */
.ae-paths {
    padding: 64px 0 32px;
}
.ae-paths-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.ae-paths-head {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
}
.ae-paths-head .label {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
}
.ae-paths-head .title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--ae-ink);
}
.ae-paths-head .note {
    margin-left: auto;
    font-size: 13px;
    color: var(--ae-ink-mute);
}
.ae-paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.ae-path {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    padding: 26px 24px;
    transition: all .25s;
    display: block;
    position: relative;
    overflow: hidden;
}
.ae-path:hover {
    border-color: var(--ae-amber);
    transform: translateY(-3px);
    box-shadow: var(--ae-shadow-card);
}
.ae-path .time {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ae-amber-deep);
    margin-bottom: 10px;
}
.ae-path .who {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ae-ink);
    margin-bottom: 8px;
}
.ae-path .who em { font-style: normal; color: var(--ae-amber-deep); }
.ae-path .route {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ae-ink-mid);
    margin-bottom: 16px;
}
.ae-path .stops {
    display: flex; gap: 6px;
    flex-wrap: wrap;
}
.ae-path .stop {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ae-ink-mute);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(232, 166, 91, 0.1);
    border: 1px solid rgba(232, 166, 91, 0.22);
}
.ae-path .arrow {
    position: absolute;
    top: 22px; right: 22px;
    font-family: var(--ae-font-en);
    color: var(--ae-ink-mute);
    transition: transform .3s, color .3s;
}
.ae-path:hover .arrow {
    color: var(--ae-amber-deep);
    transform: translate(3px, -3px);
}

/* ============================================================
   CHAPTER CARD · expandable actions on hover
   ============================================================ */
/* Actions list: visible by default but visually subtle ("notes")
   — on touch devices users can't hover, so it must be readable inline */
.ae-chapter .actions {
    display: flex; flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ae-line);
    opacity: 0.62;
    transition: opacity .25s ease;
}
.ae-chapter:hover .actions,
.ae-chapter:focus-within .actions {
    opacity: 1;
}
.ae-chapter .actions .row {
    display: flex; gap: 6px; align-items: baseline;
    font-size: 11.5px;
    line-height: 1.5;
}
.ae-chapter .actions .row .tag {
    font-family: var(--ae-font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--ae-ink-mute);
    padding: 1px 5px;
    background: rgba(160, 85, 42, 0.06);
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ae-chapter .actions .row .txt {
    color: var(--ae-ink-mute);
    line-height: 1.5;
}
.ae-chapter:hover .actions .row .tag { color: var(--ae-amber-deep); background: rgba(232, 166, 91, 0.12); }
.ae-chapter:hover .actions .row .txt { color: var(--ae-ink-mid); }

/* On touch devices: full opacity from the start (no hover available) */
@media (hover: none) {
    .ae-chapter .actions { opacity: 1; }
    .ae-chapter .actions .row .tag { color: var(--ae-amber-deep); background: rgba(232, 166, 91, 0.1); }
    .ae-chapter .actions .row .txt { color: var(--ae-ink-mid); }
}

/* ============================================================
   CASE STUDY · 不爱学数学完整案例
   ============================================================ */
.ae-case {
    background: var(--ae-bg-deep);
    color: var(--ae-cream);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.ae-case::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 166, 91, 0.42), transparent);
}
.ae-case-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}
.ae-case .eyebrow {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-sun);
    margin-bottom: 16px;
    display: inline-flex; align-items: center; gap: 12px;
}
.ae-case .eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--ae-sun);
}
.ae-case h2 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.3;
    color: var(--ae-cream);
    margin-bottom: 18px;
}
.ae-case > .ae-case-inner > p.lead {
    font-family: var(--ae-font-cn-serif);
    font-size: 16px;
    line-height: 1.85;
    color: rgba(249, 235, 208, 0.7);
    max-width: 680px;
    margin-bottom: 56px;
}

.ae-case-steps {
    display: flex; flex-direction: column;
    gap: 0;
}
.ae-case-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(232, 166, 91, 0.22);
    position: relative;
}
.ae-case-step:first-child { border-top: none; padding-top: 0; }
.ae-case-step .head {
    position: sticky; top: 80px;
}
.ae-case-step .n {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-sun);
    margin-bottom: 6px;
}
.ae-case-step .ring-name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--ae-cream);
    line-height: 1.3;
}
.ae-case-step .body .old {
    font-family: var(--ae-font-cn);
    font-size: 13px;
    color: rgba(249, 235, 208, 0.5);
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(255, 250, 240, 0.04);
    border-left: 2px solid rgba(249, 235, 208, 0.25);
    border-radius: 0 6px 6px 0;
}
.ae-case-step .body .old .lbl {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(249, 235, 208, 0.55);
    display: block;
    margin-bottom: 4px;
}
.ae-case-step .body .new {
    font-family: var(--ae-font-cn-serif);
    font-size: 17px;
    line-height: 1.9;
    color: var(--ae-cream);
}
.ae-case-step .body .new em {
    font-style: normal;
    color: var(--ae-sun);
    background: linear-gradient(180deg, transparent 70%, rgba(232, 166, 91, 0.28) 70%);
    padding: 0 3px;
}
.ae-case-final {
    margin-top: 40px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(232, 166, 91, 0.15), rgba(160, 85, 42, 0.1));
    border: 1px solid rgba(232, 166, 91, 0.4);
    border-radius: 18px;
    font-family: var(--ae-font-cn-serif);
    font-size: 18px;
    line-height: 1.9;
    color: var(--ae-cream);
}
.ae-case-final em {
    font-style: normal;
    color: var(--ae-sun);
    background: linear-gradient(180deg, transparent 70%, rgba(232, 166, 91, 0.3) 70%);
    padding: 0 3px;
}

/* ============================================================
   AUTHOR · expanded with real voice
   ============================================================ */
.ae-author-quote {
    margin-top: 16px;
    padding: 20px 0;
    border-top: 1px dashed var(--ae-line-strong);
    border-bottom: 1px dashed var(--ae-line-strong);
}
.ae-author-quote .q {
    font-family: var(--ae-font-cn-serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ae-amber-deep);
    margin-bottom: 8px;
}
.ae-author-quote .src {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ae-ink-mute);
    text-transform: uppercase;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --ae-bg: #1B130A;
    --ae-bg-soft: #241910;
    --ae-bg-deep: #100A04;
    --ae-ink: #F4E8D2;
    --ae-ink-mid: #C9B594;
    --ae-ink-mute: #8E795D;
    --ae-line: rgba(232, 166, 91, 0.16);
    --ae-line-strong: rgba(232, 166, 91, 0.28);
    --ae-amber: #E8A65B;
    --ae-amber-deep: #F7D99E;
    --ae-amber-soft: #4A2D14;
    --ae-sun: #F7D99E;
    --ae-cream: #F4E8D2;
    --ae-glass: rgba(36, 25, 16, 0.55);
    --ae-glass-strong: rgba(36, 25, 16, 0.82);
    --ae-shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
    --ae-shadow-card: 0 12px 32px -16px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] body::before {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(232, 166, 91, 0.10), transparent 42%),
        radial-gradient(circle at 88% 76%, rgba(160, 85, 42, 0.10), transparent 48%);
}
[data-theme="dark"] .ae-hero-art {
    background: linear-gradient(160deg, #3B2614 0%, #553A20 50%, #2F2014 100%);
}
[data-theme="dark"] .ae-hero-art .cover-title,
[data-theme="dark"] .ae-hero-art .cover-sub {
    color: var(--ae-cream);
}
[data-theme="dark"] .ae-hero-art .cover-en {
    color: rgba(244, 232, 210, 0.6);
}
[data-theme="dark"] .ae-section.ae-toolkit { background: var(--ae-bg-deep); }
[data-theme="dark"] .ae-case { background: #060402; }
[data-theme="dark"] .ae-progress { background: linear-gradient(90deg, var(--ae-sun), var(--ae-amber)); }

/* dark — top nav (was too light, transparent over dark page) */
[data-theme="dark"] .ae-nav {
    background: rgba(16, 10, 4, 0.85);
    border-bottom-color: rgba(232, 166, 91, 0.16);
}
[data-theme="dark"] .ae-nav-back { color: var(--ae-ink-mute); }
[data-theme="dark"] .ae-nav-back:hover { color: var(--ae-amber-deep); }
[data-theme="dark"] .ae-nav-title { color: var(--ae-ink); }
[data-theme="dark"] .ae-nav-title .sub { color: var(--ae-ink-mute); }
[data-theme="dark"] .ae-nav-links { color: var(--ae-ink-mid); }
[data-theme="dark"] .ae-nav-links a:hover { color: var(--ae-amber-deep); }
[data-theme="dark"] .ae-theme-toggle {
    color: var(--ae-ink);
    border-color: rgba(232, 166, 91, 0.28);
}
[data-theme="dark"] .ae-theme-toggle:hover {
    color: var(--ae-amber-deep);
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.08);
}

/* dark — floating TOC (was too light) */
[data-theme="dark"] .ae-toc {
    background: rgba(16, 10, 4, 0.85);
    border-color: rgba(232, 166, 91, 0.2);
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6);
}
[data-theme="dark"] .ae-toc a { color: var(--ae-ink-mute); }
[data-theme="dark"] .ae-toc a:hover { color: var(--ae-cream); background: rgba(232, 166, 91, 0.1); }
[data-theme="dark"] .ae-toc a.is-active { color: var(--ae-amber-deep); background: rgba(232, 166, 91, 0.14); }
[data-theme="dark"] .ae-toc a.is-active .dot {
    background: var(--ae-amber-deep);
    box-shadow: 0 0 0 4px rgba(232, 166, 91, 0.28);
}

/* dark — back to top */
[data-theme="dark"] .ae-back-top {
    background: var(--ae-amber-deep);
    color: var(--ae-bg-deep);
    box-shadow: 0 12px 32px -10px rgba(232, 166, 91, 0.5);
}
[data-theme="dark"] .ae-back-top:hover { background: var(--ae-sun); }

/* dark — buttons */
[data-theme="dark"] .ae-btn.primary {
    background: var(--ae-amber-deep);
    color: var(--ae-bg-deep);
}
[data-theme="dark"] .ae-btn.primary:hover {
    background: var(--ae-sun);
    box-shadow: 0 16px 32px -16px var(--ae-amber-deep);
}
[data-theme="dark"] .ae-btn.ghost {
    background: rgba(232, 166, 91, 0.06);
    color: var(--ae-ink);
    border-color: rgba(232, 166, 91, 0.32);
}
[data-theme="dark"] .ae-btn.ghost:hover {
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.12);
    color: var(--ae-amber-deep);
}

/* dark — toast */
[data-theme="dark"] .ae-toast {
    background: var(--ae-amber-deep);
    color: var(--ae-bg-deep);
}

/* theme toggle */
.ae-theme-toggle {
    background: none;
    border: 1px solid var(--ae-line);
    color: var(--ae-ink);
    width: 32px; height: 32px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s;
    margin-left: 16px;
}
.ae-theme-toggle:hover {
    border-color: var(--ae-amber-deep);
    color: var(--ae-amber-deep);
}

/* ============================================================
   SECTION HEAD · reading time addition (B)
   ============================================================ */
.ae-section-head .meta .read-time {
    display: block;
    margin-top: 4px;
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--ae-amber-deep);
    text-transform: uppercase;
}

/* ============================================================
   SELF TEST (C)
   ============================================================ */
.ae-section.ae-selftest {
    background: var(--ae-bg);
    padding: 80px 0;
    border-top: 1px solid var(--ae-line);
    border-bottom: 1px solid var(--ae-line);
}
.ae-selftest-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px;
}
.ae-selftest .head .ae-eyebrow { margin-bottom: 14px; }
.ae-selftest h2 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.3;
    color: var(--ae-ink);
    margin-bottom: 12px;
}
.ae-selftest .head .lead {
    font-family: var(--ae-font-cn-serif);
    font-size: 16px;
    line-height: 1.85;
    color: var(--ae-ink-mid);
    margin-bottom: 36px;
    max-width: 640px;
}
.ae-q {
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    padding: 26px 28px 22px;
    margin-bottom: 16px;
}
.ae-q .qnum {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ae-amber-deep);
    margin-bottom: 8px;
}
.ae-q .qtext {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ae-ink);
    line-height: 1.55;
    margin-bottom: 18px;
}
.ae-q .opts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.ae-q .opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    font-family: var(--ae-font-cn);
    font-size: 14px;
    color: var(--ae-ink-mid);
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    width: 100%;
}
.ae-q .opt:hover {
    border-color: var(--ae-amber);
    background: rgba(232, 166, 91, 0.06);
    color: var(--ae-ink);
}
.ae-q .opt.is-selected {
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.14);
    color: var(--ae-ink);
}
.ae-q .opt .key {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--ae-line-strong);
    color: var(--ae-ink-mute);
    font-family: var(--ae-font-mono);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
}
.ae-q .opt.is-selected .key {
    border-color: var(--ae-amber-deep);
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
}

.ae-selftest-result {
    margin-top: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(232, 166, 91, 0.18), rgba(160, 85, 42, 0.12));
    border: 1px solid var(--ae-amber);
    border-radius: 22px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .35s ease;
    padding-top: 0; padding-bottom: 0;
}
.ae-selftest-result.is-visible {
    opacity: 1;
    max-height: 400px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.ae-selftest-result .label {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
    margin-bottom: 8px;
}
.ae-selftest-result .title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 24px;
    color: var(--ae-ink);
    margin-bottom: 10px;
}
.ae-selftest-result .body {
    font-family: var(--ae-font-cn-serif);
    font-size: 15px;
    line-height: 1.85;
    color: var(--ae-ink-mid);
}

/* ============================================================
   QUOTE COPY BUTTON (D)
   ============================================================ */
.ae-quote { position: relative; }
.ae-quote .copy {
    position: absolute;
    top: 18px; right: 18px;
    width: 28px; height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--ae-line);
    color: var(--ae-ink-mute);
    cursor: pointer;
    font-family: var(--ae-font-mono);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .2s;
}
.ae-quote:hover .copy {
    opacity: 1;
}
.ae-quote .copy:hover {
    border-color: var(--ae-amber);
    color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.08);
}
.ae-quote .copy.is-copied {
    opacity: 1;
    border-color: var(--ae-amber-deep);
    color: var(--ae-amber-deep);
}

.ae-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ae-bg-deep);
    color: var(--ae-cream);
    font-family: var(--ae-font-cn);
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 100;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,0.4);
    max-width: calc(100% - 120px); /* leave space for right-side floaters */
}
.ae-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Global focus visible — keyboard nav accessibility */
:focus-visible {
    outline: 2px solid var(--ae-amber-deep);
    outline-offset: 2px;
    border-radius: 4px;
}
.ae-nav a:focus-visible,
.ae-toc a:focus-visible,
.ae-btn:focus-visible {
    outline-offset: 3px;
}

/* Anchor target offset (avoid sticky nav covering) */
section[id], div[id^="ae-"] {
    scroll-margin-top: 80px;
}

/* Audio player dark-mode invert (browser default players have light bg) */
[data-theme="dark"] audio {
    filter: invert(0.85) hue-rotate(180deg) saturate(0.85);
}
[data-theme="dark"] .ae-audio {
    border-color: rgba(232, 166, 91, 0.2);
}

/* ============================================================
   SUBSCRIBE CARD (F)
   ============================================================ */
/* SHARE 卡 — vertical layout (was crushing meta into 4-char rows) */
.ae-subscribe {
    margin-top: 24px;
    padding: 26px 28px 24px;
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ae-subscribe .meta { min-width: 0; }
.ae-subscribe .meta .label {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ae-subscribe .meta .title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ae-ink);
    margin-bottom: 8px;
}
.ae-subscribe .meta .desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ae-ink-mid);
}
.ae-subscribe .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ae-subscribe .actions .ae-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 13px 18px;
    font-size: 13.5px;
    white-space: nowrap;
}

/* ============================================================
   STAGES · TIMELINE rewrite (G)
   ============================================================ */
.ae-timeline {
    margin-top: 64px;
    position: relative;
    padding: 60px 0 32px;
}
.ae-timeline-rail {
    position: absolute;
    top: 88px;
    left: 7%; right: 7%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--ae-amber-soft),
        var(--ae-amber),
        var(--ae-amber-deep),
        var(--ae-amber),
        var(--ae-amber-soft));
    border-radius: 999px;
    z-index: 0;
}
.ae-timeline-nodes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
}
.ae-tnode {
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}
.ae-tnode .age {
    font-family: var(--ae-font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--ae-amber-deep);
    font-weight: 500;
    margin-bottom: 14px;
    transition: color .2s;
}
.ae-tnode .dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ae-bg);
    border: 3px solid var(--ae-amber);
    margin: 0 auto 14px;
    transition: all .25s;
    position: relative;
    z-index: 2;
}
.ae-tnode:hover .dot,
.ae-tnode.is-active .dot {
    background: var(--ae-amber-deep);
    border-color: var(--ae-amber-deep);
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(232, 166, 91, 0.18);
}
.ae-tnode .name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ae-ink);
    transition: color .2s;
}
.ae-tnode:hover .name { color: var(--ae-amber-deep); }
.ae-tnode.is-active .name { color: var(--ae-amber-deep); }

.ae-tdetail {
    margin-top: 48px;
    padding: 36px 36px 32px;
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 22px;
    display: none;
}
.ae-tdetail.is-active {
    display: block;
    animation: aeFadeIn .35s ease;
}
@keyframes aeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ae-tdetail .head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.ae-tdetail .head .age-big {
    font-family: var(--ae-font-cn-serif);
    font-weight: 700;
    font-size: 28px;
    color: var(--ae-amber-deep);
}
.ae-tdetail .head .stage-name-big {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 22px;
    color: var(--ae-ink);
}
.ae-tdetail .head .ch-link {
    margin-left: auto;
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ae-amber-deep);
    text-transform: uppercase;
}
.ae-tdetail .head .ch-link:hover { color: var(--ae-ink); }
.ae-tdetail .theme {
    font-family: var(--ae-font-cn-serif);
    font-size: 17px;
    line-height: 1.85;
    color: var(--ae-ink);
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px dashed var(--ae-line-strong);
}
.ae-tdetail .roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ae-tdetail .role .lbl {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ae-amber-deep);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.ae-tdetail .role .val {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ae-ink);
    line-height: 1.45;
}

/* ============================================================
   AI ASK CTA — copy rich prompt + jump to any AI platform
   ============================================================ */
.ae-section.ae-toolkit .ae-toolkit-ask {
    margin-top: 36px;
    padding: 28px 32px 26px;
    background: rgba(232, 166, 91, 0.06);
    border: 1px solid rgba(232, 166, 91, 0.32);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}
.ae-section.ae-toolkit .ae-toolkit-ask .l {
    min-width: 220px;
}
.ae-section.ae-toolkit .ae-toolkit-ask .label {
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ae-sun);
    margin-bottom: 6px;
}
.ae-section.ae-toolkit .ae-toolkit-ask .title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ae-cream);
}
.ae-section.ae-toolkit .ae-toolkit-ask .desc {
    font-size: 13px;
    color: rgba(249, 235, 208, 0.65);
    margin-top: 4px;
    line-height: 1.6;
}
.ae-section.ae-toolkit .ae-toolkit-ask .r {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 280px;
}
.ae-section.ae-toolkit .ae-toolkit-ask .ae-btn.primary {
    background: var(--ae-sun);
    color: var(--ae-bg-deep);
}

/* Generic shared style — applies on both landing toolkit and chapter pages */
.ae-copy-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--ae-font-cn);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .25s;
}
.ae-copy-prompt:hover { transform: translateY(-1px); }
.ae-copy-prompt.is-copied { background: var(--ae-amber-deep); color: var(--ae-bg); }

.ae-ai-jumps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ae-ai-jumps .lbl {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ae-ink-mute);
    margin-right: 4px;
    text-transform: uppercase;
}
.ae-ai-jumps a {
    padding: 7px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--ae-line-strong);
    font-family: var(--ae-font-cn);
    font-size: 12.5px;
    color: var(--ae-ink);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ae-ai-jumps a:hover {
    border-color: var(--ae-amber-deep);
    color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.08);
}
.ae-ai-jumps a .ar {
    opacity: 0.5;
    font-size: 11px;
}

/* dark toolkit variant of the jump pills */
.ae-section.ae-toolkit .ae-ai-jumps .lbl { color: rgba(249, 235, 208, 0.5); }
.ae-section.ae-toolkit .ae-ai-jumps a {
    color: var(--ae-cream);
    border-color: rgba(232, 166, 91, 0.32);
}
.ae-section.ae-toolkit .ae-ai-jumps a:hover {
    border-color: var(--ae-sun);
    color: var(--ae-sun);
    background: rgba(232, 166, 91, 0.1);
}

/* download link for tool cards (H) */
.ae-toolkit-print {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(232, 166, 91, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--ae-font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ae-sun);
}
.ae-toolkit-print a {
    color: var(--ae-sun);
    transition: color .2s;
}
.ae-toolkit-print a:hover { color: var(--ae-cream); }

/* ============================================================
   STATIC AI CHAT WIDGET (floating + slide-up panel)
   ============================================================ */

/* Floating trigger button (above QR + back-top) */
.ae-chat-fab {
    position: fixed;
    right: 24px;
    bottom: 152px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 16px 32px -8px rgba(160, 85, 42, 0.45);
    transition: all .28s cubic-bezier(.2,.7,.3,1);
    padding: 0;
}
.ae-chat-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 20px 40px -10px rgba(160, 85, 42, 0.6);
}
.ae-chat-fab:focus-visible {
    outline: 2px solid var(--ae-amber);
    outline-offset: 3px;
}
.ae-chat-fab .chat-fab-icon {
    font-size: 22px;
    line-height: 1;
}
.ae-chat-fab .chat-fab-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ae-sun);
    box-shadow: 0 0 0 3px rgba(232, 166, 91, 0.4);
}
.ae-chat-fab.is-open .chat-fab-dot { display: none; }

/* Backdrop */
.ae-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(43, 30, 18, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 58;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.ae-chat-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel — desktop: bottom-right card / mobile: full-screen */
.ae-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 420px;
    max-width: calc(100vw - 32px);
    height: min(640px, calc(100vh - 48px));
    background: var(--ae-bg);
    border: 1px solid var(--ae-line-strong);
    border-radius: 20px;
    z-index: 59;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all .3s cubic-bezier(.2,.7,.3,1);
    overflow: hidden;
}
.ae-chat-panel.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
[data-theme="dark"] .ae-chat-panel {
    background: var(--ae-bg-soft);
    border-color: rgba(232, 166, 91, 0.24);
}

/* Header */
.ae-chat-head {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--ae-line);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ae-bg-soft);
}
[data-theme="dark"] .ae-chat-head {
    background: rgba(232, 166, 91, 0.06);
}
.ae-chat-head .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FCE6BD, #E8A65B 60%, #A0552A);
    flex-shrink: 0;
}
.ae-chat-head .meta { flex: 1; min-width: 0; }
.ae-chat-head .name {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--ae-ink);
    line-height: 1.3;
}
.ae-chat-head .sub {
    font-size: 11px;
    color: var(--ae-ink-mute);
    margin-top: 2px;
    line-height: 1.3;
}
.ae-chat-head .sub .live-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 5px;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
    vertical-align: middle;
}
.ae-chat-close {
    background: transparent;
    border: none;
    color: var(--ae-ink-mute);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.ae-chat-close:hover {
    background: rgba(232, 166, 91, 0.12);
    color: var(--ae-ink);
}

/* Body — scrollable messages */
.ae-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-gutter: stable;
}

.ae-chat-msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: var(--ae-font-cn-serif);
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.ae-chat-msg.user {
    align-self: flex-end;
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
    border-bottom-right-radius: 4px;
}
.ae-chat-msg.bot {
    align-self: flex-start;
    background: var(--ae-bg-soft);
    color: var(--ae-ink);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--ae-line);
}
[data-theme="dark"] .ae-chat-msg.bot {
    background: rgba(232, 166, 91, 0.08);
    border-color: rgba(232, 166, 91, 0.18);
}
.ae-chat-msg.bot.is-thinking::after {
    content: '思考中…';
    display: inline-block;
    color: var(--ae-amber-deep);
    font-size: 13px;
    font-style: italic;
    margin-left: 2px;
    animation: aeChatBlink 1.4s infinite;
}
@keyframes aeChatBlink {
    0%, 50% { opacity: 0.55; }
    25%, 75% { opacity: 1; }
}
.ae-chat-msg.bot .cursor {
    display: inline-block;
    width: 7px; height: 1em;
    background: var(--ae-amber-deep);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: aeChatCursor 1s steps(2) infinite;
}
@keyframes aeChatCursor {
    50% { opacity: 0; }
}

/* Quick-start prompts (shown when conversation is empty) */
.ae-chat-intro {
    padding: 8px 0;
}
.ae-chat-intro p {
    font-family: var(--ae-font-cn-serif);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ae-ink-mid);
    margin-bottom: 14px;
}
.ae-chat-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ae-chat-quick button {
    text-align: left;
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--ae-font-cn);
    font-size: 13.5px;
    color: var(--ae-ink);
    transition: all .2s;
    line-height: 1.5;
}
.ae-chat-quick button:hover {
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.08);
    color: var(--ae-amber-deep);
}

/* Footer / input */
.ae-chat-foot {
    border-top: 1px solid var(--ae-line);
    padding: 14px 16px 16px;
    background: var(--ae-bg-soft);
}
[data-theme="dark"] .ae-chat-foot { background: rgba(232, 166, 91, 0.04); }
.ae-chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.ae-chat-input {
    flex: 1;
    border: 1px solid var(--ae-line-strong);
    border-radius: 14px;
    padding: 10px 14px;
    font-family: var(--ae-font-cn);
    font-size: 14.5px;
    line-height: 1.55;
    background: var(--ae-bg);
    color: var(--ae-ink);
    resize: none;
    max-height: 140px;
    min-height: 42px;
    transition: border-color .2s;
}
[data-theme="dark"] .ae-chat-input {
    background: rgba(0,0,0,0.2);
    color: var(--ae-cream);
}
.ae-chat-input:focus {
    outline: none;
    border-color: var(--ae-amber-deep);
}
.ae-chat-send {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.ae-chat-send:hover { background: var(--ae-ink); }
.ae-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.ae-chat-foot .hint {
    margin-top: 8px;
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--ae-ink-mute);
    text-align: center;
}
.ae-chat-foot .hint .reset {
    color: var(--ae-amber-deep);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
}

/* mobile: full screen panel */
@media (max-width: 640px) {
    .ae-chat-panel {
        right: 0; bottom: 0; left: 0;
        width: 100%;
        max-width: 100%;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
    }
    .ae-chat-fab {
        right: 16px;
        bottom: 130px;
        width: 52px;
        height: 52px;
    }
}

/* ============================================================
   AUDIO PLAYER (intro on landing / chapter audio on chapter pages)
   ============================================================ */
.ae-audio {
    margin-top: 36px;
    padding: 22px 26px;
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line);
    border-radius: 18px;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 680px;
}
.ae-audio .meta {
    flex: 1;
    min-width: 200px;
}
.ae-audio .meta .label {
    font-family: var(--ae-font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--ae-amber-deep);
    margin-bottom: 4px;
    text-transform: uppercase;
}
.ae-audio .meta .title {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--ae-ink);
    line-height: 1.4;
    margin-bottom: 2px;
}
.ae-audio .meta .desc {
    font-size: 12.5px;
    color: var(--ae-ink-mute);
    line-height: 1.55;
}
.ae-audio audio {
    width: 100%;
    height: 36px;
    margin-top: 4px;
    border-radius: 999px;
}
[data-theme="dark"] .ae-audio {
    background: rgba(36, 25, 16, 0.6);
}

/* ============================================================
   QR SHARE BUTTON & MODAL (every page)
   ============================================================ */
.ae-qr-trigger {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 49;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ae-glass-strong);
    border: 1px solid var(--ae-line-strong);
    color: var(--ae-ink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .25s;
    box-shadow: var(--ae-shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
}
.ae-qr-trigger:hover {
    background: var(--ae-amber-deep);
    color: var(--ae-bg);
    border-color: var(--ae-amber-deep);
    transform: translateY(-2px);
}
.ae-qr-trigger:focus-visible {
    outline: 2px solid var(--ae-amber-deep);
    outline-offset: 3px;
}
[data-theme="dark"] .ae-qr-trigger {
    background: rgba(36, 25, 16, 0.85);
    color: var(--ae-cream);
    border-color: rgba(232, 166, 91, 0.28);
}
[data-theme="dark"] .ae-qr-trigger:hover {
    background: var(--ae-amber-deep);
    color: var(--ae-bg-deep);
}

.ae-qr-modal {
    position: fixed; inset: 0;
    background: rgba(43, 30, 18, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.ae-qr-modal.is-open {
    display: flex;
    opacity: 1;
}
.ae-qr-card {
    background: var(--ae-bg);
    border-radius: 22px;
    padding: 32px 36px 28px;
    max-width: 360px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
    border: 1px solid var(--ae-line);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
[data-theme="dark"] .ae-qr-card {
    background: var(--ae-bg-soft);
    border-color: rgba(232, 166, 91, 0.24);
}
[data-theme="dark"] .ae-qr-card h3 { color: var(--ae-ink); }
[data-theme="dark"] .ae-qr-card .sub { color: var(--ae-ink-mute); }
[data-theme="dark"] .ae-qr-card .url {
    background: rgba(232, 166, 91, 0.06);
    color: var(--ae-ink-mid);
}
[data-theme="dark"] .ae-qr-card .actions button {
    color: var(--ae-ink);
    border-color: rgba(232, 166, 91, 0.28);
}
[data-theme="dark"] .ae-qr-card .actions button:hover {
    color: var(--ae-amber-deep);
    border-color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.1);
}
[data-theme="dark"] .ae-qr-card .actions button.close {
    background: var(--ae-amber-deep);
    color: var(--ae-bg-deep);
    border-color: var(--ae-amber-deep);
}
.ae-qr-card h3 {
    font-family: var(--ae-font-cn-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ae-ink);
    margin-bottom: 6px;
}
.ae-qr-card .sub {
    font-size: 13px;
    color: var(--ae-ink-mute);
    margin-bottom: 22px;
}
.ae-qr-card .canvas-wrap {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ae-line);
}
.ae-qr-card .canvas-wrap canvas {
    display: block;
    width: 220px;
    height: 220px;
}
.ae-qr-card .url {
    margin-top: 18px;
    padding: 10px 14px;
    background: var(--ae-bg-soft);
    border-radius: 999px;
    font-family: var(--ae-font-mono);
    font-size: 12px;
    color: var(--ae-ink-mid);
    word-break: break-all;
}
.ae-qr-card .actions {
    display: flex; gap: 10px; margin-top: 18px;
    justify-content: center;
}
.ae-qr-card .actions button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--ae-line-strong);
    background: transparent;
    color: var(--ae-ink);
    font-family: var(--ae-font-cn);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.ae-qr-card .actions button:hover {
    border-color: var(--ae-amber-deep);
    color: var(--ae-amber-deep);
    background: rgba(232, 166, 91, 0.08);
}
.ae-qr-card .actions button.close {
    background: var(--ae-ink);
    color: var(--ae-bg);
    border-color: var(--ae-ink);
}

/* ============================================================
   QUOTE SHARE BUTTON (override the old copy button)
   ============================================================ */
.ae-quote .actions-row {
    position: absolute;
    top: 14px; right: 14px;
    display: flex; gap: 6px;
    opacity: 0;
    transition: opacity .2s;
}
.ae-quote:hover .actions-row,
.ae-quote .actions-row:focus-within {
    opacity: 1;
}
.ae-quote .actions-row button {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid var(--ae-line);
    background: var(--ae-glass-strong);
    color: var(--ae-ink-mute);
    cursor: pointer;
    font-family: var(--ae-font-mono);
    font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.ae-quote .actions-row button:hover {
    border-color: var(--ae-amber);
    color: var(--ae-amber-deep);
}
.ae-quote .actions-row button.is-busy {
    background: var(--ae-amber-deep);
    color: var(--ae-cream);
    border-color: var(--ae-amber-deep);
    pointer-events: none;
}
.ae-quote .actions-row button .ic { font-size: 14px; line-height: 1; }
.ae-quote .actions-row button .lbl {
    font-size: 10px;
    margin-left: 4px;
}
/* Hide old single .copy button — replaced by new toolbar */
.ae-quote > .copy { display: none; }

@media (max-width: 1280px) {
    .ae-toc { display: none; }
}

@media (max-width: 1024px) {
    .ae-section { padding: 88px 0; }
    .ae-hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .ae-system-stage { grid-template-columns: 1fr; gap: 56px; }
    .ae-author-inner { grid-template-columns: 1fr; gap: 40px; }
    .ae-toolkit-grid { grid-template-columns: 1fr; }
    .ae-why-grid { grid-template-columns: 1fr; }
    .ae-quotes-grid { grid-template-columns: 1fr 1fr; }
    .ae-stages { grid-template-columns: 1fr 1fr; }
    .ae-stages .ae-stage { border-radius: 12px !important; }
    .ae-part { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; padding-bottom: 60px; }
    .ae-paths-grid { grid-template-columns: 1fr; }
    .ae-case-step { grid-template-columns: 1fr; gap: 14px; }
    .ae-case-step .head { position: static; }
    .ae-tdetail .roles { grid-template-columns: 1fr; gap: 14px; }
    .ae-timeline-nodes { grid-template-columns: 1fr 1fr; gap: 24px 8px; }
    .ae-timeline-rail { display: none; }
    .ae-tnode .dot { display: inline-block; vertical-align: middle; margin: 0 8px 0 0; }
    .ae-subscribe { grid-template-columns: 1fr; }
    .ae-section.ae-toolkit .ae-toolkit-ask { grid-template-columns: 1fr; }
    .ae-section.ae-toolkit .ae-toolkit-ask .r { align-items: flex-start; min-width: 0; }
    .ae-toc-compact .toc-compact-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
    .ae-toc-compact { padding: 24px 22px 22px; }
    .ae-toc-compact .toc-compact-foot { flex-direction: column; gap: 6px; }
}

/* ============ MOBILE (≤ 720px) — systematic adaptation ============= */
@media (max-width: 720px) {
    .ae-section { padding: 56px 0; }
    .ae-wrap, .ae-hero-inner, .ae-author-inner, .ae-nav-inner,
    .ae-opening-inner, .ae-paths-inner, .ae-case-inner,
    .ae-selftest-inner, .ae-now-playing-inner { padding-left: 20px; padding-right: 20px; }

    /* === Nav: drop most anchors on mobile, keep brand + 音频 + theme === */
    .ae-nav-inner { padding: 11px 16px; gap: 10px; }
    .ae-nav-back { font-size: 11px; }
    .ae-nav-title { font-size: 13px; }
    .ae-nav-title .sub { display: none; }
    .ae-nav-links { gap: 8px 12px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
    .ae-nav-links a:not(.ae-nav-audio) { display: none; }
    .ae-nav-links a.ae-nav-audio { font-size: 13px; }

    /* === HERO === */
    .ae-hero { padding: 36px 0 52px; }
    .ae-hero-title { font-size: clamp(34px, 9vw, 44px); }
    .ae-hero-sub { font-size: 17px; line-height: 1.78; }
    .ae-hero-tag { font-size: 10.5px; margin-bottom: 22px; }
    .ae-hero-author { flex-direction: column; gap: 12px; padding-top: 18px; align-items: flex-start; }
    .ae-hero-author span { font-size: 10.5px; }
    .ae-hero-cta { flex-direction: column; gap: 12px; }
    .ae-hero-cta .ae-btn { width: 100%; justify-content: center; }
    .ae-hero-audio-cta { width: 100%; padding: 14px 18px 14px 12px; }
    .ae-hero-art { display: none; }   /* save vertical scroll on phones */

    /* === OPENING === */
    .ae-opening { padding: 56px 0 44px; }
    .ae-opening blockquote { font-size: 19px; padding-left: 24px; line-height: 1.85; }
    .ae-opening-inner::before { font-size: 110px; top: -8px; left: -2px; }

    /* === READING PATHS === */
    .ae-paths { padding: 36px 0 24px; }
    .ae-paths-head { gap: 10px; }
    .ae-paths-head .note { margin-left: 0; font-size: 12px; }
    .ae-paths-grid { grid-template-columns: 1fr; gap: 14px; }

    /* === WHY === */
    .ae-why-card { padding: 32px 26px 28px; }
    .ae-why-card h3 { font-size: 22px; }

    /* === SELF-TEST === */
    .ae-q { padding: 22px 20px 18px; }
    .ae-q .qtext { font-size: 16.5px; }
    .ae-q .opts { gap: 6px; }
    .ae-q .opt { padding: 11px 14px; font-size: 13.5px; }

    /* === SYSTEM (三方共进化) === */
    .ae-system-diagram { max-width: 360px; }
    .ae-system-role { grid-template-columns: 48px 1fr; gap: 14px; }
    .ae-system-role .badge { width: 44px; height: 44px; font-size: 18px; }

    /* === STRUCTURE === */
    .ae-toc-compact .toc-compact-grid { grid-template-columns: 1fr; gap: 22px; }
    .ae-toc-compact .toc-compact-row { padding: 10px 6px; grid-template-columns: 64px 1fr auto; }
    .ae-toc-compact .toc-compact-row .ch-t { font-size: 15px; }
    .ae-toc-compact .toc-compact-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ae-part { margin-top: 56px; padding-bottom: 48px; gap: 24px; }
    .ae-part-head .part-name { font-size: 26px; }
    .ae-chapters { gap: 14px; }
    .ae-chapter { padding: 22px 22px 24px; }
    .ae-chapter .name { font-size: 21px; line-height: 1.32; }
    .ae-chapter .core { font-size: 14px; }
    .ae-chapter .actions { opacity: 1; gap: 6px; }

    /* === STAGES timeline === */
    .ae-timeline { padding: 32px 0 16px; }
    .ae-timeline-nodes { grid-template-columns: repeat(5, 1fr); gap: 12px 4px; }
    .ae-tnode { padding: 0 4px; }
    .ae-tnode .age { font-size: 11px; }
    .ae-tnode .name { font-size: 13px; }
    .ae-tnode .dot { width: 12px; height: 12px; border-width: 2.5px; display: block; margin: 0 auto 8px; }
    .ae-timeline-rail { display: block; top: 56px; left: 6%; right: 6%; }
    .ae-tdetail { padding: 24px 22px; margin-top: 28px; }
    .ae-tdetail .head .ch-link { margin-left: 0; margin-top: 6px; }
    .ae-tdetail .head .age-big { font-size: 24px; }
    .ae-tdetail .head .stage-name-big { font-size: 18px; }
    .ae-tdetail .theme { font-size: 15px; line-height: 1.78; padding-bottom: 16px; margin-bottom: 16px; }
    .ae-tdetail .roles { gap: 12px; }
    .ae-tdetail .roles .role .val { font-size: 15px; }

    /* === TOOLKIT (深色段) === */
    .ae-section.ae-toolkit { padding: 64px 0; }
    .ae-toolkit-grid { gap: 18px; }
    .ae-tool { padding: 28px 24px 24px; }
    .ae-tool h3 { font-size: 22px; }
    .ae-tool .tool-num { font-size: 10.5px; }
    .ae-rings { max-width: 280px; }
    .ae-toolkit-print { padding-top: 14px; font-size: 10.5px; flex-direction: column; gap: 6px; align-items: flex-start; }
    .ae-section.ae-toolkit .ae-toolkit-ask {
        padding: 22px 20px;
        gap: 14px;
    }
    .ae-section.ae-toolkit .ae-toolkit-ask .title { font-size: 17px; }

    /* === CASE (不爱学数学) === */
    .ae-case { padding: 56px 0 64px; }
    .ae-case h2 { font-size: 26px; }
    .ae-case > .ae-case-inner > p.lead { font-size: 15px; margin-bottom: 36px; }
    .ae-case-step { padding: 22px 0; gap: 12px; }
    .ae-case-step .n { font-size: 10px; }
    .ae-case-step .ring-name { font-size: 19px; }
    .ae-case-step .body .old { font-size: 12.5px; padding: 10px 14px; }
    .ae-case-step .body .new { font-size: 15.5px; line-height: 1.85; }
    .ae-case-final { padding: 22px 22px; font-size: 16px; }

    /* === QUOTES === */
    .ae-quotes-grid { grid-template-columns: 1fr; gap: 16px; }
    .ae-quote { padding: 28px 22px 22px; }
    .ae-quote blockquote { font-size: 18px; padding-left: 22px; }
    .ae-quote:hover { transform: none !important; }  /* no rotate on mobile */
    .ae-quote .actions-row { opacity: 1; }   /* always visible on touch */

    /* === AUTHOR === */
    .ae-author { padding: 72px 0; }
    .ae-author-left h2 { font-size: 30px; }
    .ae-author-left p { font-size: 16px; }
    .ae-publish-card, .ae-subscribe { padding: 24px 22px; }
    .ae-subscribe .actions { flex-direction: column; align-items: stretch; }
    .ae-subscribe .actions .ae-btn { justify-content: center; }

    /* === Floating buttons — small, tight to corner, vertically spaced === */
    .ae-qr-trigger { right: 14px; bottom: 70px; width: 40px; height: 40px; }
    .ae-back-top { right: 14px; bottom: 14px; width: 40px; height: 40px; font-size: 16px; }
    .ae-chat-fab { right: 14px; bottom: 126px; width: 50px; height: 50px; }
    .ae-toast { bottom: 18px; max-width: calc(100% - 88px); font-size: 13px; padding: 10px 18px; }
    .ae-qr-card { padding: 26px 22px 22px; }
    .ae-qr-card .canvas-wrap canvas, .ae-qr-card .canvas-wrap > div { width: 200px !important; height: 200px !important; }

    /* === Footer === */
    .ae-footer { padding: 32px 20px; font-size: 11px; line-height: 2; letter-spacing: 0.1em; }
    .ae-footer a { display: inline-block; padding: 4px 6px; }

    /* === Resume bar === */
    .ae-resume-bar { padding: 12px 18px; font-size: 13px; gap: 10px; }
    .ae-resume-bar .ae-resume-arrow { width: 100%; text-align: right; }
}
