:root {
    --ink: #2b211b;
    --ink-soft: #4a3326;
    --paper: #efe0bd;
    --paper-light: #fff7df;
    --gold: #d6a94d;
    --red: #7a2c27;
    --brown: #6b3b28;
    --shadow: 0 18px 45px rgba(33, 22, 15, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 10%, rgba(214,169,77,.18), transparent 28rem),
        linear-gradient(135deg, #f5e8c8 0%, #e9d5aa 50%, #caa977 100%);
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topline { height: 6px; background: linear-gradient(90deg, var(--red), var(--gold), var(--ink)); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(43, 33, 27, .96);
    color: var(--paper-light);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gold); color: var(--ink);
    font-weight: 900; box-shadow: inset 0 0 0 4px rgba(43,33,27,.25);
}
.brand-text strong { display: block; font-size: 20px; letter-spacing: .08em; }
.brand-text em { display: block; font-size: 12px; color: #e7c97b; font-style: normal; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #f6e8c4;
    font-size: 14px;
    border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-color: rgba(214,169,77,.6); background: rgba(214,169,77,.13); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--gold); color: var(--paper-light); background: transparent; border-radius: 10px; padding: 7px 10px; font-size: 20px; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 68px; }
.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 34px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background: rgba(255,247,223,.78);
    border: 1px solid rgba(74,51,38,.18);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(122,44,39,.32);
    border-radius: 24px;
    pointer-events: none;
}
.kicker { color: var(--red); font-weight: 700; letter-spacing: .16em; font-size: 14px; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5vw, 62px); letter-spacing: .04em; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: #4f382a; }
.hero-figure { padding: 10px; }
.hero-figure img { border-radius: 24px; box-shadow: 0 22px 45px rgba(43,33,27,.28); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 18px;
    border-radius: 999px; font-weight: 700;
    border: 1px solid var(--red);
}
.btn.primary { background: var(--red); color: var(--paper-light); }
.btn.secondary { background: transparent; color: var(--red); }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head p { max-width: 660px; color: #5a4232; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card, .feature-card, .archive-card, .note-card, .faq-item {
    background: rgba(255,247,223,.82);
    border: 1px solid rgba(74,51,38,.16);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(43,33,27,.1);
}
.card img, .feature-card img, .archive-card img { border-radius: 16px; margin-bottom: 18px; background: var(--paper); }
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
    content: "";
    position: absolute;
    right: -40px; bottom: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(214,169,77,.2);
}
.tag-row, .filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag, .filter-pill {
    border: 1px solid rgba(122,44,39,.38);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(239,224,189,.65);
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
}
.timeline-list { position: relative; padding-left: 28px; }
.timeline-list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 4px; background: var(--red); border-radius: 8px; }
.timeline-item { position: relative; margin-bottom: 22px; padding: 20px 22px; background: rgba(255,247,223,.8); border-radius: 20px; border: 1px solid rgba(74,51,38,.15); }
.timeline-item::before { content: ""; position: absolute; left: -27px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 4px solid var(--red); }
.index-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: rgba(255,247,223,.88); box-shadow: var(--shadow); }
.index-table th, .index-table td { padding: 16px; border-bottom: 1px solid rgba(74,51,38,.15); text-align: left; vertical-align: top; }
.index-table th { background: var(--ink); color: var(--paper-light); }
.index-table tr:last-child td { border-bottom: 0; }
.notice {
    border-left: 6px solid var(--red);
    background: rgba(255,247,223,.82);
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(43,33,27,.1);
}
.search-panel { background: var(--ink); color: var(--paper-light); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.search-panel img { border-radius: 20px; }
.input-like { background: rgba(255,247,223,.12); border: 1px solid rgba(214,169,77,.45); padding: 14px 16px; border-radius: 14px; color: #f7e7c0; }
.domain-pill { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(214,169,77,.18); border: 1px solid rgba(214,169,77,.48); color: #f7e7c0; word-break: break-all; }
.site-footer { background: var(--ink); color: var(--paper-light); padding: 42px 20px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 18px; color: var(--gold); }
.site-footer a { color: #f6dfa5; }
.small { font-size: 13px; color: rgba(255,247,223,.76); }
.badge { display: inline-block; color: var(--paper-light); background: var(--red); padding: 4px 9px; border-radius: 999px; font-size: 12px; margin-bottom: 10px; }
.quote { font-size: 22px; color: var(--red); border-left: 5px solid var(--gold); padding-left: 18px; }
.page-hero { padding: 38px; border-radius: 28px; background: rgba(255,247,223,.82); box-shadow: var(--shadow); }
.page-hero .lead { max-width: 820px; }
.article-list { display: grid; gap: 18px; }
.video-frame { aspect-ratio: 16/9; border-radius: 20px; background: linear-gradient(135deg, var(--ink), var(--brown)); display: grid; place-items: center; color: var(--paper-light); border: 5px solid var(--gold); margin-bottom: 16px; }
.play-symbol { width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 34px; padding-left: 5px; }
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 920px) {
    .hero, .search-panel, .contact-box { grid-template-columns: 1fr; }
    .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .section-head { display: block; }
}
@media (max-width: 720px) {
    .nav-wrap { flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .main-nav { display: none; width: 100%; margin-left: 0; padding-top: 10px; }
    .main-nav.open { display: grid; grid-template-columns: 1fr 1fr; }
    .hero, .page-hero { padding: 28px 22px; }
    .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
    .index-table, .index-table tbody, .index-table tr, .index-table td, .index-table th { display: block; width: 100%; }
    .index-table thead { display: none; }
    .index-table td::before { content: attr(data-label); display: block; color: var(--red); font-weight: 700; margin-bottom: 4px; }
}
