:root {
    --bg: #f4f2ee;
    --card: #ffffff;
    --ink: #1a1814;
    --muted: #6f6a62;
    --line: #ece7df;
    --gold: #a6843d;
    --gold-2: #e6c98a;
    --up: #d64545;
    --down: #148a5a;
    --dark: #141210;
    --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sr, .skip {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip:focus {
    position: fixed; left: 12px; top: 12px;
    width: auto; height: auto; clip: auto;
    background: var(--dark); color: white;
    padding: 8px 12px; z-index: 9;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.top {
    background: var(--dark);
    color: #f6f1e8;
}
.mast { padding-top: 14px; }
.mast-top { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; display: block; }
.brand strong { display: block; font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: 0.01em; }
.brand small { color: rgba(246, 241, 232, 0.55); font-size: 12px; }
.mainnav {
    display: flex; gap: 4px; flex: 1;
    overflow-x: auto;
    margin-left: 8px;
}
.search { margin-left: auto; }
.mainnav a {
    text-decoration: none;
    color: rgba(246, 241, 232, 0.68);
    padding: 10px 12px 14px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: #fff; }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-2); }
.search {
    display: flex; align-items: center; flex: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 4px 0 14px;
}
.search input {
    width: 120px; background: transparent; border: 0;
    padding: 8px 0; outline: none; color: #fff;
}
.search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.search button {
    border: 0; background: transparent; color: var(--gold-2);
    padding: 8px 12px; cursor: pointer;
    white-space: nowrap; flex: none;
}
.mast-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    padding: 0 0 12px;
    color: rgba(246, 241, 232, 0.5);
    font-size: 12px;
}
.mast-meta span { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.12); }

.banner {
    width: min(1120px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 10px 14px;
    background: #fff8ea;
    border: 1px solid #ead9b0;
    border-radius: 12px;
}

main { padding: 22px 0 72px; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0; }
.kicker {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.hero-main h1 {
    margin: 0 0 10px;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.dek { color: var(--muted); max-width: 62ch; margin-top: 0; }

.hero {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 16px;
    align-items: start;
}
.hero-main {
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(230, 201, 138, 0.22), transparent 60%),
        #1b1814;
    color: #f6f1e8;
    border-radius: 20px;
    padding: 28px 32px 22px;
}
.price { margin: 0; line-height: 1; }
.price span, .card strong {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.hero-main .price span { font-size: 64px; color: #fff; }
.price small { margin-left: 6px; font-size: 14px; color: rgba(246, 241, 232, 0.55); font-weight: 500; }
.price-sm span { font-size: 28px; }
.delta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.hero-main .muted { color: rgba(246, 241, 232, 0.5); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat, .muted { color: var(--muted); }
.hero-main .up { color: #ff8f8f; }
.hero-main .down { color: #5ddeaf; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; }
.pills div { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 10px; }
.pills dt { color: rgba(246, 241, 232, 0.5); font-size: 12px; }
.pills dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; }
.hero-side { display: grid; gap: 12px; align-content: start; }
.hero-side article, .chart-card, .card, .calc, .table-wrap, .link-grid a {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(28, 24, 18, 0.04);
}
.hero-side article { border-radius: 16px; padding: 16px 18px; margin: 0; }
.hero-side .kicker { color: var(--gold); margin-bottom: 4px; }

.chart-card { position: relative; margin-top: 16px; padding: 16px 16px 8px; border-radius: 20px; }
.chart-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.chart-bar h2 { margin-right: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; background: #f3f1ec; border-radius: 999px; padding: 3px; }
.seg button {
    border: 0; background: transparent;
    padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 18, 16, 0.12); }
.chart-read { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; min-height: 28px; margin: 10px 4px 0; }
.chart-read strong { flex: none; }
.chart-card canvas { width: 100%; height: 320px; display: block; cursor: crosshair; }
.chart-tall canvas { height: 440px; }
.chart-note, .fine { color: var(--muted); font-size: 13px; }
.chart-tip {
    position: absolute; z-index: 2; pointer-events: none;
    background: var(--dark); color: #f6f1e8;
    padding: 6px 8px; border-radius: 8px;
    font-size: 12px; font-variant-numeric: tabular-nums;
}

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 4px 10px; }
.section-title a, .prose a, .foot a { color: var(--gold); text-decoration: none; }
.section-title a:hover, .prose a:hover, .foot a:hover { color: #7a5e24; }
.page-head { margin-bottom: 18px; }
.subnav { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 2px; }
.subnav a {
    text-decoration: none; white-space: nowrap; color: var(--muted);
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.subnav a[aria-current="page"] { background: var(--dark); color: #fff; border-color: var(--dark); }

.grid-2, .grid-news, .cards, .three, .map-grid, .foot-grid, .article-layout { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2 .opt { display: none; }
.grid-news { grid-template-columns: 1.45fr 0.75fr; align-items: start; margin-top: 16px; }
.grid-news > section, .grid-news > aside {
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 20px 16px;
}
.cards, .three { grid-template-columns: repeat(3, 1fr); }
.map-grid, .foot-grid { grid-template-columns: repeat(4, 1fr); }
.article-layout { grid-template-columns: minmax(0, 68ch) minmax(200px, 280px); align-items: start; }
.card {
    display: flex; flex-direction: column; gap: 2px;
    padding: 16px 18px; text-decoration: none; min-height: 132px; border-radius: 16px;
}
.card:hover { border-color: #e0d3b4; }
.card span, .card small { color: var(--muted); font-size: 13px; }
.card strong { font-size: 28px; line-height: 1.15; }
.three article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.three h3 { margin: 0 0 6px; font-size: 16px; }

.table-wrap { overflow-x: auto; border-radius: 16px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.qtable th, .qtable td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.qtable thead th {
    color: var(--muted); font-weight: 500; font-size: 12px;
    background: #faf9f7; text-align: right;
}
.qtable th:first-child, .qtable td:first-child, .qtable thead th:first-child { text-align: left; }
.qtable tbody th { font-weight: 500; }
.qtable tbody th b { display: block; font-weight: 600; }
.qtable tbody th small { color: var(--muted); font-weight: 400; }
.qtable tbody tr:last-child th, .qtable tbody tr:last-child td { border-bottom: 0; }
.qtable tbody tr:hover td, .qtable tbody tr:hover th { background: #fbfaf7; }
.qtable .empty { text-align: left; color: var(--muted); }
.block { margin-top: 22px; }
.block h2 { margin-bottom: 10px; }

.stories, .qa-list { list-style: none; margin: 0; padding: 0; }
.stories li { padding: 14px 0; border-top: 1px solid var(--line); }
.stories li:first-child { border-top: 0; }
.stories a { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; text-decoration: none; }
.stories strong { font-size: 16px; font-weight: 600; white-space: normal; }
.stories a:hover strong { color: #7a5e24; }
.stories em, .tag { color: var(--muted); font-style: normal; font-size: 12px; white-space: nowrap; }
.tag { background: #f8f1e3; color: #8a6a32; border-radius: 999px; padding: 2px 8px; }
.stories p { margin: 6px 0 0; color: var(--muted); }
.qa-list a { display: block; text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
.qa-list li:first-child a { border-top: 0; }
.qa-list a:hover { color: #7a5e24; }
.qa-full a { display: grid; gap: 4px; }
.qa-full span { color: var(--muted); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-grid a { text-decoration: none; border-radius: 12px; padding: 12px; box-shadow: none; }
.link-grid a:hover { border-color: #e0d3b4; }
.subhead { margin: 22px 0 8px; font-size: 16px; }

.prose { max-width: 68ch; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 10px; }
.side-list {
    position: sticky; top: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.side-list h2 { font-size: 15px; }
.side-list ul { list-style: none; padding: 0; margin: 8px 0 0; }
.side-list li { border-top: 1px solid var(--line); }
.side-list a { display: block; text-decoration: none; padding: 8px 0; }
.side-list a:hover { color: #7a5e24; }

.calc {
    display: flex; flex-wrap: wrap; gap: 16px 22px;
    align-items: end; padding: 18px; margin-bottom: 16px; border-radius: 16px;
}
.calc label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.calc input, .calc select {
    background: #faf9f7; border: 1px solid var(--line); border-radius: 10px;
    padding: 8px 10px; min-width: 148px; outline: none;
}
.calc input:focus, .calc select:focus { border-color: #d7c39a; }
.calc-out { margin: 0; font-size: 15px; }
.calc-out strong { font-size: 26px; font-variant-numeric: tabular-nums; }

.foot { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.foot a, .foot p { display: block; color: var(--muted); font-size: 14px; margin: 6px 0; }
.foot .copy {
    display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
    width: min(1120px, calc(100% - 40px));
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #9a948b;
    font-size: 12px;
    line-height: 1.6;
}
.foot .copy .beian { display: inline; margin: 0; color: inherit; font-size: inherit; text-decoration: none; }
.foot .copy .beian:hover { color: var(--gold); }

.flash { animation: flash 700ms ease; }
@keyframes flash { from { background: #f8f1e3; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
    .flash { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
    .mast-top { flex-wrap: wrap; gap: 8px 16px; }
    .mainnav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; overflow: visible; }
    .mainnav a { padding: 8px 10px; }
    .search { margin-left: auto; }
    .hero, .grid-2, .grid-news, .article-layout, .map-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-side .price-sm span { font-size: 22px; }
    .cards, .three, .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero-main .price span { font-size: 48px; }
    h1 { font-size: 24px; }
    .opt { display: none; }
    .side-list { position: static; }
}
@media (max-width: 560px) {
    .cards, .three, .foot-grid, .pills, .hero-side { grid-template-columns: 1fr; }
    .search { width: 100%; }
    .search input { flex: 1; width: 0; min-width: 0; }
    .mainnav a { padding: 8px 10px 10px; }
}
