*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #111111;
    --deep: #0A0A0A;
    --panel: #1A1A1A;
    --panel-warm: #1F1B14;
    --ivory: #FFF6D6;
    --text: #E8D9A8;
    --muted: #B8A56A;
    --quiet: #8A7A48;
    --yellow: #F5C518;
    --bright: #FFD84A;
    --amber: #C49212;
    --footer: #050505;
    --footer-text: #DCCB8A;
    --line: rgba(245, 197, 24, 0.28);
    --max: 1120px;
    --radius: 12px;
}

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 197, 24, .06), transparent 28rem),
        linear-gradient(180deg, #101010 0%, #111111 60%, #0b0b0b 100%);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 2000;
    padding: 8px 12px;
    background: var(--bright);
    color: #111111;
    border-radius: 8px;
}

.skip-link:focus {
    top: 8px;
}

.curtain-bar {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: 22px;
    background: #080808;
    color: var(--bright);
    border-bottom: 1px solid rgba(245, 197, 24, .18);
    font-size: 12px;
    line-height: 22px;
}

.bar-inner,
.masthead,
.lightboard {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.bar-inner {
    height: 22px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.text-trigger {
    min-height: 44px;
    border: 0;
    padding: 11px 4px;
    margin: -11px -4px;
    background: transparent;
    color: var(--bright);
    cursor: pointer;
}

.stage-header {
    position: fixed;
    z-index: 950;
    top: 22px;
    left: 0;
    right: 0;
    background: #0d0d0d;
}

.masthead {
    height: 60px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.brand-link {
    justify-self: start;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: auto;
    height: 28px;
    object-fit: contain;
}

.brand-fallback {
    color: var(--ivory);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
}

.drawer-trigger,
.guide-link,
.button,
.close-button {
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.drawer-trigger {
    min-width: 72px;
    padding: 0 18px;
    border: 1px solid var(--yellow);
    background: #111111;
    color: var(--ivory);
    cursor: pointer;
}

.guide-link {
    justify-self: end;
    padding: 0 15px;
    color: var(--ivory);
    border: 1px solid transparent;
}

.guide-link:hover,
.guide-link:focus-visible,
.guide-link.is-active {
    border-color: var(--yellow);
    color: var(--bright);
}

.lightboard {
    height: 40px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #1d160c;
    border-bottom: 1px solid rgba(196, 146, 18, .38);
}

.lightboard a {
    min-width: 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 13px;
    padding: 0 18px;
}

.lightboard a:hover,
.lightboard a:focus-visible,
.lightboard a.is-active {
    background: var(--bright);
    color: #111111;
}

.site-main {
    min-height: 70vh;
    padding: 146px 16px 70px;
}

.wrap {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.page-hero {
    padding: 28px 0 22px;
    border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker,
.status,
.number-tag {
    color: var(--bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    color: var(--ivory);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: .02em;
}

h2 {
    color: var(--ivory);
    font-size: 20px;
    line-height: 1.4;
}

h3 {
    color: var(--ivory);
    font-size: 16px;
    line-height: 1.45;
}

p,
li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.lede {
    max-width: 860px;
    margin-bottom: 0;
    color: var(--text);
}

.section {
    padding: 34px 0;
    border-bottom: 1px solid rgba(245, 197, 24, .14);
}

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

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-head p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.note-card,
.timeline-item,
.rule-block,
.faq-item {
    min-width: 0;
    border: 1px solid rgba(245, 197, 24, .2);
    background: linear-gradient(180deg, rgba(31, 27, 20, .94), rgba(24, 24, 24, .96));
    border-radius: var(--radius);
}

.card {
    padding: 16px;
}

.card p:last-child,
.note-card p:last-child,
.rule-block p:last-child {
    margin-bottom: 0;
}

.card a:not(.button),
.text-link {
    color: var(--bright);
    font-weight: 700;
}

.card a:not(.button):hover,
.text-link:hover {
    text-decoration: underline;
}

.media-slot {
    width: 100%;
    min-height: 180px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(245,197,24,.08), transparent 42%),
        #090909;
    border: 1px solid rgba(245, 197, 24, .14);
}

.media-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.banner-slot {
    height: 260px;
    min-height: 260px;
}

.card-media {
    height: 180px;
    min-height: 180px;
}

.section-media {
    height: 200px;
    min-height: 200px;
}

.app-media {
    height: 360px;
    min-height: 240px;
    max-height: 360px;
}

.icon-slot {
    width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    flex: 0 0 48px;
}

.hero-cover {
    padding: 0 0 34px;
}

.hero-cover .media-slot {
    margin-bottom: 16px;
}

.hero-copy {
    max-width: 880px;
}

.hero-copy .brand-name {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .12em;
}

.hero-copy .hero-line {
    margin-bottom: 12px;
    color: var(--ivory);
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button {
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--yellow);
}

.button-primary {
    color: #111111;
    background: linear-gradient(135deg, var(--bright), var(--yellow));
}

.button-secondary {
    background: #111111;
    color: var(--ivory);
}

.button:hover,
.button:focus-visible,
.drawer-trigger:hover,
.drawer-trigger:focus-visible,
.close-button:hover,
.close-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(245,197,24,.16);
    outline: none;
}

.compact-list,
.detail-list,
.check-list {
    margin: 0;
    padding-left: 1.2em;
}

.compact-list li + li,
.detail-list li + li,
.check-list li + li {
    margin-top: 8px;
}

.number-list {
    display: grid;
    gap: 12px;
}

.number-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(245,197,24,.15);
}

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

.number-row .number {
    color: var(--bright);
    font-weight: 800;
    letter-spacing: .08em;
}

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 1px;
    background: rgba(245, 197, 24, .32);
}

.timeline-item {
    position: relative;
    margin-left: 36px;
    padding: 16px 16px 16px 18px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 21px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bright);
    box-shadow: 0 0 0 5px #111111;
}

.timeline-item .status {
    display: inline-flex;
    margin-bottom: 5px;
}

.notice {
    padding: 15px 16px;
    border-left: 3px solid var(--yellow);
    background: #17140e;
    border-radius: 0 10px 10px 0;
}

.notice strong {
    color: var(--ivory);
}

.notice p {
    margin: 0;
}

.rule-block,
.note-card {
    padding: 18px;
}

.rule-block h2,
.note-card h2 {
    margin-bottom: 8px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-line span {
    padding: 2px 8px;
    border: 1px solid rgba(245,197,24,.22);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.app-intro {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.app-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-title-row h2 {
    margin: 0;
}

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

.faq-item {
    padding: 17px 18px;
}

.faq-item h2,
.faq-item h3 {
    margin-bottom: 8px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--footer);
    color: var(--footer-text);
}

.footer-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 30px 16px 80px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    color: var(--ivory);
    font-size: 16px;
}

.footer-brand span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 20px 0;
    border-top: 1px solid rgba(245,197,24,.12);
    border-bottom: 1px solid rgba(245,197,24,.12);
}

.footer-grid h2 {
    margin: 0 0 9px;
    color: var(--bright);
    font-size: 13px;
}

.footer-grid a {
    display: block;
    padding: 3px 0;
    color: var(--footer-text);
    font-size: 13px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
    color: var(--bright);
}

.footer-note,
.copyright {
    margin: 14px 0 0;
    color: var(--footer-text);
    font-size: 13px;
}

.site-drawer,
.search-panel {
    position: fixed;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
}

.site-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 86vw);
    overflow-y: auto;
    transform: translateX(102%);
    background: #0a0a0a;
    border-left: 1px solid var(--line);
}

