/* ===== 梦幻星空风 ===== */
:root {
    --deep-blue: #0A1128;
    --space-purple: #1E1B3C;
    --cosmic-purple: #7B68EE;
    --pink: #FF69B4;
    --gold: #FFD700;
    --cyan: #00F5FF;
    --white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--deep-blue);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.glow {
    text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* ===== 导航 ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 104, 238, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    color: var(--cyan);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cyan);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ===== Hero 星空 ===== */
.hero-space {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-space .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.floating-content {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--cosmic-purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.stats-constellation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-star {
    text-align: center;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.stat-star:nth-child(2) {
    animation-delay: 1s;
}

.stat-star:nth-child(3) {
    animation-delay: 2s;
}

.star-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    opacity: 0.3;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.stat-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.floating-photo {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.photo-orb {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(123, 104, 238, 0.4),
        0 0 120px rgba(255, 105, 180, 0.3),
        inset 0 0 60px rgba(0, 245, 255, 0.2);
    animation: orbit-glow 4s ease-in-out infinite;
}

@keyframes orbit-glow {
    0%, 100% {
        box-shadow:
            0 0 60px rgba(123, 104, 238, 0.4),
            0 0 120px rgba(255, 105, 180, 0.3),
            inset 0 0 60px rgba(0, 245, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 80px rgba(123, 104, 238, 0.6),
            0 0 160px rgba(255, 105, 180, 0.5),
            inset 0 0 80px rgba(0, 245, 255, 0.3);
    }
}

.photo-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 回忆星球 ===== */
.memories-space {
    padding: 8rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    color: var(--cyan);
}

.memory-orbit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.memory-planet {
    position: relative;
    cursor: pointer;
    animation: float 5s ease-in-out infinite;
}

.memory-planet:nth-child(1) { animation-delay: 0s; }
.memory-planet:nth-child(2) { animation-delay: 1.5s; }
.memory-planet:nth-child(3) { animation-delay: 3s; }
.memory-planet:nth-child(4) { animation-delay: 4.5s; }

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 2px solid var(--cosmic-purple);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s;
}

.memory-planet:hover .planet-ring {
    opacity: 1;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
}

.planet-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.3);
    transition: all 0.5s;
}

.memory-planet:hover .planet-image {
    box-shadow: 0 0 60px rgba(255, 105, 180, 0.6);
    transform: scale(1.05);
}

.planet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.5s;
}

.memory-planet:hover .planet-image img {
    filter: brightness(1.1);
}

.planet-info {
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}

.memory-planet:hover .planet-info {
    opacity: 1;
    transform: translateY(0);
}

.planet-date {
    display: block;
    font-size: 0.9rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.planet-name {
    font-size: 1.3rem;
    color: var(--cyan);
}

/* ===== 心愿星座 ===== */
.wish-constellation {
    padding: 8rem 2rem;
}

.wish-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 5rem 3rem;
    background: rgba(30, 27, 60, 0.6);
    border-radius: 30px;
    border: 2px solid rgba(123, 104, 238, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.wish-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.wish-label {
    display: inline-block;
    font-size: 1rem;
    color: var(--pink);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.wish-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--cyan);
    position: relative;
    z-index: 1;
}

.wish-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.wish-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    z-index: 1;
}

.wish-btn:hover {
    transform: translateY(-5px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.6s;
}

.wish-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

/* ===== Footer ===== */
.footer-space {
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(10, 17, 40, 0.8);
    border-top: 1px solid rgba(123, 104, 238, 0.2);
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-space .container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .photo-orb {
        max-width: 350px;
        margin: 0 auto;
    }

    .memory-orbit {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .hero-space {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .stats-constellation {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .memory-orbit {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .memories-space, .wish-constellation {
        padding: 5rem 1.5rem;
    }

    .wish-box {
        padding: 3rem 2rem;
    }

    .wish-title {
        font-size: 2.2rem;
    }
}
