/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    --bg-cream: #FDFCF8;
    --bg-warm: #F5F2E9;
    --gold: #CFA060;
    --gold-light: #E8C99B;
    --gold-dark: #B8864A;
    --dark: #333333;
    --gray: #666666;
    --light-gray: #888888;
    --border: #EEEEEE;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-gold: rgba(207, 160, 96, 0.2);

    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================
   Particles Background
   ============================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ============================
   Main Container
   ============================ */
.invitation {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 1;
    overflow-x: hidden;
    /* 防止内部溢出 */
}

/* ============================
   Decorative Circles
   ============================ */
.top-decoration,
.bottom-decoration {
    position: absolute;
    width: 100%;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.top-decoration {
    top: 0;
    height: 300px;
}

.bottom-decoration {
    bottom: 0;
    height: 200px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(207, 160, 96, 0.1) 100%);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: pulse 8s infinite ease-in-out;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 50px;
    left: -75px;
    animation: pulse 6s infinite ease-in-out 1s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    bottom: -60px;
    left: -40px;
    animation: pulse 7s infinite ease-in-out;
}

.circle-4 {
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: -30px;
    animation: pulse 5s infinite ease-in-out 0.5s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

/* ============================
   Header
   ============================ */
.header {
    text-align: center;
    padding: 60px 0 40px;
}

.header-subtitle {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 16px;
}

.header-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 8px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-location {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gray);
    letter-spacing: 4px;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 24px auto 0;
}

/* ============================
   Opening Info Section
   ============================ */
.opening-info {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(207, 160, 96, 0.05) 50%, transparent 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.opening-label {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.opening-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.opening-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 20px;
}

.date-label {
    font-size: 12px;
    color: var(--light-gray);
    margin-bottom: 8px;
}

.date-value {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--gold);
}

.opening-desc {
    font-size: 15px;
    color: var(--gray);
}

/* ============================
   Benefits Section
   ============================ */
.benefits {
    padding: 20px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
}

.section-title .line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title .line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Benefit Card */
.benefit-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card.premium {
    border: 1px solid rgba(207, 160, 96, 0.3);
}

.benefit-card.premium::before {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 16px;
    right: -30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 36px;
    transform: rotate(45deg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-tag {
    font-size: 12px;
    color: var(--gold);
    background: rgba(207, 160, 96, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
}

.price-desc {
    font-size: 13px;
    color: var(--gray);
}

.card-list {
    list-style: none;
}

.card-list li {
    position: relative;
    font-size: 14px;
    color: var(--gray);
    padding: 8px 0 8px 20px;
    border-bottom: 1px dashed var(--border);
}

.card-list li:last-child {
    border-bottom: none;
}

.card-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.card-list.highlight li::before {
    content: none;
}

.card-list .value {
    color: var(--light-gray);
    font-size: 13px;
}

.card-list .star {
    color: var(--gold);
    margin-right: 8px;
}

/* ============================
   Countdown Section
   ============================ */
.countdown {
    text-align: center;
    padding: 40px 0;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(207, 160, 96, 0.08) 0%, rgba(207, 160, 96, 0.02) 100%);
    border-radius: 20px;
}

.countdown-title {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    min-width: 70px;
}

.time-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.time-label {
    font-size: 12px;
    color: var(--light-gray);
    margin-top: 6px;
}

/* ============================
   CTA Section
   ============================ */
.cta {
    text-align: center;
    padding: 30px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 25px var(--shadow-gold);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px var(--shadow-gold);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.cta-note {
    font-size: 13px;
    color: var(--light-gray);
    margin-top: 16px;
}

/* ============================
   Footer
   ============================ */
.footer {
    text-align: center;
    padding: 40px 0 60px;
}

.footer-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 30px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
}

.footer-info {
    margin-bottom: 24px;
}

.footer-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-info .icon {
    margin-right: 8px;
}

.footer-note {
    font-size: 12px;
    color: var(--light-gray);
}

/* ============================
   Animations
   ============================ */
.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal for cards */
.benefit-card,
.countdown,
.cta,
.footer {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Music Control
   ============================ */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: rgba(255, 59, 48, 0.05);
    /* 浅红色背景 */
    border: 1.5px solid #FF3B30;
    /* 红色边框 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: rgba(207, 160, 96, 0.4);
    transform: scale(1.1);
}

.music-icon {
    font-size: 22px;
    color: #FF3B30;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}

.music-control.playing .music-icon {
    animation: rotateMusic 3s linear infinite !important;
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .music-control {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }

    .music-icon {
        font-size: 20px;
        color: #FF3B30 !important;
    }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 600px) {
    .header-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .opening-title {
        font-size: 24px;
    }

    .gift-cards {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .gift-card {
        min-width: 280px;
        max-width: 90%;
        margin: 0 auto;
    }

    .time-block {
        padding: 8px 10px;
        min-width: 50px;
    }

    .time-value {
        font-size: 22px;
    }
}

/* ============================
   Welcome Gift Section
   ============================ */
.welcome-gift {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(207, 160, 96, 0.12) 0%, rgba(207, 160, 96, 0.04) 100%);
    border-radius: 20px;
    border: 1px dashed var(--gold-light);
}

.gift-header {
    margin-bottom: 24px;
}

.gift-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.gift-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.gift-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.gift-card {
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-4px);
}

.gift-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.gift-card h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
}

.gift-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.gift-card strong {
    color: var(--gold-dark);
    font-weight: 600;
}

.gift-card.highlight-gift {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--white) 0%, rgba(207, 160, 96, 0.05) 100%);
}

.gift-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    animation: pulse-tag 1.5s infinite;
}

@keyframes pulse-tag {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.gift-note {
    font-size: 12px;
    color: var(--light-gray);
}

/* ============================
   Modal Overlay & Modal
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 400px;
    width: 100%;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-warm);
    border-radius: 50%;
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gold-light);
    color: var(--white);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: var(--gray);
}

/* Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--bg-cream);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(207, 160, 96, 0.1);
}

.form-group input::placeholder {
    color: var(--light-gray);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--light-gray);
    margin-top: 16px;
}

/* ============================
   Toast Notification
   ============================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.3);
    z-index: 1001;
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}