:root {
    --forest: #1a4d3e;
    --forest-dark: #0f2f26;
    --gold: #c9a227;
    --gold-light: #e8c96a;
    --cream: #f6f1e6;
    --wood: #8b5a2b;
    --text: #1c2824;
    --muted: #5c6b65;
    --line: rgba(26, 77, 62, 0.15);
    --shadow: 0 18px 40px rgba(15, 47, 38, 0.12);
    --radius: 14px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(180deg, #faf7f0 0%, #eef5f1 40%, #f9f6ef 100%);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
.wrap { width: min(100%, 1040px); margin: 0 auto; }

.site-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}
.site-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 1.5rem 1.15rem;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--forest-dark) 0%, #163d32 100%);
    color: #e8f2ed;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 60;
}
.site-content-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0.35rem;
}
.brand-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 0.65rem;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f3ebe0 48%, #faf7f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.brand-logo {
    width: min(200px, 100%);
    height: auto;
    display: block;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; gap: 0.35rem; padding: 0 0.15rem; }
.brand-text strong {
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: #fff;
    text-align: center;
    line-height: 1.35;
}
.brand-text em {
    font-style: normal;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    width: 100%;
}
.primary-nav { flex: 1; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.primary-nav a {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: #dce8e2;
    border: 1px solid transparent;
}
.primary-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.primary-nav li.is-active a {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(201, 162, 39, 0.45);
}
.nav-shop-link { margin-top: 0.35rem; }
.primary-nav .nav-shop-link a {
    background: linear-gradient(135deg, #c9a227, #e8c96a);
    color: #0f2f26 !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.primary-nav .nav-shop-link a:hover,
.primary-nav .nav-shop-link a:focus-visible {
    background: linear-gradient(135deg, #fff7dc, #f3d56a);
    color: #0a241c !important;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.primary-nav .nav-shop-link.is-active a,
.primary-nav .nav-shop-link.is-active a:hover {
    background: linear-gradient(135deg, #f5e6a8, #d4a820);
    color: #0f2f26 !important;
    border-color: #fff;
}

.nav-about .primary-nav li.is-active a { border-left: 4px solid var(--gold-light); }
.nav-game .primary-nav a { letter-spacing: 0.02em; }
.nav-contact .primary-nav a { font-weight: 500; }

.mobile-topbar {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem clamp(1rem, 3vw, 2rem);
    background: rgba(246, 241, 230, 0.95);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.mobile-menu-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--forest);
}
.mobile-topbar-title {
    font-weight: 700;
    color: var(--forest-dark);
    font-size: 0.95rem;
}
.site-main {
    flex: 1;
    padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
}

/* 竖版截图：保持比例，不裁切 */
.img-frame-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}
.img-frame-portrait img {
    width: auto;
    max-width: 100%;
    max-height: min(360px, 55vh);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 47, 38, 0.12);
    border: 2px solid #fff;
}

.landing-banner {
    padding: 2.5rem 0 1rem;
}
.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 2rem;
    align-items: center;
}
.landing-copy h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: var(--forest-dark);
    margin: 0 0 1rem;
}
.landing-copy p.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.25rem; }
.tagline-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tagline-pills span {
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--forest);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cta-row a.btn-img { display: inline-block; transition: transform .2s; }
.cta-row a.btn-img:hover { transform: translateY(-2px); }
.cta-row a.btn-img img { width: min(220px, 42vw); }
/* 横版 banner（1024×500） */
.banner-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 3px solid #fff;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.section { padding: 2.5rem 0; }
.section-title {
    font-size: 1.65rem;
    color: var(--forest-dark);
    margin: 0 0 0.5rem;
}
.section-sub { color: var(--muted); margin: 0 0 1.5rem; }

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.feature-cards article {
    background: linear-gradient(160deg, #fff, #f3faf6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.feature-cards h3 { margin: 0 0 0.5rem; color: var(--forest); font-size: 1.05rem; }

.about-page { padding-top: 0.25rem; }
.about-glance { margin-bottom: 1rem; background: linear-gradient(135deg, #fff, #f3faf6); }
.about-glance h2 { margin-top: 0; font-size: 1.1rem; color: var(--forest); }
.about-glance ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.about-content .intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    align-items: start;
}
.about-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}
.about-thumbs .img-frame-portrait img {
    max-height: 220px;
    width: 100%;
    object-fit: contain;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}
.value-grid article {
    border-left: 4px solid var(--gold);
    padding: 0.75rem 0 0.75rem 1rem;
    background: rgba(255,255,255,.7);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.icon-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 0.35rem;
}
.icon-row svg { width: 22px; height: 22px; flex-shrink: 0; fill: var(--gold); }

.game-layout { padding-top: 1.5rem; }
.game-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.game-top img.game-mark { width: 120px; border-radius: 18px; box-shadow: var(--shadow); }
.game-cta { margin-top: 1rem; }
.game-shot-strip {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
}
.game-shot-strip .shot-frame {
    flex: 0 0 auto;
    width: min(180px, 38vw);
    scroll-snap-align: start;
    margin: 0;
}
.game-shot-strip .shot-frame img {
    max-height: 300px;
}
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.feature-list article {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
}
.feature-list h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--forest); }
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e7f6ef;
    color: var(--forest);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    padding-top: 1.5rem;
}
.contact-cards {
    display: grid;
    gap: 0.85rem;
}
.contact-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}
.contact-card svg { width: 28px; height: 28px; fill: var(--forest); flex-shrink: 0; }
.contact-visual {
    min-height: 200px;
}
.contact-visual img {
    max-height: 320px;
    box-shadow: var(--shadow);
}

