:root {
    --peach: #C85C7A;
    --apricot: #E7B7A8;
    --ink: #2B2228;
    --paper: #FBF7F5;
    --paper-2: #F3E9E6;
    --body: #342F32;
    --muted: #746A6F;
    --gold: #D9913D;
    --line: rgba(43, 34, 40, .13);
    --soft-line: rgba(200, 92, 122, .16);
    --shadow: 0 22px 50px rgba(64, 43, 54, .09);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --content: min(1180px, calc(100% - 40px));
    --reading: min(760px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--body);
    background: var(--paper);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--peach); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
main { min-height: 60vh; }

.skip-link {
    position: fixed;
    left: 12px;
    top: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(43, 34, 40, .08);
    background: rgba(251, 247, 245, .94);
    backdrop-filter: blur(14px);
}
.header-inner {
    width: var(--content);
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; border-radius: 13px; }
.brand-mark span { display: grid; line-height: 1.2; }
.brand-mark strong { font-size: 18px; color: var(--ink); letter-spacing: .04em; }
.brand-mark small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; padding: 9px 11px; border-radius: 999px; font-size: 14px; }
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.search-open, .menu-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    color: var(--ink);
}
.menu-toggle { display: none; }

.search-modal[hidden] { display: none !important; }
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(43, 34, 40, .58);
}
.search-modal__panel {
    width: min(650px, 100%);
    position: relative;
    padding: 36px;
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.search-close {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    background: transparent;
    color: var(--muted);
}
.search-form label { display: block; margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.search-form__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-form input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 13px 14px;
    color: var(--ink);
}
.search-form button {
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    background: var(--peach);
    color: #fff;
}
.modal-open { overflow: hidden; }

.hero-editorial {
    width: var(--content);
    margin: 0 auto;
    padding: 68px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 52px;
    align-items: center;
}
.hero-copy { max-width: 720px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--peach);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero-editorial h1, .page-intro h1, .article-header h1 {
    margin: 14px 0 18px;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.hero-editorial h1 em { color: var(--peach); font-style: normal; }
.hero-lead { font-size: 18px; color: #554a50; max-width: 60ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button-primary, .button-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
}
.button-primary { background: var(--peach); color: #fff; }
.button-primary:hover { color: #fff; background: #b94f6c; }
.button-quiet { border: 1px solid var(--line); background: rgba(255,255,255,.66); }
.hero-visual {
    position: relative;
    min-height: 470px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.hero-note {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(43, 34, 40, .86);
    color: #fff;
    backdrop-filter: blur(8px);
}
.hero-note strong { display: block; margin-bottom: 4px; }
.hero-note span { color: rgba(255,255,255,.78); font-size: 14px; }

.section { padding: 68px 0; }
.section--soft { background: var(--paper-2); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.84); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-inner { width: var(--content); margin: 0 auto; }
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(280px, 1fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 34px;
}
.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.section-heading p { margin: 0; color: var(--muted); }
.section--dark .section-heading p { color: rgba(255,255,255,.66); }

.intent-map {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.intent-item { padding: 30px 24px 30px 0; }
.intent-item + .intent-item { border-left: 1px solid var(--line); padding-left: 24px; }
.intent-item span { color: var(--muted); font-size: 13px; }
.intent-item h3 { margin: 7px 0 8px; color: var(--ink); font-size: 22px; }
.intent-item p { margin: 0 0 14px; color: var(--muted); }
.text-link { color: var(--peach); font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }

.split-feature {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: center;
}
.split-feature__image { border-radius: 28px; overflow: hidden; min-height: 390px; background: var(--paper-2); }
.split-feature__image img { width: 100%; min-height: 390px; object-fit: cover; }
.split-feature__copy h2 { color: var(--ink); font-size: clamp(30px, 4vw, 50px); line-height: 1.12; margin: 10px 0 18px; }
.split-feature__copy p { color: var(--muted); }
.inline-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.inline-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.inline-list strong { min-width: 110px; color: var(--ink); }

.story-feed { display: grid; gap: 0; border-top: 1px solid var(--line); }
.story-row { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.story-row__meta { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.story-row h3 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.34; }
.story-row h3 a { text-decoration: none; }
.story-row p { margin: 8px 0 0; color: var(--muted); }
.story-row__tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.story-row__tags span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted); font-size: 12px; }

.image-strip { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.image-strip img { width: 100%; height: 320px; object-fit: cover; border-radius: 24px; }
.image-strip__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.image-strip__side img { height: 152px; }

.guide-ribbon { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; align-items: start; }
.guide-ribbon__intro { position: sticky; top: 108px; }
.guide-ribbon__intro h2 { margin: 8px 0 15px; color: var(--ink); font-size: 38px; line-height: 1.16; }
.guide-stack { display: grid; border-top: 1px solid var(--line); }
.guide-teaser { padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-teaser h3 { margin: 8px 0; color: var(--ink); font-size: 22px; }
.guide-teaser h3 a { text-decoration: none; }
.guide-teaser p { color: var(--muted); }

.topic-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    padding: 42px;
    border-radius: 30px;
    background: var(--ink);
    color: rgba(255,255,255,.78);
}
.topic-band h2 { color: #fff; margin: 8px 0 16px; font-size: 40px; line-height: 1.15; }
.topic-band img { width: 100%; height: 260px; object-fit: cover; border-radius: 22px; }
.topic-band a { color: #fff; }

.page-intro { width: var(--content); margin: 0 auto; padding: 58px 0 38px; }
.page-intro h1 { max-width: 900px; font-size: clamp(38px, 5vw, 62px); }
.page-intro p { max-width: 780px; font-size: 18px; color: var(--muted); }
.breadcrumbs { width: var(--content); margin: 0 auto; padding-top: 28px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; color: var(--muted); font-size: 13px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b3a7ad; }
.breadcrumbs a { text-decoration: none; }

.content-grid { width: var(--content); margin: 0 auto; padding: 20px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; align-items: start; }
.content-column { min-width: 0; }
.side-note { position: sticky; top: 110px; border-top: 2px solid var(--peach); padding-top: 18px; }
.side-note h2 { font-size: 19px; color: var(--ink); }
.side-note p, .side-note li { color: var(--muted); font-size: 14px; }
.side-note ul { padding-left: 18px; }
.side-links { display: grid; gap: 9px; margin-top: 18px; }
.side-links a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 9px; }

.prose { color: var(--body); }
.prose h2 { margin: 46px 0 14px; color: var(--ink); font-size: 30px; line-height: 1.25; }
.prose h3 { margin: 30px 0 10px; color: var(--ink); font-size: 22px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 8px 0; }
.prose .lead { font-size: 19px; color: #564a51; }
.note-box { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--gold); background: #fff8ee; border-radius: 0 16px 16px 0; }
.note-box strong { color: var(--ink); }

.article-header { width: var(--reading); margin: 0 auto; padding: 48px 0 18px; }
.article-header h1 { font-size: clamp(36px, 5vw, 58px); }
.article-header__meta { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--muted); font-size: 13px; }
.article-body { width: var(--reading); margin: 0 auto; padding: 10px 0 66px; }
.article-body p { margin: 0 0 22px; font-size: 17px; }
.article-body h2 { margin: 42px 0 15px; color: var(--ink); font-size: 30px; }
.article-body img { width: 100%; max-height: 470px; object-fit: cover; border-radius: 26px; margin: 30px 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.article-tags span { border-radius: 999px; background: var(--paper-2); padding: 6px 10px; font-size: 13px; color: var(--muted); }
.related-reading { width: var(--content); margin: 0 auto; padding: 0 0 70px; }
.related-reading h2 { color: var(--ink); font-size: 32px; }

.category-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.category-index a { display: block; padding: 26px 26px 26px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.category-index a:nth-child(even) { border-left: 1px solid var(--line); padding-left: 26px; }
.category-index strong { display: block; color: var(--ink); font-size: 21px; }
.category-index span { display: block; margin-top: 7px; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; padding: 20px 0; border: 0; background: transparent; color: var(--ink); font-size: 19px; font-weight: 700; display: flex; justify-content: space-between; gap: 20px; text-align: left; }
.faq-item button::after { content: "+"; color: var(--peach); }
.faq-item button[aria-expanded="true"]::after { content: "−"; }
.faq-item div { padding: 0 0 22px; color: var(--muted); }
.faq-item div[hidden] { display: none; }

.search-results { width: var(--content); margin: 0 auto; padding: 26px 0 70px; }
.search-result { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.search-result__type { color: var(--peach); font-size: 13px; font-weight: 700; }
.search-result h2 { margin: 0 0 7px; font-size: 23px; color: var(--ink); }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-panel { padding: 30px; border-radius: 24px; background: var(--paper-2); }
.contact-panel h2 { color: var(--ink); margin-top: 0; }
.contact-panel ul { padding-left: 20px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 58px 0 24px; }
.footer-grid { width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; }
.footer-grid h2 { color: #fff; font-size: 15px; margin: 0 0 13px; }
.footer-grid a { display: block; width: fit-content; color: rgba(255,255,255,.76); text-decoration: none; margin: 7px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-size: 23px !important; font-weight: 800; color: #fff !important; }
.footer-intro p { max-width: 380px; font-size: 14px; }
.footer-bottom { width: var(--content); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 70; border: 0; border-radius: 999px; padding: 10px 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.back-top[hidden] { display: none; }

@media (max-width: 1024px) {
    .header-inner { grid-template-columns: auto auto 1fr auto; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; flex-direction: column; align-items: stretch; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 10px 12px; }
    .hero-editorial { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { min-height: 380px; }
    .hero-visual img { min-height: 380px; }
    .intent-map { grid-template-columns: 1fr 1fr; }
    .intent-item:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .story-row { grid-template-columns: 130px 1fr; }
    .story-row__tags { grid-column: 2; justify-content: flex-start; }
    .content-grid { grid-template-columns: 1fr; }
    .side-note { position: static; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 768px) {
    :root { --content: min(100% - 28px, 1180px); --reading: min(100% - 28px, 760px); }
    .header-inner { min-height: 68px; gap: 10px; grid-template-columns: 1fr auto auto; }
    .brand-mark small { display: none; }
    .brand-mark img { width: 38px; height: 38px; }
    .menu-toggle { grid-column: 2; }
    .search-open { grid-column: 3; font-size: 0; width: 42px; height: 42px; padding: 0; }
    .search-open::after { content: "搜"; font-size: 13px; }
    .hero-editorial { padding: 42px 0; }
    .hero-editorial h1 { font-size: 42px; }
    .hero-visual, .hero-visual img { min-height: 310px; }
    .section { padding: 48px 0; }
    .section-heading { grid-template-columns: 1fr; gap: 12px; }
    .intent-map { grid-template-columns: 1fr; }
    .intent-item, .intent-item + .intent-item, .intent-item:last-child { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
    .intent-item:first-child { border-top: 0; }
    .split-feature { grid-template-columns: 1fr; gap: 26px; }
    .split-feature__image, .split-feature__image img { min-height: 280px; }
    .story-row { grid-template-columns: 1fr; gap: 10px; }
    .story-row__meta { display: flex; gap: 14px; }
    .story-row__tags { grid-column: auto; }
    .image-strip { grid-template-columns: 1fr; }
    .image-strip__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .image-strip img { height: 260px; }
    .image-strip__side img { height: 150px; }
    .guide-ribbon { grid-template-columns: 1fr; }
    .guide-ribbon__intro { position: static; }
    .topic-band { grid-template-columns: 1fr; padding: 28px; }
    .topic-band img { height: 220px; }
    .category-index { grid-template-columns: 1fr; }
    .category-index a:nth-child(even) { border-left: 0; padding-left: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 600px) {
    .search-modal__panel { padding: 28px 20px 22px; }
    .search-form__row { grid-template-columns: 1fr; }
    .hero-editorial h1, .page-intro h1, .article-header h1 { font-size: 36px; }
    .hero-lead, .page-intro p { font-size: 16px; }
    .hero-visual, .hero-visual img { min-height: 250px; }
    .hero-note { left: 14px; right: 14px; bottom: 14px; padding: 16px; }
    .section-heading h2, .split-feature__copy h2, .topic-band h2 { font-size: 30px; }
    .image-strip__side { grid-template-columns: 1fr; }
    .image-strip__side img { height: 190px; }
    .search-result { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
    :root { --content: calc(100% - 22px); --reading: calc(100% - 22px); }
    .brand-mark strong { font-size: 16px; }
    .hero-editorial { padding-top: 34px; }
    .hero-editorial h1 { font-size: 33px; }
    .button-primary, .button-quiet { width: 100%; }
}