.site-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
}

.drawer-head {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 66px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ivory);
    font-size: 16px;
    font-weight: 700;
}

.drawer-brand img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.close-button {
    min-width: 64px;
    padding: 0 13px;
    border: 1px solid var(--yellow);
    background: #111111;
    color: var(--ivory);
    cursor: pointer;
}

.drawer-groups {
    padding: 14px;
}

.drawer-groups section + section {
    margin-top: 20px;
}

.drawer-groups h2 {
    margin: 0 0 8px;
    color: var(--bright);
    font-size: 13px;
    letter-spacing: .08em;
}

.drawer-groups a {
    display: block;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 9px;
}

.drawer-groups a:hover,
.drawer-groups a:focus-visible {
    background: #1a170f;
}

.drawer-groups strong {
    display: block;
    color: var(--ivory);
    font-size: 14px;
}

.drawer-groups span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.search-panel {
    top: 82px;
    left: 50%;
    width: min(calc(100% - 32px), var(--max));
    transform: translate(-50%, -12px);
    background: #0d0d0d;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
}

.search-panel.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, 0);
}

.search-inner {
    padding: 18px;
}

.search-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.search-head strong {
    color: var(--ivory);
    font-size: 16px;
}

.search-head span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.search-field {
    display: block;
    margin: 16px 0 12px;
}

.search-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    color: var(--ivory);
    background: #161616;
    border: 1px solid rgba(245,197,24,.28);
    border-radius: 9px;
    outline: none;
}

.search-field input:focus {
    border-color: var(--bright);
    box-shadow: 0 0 0 3px rgba(245,197,24,.12);
}

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

.search-presets a {
    min-height: 44px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    background: #1c180f;
    color: var(--text);
    font-size: 13px;
}

.search-presets a:hover,
.search-presets a:focus-visible {
    background: var(--bright);
    color: #111111;
}

.page-overlay {
    position: fixed;
    z-index: 1100;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, .68);
    transition: opacity .2s ease, visibility .2s ease;
}

.page-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.mobile-dock {
    display: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 820px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .app-intro {
        grid-template-columns: 1fr;
    }

    .app-media {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(48px + env(safe-area-inset-bottom));
    }

    .masthead {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        padding: 0 16px;
    }

    .brand-logo {
        max-width: 116px;
    }

    .brand-fallback {
        font-size: 15px;
    }

    .drawer-trigger {
        min-width: 62px;
        padding: 0 12px;
    }

    .guide-link {
        padding: 0 8px;
        font-size: 13px;
    }

    .lightboard {
        display: none;
    }

    .site-main {
        padding-top: 106px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 28px 0;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: -4px;
    }

    .banner-slot {
        height: 260px;
    }

    .search-panel {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        border-radius: 0;
        transform: translateY(-8px);
        overflow-y: auto;
    }

    .search-panel.is-open {
        transform: translateY(0);
    }

    .search-inner {
        min-height: 100%;
        padding: 18px 16px 78px;
    }

    .search-presets {
        grid-template-columns: 1fr;
    }

    .mobile-dock {
        position: fixed;
        z-index: 900;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid var(--line);
        background: #080808;
    }

    .mobile-dock a {
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--footer-text);
        font-size: 13px;
    }

    .mobile-dock a:hover,
    .mobile-dock a:focus-visible,
    .mobile-dock a.is-active {
        background: var(--bright);
        color: #111111;
    }

    .footer-inner {
        padding-bottom: 76px;
    }

    .number-row {
        grid-template-columns: 54px 1fr;
    }
}
