:root {
    --brand: #B9473F;
    --amber: #D89A45;
    --dark: #1E2026;
    --paper: #F7F4EF;
    --soft: #EEE9E2;
    --text: #2B2D31;
    --muted: #6F706F;
    --accent: #E06A3B;
    --line: rgba(30, 32, 38, .13);
    --line-strong: rgba(30, 32, 38, .24);
    --white: #fff;
    --shadow: 0 18px 50px rgba(30, 32, 38, .10);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.78;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(224, 106, 59, .4);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

p:last-child {
    margin-bottom: 0;
}

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

.narrow-wrap {
    width: min(calc(100% - 40px), 860px);
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    background: var(--dark);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: .84rem;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.meta-line {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 650;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(247, 244, 239, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 13px;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    color: var(--dark);
    font-size: 1rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: .72rem;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 9px 10px;
    color: var(--text);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--soft);
    color: var(--brand);
}

.search-trigger {
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--dark);
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
}

.search-trigger:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    background: var(--dark);
    transition: transform .2s ease;
}

.menu-toggle-lines {
    position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.search-modal[hidden] {
    display: none !important;
}

.search-modal {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 21, 25, .72);
}

.search-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.search-dialog h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 24px;
}

.search-form input,
.inline-search input,
.search-page-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    padding: 10px 14px;
}

.search-form button,
.inline-search button,
.search-page-form button {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: var(--white);
    padding: 10px 18px;
    font-weight: 760;
    cursor: pointer;
}

.hero,
.page-hero,
.article-hero,
.search-page-hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -160px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: rgba(216, 154, 69, .12);
    pointer-events: none;
}

.hero-home {
    padding: clamp(54px, 8vw, 104px) 0 70px;
}

.hero-grid,
.page-hero-grid,
.article-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
}

.hero-lead {
    max-width: 760px;
    margin-bottom: 28px;
    color: #515257;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.9;
}

.hero-actions,
.closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 760;
    text-decoration: none;
}

.button-primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(185, 71, 63, .18);
}

.button-primary:hover {
    background: #a83e37;
    color: var(--white);
}

.button-secondary {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--dark);
}

.button-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.full-button {
    width: 100%;
}

.hero-notes {
    display: grid;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .9rem;
}

.hero-notes li {
    position: relative;
    padding-left: 18px;
}

.hero-notes li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-media,
.page-hero-media,
.article-hero figure {
    margin: 0;
}

.hero-media img,
.page-hero-media img,
.article-hero figure img,
.feature-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-media figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: .82rem;
}

.section {
    padding: clamp(62px, 8vw, 104px) 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    background: var(--dark);
    color: #d9d8d6;
    border-top: 0 !important;
}

.section-dark h2,
.section-dark h3,
.section-dark strong,
.section-dark b {
    color: var(--white);
}

.section-dark .eyebrow {
    color: var(--amber);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 1.02rem;
}

.section-heading.inverse p:last-child {
    color: #b7b6b3;
}

.section-action {
    margin-top: 34px;
}

.intro-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: clamp(30px, 6vw, 78px);
}

.lead-prose {
    font-size: 1.08rem;
}

.prose p,
.prose li {
    color: #47494e;
}

.prose a {
    color: var(--brand);
    font-weight: 650;
}

.prose h2 {
    margin-top: 2.4em;
}

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

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li + li {
    margin-top: 9px;
}

.core-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.core-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.04);
}

.core-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.core-card-body {
    padding: 24px;
}

.core-card-body p {
    color: #bdbbb8;
}

.core-card-body a,
.section-dark .principle-grid a,
.inverse-link {
    color: #f0b869;
    font-weight: 700;
}

.feature-band {
    background: #f1ece5;
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: center;
}

.split-feature.reverse .feature-image {
    order: 2;
}

.feature-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.03rem;
}

.feature-points {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.feature-points div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.feature-points strong {
    color: var(--brand);
    font-size: 1.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 760;
}

.text-link::after {
    content: "→";
}

.editor-list {
    border-top: 1px solid var(--line-strong);
}

.editor-item {
    display: grid;
    grid-template-columns: 58px 1fr 46px;
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.editor-index {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
}

.editor-item h3 {
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    margin-bottom: 8px;
}

.editor-item h3 a,
.article-index-item h2 a,
.article-card h3 a,
.search-results h2 a {
    text-decoration: none;
}

.editor-item p:last-of-type {
    color: var(--muted);
}

.editor-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--dark);
    font-weight: 800;
    text-decoration: none;
}

