:root {
    color-scheme: dark;
    --bg: #050505;
    --panel: #0c0c0d;
    --panel-soft: #111113;
    --panel-deep: #070708;
    --row-soft: #151515;
    --row-deep: #0d0d0e;
    --header-gold: #24241f;
    --header-rose: #241a20;
    --header-blue: #17202d;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f7f8ff;
    --muted: #98a4bd;
    --gold: #ffd400;
    --gold-soft: #ffb020;
    --blue: #60a5ff;
    --green: #21e083;
    --rose: #ff6978;
    --shadow: rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        linear-gradient(180deg, #070707 0%, var(--bg) 38%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.page-shell {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 0 18px 36px;
}

.hero {
    padding: 12px 0 18px;
    text-align: center;
}

.eyebrow {
    margin: 4px 0 6px;
    color: var(--muted);
    font-size: 13px;
}

h1 {
    margin: 0;
    color: var(--gold);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

.status-stack {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 10px;
}

.status-layout {
    width: min(100%, 470px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.status-left {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.status-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.status-pill,
.refresh-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.refresh-button {
    cursor: pointer;
}

.refresh-button:hover {
    border-color: rgba(255, 212, 0, 0.5);
    color: var(--gold);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(33, 224, 131, 0.14);
    flex: 0 0 auto;
}

.status-pill--cached .live-dot {
    background: var(--gold-soft);
    box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.16);
}

.status-pill--missing .live-dot {
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(255, 105, 120, 0.15);
}

.status-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

.status-meta strong {
    color: var(--blue);
    font-size: 13px;
}

.status-rate {
    color: var(--blue);
    font-size: 12px;
}

.status-warning {
    margin: 0;
    color: var(--gold-soft);
    font-size: 12px;
}

.status-warning.is-hidden {
    display: none;
}

.market-board {
    display: grid;
    gap: 12px;
}

.market-section {
    overflow: hidden;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 14px 36px var(--shadow);
}

.market-section__title {
    margin: 0;
    padding: 12px 14px;
    background: var(--header-gold);
    color: var(--gold);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.market-section--rose .market-section__title {
    background: var(--header-rose);
    color: var(--gold);
}

.market-section--blue .market-section__title {
    background: var(--header-blue);
    color: var(--gold);
}

.market-list {
    display: grid;
}

.market-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: var(--row-soft);
    border-top: 1px solid var(--line);
}

.market-row:nth-child(even) {
    background: var(--row-deep);
}

.market-row:first-child {
    border-top: 0;
}

.market-row.is-updated .market-price strong {
    color: var(--gold);
    animation: price-flash 0.9s ease;
}

@keyframes price-flash {
    0% {
        color: var(--text);
        text-shadow: none;
    }

    35% {
        color: var(--gold);
        text-shadow: 0 0 14px rgba(255, 212, 0, 0.55);
    }

    100% {
        color: var(--text);
        text-shadow: none;
    }
}

.market-row__left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.market-row h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
}

.market-row h3.is-highlight {
    color: var(--gold);
}

.market-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.market-row__right {
    min-width: 128px;
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.market-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.market-price strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.market-section--blue .market-price strong {
    color: var(--text);
}

.market-price span,
.market-row__right small {
    color: var(--muted);
    font-size: 13px;
}

.market-price__sub {
    color: #d6dcef;
    white-space: nowrap;
}

.market-row__right--inline {
    min-width: 218px;
}

.market-row__right--inline .market-price {
    gap: 3px;
}

.market-row__right--inline .market-price strong {
    font-size: 21px;
}

.wechat-cta,
.empty-state {
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 14px 36px var(--shadow);
}

.wechat-cta {
    position: relative;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.wechat-copy {
    display: grid;
    gap: 2px;
    text-align: right;
}

.wechat-copy strong {
    color: var(--gold);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.wechat-copy span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.wechat-qr-mini {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: var(--panel-deep);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
}

.wechat-qr-mini img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 16px;
}

.empty-state p,
.disclaimer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.wechat-qr {
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: var(--panel-deep);
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.wechat-qr img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 8px;
}

.wechat-qr small {
    color: var(--muted);
    font-size: 11px;
    word-break: break-all;
}

.site-footer {
    margin-top: 18px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
}

.formula {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

.disclaimer {
    display: grid;
    gap: 3px;
}

.icp-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

code {
    color: var(--gold);
}

.price-grid,
.price-card {
    display: none;
}

@media (min-width: 900px) {
    .page-shell {
        width: min(100%, 760px);
        padding-top: 8px;
    }

    h1 {
        font-size: 30px;
    }

    .market-row {
        min-height: 78px;
        padding: 16px 18px;
    }
}

@media (max-width: 520px) {
    .page-shell {
        padding-inline: 12px;
    }

    .market-row {
        min-height: 70px;
        padding: 13px 12px;
    }

    .market-row__right {
        min-width: 116px;
    }

    .market-row__right--inline {
        min-width: 198px;
    }

    .market-price strong {
        font-size: 20px;
    }

    .market-row__right--inline .market-price strong {
        font-size: 18px;
    }

    .market-price__sub {
        font-size: 12px;
    }

    .wechat-cta {
        width: auto;
        padding: 0;
    }

    .wechat-qr {
        min-height: 72px;
        padding: 10px;
    }
}

/* P2 内容页：沿用首页深色视觉，仅增加阅读、FAQ 和计算器所需样式。 */
.content-page .page-shell {
    width: min(100%, 920px);
}

.site-nav {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.site-brand {
    color: var(--gold);
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.site-nav > div {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
}

.site-nav > div a {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.site-nav a:hover,
.breadcrumb a:hover,
.internal-links a:hover,
.home-links a:hover {
    color: var(--gold);
}

.breadcrumb {
    padding: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #596174;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.page-hero {
    padding: 30px 0 22px;
}

.page-hero h1 {
    font-size: 38px;
}

.answer-summary {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    background: var(--panel-soft);
}

.answer-summary strong {
    color: var(--gold);
}

.answer-summary ol {
    margin: 10px 0 0;
    padding-left: 22px;
    color: #d8ddea;
    line-height: 1.8;
}

.content-section,
.home-links {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.content-section h2,
.home-links h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
}

.content-section p,
.content-section li {
    color: #c6ccda;
    font-size: 15px;
    line-height: 1.85;
}

.content-section a {
    color: var(--blue);
    overflow-wrap: anywhere;
}

.price-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.price-summary__item {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.price-summary__item span,
.price-summary__item small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.price-summary__item strong {
    color: var(--gold);
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.data-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 255, 0.22);
    border-radius: 6px;
    background: rgba(96, 165, 255, 0.08);
    color: #c8dbff;
    font-size: 13px;
}

.data-note--cached {
    border-color: rgba(255, 176, 32, 0.28);
    background: rgba(255, 176, 32, 0.08);
    color: #ffe0a3;
}

.data-note--missing {
    border-color: rgba(255, 105, 120, 0.28);
    background: rgba(255, 105, 120, 0.08);
    color: #ffc1c8;
}

.formula-box,
.estimate-warning,
.current-reference {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--panel-soft);
    color: var(--text);
}

.estimate-warning {
    border: 1px solid rgba(255, 176, 32, 0.35);
    color: #ffe0a3;
}

.notice-box {
    padding: 20px;
    border: 1px solid rgba(255, 212, 0, 0.18);
    border-radius: 8px;
    background: rgba(255, 212, 0, 0.04);
}

.plain-list,
.step-list {
    margin: 0;
    padding-left: 22px;
}

.faq-list {
    display: grid;
    gap: 8px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.faq-list summary {
    padding: 15px 16px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.faq-list details p {
    margin: 0;
    padding: 0 16px 16px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.link-grid a {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
    color: #d8ddea;
    text-decoration: none;
}

.home-links {
    margin-top: 18px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.calculator-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.calculator-grid input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: var(--panel-deep);
    color: var(--text);
    font: inherit;
}

.calculator-grid input:focus {
    border-color: var(--gold);
    outline: 2px solid rgba(255, 212, 0, 0.12);
}

.primary-button {
    min-height: 44px;
    margin-top: 14px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--gold);
    color: #161300;
    font-weight: 900;
    cursor: pointer;
}

.calculator-result {
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.helper-text {
    color: var(--muted) !important;
    font-size: 13px !important;
}

.legal-copy h2:not(:first-child) {
    margin-top: 28px;
}

@media (max-width: 700px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 0;
    }

    .site-nav > div {
        width: 100%;
        padding-bottom: 3px;
    }

    .page-hero {
        padding-top: 22px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .price-summary,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .data-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}
