:root {
    color-scheme: light;
    --page: #f3f3f1;
    --paper: #fffdfa;
    --paper-soft: #fdfaf2;
    --ink: #374151;
    --text: #4b5563;
    --muted: #6b7280;
    --line: #e6e4dd;
    --accent: #d4a574;
    --accent-dark: #a87543;
    --shadow: 0 18px 45px rgba(55, 65, 81, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #7f542c;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(230, 228, 221, 0.9);
    background: rgba(253, 250, 242, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(100% - 32px, 1040px);
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e8dfc4;
}

.header-link {
    font-size: 14px;
    text-decoration: none;
}

.page-shell {
    width: min(100% - 32px, 880px);
    margin: 0 auto;
    padding: 72px 0 88px;
}

.page-hero {
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 12px;
    border: 1px solid rgba(212, 165, 116, 0.45);
    border-radius: 999px;
    background: var(--paper-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.35;
}

h1 {
    margin: 18px 0 12px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(36px, 7vw, 56px);
    letter-spacing: 0.04em;
}

h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

h3 {
    margin: 26px 0 10px;
    font-size: 18px;
}

p,
ul {
    margin-top: 0;
}

.lead {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.policy-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.policy-card,
.platform-list {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.policy-card {
    padding: clamp(24px, 5vw, 48px);
}

.policy-section {
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.policy-section:first-child {
    padding-top: 0;
}

.policy-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 24px;
    padding: 20px;
    border-radius: 16px;
    background: var(--paper-soft);
}

.toc a {
    font-size: 14px;
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--paper-soft);
    color: var(--ink);
    font-weight: 700;
}

tr:last-child td {
    border-bottom: 0;
}

.platform-list {
    overflow: hidden;
}

.platform-row {
    min-height: 112px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.platform-row:last-child {
    border-bottom: 0;
}

a.platform-row:hover {
    background: var(--paper-soft);
}

.platform-row h2 {
    margin: 0 0 4px;
}

.platform-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.platform-action {
    flex: 0 0 auto;
    color: var(--accent-dark);
    font-weight: 700;
}

.platform-row.is-disabled {
    background: #f7f7f5;
}

.platform-row.is-disabled .platform-action {
    color: #9ca3af;
}

.blue-link {
    color: #2563eb;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.blue-link:hover {
    color: #1d4ed8;
}

.qr-card {
    width: min(100%, 360px);
    margin: 18px 0 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper-soft);
    text-align: center;
}

.qr-card img {
    width: min(100%, 240px);
    height: auto;
    border-radius: 14px;
    background: #fff;
}

.qr-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.notice {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--paper-soft);
}

.site-footer {
    padding: 28px 16px 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.site-footer a {
    margin: 0 8px;
}

@media (max-width: 640px) {
    .page-shell {
        padding-top: 48px;
    }

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

    .platform-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .policy-card {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .platform-row {
        transition: none;
    }
}