.topic-layout {
    display: grid;
    grid-template-columns: .74fr 1.26fr;
    gap: clamp(34px, 7vw, 88px);
    align-items: start;
}

.sticky-heading {
    position: sticky;
    top: 108px;
}

.topic-stack {
    display: grid;
    gap: 18px;
}

.topic-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid var(--line);
}

.topic-row img {
    width: 150px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 14px;
}

.topic-row p {
    color: var(--muted);
}

.topic-row a {
    color: var(--brand);
    font-weight: 700;
}

.compact-image img {
    aspect-ratio: 1 / 1;
    max-height: 520px;
}

.inline-search {
    margin: 28px 0 18px;
}

.inline-search label,
.search-page-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 760;
}

.inline-search > div,
.search-page-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.principle-grid article {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.035);
}

.principle-grid article > span {
    display: inline-flex;
    margin-bottom: 36px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--amber);
    font-size: .8rem;
    font-weight: 750;
}

.principle-grid p {
    color: #b7b6b3;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item h2,
.faq-item h3 {
    margin: 0;
    font-size: 1.05rem;
}

.faq-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 0;
    background: transparent;
    color: var(--dark);
    padding: 22px 0;
    text-align: left;
    font-weight: 760;
    cursor: pointer;
}

.faq-item button span {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 1.5rem;
    transition: transform .18s ease;
}

.faq-item button[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 48px 22px 0;
    color: var(--muted);
}

.large-faq .faq-item button {
    font-size: 1.12rem;
}

.closing-band {
    background: #e9e0d6;
}

.closing-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 40px;
    align-items: center;
}

.closing-grid > div:first-child > p:last-child {
    color: var(--muted);
}

.closing-actions {
    justify-content: flex-end;
}

.page-hero {
    padding: clamp(54px, 7vw, 92px) 0;
    background: #f1ece5;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.page-hero-media img {
    aspect-ratio: 1.18 / 1;
}

.accent-hero {
    background: #f0e8df;
}

.ai-hero {
    background: #eee8e0;
}

.guide-hero {
    background: #efe6dc;
}

.topic-hero {
    background: #f2eae1;
}

.faq-hero {
    background: #ece7df;
}

.about-hero,
.privacy-hero {
    background: #f0ebe4;
}

.safety-hero {
    background: #eee5dd;
}

.contact-hero,
.list-hero {
    background: #f2ece4;
}

.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .86rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 7px;
    color: #aaa7a1;
}

.breadcrumbs a {
    text-decoration: none;
}

.content-grid-with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(38px, 7vw, 86px);
    align-items: start;
}

.article-prose {
    max-width: 780px;
    font-size: 1.02rem;
}

.article-prose p {
    margin-bottom: 1.4em;
}

.callout {
    margin: 32px 0;
    padding: 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--soft);
}

.callout strong {
    color: var(--dark);
}

.side-panel,
.article-aside {
    position: sticky;
    top: 110px;
}

.side-panel {
    display: grid;
    gap: 0;
    border-top: 3px solid var(--brand);
    background: var(--soft);
    padding: 26px;
}

.side-panel h2 {
    font-size: 1.25rem;
}

