:root {
    --paper: #f7f4ec;
    --paper-clean: #fcfaf5;
    --ink: #123142;
    --text: #263a43;
    --muted: #6f7a78;
    --cinnabar: #a93428;
    --cinnabar-dark: #84251e;
    --jade: #287265;
    --gold: #9b7440;
    --line: rgba(18, 49, 66, .16);
    --line-strong: rgba(18, 49, 66, .28);
    --shadow: 0 18px 50px rgba(18, 49, 66, .08);
    --serif: "Songti SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0, rgba(155, 116, 64, .055), transparent 25%),
        var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(252, 250, 245, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.logo-seal {
    width: 38px; height: 44px; border-radius: 5px; background: var(--cinnabar); color: #fff;
    display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px;
    line-height: 1.05; text-align: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.23);
}
.logo-name { display: block; color: var(--ink); font-family: var(--serif); font-size: 27px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; }
.logo-sub { display: block; margin-top: 4px; color: var(--muted); font-family: var(--serif); font-size: 12px; letter-spacing: .22em; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-list a { position: relative; display: block; padding: 25px 0 22px; color: var(--ink); font-size: 15px; font-weight: 600; }
.nav-list a::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 0; height: 2px; background: var(--cinnabar); transition: width .18s, left .18s; }
.nav-list a:hover::after, .nav-list a.on::after { left: 0; width: 100%; }
.nav-list a.on { color: var(--cinnabar); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { min-height: 430px; border-bottom: 1px solid var(--line); background-color: var(--paper-clean); overflow: hidden; }
.hero .container { position: relative; min-height: 430px; display: flex; align-items: center; }
.hero-art { position: absolute; z-index: 0; top: 0; right: min(-10vw, -40px); width: 78%; height: 100%; object-fit: cover; object-position: 75% center; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; width: 58%; padding: 58px 0 62px; }
.hero h1 { max-width: 680px; color: var(--ink); font-family: var(--serif); font-size: clamp(44px, 5vw, 66px); line-height: 1.18; letter-spacing: .06em; }
.hero .lead { max-width: 650px; margin-top: 24px; color: #435961; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 26px; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font-size: 15px; font-weight: 700; transition: transform .16s, background .16s, color .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--cinnabar); background: var(--cinnabar); color: #fff; }
.btn-primary:hover { background: var(--cinnabar-dark); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.section { padding: 78px 0; }
.section-alt { background: rgba(252,250,245,.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-title { color: var(--ink); font-family: var(--serif); font-size: clamp(31px, 3vw, 42px); line-height: 1.25; letter-spacing: .08em; }
.section-desc { margin-top: 8px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--cinnabar); font-size: 14px; font-weight: 700; border-bottom: 1px solid rgba(169,52,40,.3); }
.text-link:hover { border-bottom-color: var(--cinnabar); }
.ornament-title { text-align: center; }
.ornament-title::before, .ornament-title::after { content: ""; display: inline-block; width: clamp(50px, 9vw, 150px); height: 1px; margin: 0 24px; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-title::after { background: linear-gradient(90deg, var(--gold), transparent); }

.table-wrap { overflow: hidden; background: var(--paper-clean); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
th { padding: 15px 18px; background: var(--ink); color: #f8f5ec; text-align: left; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; font-weight: 600; }
td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(155,116,64,.06); }
.sv-name { color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 700; }
.sv-name small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 400; }
.sv-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 700; }
.tag-g { color: var(--jade); }
.tag-b { color: var(--cinnabar); }
.tag-v, .tag-p { color: var(--gold); }
.tag-n { color: var(--muted); }
.sv-go { color: var(--cinnabar); font-weight: 700; white-space: nowrap; }

.ranking-ledger { border-top: 2px solid var(--ink); }
.rank-row { display: grid; grid-template-columns: 90px 1.3fr 1fr auto; align-items: center; gap: 24px; min-height: 104px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.rank-num { color: var(--cinnabar); font-family: Georgia, serif; font-size: 48px; line-height: 1; font-style: italic; }
.rank-name { color: var(--ink); font-family: var(--serif); font-size: 23px; font-weight: 700; }
.rank-meta { color: var(--muted); font-size: 13px; }
.rank-score { color: var(--gold); font-weight: 700; text-align: right; }
.heat-track { width: 130px; height: 5px; margin-top: 8px; background: rgba(18,49,66,.1); }
.heat-track span { display: block; height: 100%; background: var(--cinnabar); }

.guide-index { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.guide-card { min-height: 205px; padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(252,250,245,.56); transition: background .16s; }
.guide-card:hover { background: var(--paper-clean); }
.guide-no { color: var(--cinnabar); font-family: Georgia, serif; font-size: 13px; }
.guide-card h3 { margin-top: 35px; color: var(--ink); font-family: var(--serif); font-size: 21px; }
.guide-card p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.guide-card .text-link { display: inline-block; margin-top: 16px; }

.article-shell { max-width: 900px; margin: 0 auto; }
.article-shell h2 { color: var(--ink); font-family: var(--serif); font-size: clamp(30px,3vw,42px); line-height: 1.35; }
.article-shell h3 { margin-top: 34px; color: var(--cinnabar); font-family: var(--serif); font-size: 22px; }
.article-shell p { margin-top: 16px; color: #42545a; }
.article-shell ul { margin-top: 16px; }
.article-shell li { position: relative; margin: 10px 0; padding-left: 22px; }
.article-shell li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 8px; background: var(--cinnabar); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.trust-item { padding: 32px 30px 10px 0; }
.trust-item + .trust-item { padding-left: 30px; border-left: 1px solid var(--line); }
.trust-item b { display: block; color: var(--ink); font-family: var(--serif); font-size: 22px; }
.trust-item b::before { content: ""; display: inline-block; width: 3px; height: 17px; margin-right: 12px; background: var(--cinnabar); vertical-align: -1px; }
.trust-item p { margin-top: 10px; color: var(--muted); font-size: 14px; }

.faq { max-width: 900px; margin: 0 auto; border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 22px 0; border: 0; background: transparent; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; text-align: left; cursor: pointer; font-weight: 700; }
.faq-q .arrow { color: var(--cinnabar); transition: transform .2s; }
.faq-item.open .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 36px 22px 0; color: var(--muted); font-size: 14px; }

.breadcrumb { border-bottom: 1px solid var(--line); background: rgba(252,250,245,.74); }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--cinnabar); }
.breadcrumb span { margin: 0 7px; }
.page-banner { position: relative; overflow: hidden; padding: 68px 0 72px; border-bottom: 1px solid var(--line); text-align: center; background: var(--paper-clean); }
.page-banner::before, .page-banner::after { content: "山"; position: absolute; bottom: -50px; color: rgba(18,49,66,.035); font-family: var(--serif); font-size: 220px; line-height: 1; }
.page-banner::before { left: 3%; }.page-banner::after { content: "水"; right: 3%; }
.page-banner h1 { position: relative; color: var(--ink); font-family: var(--serif); font-size: clamp(38px,4vw,54px); letter-spacing: .12em; }
.page-banner p { position: relative; margin-top: 10px; color: var(--muted); }

.filters { margin-bottom: 30px; border: 1px solid var(--line); background: rgba(252,250,245,.72); padding: 10px 22px; }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filter-row:last-child { border-bottom: 0; }
.filter-label { width: 80px; flex: 0 0 auto; color: var(--ink); font-weight: 700; font-size: 13px; }
.filter-tags { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.filter-tag { padding: 3px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.filter-tag:hover, .filter-tag.active { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.server-list { border-top: 2px solid var(--ink); }
.date-label { padding: 16px 0 8px; color: var(--cinnabar); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.date-label .count { margin-left: 8px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 400; }
.server-item { padding: 20px 4px; border-bottom: 1px solid var(--line); }
.item-grid { display: grid; grid-template-columns: minmax(260px,1fr) 190px 110px; align-items: center; gap: 24px; }
.item-info h4 { color: var(--ink); font-family: var(--serif); font-size: 20px; }
.item-tag { margin-left: 8px; color: var(--cinnabar); font-family: var(--sans); font-size: 12px; }
.item-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: 13px; }
.item-time { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 14px; }
.item-action { justify-self: end; }
.btn-mini { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 17px; border: 1px solid var(--cinnabar); border-radius: 4px; color: var(--cinnabar); font-size: 13px; font-weight: 700; }
.btn-mini:hover { background: var(--cinnabar); color: #fff; }

.rank-section + .rank-section { margin-top: 64px; }
.rank-section-head { margin-bottom: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.rank-section-head h2 { color: var(--ink); font-family: var(--serif); font-size: 30px; }
.rank-section-head p { color: var(--muted); font-size: 13px; }

.guide-article { max-width: 900px; margin: 0 auto 30px; padding: 34px 0 42px; border-bottom: 1px solid var(--line); }
.guide-article:last-child { border-bottom: 0; }
.guide-article h2 { color: var(--ink); font-family: var(--serif); font-size: clamp(25px,3vw,34px); }
.guide-article p { margin-top: 14px; }
.guide-article ul { margin-top: 14px; }
.guide-article li { margin: 9px 0; padding-left: 20px; position: relative; }
.guide-article li::before { content: ""; position: absolute; left: 1px; top: 12px; width: 7px; height: 7px; background: var(--cinnabar); }
.notice { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--cinnabar); background: rgba(169,52,40,.045); color: #4f5d60; }

.about-grid { max-width: 940px; margin: 0 auto; }
.about-block { display: grid; grid-template-columns: 190px 1fr; gap: 50px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.about-block:last-child { border-bottom: 0; }
.about-block h2 { color: var(--ink); font-family: var(--serif); font-size: 27px; }
.about-copy p + p { margin-top: 14px; }
.about-copy ul li { position: relative; margin: 8px 0; padding-left: 20px; }
.about-copy ul li::before { content: ""; position: absolute; left: 1px; top: 12px; width: 7px; height: 7px; background: var(--cinnabar); }

.site-footer { padding-top: 52px; background: var(--ink); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.site-footer h4 { margin-bottom: 12px; color: #fff; font-family: var(--serif); font-size: 19px; }
.site-footer p, .site-footer a { font-size: 13px; }
.site-footer li { margin: 7px 0; }
.site-footer a:hover { color: #fff; }
.health-note { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; text-align: center; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); text-align: center; font-size: 12px; }

@media (max-width: 900px) {
    .nav-list { gap: 20px; }
    .hero-copy { width: 66%; }
    .hero-art { right: -28%; width: 102%; opacity: .72; }
    .guide-index { grid-template-columns: repeat(2, 1fr); }
    .rank-row { grid-template-columns: 60px 1fr auto; }
    .rank-row .rank-meta { grid-column: 2; }
    .item-grid { grid-template-columns: 1fr auto; }
    .item-action { grid-row: 1 / 3; grid-column: 2; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, 1200px); }
    .nav { height: 68px; }
    .logo-name { font-size: 22px; }
    .logo-sub { display: none; }
    .logo-seal { width: 34px; height: 38px; }
    .nav-toggle { display: block; }
    .nav-list { position: fixed; left: 0; right: 0; top: 68px; display: none; padding: 8px 16px 18px; background: var(--paper-clean); border-bottom: 1px solid var(--line); }
    .nav-list.open { display: block; }
    .nav-list a { min-height: 46px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
    .nav-list a::after { display: none; }
    .hero, .hero .container { min-height: auto; }
    .hero .container { display: block; padding-bottom: 250px; }
    .hero-copy { width: 100%; padding: 58px 0 48px; }
    .hero-art { top: auto; right: -24%; bottom: 0; width: 130%; height: 300px; opacity: .9; object-position: 72% center; }
    .section { padding: 58px 0; }
    .section-head { align-items: start; flex-direction: column; gap: 10px; }
    .ornament-title::before, .ornament-title::after { width: 35px; margin: 0 10px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item, .trust-item + .trust-item { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .about-block { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
    .filter-row { align-items: flex-start; }
}

@media (max-width: 560px) {
    .hero .container { padding-bottom: 210px; }
    .hero h1 { font-size: 39px; }
    .hero-art { right: -34%; height: 250px; width: 150%; }
    .guide-index { grid-template-columns: 1fr; }
    .guide-card { min-height: 170px; }
    .guide-card h3 { margin-top: 22px; }
    .rank-row { grid-template-columns: 42px 1fr; gap: 12px; }
    .rank-num { font-size: 36px; }
    .rank-score { grid-column: 2; text-align: left; }
    .item-grid { grid-template-columns: 1fr; gap: 12px; }
    .item-action { grid-column: 1; grid-row: auto; justify-self: start; }
    .filter-row { display: block; }
    .filter-label { margin-bottom: 6px; }
}

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