:root {
    --ink: #241710;
    --ink-soft: #4a3327;
    --paper: #f2e3c4;
    --paper-deep: #dcc293;
    --gold: #b88634;
    --red: #8b2d23;
    --brown: #5b3a27;
    --line: rgba(75, 48, 32, .22);
    --shadow: 0 18px 48px rgba(36, 23, 16, .18);
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
    background:
        radial-gradient(circle at top left, rgba(184,134,52,.22), transparent 34rem),
        linear-gradient(120deg, #ecd8ae 0%, #f7ecd3 42%, #e4cda0 100%);
    line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(42, 25, 16, .96);
    color: #f8e6bd;
    box-shadow: 0 10px 30px rgba(36,23,16,.2);
}
.topline { height: 4px; background: linear-gradient(90deg, var(--red), var(--gold), var(--brown)); }
.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .04em; }
.brand-mark {
    width: 46px;
    height: 46px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #ffe3a0;
    background: #26150e;
    box-shadow: inset 0 0 0 4px rgba(184,134,52,.16);
}
.brand-text { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #f7e5bd;
    font-size: .95rem;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(184,134,52,.22); color: #fff3cf; }
.menu-toggle {
    display: none;
    border: 1px solid rgba(248,230,189,.35);
    background: rgba(248,230,189,.1);
    color: #f8e6bd;
    border-radius: 999px;
    padding: 8px 16px;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
section { margin: 46px 0; }
.archive-paper {
    background:
        linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)),
        repeating-linear-gradient(0deg, rgba(91,58,39,.035) 0 1px, transparent 1px 28px),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    position: relative;
}
.hero:before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(91,58,39,.28);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}
.hero-copy, .hero-media { position: relative; z-index: 1; }
.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: .12em;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; color: #23150f; }
h1 { font-size: clamp(2rem, 5vw, 4.25rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
.hero-copy p:not(.eyebrow) { font-size: 1.08rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid var(--brown);
}
.btn.primary { background: var(--red); color: #fff2d0; border-color: var(--red); }
.btn.ghost { background: rgba(255,255,255,.32); color: var(--ink); }
.hero-media {
    padding: 12px;
    border-radius: 22px;
    background: rgba(64,37,22,.08);
    border: 1px solid rgba(91,58,39,.18);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.section-head p { max-width: 660px; color: var(--ink-soft); }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: rgba(255,248,229,.74);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(36,23,16,.08);
}
.card.compact { padding: 16px; }
.card img { border-radius: 14px; margin-bottom: 14px; border: 1px solid rgba(91,58,39,.18); }
.kicker { color: var(--red); font-weight: 800; font-size: .92rem; }
.meta-line { color: var(--brown); font-size: .93rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }

.timeline-list { position: relative; padding-left: 22px; }
.timeline-list:before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 8px; width: 2px; background: rgba(139,45,35,.42); }
.timeline-item { position: relative; margin-bottom: 18px; padding: 16px 18px; background: rgba(255,248,229,.7); border-radius: 16px; border: 1px solid var(--line); }
.timeline-item:before { content: ""; position: absolute; left: -20px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(139,45,35,.16); }
.year { font-size: 1.35rem; font-weight: 900; color: var(--red); }

.index-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: rgba(255,248,229,.75); }
.index-table th, .index-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.index-table th { background: rgba(91,58,39,.12); color: #2c1a12; }
.index-table tr:last-child td { border-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: rgba(184,134,52,.18); border: 1px solid rgba(184,134,52,.32); font-size: .92rem; }

.search-panel { padding: 24px; }
.search-form { display: grid; grid-template-columns: 1fr 160px 160px auto; gap: 12px; }
.search-form input, .search-form select, .search-form button, textarea {
    width: 100%;
    border: 1px solid rgba(91,58,39,.32);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255,248,229,.85);
    color: var(--ink);
    font: inherit;
}
.search-form button { background: var(--brown); color: #fff2d0; font-weight: 800; cursor: pointer; }
.notice {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(139,45,35,.08);
    border: 1px solid rgba(139,45,35,.22);
    color: var(--ink-soft);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.feature-list li:before { content: "◆"; position: absolute; left: 0; color: var(--red); }
.feature-list li:last-child { border-bottom: 0; }

.video-card { position: relative; overflow: hidden; }
.video-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(36,23,16,.86);
    color: #ffe3a0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .86rem;
}

.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid { display: grid; gap: 12px; }
.form-grid button { border: 0; border-radius: 999px; background: var(--red); color: #fff2d0; padding: 12px 18px; font-weight: 900; cursor: pointer; }

.site-footer {
    margin-top: 60px;
    background: #241710;
    color: #f4dfb3;
    border-top: 4px solid var(--gold);
}
.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.footer-grid p { color: rgba(244,223,179,.82); }

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 74px; padding: 14px; border-radius: 18px; background: rgba(42,25,16,.98); box-shadow: var(--shadow); }
    .nav-links.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero, .split, .contact-box { grid-template-columns: 1fr; }
    .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .search-form { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    main { width: min(100% - 22px, 1180px); }
    section { margin: 30px 0; }
    .nav-wrap { padding: 12px 14px; }
    .brand-text { font-size: .95rem; }
    .hero { padding: 26px 18px; }
    .grid.cols-4, .grid.cols-3, .grid.cols-2, .search-form { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .index-table th, .index-table td { padding: 10px; font-size: .92rem; }
}