.side-panel > a {
    display: grid;
    gap: 3px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.side-panel > a:first-of-type {
    border-top: 0;
}

.side-panel > a span {
    color: var(--muted);
    font-size: .9rem;
}

.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.article-card p:not(.meta-line) {
    color: var(--muted);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.check-card {
    padding: 25px;
    border-top: 4px solid var(--brand);
    background: var(--soft);
}

.check-card > span {
    color: var(--brand);
    font-weight: 850;
}

.check-card h2 {
    margin-top: 30px;
    font-size: 1.35rem;
}

.check-card p {
    color: var(--muted);
}

.checklist {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 22px;
    color: #4e5054;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 850;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.intent-grid article {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.intent-grid article > span,
.feedback-grid article > span {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.intent-grid h2,
.feedback-grid h2 {
    margin-top: 30px;
    font-size: 1.4rem;
}

.intent-grid p,
.feedback-grid p {
    color: var(--muted);
}

.guide-timeline {
    position: relative;
}

.guide-timeline::before {
    content: "";
    position: absolute;
    left: 48px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--line-strong);
}

.guide-step {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 32px;
    padding: 0 0 48px;
}

.guide-step:last-child {
    padding-bottom: 0;
}

.guide-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 96px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-weight: 850;
}

.guide-step h2 {
    font-size: 1.6rem;
}

.guide-step p {
    max-width: 800px;
    color: var(--muted);
}

.guide-step a {
    color: var(--brand);
    font-weight: 750;
}

.topic-detail-stack {
    display: grid;
    gap: 28px;
}

.topic-detail {
    display: grid;
    grid-template-columns: 94px 1fr 280px;
    gap: 28px;
    align-items: start;
    padding: 34px 0;
    border-top: 1px solid var(--line-strong);
    scroll-margin-top: 110px;
}

.topic-number {
    color: var(--brand);
    font-size: .86rem;
    font-weight: 850;
}

.topic-detail h2 {
    font-size: clamp(1.55rem, 2.7vw, 2.3rem);
}

.topic-detail > div:nth-child(2) > p {
    color: var(--muted);
}

.topic-detail img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.reading-route {
    margin: 24px 0 0;
    padding-left: 1.3em;
}

.reading-route li + li {
    margin-top: 9px;
}

.reading-route a {
    color: var(--brand);
    font-weight: 690;
}

.mini-stat {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.mini-stat strong {
    color: var(--brand);
    font-size: 1.15rem;
}

.safety-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 54px;
}

.safety-rules article {
    padding: 30px 0;
    border-top: 1px solid var(--line-strong);
}

.safety-rules h2 {
    font-size: 1.55rem;
}

.safety-rules p {
    color: var(--muted);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feedback-grid article {
    padding: 30px;
    border-top: 4px solid var(--amber);
    background: var(--soft);
}

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 30px;
    color: var(--muted);
}

.filter-strip b,
.tag-row span {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: var(--text);
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 680;
}

.article-index {
    border-top: 1px solid var(--line-strong);
}

.article-index-item {
    display: grid;
    grid-template-columns: 145px 1fr 46px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.article-index-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: .83rem;
}

.article-index-meta span {
    color: var(--brand);
    font-weight: 760;
}

.article-index-item h2 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.article-index-item p {
    color: var(--muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.article-hero {
    padding: clamp(48px, 7vw, 86px) 0 50px;
    background: #efeae3;
    border-bottom: 1px solid var(--line);
}

.article-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: .84rem;
}

.article-body-section {
    padding-top: 74px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: clamp(44px, 8vw, 100px);
    align-items: start;
}

.article-main section + section {
    margin-top: 50px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
}

.article-main section h2 {
    margin-top: 0;
}

.article-aside {
    display: grid;
    gap: 16px;
}

.aside-box {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--soft);
}

.aside-box h2 {
    font-size: 1.05rem;
}

.aside-box > a {
    display: block;
    padding: 9px 0;
    color: var(--brand);
    font-weight: 700;
}

.search-page-hero {
    padding: clamp(60px, 8vw, 96px) 0 52px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.search-page-hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.6rem);
}

.search-page-form {
    margin-top: 28px;
}

.search-summary {
    margin-bottom: 24px;
    color: var(--muted);
}

.search-summary strong {
    color: var(--brand);
}

.search-results {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.search-results article {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.search-results article > span {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 800;
}

.search-results h2 {
    margin: 8px 0 8px;
    font-size: 1.45rem;
}

.search-results p {
    color: var(--muted);
}

.empty-state {
    padding: clamp(30px, 6vw, 60px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--soft);
    text-align: center;
}

.empty-state h2 {
    font-size: 1.8rem;
}

.empty-state p {
    color: var(--muted);
}

.empty-state .hero-actions {
    justify-content: center;
    margin-top: 25px;
}

.not-found {
    min-height: 70vh;
    display: grid;
    align-items: center;
    padding: 72px 0;
}

.not-found-grid {
    display: grid;
    grid-template-columns: 1fr .82fr;
    gap: clamp(42px, 8vw, 96px);
    align-items: center;
}

.error-code {
    margin-bottom: 0;
    color: var(--brand);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.08em;
}

.not-found-links {
    display: grid;
    gap: 12px;
}

.not-found-links a {
    display: grid;
    gap: 2px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--soft);
    text-decoration: none;
}

.not-found-links span {
    color: var(--muted);
    font-size: .88rem;
}

.site-footer {
    background: var(--dark);
    color: #c9c7c4;
    padding: 70px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr .7fr;
    gap: clamp(36px, 8vw, 100px);
}

.site-footer h2 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.footer-intro p {
    max-width: 520px;
    color: #aeadab;
}

.footer-domain {
    color: #f0b869;
    font-weight: 700;
}

.site-footer nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.site-footer nav a {
    color: #c9c7c4;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: #f0b869;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #908f8c;
    font-size: .82rem;
}

.footer-bottom a {
    color: #c9c7c4;
}

.back-to-top {
    position: fixed;
    z-index: 800;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(30,32,38,.18);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1120px) {
    .header-inner {
        gap: 16px;
    }

    .site-nav a {
        padding-inline: 7px;
        font-size: .86rem;
    }

    .brand-copy small {
        display: none;
    }

    .core-card {
        grid-template-columns: 140px 1fr;
    }

    .check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
        order: 2;
    }

    .search-trigger {
        order: 3;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        margin: 0;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 11px 12px;
    }

    .hero-grid,
    .page-hero-grid,
    .article-hero-inner,
    .split-feature,
    .not-found-grid {
        grid-template-columns: 1fr;
    }

    .hero-media,
    .page-hero-media,
    .article-hero figure,
    .feature-image {
        max-width: 760px;
    }

    .split-feature.reverse .feature-image {
        order: 0;
    }

    .topic-layout {
        grid-template-columns: 1fr;
    }

    .sticky-heading,
    .side-panel,
    .article-aside {
        position: static;
    }

    .principle-grid,
    .article-card-grid,
    .intent-grid,
    .feedback-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid-with-aside,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-prose {
        max-width: none;
    }

    .side-panel {
        max-width: 680px;
    }

    .topic-detail {
        grid-template-columns: 84px 1fr;
    }

    .topic-detail img {
        grid-column: 2;
        max-width: 420px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr .8fr .8fr;
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .wrap,
    .narrow-wrap {
        width: min(calc(100% - 30px), var(--wrap));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: .92rem;
    }

    .site-nav {
        top: 68px;
        right: 15px;
        left: 15px;
    }

    .search-trigger {
        padding-inline: 12px;
        font-size: .86rem;
    }

    .hero-home,
    .page-hero,
    .article-hero,
    .search-page-hero {
        padding-top: 46px;
    }

    h1 {
        font-size: clamp(2.15rem, 11vw, 3.2rem);
    }

    .page-hero h1,
    .article-hero h1,
    .search-page-hero h1 {
        font-size: clamp(2rem, 9.4vw, 2.9rem);
    }

    .section {
        padding: 64px 0;
    }

    .intro-grid,
    .closing-grid {
        grid-template-columns: 1fr;
    }

    .closing-actions {
        justify-content: flex-start;
    }

    .core-card-grid {
        grid-template-columns: 1fr;
    }

    .core-card {
        grid-template-columns: 150px 1fr;
    }

    .editor-item {
        grid-template-columns: 42px 1fr;
    }

    .editor-arrow {
        display: none;
    }

    .topic-row {
        grid-template-columns: 120px 1fr;
    }

    .topic-row img {
        width: 120px;
    }

    .principle-grid,
    .article-card-grid,
    .intent-grid,
    .feedback-grid,
    .safety-rules {
        grid-template-columns: 1fr;
    }

    .guide-timeline::before {
        left: 30px;
    }

    .guide-step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .guide-number {
        width: 60px;
        height: 48px;
        font-size: .86rem;
    }

    .topic-detail {
        grid-template-columns: 1fr;
    }

    .topic-detail img {
        grid-column: 1;
    }

    .article-index-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-index-meta {
        display: flex;
        gap: 12px;
    }

    .article-index-item .editor-arrow {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15.5px;
    }

    .brand-copy {
        display: none;
    }

    .site-nav {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .search-trigger {
        padding: 9px 11px;
    }

    .hero-actions,
    .closing-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .core-card {
        grid-template-columns: 1fr;
    }

    .core-card img {
        max-height: 230px;
    }

    .topic-row {
        grid-template-columns: 1fr;
    }

    .topic-row img {
        width: 100%;
        max-height: 220px;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .search-form,
    .inline-search > div,
    .search-page-form > div {
        grid-template-columns: 1fr;
    }

    .search-form button,
    .inline-search button,
    .search-page-form button {
        width: 100%;
    }

    .article-meta {
        display: grid;
        gap: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-intro {
        grid-column: auto;
    }

    .footer-bottom {
        display: grid;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
