/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 主容器 */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景爱心动画 */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.heart-1 { top: 10%; left: 10%; animation-delay: 0s; }
.heart-2 { top: 20%; left: 80%; animation-delay: 1s; }
.heart-3 { top: 50%; left: 5%; animation-delay: 2s; }
.heart-4 { top: 70%; left: 90%; animation-delay: 3s; }
.heart-5 { top: 30%; left: 70%; animation-delay: 4s; }
.heart-6 { top: 80%; left: 20%; animation-delay: 5s; }
.heart-7 { top: 60%; left: 50%; animation-delay: 2.5s; }
.heart-8 { top: 40%; left: 30%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-heart {
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 2px 2px 20px rgba(255, 182, 193, 0.8); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* 中央爱心 */
.central-heart-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.central-heart {
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.central-heart:hover {
    transform: scale(1.1);
}

.heart-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 157, 0.4));
}

.heart-path {
    transition: all 0.3s ease;
}

.central-heart:hover .heart-path {
    filter: brightness(1.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 卡片容器 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 300;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 互动区域 */
.interaction-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.love-button {
    background: linear-gradient(45deg, #ff6b9d, #ff8fab);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.love-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
    background: linear-gradient(45deg, #ff8fab, #ffa8cc);
}

.love-button:active {
    transform: translateY(0);
    animation: buttonPulse 0.3s ease;
}

.button-heart {
    font-size: 1.5rem;
    animation: heartSpin 2s linear infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes heartSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 爱心计数器 */
.love-counter {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.counter-number {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ff6b9d;
    margin: 0 0.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px 50px 0 0;
    margin-top: 3rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* 点击爱心特效 */
.click-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    color: #ff6b9d;
    animation: floatUp 2s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .central-heart {
        width: 150px;
        height: 150px;
    }
    
    .header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .main-content {
        padding: 0 1rem;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .love-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========== 高级特效样式 ========== */

/* 粒子画布 */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 爱心雨效果 */
.heart-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.rain-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: rainFall linear infinite;
    opacity: 0.8;
}

@keyframes rainFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 烟花效果 */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1.5s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 魔法闪烁效果 */
.magic-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff, transparent);
    border-radius: 50%;
    animation: sparkleAnimation 2s ease-in-out infinite;
}

@keyframes sparkleAnimation {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* 极光效果 */
.aurora-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 107, 157, 0.1) 50%,
        transparent 70%
    );
    animation: auroraMove 8s ease-in-out infinite;
}

@keyframes auroraMove {
    0%, 100% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0.3;
    }
}

/* 增强的中央爱心3D效果 */
.central-heart {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.central-heart:hover {
    transform: scale(1.1) rotateY(15deg) rotateX(5deg);
    filter: drop-shadow(0 20px 40px rgba(255, 107, 157, 0.6));
}

.heart-svg {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 增强的按钮3D效果 */
.love-button {
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.love-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.love-button:hover::before {
    left: 100%;
}

.love-button:hover {
    transform: translateY(-3px) rotateX(5deg);
    box-shadow: 
        0 15px 40px rgba(255, 107, 157, 0.6),
        0 0 20px rgba(255, 107, 157, 0.4);
}

/* 卡片3D翻转效果 */
.card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-20px) rotateY(10deg) rotateX(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 107, 157, 0.2);
}

/* 标题文字发光效果 */
.main-title {
    text-shadow: 
        0 0 10px rgba(255, 182, 193, 0.8),
        0 0 20px rgba(255, 182, 193, 0.6),
        0 0 30px rgba(255, 182, 193, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(255, 182, 193, 0.8),
            0 0 20px rgba(255, 182, 193, 0.6),
            0 0 30px rgba(255, 182, 193, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 20px rgba(255, 182, 193, 1),
            0 0 30px rgba(255, 182, 193, 0.8),
            0 0 40px rgba(255, 182, 193, 0.6),
            2px 2px 8px rgba(0, 0, 0, 0.5);
    }
}

/* 高级浮动爱心效果 */
.floating-heart {
    animation: advancedFloat 3s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.6));
}

@keyframes advancedFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.6));
    }
    25% {
        transform: translateY(-25px) scale(1.1) rotate(90deg);
        filter: drop-shadow(0 0 15px rgba(255, 107, 157, 0.8));
    }
    50% {
        transform: translateY(-50px) scale(1.2) rotate(180deg);
        filter: drop-shadow(0 0 20px rgba(255, 107, 157, 1));
    }
    75% {
        transform: translateY(-75px) scale(1.1) rotate(270deg);
        filter: drop-shadow(0 0 15px rgba(255, 107, 157, 0.8));
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5) rotate(360deg);
        filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.4));
    }
}

/* 脉冲波效果 */
.pulse-wave {
    position: absolute;
    border: 2px solid rgba(255, 107, 157, 0.6);
    border-radius: 50%;
    animation: pulseWave 2s ease-out infinite;
}

@keyframes pulseWave {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 光束效果 */
.light-beam {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 107, 157, 0.8),
        transparent
    );
    animation: lightBeam 1s ease-out forwards;
}

@keyframes lightBeam {
    0% {
        transform: scaleY(0);
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

/* 星星爆炸效果 */
.star-burst {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 107, 157, 0.8) 50%,
        transparent 100%
    );
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starBurst 1.5s ease-out forwards;
}

@keyframes starBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
}

/* 彩虹轨迹效果 */
.rainbow-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: rainbowTrail 2s ease-out forwards;
}

@keyframes rainbowTrail {
    0% {
        background: #ff0000;
        transform: scale(1);
        opacity: 1;
    }
    16.66% {
        background: #ff8000;
    }
    33.33% {
        background: #ffff00;
    }
    50% {
        background: #00ff00;
    }
    66.66% {
        background: #0080ff;
    }
    83.33% {
        background: #8000ff;
    }
    100% {
        background: #ff0080;
        transform: scale(0);
        opacity: 0;
    }
} 