* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b0000;
    --secondary-color: #d4af37;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-gradient-start: #4a0000;
    --bg-gradient-mid: #8b0000;
    --bg-gradient-end: #c0392b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --transition-speed: 0.3s;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    background: var(--bg-gradient-start);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-start);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-screen p {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 16px;
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
}

.page.prev {
    transform: translateY(-100%);
    opacity: 0;
}

.page-content {
    min-height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover-page .page-content {
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
}

.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.company-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(201, 162, 39, 0.6);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.anniversary-badge {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.badge-circle {
    width: 120px;
    height: 120px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(201, 162, 39, 0.1);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
}

.badge-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
}

.badge-text {
    font-size: 16px;
    color: var(--secondary-color);
    margin-top: 5px;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.sub-title {
    font-size: 24px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.8s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.info-item i {
    font-size: 20px;
    color: var(--secondary-color);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    opacity: 0.7;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-text {
    font-size: 14px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

.purpose-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.purpose-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    animation: slideInRight 0.6s ease both;
}

.purpose-item:nth-child(1) {
    animation-delay: 0.1s;
}

.purpose-item:nth-child(2) {
    animation-delay: 0.2s;
}

.purpose-item:nth-child(3) {
    animation-delay: 0.3s;
}

.purpose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.purpose-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-gradient-mid));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.purpose-icon i {
    font-size: 24px;
    color: var(--secondary-color);
}

.purpose-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.purpose-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.guest-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.guest-category {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease both;
}

.guest-category:nth-child(1) {
    animation-delay: 0.1s;
}

.guest-category:nth-child(2) {
    animation-delay: 0.2s;
}

.guest-category:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-gradient-mid));
}

.category-header i {
    font-size: 24px;
    color: var(--secondary-color);
}

.category-header h3 {
    font-size: 18px;
    color: var(--text-light);
}

.guest-items {
    list-style: none;
    padding: 15px 20px;
}

.guest-items li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
}

.guest-items li:last-child {
    border-bottom: none;
}

.guest-items li:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.detail-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease both;
}

.detail-item:nth-child(1) {
    animation-delay: 0.1s;
}

.detail-item:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 24px;
    color: #fff;
}

.detail-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.detail-date, .detail-time {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.detail-lunar {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.detail-address, .detail-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.thank-you {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.thank-you h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.thank-you p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.company-info {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.footer {
    text-align: center;
    padding: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.music-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: musicPulse 2s ease-in-out infinite;
}

.music-icon.playing {
    animation: musicRotate 3s linear infinite;
}

.music-note {
    font-size: 24px;
    color: var(--secondary-color);
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(201, 162, 39, 0);
    }
}

@keyframes musicRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pagination {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.page-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.page-dot.active {
    background: var(--secondary-color);
    transform: scale(1.5);
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .sub-title {
        font-size: 20px;
    }
    
    .badge-number {
        font-size: 40px;
    }
    
    .badge-circle {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .purpose-item, .guest-category, .detail-item {
        padding: 15px;
    }
    
    .pagination {
        right: 10px;
    }
}

@media (max-width: 375px) {
    .main-title {
        font-size: 24px;
    }
    
    .sub-title {
        font-size: 18px;
    }
    
    .info-item {
        font-size: 14px;
        padding: 10px 15px;
    }
}