.shop-page { padding-top: 1rem; }
.shop-intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.shop-badge {
    background: var(--forest);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.coin-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}
.coin-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.65rem 0.45rem;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    text-align: center;
    min-width: 0;
}
.coin-card:hover { transform: translateY(-2px); border-color: var(--gold-light); }
.coin-card.is-selected { border-color: var(--gold); background: #fffdf5; }
.coin-card img { width: 48px; margin: 0 auto 0.35rem; }
.coin-card h3 {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    line-height: 1.25;
    color: var(--forest-dark);
    word-break: break-word;
}
.coin-card .price { font-weight: 800; color: var(--gold); font-size: 0.92rem; }
.coin-loading, .coin-error { padding: 1rem; color: var(--muted); grid-column: 1 / -1; }
.coin-retry-btn {
    margin-left: 0.5rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--forest);
}
.coin-grid.is-async-loading {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
}
.coin-skeleton {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--line);
}
.coin-skeleton .sk-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ece8df, #f7f4ec, #ece8df);
    background-size: 200% 100%;
    animation: skShimmer 1.4s linear infinite;
    margin-top: 0.5rem;
}
.coin-skeleton .sk-line.w60 { width: 60%; }
.coin-skeleton .sk-line.w40 { width: 40%; }
.coin-skeleton .sk-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #ece8df;
}
@keyframes skShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.checkout-panel {
    background: linear-gradient(180deg, #fff, #f8fbf9);
    border: 2px solid var(--forest);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.checkout-panel h2 { margin-top: 0; color: var(--forest-dark); }
.form-grid { display: grid; gap: 0.85rem; }
.form-grid label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.form-grid input, .form-grid select {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #cfd8d3;
    font: inherit;
}
.form-grid input.input-readonly {
    background: #eef2f0;
    color: var(--muted);
    cursor: not-allowed;
}
.payment-options { display: grid; gap: 0.45rem; }
.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}
.payment-options label.is-display-only { opacity: 0.55; cursor: default; }
.currency-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.currency-switch button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    font-weight: 600;
}
.currency-switch button.is-active {
    background: var(--forest);
    color: #fff;
    border-color: var(--forest);
}
.legal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.25rem 0 0.15rem;
    padding: 0.9rem 1rem;
    background: #f4faf7;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.legal-check input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: var(--forest);
    cursor: pointer;
}
.legal-check-label {
    display: block;
    flex: 1;
    min-width: 0;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}
.legal-check-title {
    display: block;
    font-weight: 600;
    color: var(--forest-dark);
    margin-bottom: 0.5rem;
}
.legal-check-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}
.legal-check-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(26, 77, 62, 0.2);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    color: var(--forest);
    white-space: nowrap;
}
.legal-check-links a:hover {
    border-color: var(--gold);
    color: var(--forest-dark);
    background: #fffef8;
}
.btn-primary {
    background: linear-gradient(135deg, var(--forest), #276b55);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg { min-height: 1.25rem; color: #b42318; font-size: 0.9rem; }

.delivery-block {
    margin: 2rem 0 1rem;
    padding: 1.25rem;
    background: #fff;
    border-left: 5px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.delivery-block h2 { margin-top: 0; color: var(--forest-dark); font-size: 1.15rem; }
.delivery-block h3 { color: var(--forest); font-size: 1rem; margin-bottom: 0.35rem; }

.confirm-page, .status-page, .error-page-wrap {
    padding: 2rem 0;
    max-width: 720px;
    margin: 0 auto;
}
.status-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.status-card.success { border-color: #8fd4b0; }
.status-card.fail { border-color: #f0a8a8; }
.status-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.detail-list { text-align: left; margin: 1.25rem auto 0; max-width: 420px; }
.detail-list dt { font-weight: 700; color: var(--forest); }
.detail-list dd { margin: 0 0 0.75rem; color: var(--muted); }

.site-footer {
    background: var(--forest-dark);
    color: #dce8e2;
    padding: 1.75rem clamp(1rem, 3vw, 2rem) 1rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    font-size: 0.92rem;
    max-width: 960px;
}
.footer-grid a { color: var(--gold-light); }
.footer-name { font-weight: 700; color: #fff; }
.footer-copy { text-align: center; font-size: 0.82rem; opacity: 0.85; margin-top: 1rem; }

@media (max-width: 900px) {
    .site-shell { grid-template-columns: 1fr; }
    .site-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(280px, 86vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow);
    }
    body.sidebar-open .site-sidebar { transform: translateX(0); }
    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 55;
    }
    .mobile-topbar { display: flex; }
    .nav-toggle { display: none; }
    .landing-grid, .about-content .intro-grid, .contact-layout,
    .feature-cards, .feature-list, .value-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .about-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .coin-grid,
    .coin-grid.is-async-loading {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .about-thumbs { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .coin-grid,
    .coin-grid.is-async-loading {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
