/* Google Fonts removed for stability and speed */

:root {
    --primary-gold: #d4af37;
    --primary-gold-light: #f3e5ab;
    --dark-bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-serif: 'Songti SC', 'SimSun', 'STSong', 'Times New Roman', serif;
    --font-sans: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--text-main);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dynamic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 0, 139, 0.2) 0%, transparent 50%),
        linear-gradient(to bottom, #1a0509, #0f0510);
    z-index: -2;
}

.bg-overlay {
    display: none;
}

/* Floating Hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -50px;
    color: rgba(255, 105, 180, 0.6);
    font-size: 20px;
    animation: floatUp linear forwards;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) scale(1.5);
        opacity: 0;
    }
}

/* Layout */
header {
    text-align: center;
    padding: 20px;
    flex-shrink: 0;
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

footer {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7em;
    flex-shrink: 0;
}

/* Header Styles */
.logo-container h1 {
    font-family: var(--font-serif);
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    margin-bottom: 5px;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: 0.9em;
    color: var(--primary-gold);
    letter-spacing: 6px;
    opacity: 0.8;
    font-weight: 400;
    font-style: italic;
}

.tagline {
    font-family: var(--font-sans);
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.8em;
    letter-spacing: 3px;
    font-weight: 300;
}

/* VIP Card */
.vip-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 30px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 2px;
}

.crown-icon {
    font-size: 1.5em;
    margin-top: 5px;
}

/* Price */
.price-section {
    text-align: center;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.currency {
    font-size: 1.5em;
    color: var(--primary-gold);
    margin-right: 5px;
    font-weight: bold;
}

.amount {
    font-size: 3.5em;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.period {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* Benefits */
.benefits {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
}

.benefits li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
}

.benefits .icon {
    font-size: 1.8em;
    margin-bottom: 8px;
    text-align: center;
}

.benefits .text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits .text strong {
    font-family: var(--font-serif);
    color: var(--primary-gold-light);
    font-size: 1em;
    margin-bottom: 3px;
    font-weight: 500;
}

.benefits .text span {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Action Button */
.btn-join {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-join:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.10) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.92) 100%);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    /* Bottom sheet on mobile */
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.92) 0%, rgba(12, 12, 12, 0.96) 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(243, 229, 171, 0.12);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(212, 175, 55, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
    font-size: 1.25em;
    letter-spacing: 2px;
}

.close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(212, 175, 55, 0.25);
    color: rgba(243, 229, 171, 0.9);
    transform: translateY(-1px);
}

.close-btn:active {
    transform: translateY(0);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-hint {
    margin-top: 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 12px;
    color: rgba(243, 229, 171, 0.95);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.pay-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pay-btn::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -40%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(20deg);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.4s ease;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
    filter: saturate(1.06) brightness(1.03);
}

.pay-btn:hover::after {
    opacity: 1;
    transform: translateX(120%) rotate(20deg);
}

.pay-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.pay-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 14px 32px rgba(0, 0, 0, 0.55);
}

.pay-btn.alipay {
    background: linear-gradient(135deg, #1a7cff 0%, #0f5bd6 100%);
    border-color: rgba(26, 124, 255, 0.35);
}

.pay-btn.wxpay {
    background: linear-gradient(135deg, #10c46a 0%, #079c54 100%);
    border-color: rgba(16, 196, 106, 0.35);
}

.pay-btn.qqpay {
    background: linear-gradient(135deg, #15baf6 0%, #0a86c6 100%);
    border-color: rgba(21, 186, 246, 0.35);
}

.pay-btn.bank {
    background: linear-gradient(135deg, #1b216f 0%, #2b46a2 100%);
    color: white;
    border-color: rgba(111, 126, 255, 0.18);
}

/* Desktop Modal Adjustment */
@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-content {
        border-radius: 24px;
        transform: scale(0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
    }
}

/* PC 大屏幕优化 */
@media (min-width: 900px) {
    header {
        padding: 40px 20px;
    }

    .logo-container h1 {
        font-size: 4em;
        letter-spacing: 12px;
    }

    .subtitle {
        font-size: 1.3em;
        letter-spacing: 10px;
    }

    .tagline {
        font-size: 1.1em;
        margin-top: 15px;
        letter-spacing: 5px;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .logo-container h1 {
        font-size: 2em;
    }

    .vip-card {
        padding: 20px;
    }

    .amount {
        font-size: 3em;
    }

    .benefits li {
        padding: 8px;
    }

    .benefits .icon {
        font-size: 1.5em;
    }

    .benefits .text strong {
        font-size: 0.9em;
    }

    .benefits .text span {
        font-size: 0.8em;
    }
}

@media (max-height: 700px) {
    header {
        padding: 10px;
    }

    .logo-container h1 {
        font-size: 1.8em;
    }

    .tagline {
        display: none;
    }

    .vip-card {
        padding: 15px 20px;
    }

    .amount {
        font-size: 2.5em;
    }

    .benefits {
        margin-bottom: 15px;
    }

    .benefits li {
        margin-bottom: 8px;
        padding: 6px;
    }

    .btn-join {
        padding: 12px;
        font-size: 1.1em;
    }
}