:root {
    --brand-gold: #F5C518;
    --brand-gold-deep: #E6B800;
    --accent-blue: #1677FF;
    --ok: #16A34A;
    --alert: #DC2626;
    --ink: #1A1A1A;
    --ink-soft: #5C6370;
    --ink-mute: #8B919A;
    --surface: #FFFFFF;
    --canvas: #F0F2F5;
    --line: #E8EAED;
    --line-strong: #D0D4DA;
    --radius: 14px;
    --radius-sm: 10px;
    --elevate: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.06);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    display: contents;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ===== Header ===== */
.site-header {
    background:
        linear-gradient(180deg, rgba(245, 197, 24, 0.88) 0%, rgba(245, 197, 24, 0.72) 55%, rgba(245, 197, 24, 0.45) 100%),
        url('images/6_2143_25c1650d-6c59-4d99-80a8-04639e1416b6_8589489.jpg') center / cover no-repeat;
    padding: 36px 0 88px;
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, transparent, var(--canvas));
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 1;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    background: var(--surface);
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4A3208;
    line-height: 1.25;
}

.brand-tagline {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #6B4A12;
    letter-spacing: 0.5px;
}

/* ===== Main panel ===== */
.page-shell {
    margin-top: -52px;
    padding-bottom: 48px;
    position: relative;
    z-index: 2;
}

.checkout-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-block {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--elevate);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #FFF6D6;
    color: #9A7200;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

/* ===== UID field ===== */
.field-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    background: #FAFBFC;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field-input::placeholder {
    color: var(--ink-mute);
    font-weight: 500;
}

.field-input:focus {
    border-color: var(--brand-gold);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

.field-tip {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ===== Packages ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.package-card {
    position: relative;
    cursor: pointer;
}

.package-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 18px 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.package-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    font-style: normal;
}

.package-coins {
    font-size: 11px;
    font-style: normal;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.35;
}

.gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF6B4A 0%, #FF3B5C 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 59, 92, 0.28);
    transform: scale(1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.gift-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.gift-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.package-card:hover .gift-badge {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.4);
    filter: brightness(1.05);
}

.package-card:hover .gift-icon {
    animation: gift-wiggle 0.45s ease;
}

.package-card input:checked + .package-face {
    border-color: var(--brand-gold-deep);
    background: linear-gradient(180deg, #FFFDF5 0%, #FFF8E0 100%);
    box-shadow: 0 4px 14px rgba(230, 184, 0, 0.18);
    transform: translateY(-2px);
}

.package-card input:checked + .package-face .gift-badge {
    animation: gift-pop 0.45s ease;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.45);
}

@keyframes gift-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-6deg); }
}

@keyframes gift-pop {
    0% { transform: scale(0.86); }
    55% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

.hot-tag {
    position: absolute;
    top: -7px;
    right: -3px;
    z-index: 2;
    background: var(--alert);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* ===== Payment channels ===== */
.channel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.channel-card {
    position: relative;
    cursor: pointer;
}

.channel-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.channel-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.channel-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.channel-card input:checked + .channel-face {
    border-color: var(--accent-blue);
    background: #F3F8FF;
    color: var(--accent-blue);
}

.desktop-action {
    margin-top: 24px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #FFD84D 0%, var(--brand-gold) 100%);
    color: #3D2E00;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
    transition: transform 0.15s, filter 0.15s;
}

.action-btn:hover {
    filter: brightness(1.03);
}

.action-btn:active {
    transform: scale(0.985);
}

/* ===== Notice ===== */
.notice-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.notice-list {
    flex: 1;
    list-style: none;
    background: #FFFBF0;
    border: 1px solid #F0E0A8;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 13px;
    color: #7A5C10;
    line-height: 1.75;
}

.notice-list li + li {
    margin-top: 6px;
}

.notice-list strong {
    color: #5C4308;
}

.download-box {
    flex-shrink: 0;
    width: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFFBF0;
    border: 1px solid #F0E0A8;
    border-radius: var(--radius-sm);
    padding: 14px 12px;
}

.download-box p {
    font-size: 12px;
    font-weight: 700;
    color: #7A5C10;
}

.download-box img {
    width: 96px;
    height: auto;
    border-radius: 8px;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0;
    background:
        url('images/6_2143_25c1650d-6c59-4d99-80a8-04639e1416b6_8589489.jpg') center / cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== FAQ ===== */
.faq-entry {
    border-bottom: 1px solid var(--line);
}

.faq-entry:last-child {
    border-bottom: none;
}

.faq-entry summary {
    list-style: none;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    outline: none;
    color: var(--ink);
}

.faq-entry summary::-webkit-details-marker {
    display: none;
}

.faq-entry summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ink-mute);
    border-bottom: 2px solid var(--ink-mute);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-entry[open] summary::after {
    transform: rotate(-135deg);
}

.faq-entry p {
    padding: 0 0 14px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.75;
}

/* ===== Mobile sticky bar ===== */
.sticky-checkout {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
}

.sticky-label {
    display: block;
    font-size: 11px;
    color: var(--ink-mute);
}

.sticky-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--alert);
    font-variant-numeric: tabular-nums;
}

.sticky-value .currency {
    font-size: 14px;
    margin-right: 1px;
}

.sticky-btn {
    width: auto;
    min-width: 140px;
    height: 46px;
    padding: 0 28px;
    font-size: 15px;
    border-radius: 23px;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 8px;
    padding: 40px 0 56px;
    background: linear-gradient(180deg, transparent 0%, #E8EBF0 12%, #E4E8ED 100%);
    color: var(--ink-mute);
    font-size: 12px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #FFF6D6;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 16px;
    height: 16px;
    fill: #9A7200;
}

.trust-item strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.3;
}

.trust-item p {
    margin-top: 3px;
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 4px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.footer-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    margin: 0 8px;
    font-size: 12px;
}

.footer-nav a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.footer-meta {
    margin-bottom: 14px;
    line-height: 1.8;
}

.footer-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}

.footer-domain,
.footer-license,
.footer-copy {
    color: var(--ink-mute);
}

.footer-disclaimer {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 4px;
    font-size: 11px;
    color: #A0A6AF;
    line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .site-header {
        padding: 28px 0 76px;
    }

    .sticky-checkout {
        display: flex;
    }

    .desktop-action {
        display: none;
    }

    body {
        padding-bottom: 84px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .panel-block {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 19px;
    }

    .package-grid,
    .gallery-grid {
        gap: 10px;
    }

    .package-face {
        min-height: 80px;
        padding: 14px 6px;
    }

    .package-price {
        font-size: 18px;
    }

    .notice-layout {
        flex-direction: column;
    }

    .download-box {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .download-box img {
        width: 72px;
    }

    .footer-trust {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-item {
        padding: 12px;
    }

    .site-footer {
        padding: 28px 0 44px;
    }

    .footer-nav a {
        margin: 0 6px;
    }
}
