:root {
    --ink: #241812;
    --ink-soft: #5b4638;
    --paper: #f5ebd4;
    --paper-deep: #ead8b7;
    --gold: #b88a31;
    --red: #8f2f24;
    --brown: #3b2519;
    --line: rgba(59, 37, 25, .18);
    --shadow: 0 20px 45px rgba(36, 24, 18, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(184, 138, 49, .13), transparent 28rem),
        linear-gradient(120deg, rgba(36, 24, 18, .06) 0 1px, transparent 1px 16px),
        var(--paper);
    line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { height: 8px; background: repeating-linear-gradient(90deg, var(--brown) 0 36px, var(--red) 36px 72px, var(--gold) 72px 108px); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 235, 212, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.brand-seal {
    width: 48px; height: 48px; display: grid; place-items: center;
    color: var(--paper); background: var(--brown); border: 2px solid var(--gold);
    border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(245,235,212,.14);
    font-weight: 800;
}
.brand-mark strong { display: block; font-size: 1.45rem; letter-spacing: .08em; }
.brand-mark small { display: block; color: var(--ink-soft); font-size: .78rem; letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .96rem;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--brown); color: var(--paper); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--brown); margin: 5px 0; }

.hero {
    padding: 70px 0 42px;
    border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 42px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.28; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 4.8rem); letter-spacing: .04em; }
.lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 760px; }
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--brown); background: var(--brown); color: var(--paper);
    font-weight: 700;
}
.btn.secondary { background: transparent; color: var(--brown); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(36,24,18,.14); }
.hero-card {
    background: rgba(255,255,255,.22);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: "";
    position: absolute; inset: 12px;
    border: 1px dashed rgba(59,37,25,.28);
    border-radius: 22px;
    pointer-events: none;
}
.hero-card img { position: relative; width: 100%; }

.section { padding: 64px 0; }
.section.alt { background: rgba(234, 216, 183, .44); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 720px; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: rgba(255, 250, 239, .74);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(36,24,18,.08);
}
.card.compact { padding: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.card img { border-radius: 16px; margin-bottom: 14px; background: var(--paper-deep); border: 1px solid var(--line); }
.index-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.index-list li {
    display: flex; justify-content: space-between; gap: 12px;
    border-bottom: 1px dashed var(--line); padding-bottom: 10px;
}
.index-list span { color: var(--ink-soft); }
.badge {
    display: inline-flex;
    border: 1px solid rgba(143,47,36,.25);
    color: var(--red);
    background: rgba(143,47,36,.06);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .86rem;
    margin: 0 6px 6px 0;
}
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--gold); opacity: .55; }
.timeline-item { position: relative; padding-left: 58px; }
.timeline-item::before {
    content: ""; position: absolute; left: 10px; top: 7px; width: 24px; height: 24px;
    border-radius: 50%; background: var(--paper); border: 5px solid var(--red);
}
.timeline-item h3 { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,250,239,.72); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: rgba(59,37,25,.08); color: var(--brown); }
tr:last-child td { border-bottom: 0; }
.filter-panel {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    padding: 16px; border: 1px solid var(--line); border-radius: 20px;
    background: rgba(255,250,239,.68); margin-bottom: 20px;
}
.filter-panel button, .filter-panel select {
    border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px;
    background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
}
.filter-panel button.is-selected { background: var(--brown); color: var(--paper); }
.note-box {
    border-left: 5px solid var(--red); background: rgba(143,47,36,.06);
    padding: 18px 20px; border-radius: 0 18px 18px 0;
}
.search-board {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    padding: 18px; border-radius: 24px; border: 1px dashed rgba(59,37,25,.34);
    background: rgba(255,250,239,.5);
}
.search-board label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .92rem; }
.search-board input, .search-board select, .contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
    background: rgba(255,255,255,.45); color: var(--ink); font: inherit;
}
.contact-form { display: grid; gap: 14px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.video-thumb { position: relative; }
.video-thumb::after {
    content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(59,37,25,.86); color: var(--paper); border: 2px solid var(--gold);
}
.faq details {
    background: rgba(255,250,239,.72); border: 1px solid var(--line); border-radius: 18px;
    padding: 16px 18px;
}
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--ink-soft); }
.site-footer { background: var(--brown); color: var(--paper); padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 28px; }
.footer-brand { font-size: 1.4rem; font-weight: 800; letter-spacing: .12em; }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 10px; color: #f7d88a; }
.site-footer p { margin: 8px 0; color: rgba(245,235,212,.78); }
.site-footer a { display: block; color: rgba(245,235,212,.88); margin: 6px 0; }
.runtime-line strong { color: #f7d88a; }
.empty-state { display: none; }
.empty-state.is-visible { display: block; }

@media (max-width: 900px) {
    .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid, .search-board { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 16px; right: 16px; top: 90px;
        display: none; flex-direction: column; align-items: stretch;
        background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 14px; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 22px, 1160px); }
    .hero { padding-top: 42px; }
    .section { padding: 44px 0; }
    .brand-mark strong { font-size: 1.2rem; }
    .brand-seal { width: 42px; height: 42px; }
    .card { padding: 18px; }
}
