:root {
    --bg: #f4f1e8;
    --bg-soft: #faf8f2;
    --text: #1f1f1b;
    --muted: #5e5a52;
    --line: rgba(31, 31, 27, 0.12);
    --primary: #171716;
    --accent: #ad6b35;
    --accent-soft: rgba(173, 107, 53, 0.12);
    --shadow: 0 12px 36px rgba(35, 31, 24, 0.08);
    --shadow-soft: 0 8px 24px rgba(36, 30, 19, 0.05);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% -10%, #e7ddca 0%, transparent 45%),
        radial-gradient(circle at 95% 5%, #e7dfce 0%, transparent 30%),
        var(--bg);
    font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.page-shell {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3rem;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0 1.5rem;
}

.brand {
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
}

.brand-mark i {
    color: var(--accent);
}

.brand-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.nav-link,
.button,
.chip,
.hero-eyebrow,
.section-kicker,
.post-tag,
.article-tag,
.topic-count {
    border-radius: 999px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.95rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text);
    font-size: 0.94rem;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-link:hover,
.button:hover {
    transform: translateY(-1px);
}

.nav-link:hover {
    border-color: rgba(173, 107, 53, 0.28);
    background: #fff;
}

.hero-card,
.section,
.footer,
.stat-card,
.post-card,
.topic-card,
.info-card,
.list-card,
.content-card,
.article-shell {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 246, 236, 0.92) 100%);
    box-shadow: var(--shadow);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -35% -55% auto;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 107, 53, 0.16) 0%, rgba(173, 107, 53, 0) 70%);
    pointer-events: none;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(104px, 132px);
    gap: 0.55rem;
    align-items: center;
    padding: 1rem 1.15rem;
    min-height: 184px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0.72rem;
    border-radius: calc(var(--radius-xl) - 8px);
    border: 1px solid rgba(31, 31, 27, 0.06);
    background:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
        linear-gradient(90deg, rgba(31, 31, 27, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(31, 31, 27, 0.03) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.home-hero-copy,
.home-hero-visual {
    position: relative;
    z-index: 1;
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.home-hero-date {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.home-hero-kicker {
    margin: 0.42rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-quote {
    margin: 0.3rem 0 0;
    max-width: min(100%, 32ch);
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.3rem, 2.7vw, 2.35rem);
    line-height: 1.08;
    font-weight: 700;
    min-height: calc(2 * 1.08em);
    overflow: hidden;
}

.home-hero-quote-line {
    display: block;
    white-space: nowrap;
}

.home-hero-quote-line-indent {
    padding-left: 1.3em;
}

.home-hero-quote::before {
    content: "“";
}

.home-hero-quote::after {
    content: "”";
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.home-hero-actions .button {
    padding: 0.62rem 1rem;
}

.home-hero-visual {
    display: grid;
    justify-items: center;
    align-items: center;
}

.hero-book {
    position: relative;
    width: min(100%, 132px);
    height: 90px;
    perspective: 1200px;
}

.hero-book-shadow {
    position: absolute;
    inset: auto 10px 1px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 56, 29, 0.16) 0%, rgba(78, 56, 29, 0.02) 72%);
    filter: blur(5px);
}

.hero-book-body,
.hero-book-page,
.hero-book-cover,
.hero-book-spine,
.hero-book-page-face {
    position: absolute;
}

.hero-book-body {
    inset: 0;
    transform-style: preserve-3d;
    overflow: hidden;
    border-radius: 14px;
}

.hero-book-spine {
    inset: 12px auto 12px 50%;
    width: 4px;
    margin-left: -2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ddc79f 0%, #bc9767 100%);
    box-shadow:
        inset 0 0 0 1px rgba(95, 69, 37, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    z-index: 4;
}

.hero-book-page,
.hero-book-cover {
    top: 11px;
    bottom: 11px;
    background:
        linear-gradient(180deg, rgba(201, 174, 137, 0.16) 0%, rgba(201, 174, 137, 0) 24%),
        linear-gradient(90deg, #fffdf7 0%, #f8f1e5 92%, #e8dbc5 100%);
    box-shadow:
        inset 0 0 0 1px rgba(101, 76, 42, 0.08),
        0 6px 16px rgba(84, 61, 31, 0.08);
    z-index: 2;
}

.hero-book-page {
    overflow: hidden;
}

.hero-book-page-a {
    left: 8px;
    right: 50%;
    margin-right: -1px;
    border-radius: 12px 4px 4px 12px;
    transform: rotate(-1deg);
    animation: hero-left-page-rest 8.2s ease-in-out infinite;
}

.hero-book-page-b {
    left: 50%;
    right: 8px;
    margin-left: -1px;
    border-radius: 4px 12px 12px 4px;
    transform: rotate(1deg);
}

.hero-book-page-c {
    left: 50%;
    right: 8px;
    margin-left: -1px;
    border-radius: 4px 12px 12px 4px;
    transform-origin: left center;
    transform: rotateY(0deg);
    animation: hero-page-turn 8.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
    transform-style: preserve-3d;
    overflow: visible;
    z-index: 5;
}

.hero-book-page-face {
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(201, 174, 137, 0.16) 0%, rgba(201, 174, 137, 0) 24%),
        linear-gradient(90deg, #fffdf7 0%, #f8f1e5 92%, #e8dbc5 100%);
    box-shadow:
        inset 0 0 0 1px rgba(101, 76, 42, 0.08),
        0 6px 16px rgba(84, 61, 31, 0.08);
    backface-visibility: hidden;
}

.hero-book-page-face-back {
    transform: rotateY(180deg);
}

.hero-book-cover {
    background: linear-gradient(135deg, #dca15d 0%, #b56d33 58%, #80431f 100%);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.16),
        0 8px 20px rgba(84, 51, 20, 0.12);
}

.hero-book-cover-front {
    left: 50%;
    right: 7px;
    top: 10px;
    bottom: 10px;
    margin-left: -1px;
    border-radius: 4px 12px 12px 4px;
    opacity: 0.1;
    z-index: 1;
}

.hero-book-cover-back {
    left: 7px;
    right: 50%;
    top: 10px;
    bottom: 10px;
    margin-right: -1px;
    border-radius: 12px 4px 4px 12px;
    opacity: 0.12;
    z-index: 1;
}

.hero-book-page::after,
.hero-book-page-face::after {
    content: "";
    position: absolute;
    inset: 10px 8px auto;
    height: 1px;
    background: rgba(115, 86, 49, 0.12);
    box-shadow:
        0 10px 0 rgba(115, 86, 49, 0.1),
        0 20px 0 rgba(115, 86, 49, 0.08),
        0 30px 0 rgba(115, 86, 49, 0.08);
}

.hero-sub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-quote {
    max-width: min(100%, 32ch);
    font-size: clamp(1.45rem, 2.9vw, 2.55rem);
}

.home-hero-quote::before,
.home-hero-quote::after {
    content: none;
}

.hero-body {
    position: relative;
    z-index: 1;
    padding: 2.35rem 2rem;
}

.hero-eyebrow,
.section-kicker,
.post-tag,
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-eyebrow,
.section-kicker,
.post-tag,
.article-tag {
    color: var(--accent);
    background: var(--accent-soft);
}

.hero-title {
    margin: 0.8rem 0 0;
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1.12;
}

.hero-lead {
    max-width: 720px;
    margin: 0.8rem 0 0;
    font-size: 1.02rem;
    color: var(--muted);
}

.hero-copy {
    max-width: 760px;
    margin: 0.7rem 0 0;
    font-size: 0.96rem;
}

.chip-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip-row {
    margin-top: 0.85rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.button-row {
    margin-top: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    padding: 0.72rem 1.25rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button-secondary {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--line);
}

.button-accent {
    color: var(--accent);
    background: rgba(173, 107, 53, 0.1);
    border-color: rgba(173, 107, 53, 0.18);
}

.stats-grid,
.card-grid,
.info-grid,
.topic-grid,
.post-grid,
.list-grid,
.headline-list,
.footer-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 1rem;
}

.card-grid,
.post-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.topic-grid,
.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.headline-list {
    grid-template-columns: 1fr;
}

.stream-list {
    display: grid;
    gap: 0.9rem;
}

.section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(6px);
}

.section-header,
.footer-bottom,
.topic-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.section-header {
    align-items: end;
    margin-bottom: 1.1rem;
}

.topic-head {
    align-items: start;
}

.section-title {
    margin: 0.7rem 0 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.2;
}

.section-copy,
.post-summary,
.list-summary,
.topic-copy,
.info-copy,
.footer-copy,
.article-summary {
    color: var(--muted);
}

.section-copy {
    margin: 0.45rem 0 0;
    max-width: 680px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.stat-card,
.post-card,
.topic-card,
.info-card,
.list-card,
.content-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
}

.article-shell {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    overflow: visible;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-value {
    margin-top: 0.35rem;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
}

.post-title,
.list-title {
    margin: 0.9rem 0 0;
    line-height: 1.45;
}

.post-title {
    font-size: 1.1rem;
}

.list-title {
    font-size: 1.22rem;
}

.post-title a,
.list-title a,
.topic-list a,
.footer-links a,
.footer-meta a,
.article-actions a,
.breadcrumbs a {
    text-decoration: none;
}

.post-summary,
.list-summary,
.topic-copy,
.info-copy {
    margin: 0.8rem 0 0;
}

.post-meta,
.list-meta,
.article-meta,
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.95rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.topic-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.topic-title,
.info-title,
.footer-title {
    margin: 0;
}

.topic-title {
    font-size: 1.16rem;
}

.info-title {
    font-size: 1.08rem;
}

.footer-title {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.topic-count {
    padding: 0.32rem 0.72rem;
    background: rgba(31, 31, 27, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.topic-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.topic-list li + li {
    margin-top: 0.45rem;
}

.footer {
    margin-top: 1.8rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.7);
}

.headline-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.headline-item + .headline-item {
    margin-top: 0.75rem;
}

.headline-main {
    min-width: 0;
}

.headline-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.headline-title a {
    text-decoration: none;
}

.headline-meta {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.headline-date {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.direction-card {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted);
    font-size: 0.9rem;
}

.stream-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.stream-date {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.stream-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.stream-title a {
    text-decoration: none;
}

.stream-summary {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.stream-meta {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.now-card {
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.now-title {
    margin: 0;
    font-size: 1.08rem;
}

.now-list {
    margin: 0.7rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.now-list li + li {
    margin-top: 0.35rem;
}

.year-block + .year-block {
    margin-top: 1.4rem;
}

.timeline-shell {
    position: relative;
}

.articles-archive-page .page-shell {
    max-width: 980px;
}

.articles-archive-page .site-header {
    padding-bottom: 1rem;
}

.articles-archive-page .section,
.articles-archive-page .footer {
    padding: 1rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.articles-archive-page .section + .section,
.articles-archive-page .footer {
    border-top: 1px solid var(--line);
}

.articles-archive-page .section-header {
    margin-bottom: 0.9rem;
}

.articles-archive-page .section-title {
    margin-top: 0.35rem;
    font-size: 1.5rem;
}

.articles-archive-page .topic-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.articles-archive-page .topic-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.articles-archive-page .headline-item {
    padding: 0.85rem 0;
    border: 0;
    border-bottom: 1px solid rgba(31, 31, 27, 0.08);
    border-radius: 0;
    background: transparent;
}

.articles-archive-page .headline-item + .headline-item {
    margin-top: 0;
}

.articles-archive-page .headline-item:last-child {
    border-bottom: 0;
}

.articles-archive-page .footer-grid {
    gap: 1.2rem;
}

.year-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.year-summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(173, 107, 53, 0.14);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.year-block {
    position: relative;
    margin-left: 0.3rem;
    padding-left: 1.6rem;
}

.year-block::before {
    content: "";
    position: absolute;
    left: 0.22rem;
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(173, 107, 53, 0.34) 0%, rgba(173, 107, 53, 0.08) 100%);
}

.year-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0 0.25rem;
    cursor: pointer;
    list-style: none;
}

.year-toggle::-webkit-details-marker {
    display: none;
}

.year-count {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.year-content {
    position: relative;
    margin-top: 0.95rem;
}

.year-content::before {
    content: "";
    position: absolute;
    left: -1.48rem;
    top: 0.9rem;
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(173, 107, 53, 0.6);
    box-shadow: 0 0 0 6px rgba(173, 107, 53, 0.08);
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-bottom {
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    padding: 1.2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(173, 107, 53, 0.36);
    background: rgba(173, 107, 53, 0.08);
    border-radius: var(--radius-md);
}

.article-page {
    max-width: 1120px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs span {
    opacity: 0.55;
}

.article-shell {
    margin-top: 1rem;
}

.article-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
}

.article-hero {
    padding: 2.4rem 2rem 1.6rem;
    background: linear-gradient(180deg, rgba(250, 246, 236, 0.85) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-bottom: 1px solid var(--line);
}

.article-title {
    margin: 1rem 0 0;
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
}

.article-summary {
    margin: 1rem 0 0;
    font-size: 1.03rem;
}

.article-prose {
    padding: 2rem;
    min-width: 0;
}

.article-outline {
    padding: 2rem 2rem 2rem 0;
}

.article-outline-shell {
    position: sticky;
    top: 1.2rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(250, 246, 236, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: var(--shadow-soft);
}

.article-outline-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-outline-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 1rem;
    list-style: none;
}

.article-outline-list::before {
    content: "";
    position: absolute;
    left: 0.24rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(173, 107, 53, 0.25) 0%, rgba(173, 107, 53, 0.08) 100%);
}

.article-outline-item {
    position: relative;
}

.article-outline-item + .article-outline-item {
    margin-top: 0.18rem;
}

.article-outline-item::before {
    content: "";
    position: absolute;
    left: -0.25rem;
    top: 1rem;
    width: 0.6rem;
    height: 1px;
    background: rgba(173, 107, 53, 0.25);
}

.article-outline-item-level-h1 {
    font-weight: 700;
}

.article-outline-item-level-h3 {
    margin-left: 0.8rem;
}

.article-outline-item-level-h4 {
    margin-left: 1.45rem;
}

.article-outline-link {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-decoration: none;
    line-height: 1.45;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.article-outline-link:hover,
.article-outline-link.is-active {
    color: var(--primary);
    background: rgba(173, 107, 53, 0.12);
    transform: translateX(2px);
}

.article-outline-item.is-active::before {
    background: rgba(173, 107, 53, 0.58);
}

.article-prose > :first-child {
    margin-top: 0;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
    color: var(--primary);
    line-height: 1.3;
}

.article-prose h2,
.article-prose h3 {
    margin-top: 2em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid var(--line);
}

.article-prose p,
.article-prose ul,
.article-prose ol,
.article-prose blockquote {
    margin: 1rem 0;
}

.article-prose ul,
.article-prose ol {
    padding-left: 1.35rem;
}

.article-prose li + li {
    margin-top: 0.35rem;
}

.article-prose a {
    color: var(--accent);
}

.article-prose blockquote {
    padding: 0.35rem 1rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    color: var(--muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-prose code {
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: rgba(31, 31, 27, 0.07);
    font-family: Consolas, Monaco, "Andale Mono", monospace;
    font-size: 0.92em;
}

.article-prose pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #1d1d1b;
    color: #f7f3eb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.article-prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.article-prose .mermaid {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    overflow-x: auto;
}

.article-prose .mermaid svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@keyframes hero-page-turn {
    0%,
    28%,
    100% {
        transform: rotateY(0deg);
    }

    42% {
        transform: rotateY(-12deg);
    }

    60% {
        transform: rotateY(-96deg);
    }

    80% {
        transform: rotateY(-178deg);
    }

    92% {
        transform: rotateY(-180deg);
    }
}

@keyframes hero-left-page-rest {
    0%,
    46%,
    100% {
        opacity: 1;
    }

    60%,
    92% {
        opacity: 0;
    }
}

.article-prose img,
.article-prose table {
    max-width: 100%;
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}

.article-prose th,
.article-prose td {
    padding: 0.75rem;
    border: 1px solid var(--line);
    text-align: left;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.katex-display,
.MathJax_Display {
    overflow-x: auto;
    overflow-y: hidden;
}

@media (max-width: 900px) {
    .site-header,
    .section-header,
    .footer-bottom,
    .topic-head {
        flex-direction: column;
        align-items: start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-quote {
        max-width: min(100%, 24ch);
    }

    .home-hero-visual {
        justify-items: start;
    }

    .article-body {
        grid-template-columns: 1fr;
    }

    .article-outline {
        order: -1;
        padding: 0 1.5rem 1.5rem;
    }

    .article-outline-shell {
        position: static;
        top: auto;
    }

    .article-prose {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding-top: 0.85rem;
    }

    .home-hero,
    .hero-body,
    .list-hero,
    .article-hero,
    .article-prose {
        padding: 1.5rem;
    }

    .hero-title,
    .article-title {
        word-break: break-word;
    }

    .button {
        width: 100%;
    }

    .button-row {
        flex-direction: column;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: start;
    }

    .home-hero-visual {
        min-height: 0;
        justify-items: center;
    }

    .hero-book {
        width: min(100%, 114px);
        height: 78px;
    }

    .post-grid,
    .card-grid,
    .topic-grid,
    .info-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stream-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .articles-archive-page .section,
    .articles-archive-page .footer {
        padding: 0.85rem 0;
    }

    .year-block {
        margin-left: 0;
        padding-left: 1.35rem;
    }

    .year-summary {
        align-items: start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .headline-item {
        flex-direction: column;
    }

    .headline-date {
        white-space: normal;
    }
}
