/**
 * 爱平小世界 - 首页专用样式
 * 创意互动、小清新风格
 */

/* ========== 进入动画 - 浪漫开场效果 ========== */
.intro-envelope {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-envelope.hidden {
    animation: introFadeOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes introFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* 背景 - 渐变动画 */
.envelope-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #ffeef8 0%, 
        #fff5f5 25%, 
        #f0f8ff 50%, 
        #fff0f5 75%,
        #f5fffa 100%);
    background-size: 400% 400%;
    animation: bgGradientShift 4s ease infinite;
}

@keyframes bgGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 光晕效果 */
.envelope-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(255, 182, 193, 0.4) 0%, 
        rgba(255, 218, 233, 0.2) 40%,
        transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* 飘落花瓣 */
.petal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    opacity: 0;
    animation: petalFall linear forwards;
    filter: drop-shadow(0 2px 4px rgba(255, 150, 180, 0.3));
}

@keyframes petalFall {
    0% { 
        transform: translateY(-30px) rotate(0deg) translateX(0); 
        opacity: 0; 
    }
    10% { opacity: 0.9; }
    50% { 
        transform: translateY(50vh) rotate(360deg) translateX(30px); 
    }
    90% { opacity: 0.9; }
    100% { 
        transform: translateY(100vh) rotate(720deg) translateX(-20px); 
        opacity: 0; 
    }
}

/* 信封容器 - 全屏居中 */
.envelope {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: envelopeFloat 3s ease-in-out infinite;
}

@keyframes envelopeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 信纸 - 居中显示，小方格背景 */
.letter {
    position: relative;
    width: 320px;
    min-height: 240px;
    background: 
        linear-gradient(90deg, rgba(200, 220, 240, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(200, 220, 240, 0.15) 1px, transparent 1px),
        linear-gradient(180deg, #fffef9 0%, #fff9f0 100%);
    background-size: 12px 12px, 12px 12px, 100% 100%;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 200, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    animation: letterReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

@keyframes letterReveal {
    0% { 
        transform: scale(0.8) translateY(30px) rotateX(15deg); 
        opacity: 0; 
    }
    60% {
        transform: scale(1.02) translateY(-10px) rotateX(-3deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) translateY(0) rotateX(0deg); 
        opacity: 1; 
    }
}

/* 信纸装饰边框 */
.letter::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px dashed rgba(255, 150, 180, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.letter-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.letter-stamp {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2.2rem;
    opacity: 0;
    animation: stampBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

@keyframes stampBounce {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(-30deg) translateY(-20px); 
    }
    50% { 
        transform: scale(1.3) rotate(10deg) translateY(5px); 
    }
    70% {
        transform: scale(0.9) rotate(-5deg) translateY(-2px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg) translateY(0); 
    }
}

.letter-greeting {
    font-size: 1.15rem;
    color: #e91e63;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: textSlideUp 0.4s ease 0.8s forwards;
}

.letter-text {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 2.2;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: textSlideUp 0.4s ease 1.0s forwards;
}

.letter-text .highlight {
    color: #ff6b9d;
    font-weight: 600;
    position: relative;
}

.letter-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #ffb6c1);
    border-radius: 1px;
    animation: highlightExpand 0.3s ease 1.3s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes highlightExpand {
    to { transform: scaleX(1); }
}

.letter-signature {
    font-size: 1.05rem;
    color: #7eb8da;
    font-style: italic;
    opacity: 0;
    animation: textSlideUp 0.4s ease 1.2s forwards;
}

@keyframes textSlideUp {
    0% { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 蜡封印章 - 隐藏 */
.wax-seal {
    display: none;
}

/* 进入提示 */
.intro-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(150, 150, 150, 0.8);
    font-size: 0.85rem;
    opacity: 0;
    animation: hintFadeIn 0.3s ease 1.5s forwards;
}

@keyframes hintFadeIn {
    to { opacity: 1; }
}

/* 闪烁星星装饰 */
.intro-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.intro-star {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: starTwinkle 2s ease-in-out infinite;
}

.intro-star:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.intro-star:nth-child(2) { top: 25%; right: 15%; animation-delay: 0.3s; }
.intro-star:nth-child(3) { top: 60%; left: 8%; animation-delay: 0.6s; }
.intro-star:nth-child(4) { top: 70%; right: 12%; animation-delay: 0.9s; }
.intro-star:nth-child(5) { top: 40%; left: 15%; animation-delay: 1.2s; }
.intro-star:nth-child(6) { bottom: 20%; right: 20%; animation-delay: 1.5s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .envelope {
        width: 300px;
        height: 380px;
    }
    .letter {
        width: 260px;
        min-height: 200px;
    }
    .letter-content {
        padding: 2rem 1.5rem;
    }
    .letter-text {
        font-size: 0.88rem;
        line-height: 2;
    }
    .wax-seal {
        font-size: 3rem;
        bottom: 50px;
    }
    .envelope-bg::before {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 375px) {
    .envelope {
        width: 280px;
    }
    .letter {
        width: 240px;
    }
    .letter-content {
        padding: 1.5rem 1.2rem;
    }
    .letter-greeting {
        font-size: 1rem;
    }
    .letter-text {
        font-size: 0.82rem;
    }
}

/* ========== 页面基础 ========== */
.homepage-body {
    background: linear-gradient(135deg, 
        #e0f7fa 0%, 
        #f3e5f5 25%,
        #fff3e0 50%,
        #e8f5e9 75%,
        #e0f7fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    overflow-x: hidden;
}

/* ========== 星空画布 ========== */
.star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========== 樱花飘落 ========== */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -50px;
    animation: sakuraFall linear infinite;
    opacity: 0.8;
}

@keyframes sakuraFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* ========== 鼠标跟随光晕 ========== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 182, 193, 0.3) 0%, 
        rgba(152, 216, 200, 0.2) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ========== 欢迎区域 - 简洁文字风格 ========== */
.welcome-section {
    min-height: 100vh;
    min-height: 100svh; /* 使用svh避免移动端地址栏导致的滚动问题 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 60px 20px 100px;
    overflow: hidden; /* 隐藏弹幕超出部分 */
}

/* 散落装饰图标 */
.scatter-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.scatter-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: floatIcon 6s ease-in-out infinite;
}

.si-1 { top: 15%; left: 8%; animation-delay: 0s; }
.si-2 { top: 25%; right: 12%; animation-delay: 0.8s; font-size: 1.2rem; }
.si-3 { top: 45%; left: 5%; animation-delay: 1.5s; }
.si-4 { top: 60%; right: 8%; animation-delay: 2s; font-size: 1.8rem; }
.si-5 { bottom: 30%; left: 12%; animation-delay: 2.5s; font-size: 1.3rem; }
.si-6 { bottom: 25%; right: 15%; animation-delay: 3s; }
.si-7 { top: 35%; right: 5%; animation-delay: 3.5s; font-size: 1.4rem; }
.si-8 { bottom: 40%; left: 8%; animation-delay: 4s; font-size: 2rem; opacity: 0.4; }

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-15px) rotate(10deg); 
        opacity: 0.8;
    }
}

.welcome-content {
    text-align: center;
    z-index: 10;
    max-width: 700px;
    padding: 0 20px;
    width: 100%;
}

/* 问候语 */
.hero-greeting {
    font-size: 1.3rem;
    color: var(--color-light-blue);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

/* ========== 主标题区域 ========== */

.hero-main-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.gradient-text {
    background: linear-gradient(135deg, #5bb5d6, #7ec8e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.wave-emoji {
    display: inline-block;
    animation: waveHand 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

/* 特色标签 */
.hero-traits {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* 行动按钮 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #ff7a9e, #ff8a80);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 122, 158, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 122, 158, 0.4);
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-dark);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-light-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 滚动提示 - 波浪上方 */
.scroll-hint-fancy {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-hint-fancy:hover {
    transform: translateX(-50%) translateY(5px);
}

/* 鼠标图标 */
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-light-blue);
    border-radius: 12px;
    position: relative;
    opacity: 0.7;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-pink);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s ease-in-out infinite;
}

@keyframes wheelScroll {
    0%, 100% { opacity: 1; transform: translateX(-50%); }
    50% { opacity: 0.3; transform: translateX(-50%); }
}

/* 提示文字 */
.scroll-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* 向下箭头 */
.scroll-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.6;
}

.chevron {
    display: block;
    font-size: 0.9rem;
    color: var(--color-mint-green);
    transform: rotate(90deg);
    animation: chevronBounce 1.5s ease-in-out infinite;
    opacity: 0.6;
}

.chevron:nth-child(2) {
    animation-delay: 0.15s;
    margin-top: -2px;
}

@keyframes chevronBounce {
    0%, 100% { opacity: 0.4; transform: rotate(90deg) translateX(0); }
    50% { opacity: 1; transform: rotate(90deg) translateX(3px); }
}

/* 旧版兼容 */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.scroll-hint-text {
    font-size: 0.85rem;
}

.scroll-hint-arrow {
    font-size: 1rem;
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* 点击涟漪 */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.click-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.6) 0%, transparent 70%);
    animation: rippleExpand 1s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* ========== 弹幕系统（重新设计）========== */
/* 弹幕直接添加到 .welcome-section 中，使用 position: absolute */

.danmaku-float {
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
}

.danmaku-float .danmaku-nick {
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 弹幕从右向左移动动画 */
@keyframes danmakuMove {
    0% {
        right: -400px;
        opacity: 0;
    }
    5% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        right: calc(100% + 50px);
        opacity: 0;
    }
}

/* 弹幕弹窗 */
.danmaku-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.danmaku-modal.active {
    opacity: 1;
    visibility: visible;
}

.danmaku-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.danmaku-modal.active .danmaku-modal-content {
    transform: scale(1);
}

.danmaku-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.danmaku-modal-close:hover {
    color: var(--color-text-dark);
}

.danmaku-modal-title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.danmaku-modal-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.danmaku-form-group {
    margin-bottom: 1rem;
}

.danmaku-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(126, 184, 218, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.danmaku-input:focus {
    border-color: var(--color-light-blue);
}

.danmaku-input::placeholder {
    color: var(--color-text-light);
}

.danmaku-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #ff7a9e, #ff8a80);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 158, 0.3);
    font-family: inherit;
}

.danmaku-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 158, 0.4);
}

.danmaku-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



/* ========== 信息卡片区域 ========== */
.info-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.info-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.floating-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* 中心介绍 */
.center-intro {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.center-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-light-blue), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text);
}

/* ========== 关于我区域 - 活泼有趣风格 ========== */
.about-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* 漂浮装饰 */
.about-floats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.about-float {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 1.8rem;
    animation: aboutFloat 4s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(15deg); opacity: 0.9; }
}

/* 活泼标题 */
.about-title-fun {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.title-bounce {
    display: inline-block;
    animation: titleBounce 2s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.title-emoji {
    font-size: 2.5rem;
    margin-left: 0.5rem;
    animation: emojiWiggle 1s ease-in-out infinite;
}

@keyframes emojiWiggle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-dark);
}

.title-icon {
    margin-right: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* 趣味卡片布局 */
.fun-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 趣味卡片基础样式 - 统一大小 */
.fun-card {
    position: relative;
    border-radius: 24px;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.fun-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.fun-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: all 0.4s ease;
}

.fun-card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 基本信息卡 - 主题粉色渐变 */
.card-info {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.card-info .fun-card-bg {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc8d0 50%, #ffe4e8 100%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-info:hover .fun-card-bg {
    filter: brightness(1.05);
}

.fun-avatar {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: avatarBounce 2s ease-in-out infinite;
}

@keyframes avatarBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fun-name {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-shadow: 0 1px 3px rgba(255,255,255,0.5);
    margin-bottom: 0.8rem;
}

.fun-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fun-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-dark);
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.8);
}

.fun-motto {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text);
    font-style: italic;
}

/* 性格卡 - 主题淡蓝渐变 */
.card-personality {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.card-personality .fun-card-bg {
    background: linear-gradient(135deg, #7eb8da 0%, #a8d4ea 50%, #d0ebf7 100%);
}

.fun-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.fun-icon {
    font-size: 1.8rem;
    animation: iconSpin 3s ease-in-out infinite;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.fun-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.personality-traits {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.trait {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.5);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.6);
}

.trait-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trait-bar {
    flex: 1;
    height: 8px;
    background: rgba(126, 184, 218, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.trait-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--w);
    background: var(--color-light-blue);
    border-radius: 4px;
    animation: barGrow 1.5s ease-out forwards;
}

@keyframes barGrow {
    from { width: 0; }
    to { width: var(--w); }
}

.trait-text {
    font-size: 0.8rem;
    color: var(--color-text-dark);
    font-weight: 500;
    white-space: nowrap;
}

/* 爱好卡 - 主题薄荷绿渐变 */
.card-hobby {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.card-hobby .fun-card-bg {
    background: linear-gradient(135deg, #98d8c8 0%, #b8e8dc 50%, #d8f5ef 100%);
}

/* 爱好网格布局 */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.hobby-item {
    background: rgba(255,255,255,0.5);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.hobby-item:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

/* 旧的气泡样式保留兼容 */
.hobby-bubbles {
    position: relative;
    height: 140px;
}

.hobby-bubble {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: bubblePop 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(152, 216, 200, 0.3);
}

.hobby-bubble:nth-child(2) { animation-delay: 0.5s; }
.hobby-bubble:nth-child(3) { animation-delay: 1s; }
.hobby-bubble:nth-child(4) { animation-delay: 1.5s; }

@keyframes bubblePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hobby-bubble:hover {
    transform: scale(1.2) !important;
    background: rgba(255,255,255,0.8);
}

.hobby-bubble small {
    font-size: 0.6rem;
    color: var(--color-text-dark);
    font-weight: 600;
    margin-top: 2px;
}

/* 梦想卡 - 主题混合渐变 */
.card-dream {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.card-dream .fun-card-bg {
    background: linear-gradient(135deg, #7eb8da 0%, #98d8c8 50%, #ffb6c1 100%);
}

/* 梦想网格布局 */
.dream-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dream-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 0.4rem;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.dream-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.7);
}

.dream-icon {
    font-size: 1.5rem;
}

.dream-text {
    font-size: 0.7rem;
    color: var(--color-text-dark);
    font-weight: 500;
    text-align: center;
}

/* 旧的路径样式保留兼容 */
.dream-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dream-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.dream-step:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.7);
}

.step-icon {
    font-size: 1.8rem;
    animation: stepPulse 2s ease-in-out infinite;
}

.dream-step:nth-child(3) .step-icon { animation-delay: 0.3s; }
.dream-step:nth-child(5) .step-icon { animation-delay: 0.6s; }

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.step-text {
    font-size: 0.75rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.dream-arrow {
    font-size: 1.2rem;
    color: var(--color-text);
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* 旧的时间线样式保留兼容 */
.story-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.story-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 25px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-light-blue), var(--color-mint-green), var(--color-pink));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-light-blue);
    z-index: 1;
}

.timeline-content {
    padding: 1rem 1.2rem;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.timeline-text {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mini-tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 15px;
    background: rgba(126, 184, 218, 0.15);
    color: var(--color-light-blue);
}


/* ========== 缘分签区域 ========== */
.fortune-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.fortune-box {
    width: 200px;
    height: 300px;
    margin: 2rem auto;
    perspective: 1000px;
    cursor: pointer;
}

.fortune-stick {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.fortune-stick:hover {
    transform: rotateY(10deg) rotateX(-5deg);
}

.fortune-stick.shake {
    animation: shakeStick 0.5s ease;
}

@keyframes shakeStick {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

.stick-body {
    width: 30px;
    height: 250px;
    margin: 0 auto;
    background: linear-gradient(180deg, #d4a574 0%, #c4956a 50%, #b4855a 100%);
    border-radius: 5px 5px 2px 2px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.stick-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 5px 5px 0 0;
}

.stick-text {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    writing-mode: vertical-rl;
}

.fortune-result {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.fortune-level {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-pink), var(--color-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fortune-text {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========== 翻书效果 ========== */
.feelings-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.book-container {
    max-width: 600px;
    margin: 0 auto;
}

.book {
    position: relative;
    height: 350px;
    perspective: 1500px;
}

.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 0 20px 20px 0;
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.1),
        inset -2px 0 10px rgba(0, 0, 0, 0.05);
    transform-origin: left center;
    transition: transform 0.8s ease, opacity 0.4s ease;
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.book-page.active {
    opacity: 1;
    pointer-events: auto;
    transform: rotateY(0deg);
}

.book-page.prev {
    transform: rotateY(-180deg);
}

.page-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-content h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text);
}

.book-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.book-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-light-blue);
    background: transparent;
    color: var(--color-light-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.book-btn:hover {
    background: var(--color-light-blue);
    color: white;
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ========== 图片画廊 ========== */
.gallery-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

.gallery-overlay p {
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

/* ========== CTA区域 ========== */
.cta-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cta-card h2 {
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.cta-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* 漂浮爱心 */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatHeart 6s ease-in-out infinite;
}

.heart:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.heart:nth-child(2) { left: 80%; top: 30%; animation-delay: 1s; }
.heart:nth-child(3) { left: 20%; top: 70%; animation-delay: 2s; }
.heart:nth-child(4) { left: 70%; top: 60%; animation-delay: 3s; }
.heart:nth-child(5) { left: 50%; top: 10%; animation-delay: 4s; }

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(126, 184, 218, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(126, 184, 218, 0.5);
}

/* ========== 关于爱情区域 ========== */
.love-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

/* ========== 翻转卡片组 ========== */
.love-flip-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.love-flip-card {
    height: 140px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.love-flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.flip-front {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,245,250,0.9));
    box-shadow: 0 8px 25px rgba(255, 150, 180, 0.15);
    border: 1px solid rgba(255, 200, 220, 0.3);
}

.flip-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.flip-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
}

.flip-hint {
    font-size: 0.7rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

.flip-back {
    background: linear-gradient(145deg, #ff7a9e, #ff8a80);
    transform: rotateY(180deg);
    color: white;
}

.flip-back p {
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ========== 心动瞬间 - 浪漫许愿瓶 ========== */
.love-wish {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, 
        rgba(255, 250, 253, 0.9) 0%, 
        rgba(250, 248, 255, 0.9) 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* 漂浮愿望气泡 */
.floating-wishes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-bubble {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text);
    box-shadow: 0 3px 15px rgba(255, 150, 180, 0.15);
    border: 1px solid rgba(255, 200, 220, 0.3);
    animation: bubbleFloat var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.7;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.float-bubble:nth-child(odd) {
    animation-name: bubbleFloatAlt;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-2deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) translateX(8px) rotate(2deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) translateX(0) rotate(-1deg); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-10px) translateX(-8px) rotate(1deg); 
        opacity: 0.8;
    }
}

@keyframes bubbleFloatAlt {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(2deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) translateX(-10px) rotate(-2deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) translateX(5px) rotate(1deg); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-12px) translateX(10px) rotate(-1deg); 
        opacity: 0.8;
    }
}

.wish-title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.wish-bottle {
    width: 120px;
    height: 180px;
    margin: 0 auto 1.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wish-bottle:hover {
    transform: scale(1.05);
}

.wish-bottle:active {
    transform: scale(0.98);
}

.bottle-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 140px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 240, 245, 0.85) 50%,
        rgba(255, 230, 240, 0.8) 100%);
    border-radius: 0 0 40px 40px;
    border: 2px solid rgba(255, 200, 220, 0.5);
    border-top: none;
    overflow: hidden;
    box-shadow: 
        inset 0 -20px 40px rgba(255, 150, 180, 0.15),
        0 10px 30px rgba(255, 150, 180, 0.2);
}

.bottle-body::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: linear-gradient(180deg, #d4a574, #c4956a);
    border-radius: 5px 5px 0 0;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.bottle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(255, 182, 193, 0.4) 0%, 
        rgba(255, 200, 220, 0.2) 40%,
        transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.bottle-stars {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 0.8rem;
    animation: starsFloat 2s ease-in-out infinite;
}

@keyframes starsFloat {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.bottle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    text-align: center;
}

.wish-emoji {
    font-size: 2rem;
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.wish-text {
    font-size: 0.75rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.3;
    max-width: 70px;
}

.bottle-shine {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 15px;
    height: 40px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 10px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.wish-hint {
    font-size: 0.9rem;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* 摇晃动画 */
.wish-bottle.shaking {
    animation: bottleShake 0.5s ease-in-out;
}

@keyframes bottleShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

/* 显示结果时的样式 */
.wish-bottle.revealed .bottle-glow {
    animation: glowBurst 0.5s ease-out;
}

@keyframes glowBurst {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

/* ========== CTA区域 ========== */
.love-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    clear: both;
}

.love-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.love-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .love-section {
        padding: 50px 0;
    }
    
    /* 关于我区域移动端 - 保持2x2布局 */
    .about-section {
        padding: 50px 0;
    }
    
    .about-title-fun {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .title-emoji {
        font-size: 1.5rem;
    }
    
    .about-float {
        font-size: 1.2rem;
        opacity: 0.35;
    }
    
    /* 移动端保持2x2网格 */
    .fun-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    
    .fun-card {
        padding: 1rem;
        border-radius: 16px;
        min-height: 140px;
    }
    
    /* 基本信息卡移动端 */
    .card-info {
        grid-column: auto;
        grid-row: auto;
    }
    
    .fun-avatar {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .fun-name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .fun-tags {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
    
    .fun-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .fun-motto {
        font-size: 0.7rem;
    }
    
    /* 性格卡移动端 */
    .card-personality {
        grid-column: auto;
        grid-row: auto;
    }
    
    .fun-card-header {
        margin-bottom: 0.6rem;
    }
    
    .fun-icon {
        font-size: 1.2rem;
    }
    
    .fun-label {
        font-size: 0.85rem;
    }
    
    .personality-traits {
        gap: 0.4rem;
    }
    
    .trait {
        padding: 0.35rem 0.5rem;
        gap: 0.4rem;
    }
    
    .trait-emoji {
        font-size: 0.85rem;
    }
    
    .trait-bar {
        height: 6px;
    }
    
    .trait-text {
        font-size: 0.65rem;
    }
    
    /* 爱好卡移动端 */
    .card-hobby {
        grid-column: auto;
        grid-row: auto;
    }
    
    .hobby-grid {
        gap: 0.3rem;
    }
    
    .hobby-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    
    /* 梦想卡移动端 */
    .card-dream {
        grid-column: auto;
        grid-row: auto;
    }
    
    .dream-grid {
        gap: 0.3rem;
    }
    
    .dream-item {
        padding: 0.4rem 0.3rem;
        border-radius: 8px;
    }
    
    .dream-icon {
        font-size: 1.1rem;
    }
    
    .dream-text {
        font-size: 0.6rem;
    }
    
    /* 档案卡片移动端 */
    .profile-section {
        padding: 60px 0;
    }
    
    .profile-cards {
        gap: 0.8rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .card-icon {
        font-size: 1.2rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .hobby-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .dream-step {
        padding: 0.6rem;
        min-width: 65px;
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
    
    .step-text {
        font-size: 0.7rem;
    }
    
    /* 翻转卡片移动端 */
    .love-flip-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .love-flip-card {
        height: 120px;
    }
    
    .flip-icon {
        font-size: 1.6rem;
    }
    
    .flip-title {
        font-size: 0.85rem;
    }
    
    .flip-back p {
        font-size: 0.75rem;
    }
    
    /* 许愿瓶移动端 */
    .love-wish {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
        min-height: 300px;
    }
    
    .float-bubble {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
    
    .wish-title {
        font-size: 1.2rem;
    }
    
    .wish-bottle {
        width: 100px;
        height: 150px;
    }
    
    .bottle-body {
        width: 65px;
        height: 115px;
    }
    
    .wish-emoji {
        font-size: 1.6rem;
    }
    
    .wish-text {
        font-size: 0.7rem;
        max-width: 55px;
    }
    
    .wish-hint {
        font-size: 0.8rem;
    }
    
    .love-cta {
        padding: 1.2rem;
    }
    
    .love-quote {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .love-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .love-buttons .btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }
}

/* ========== 响应式调整 ========== */
@media (max-width: 992px) {
    .info-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-greeting {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }
    
    .hero-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .typewriter-text {
        font-size: 1.5rem;
        min-height: 3rem;
    }
    
    .info-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .book {
        height: 400px;
    }
    
    .story-timeline {
        padding-left: 20px;
    }
    
    .center-intro {
        padding: 2rem;
    }
    
    .center-intro h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .info-cards-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-3d {
        width: 120px;
        height: 120px;
    }
    
    .avatar-face {
        width: 120px;
        height: 120px;
    }
    
    .typewriter-text {
        font-size: 1.25rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    /* 超小屏幕进一步优化 */
    .hero-text-area {
        margin-bottom: 1rem;
    }
    
    .hero-description br {
        display: none; /* 小屏幕不换行，让文字自然流动 */
    }
}

/* ========== 音乐播放器 ========== */
.music-player {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.music-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-width: 180px;
}

/* 折叠状态 - 圆形图标 */
.music-player.collapsed .music-card {
    padding: 0;
    width: 50px;
    height: 50px;
    max-width: 50px;
    border-radius: 50%;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(126, 184, 218, 0.9));
    box-shadow: 0 4px 15px rgba(255, 150, 180, 0.4);
}

.music-player.collapsed .music-icon {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.music-player.collapsed .music-info {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    position: absolute;
}

.music-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: musicBounce 1s ease-in-out infinite;
}

.music-player.paused .music-icon {
    animation: none;
}

@keyframes musicBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.music-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.music-status {
    font-size: 0.7rem;
    color: var(--color-light-blue);
}

/* 悬停效果 - 不自动展开，只有点击才展开 */
.music-player.collapsed:hover .music-card {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 150, 180, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .music-player {
        right: 15px;
        top: auto;
        bottom: 100px;
        transform: none;
    }
    
    .music-card {
        padding: 0.6rem 1rem;
    }
    
    .music-player.collapsed .music-card {
        padding: 0;
        width: 45px;
        height: 45px;
        max-width: 45px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
    
    .music-icon {
        font-size: 1.3rem;
    }
}


/* ========== 区域分隔线 - 小清新波浪 ========== */
.section-divider {
    position: relative;
    height: 80px;
    margin: 0;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.divider-flip .wave-divider {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* 装饰元素 */
.divider-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.deco-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-light-blue));
    border-radius: 50%;
    opacity: 0.6;
}

.deco-icon {
    font-size: 1.5rem;
    animation: decoFloat 3s ease-in-out infinite;
}

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-divider {
        height: 60px;
    }
    
    .wave-divider {
        height: 40px;
    }
    
    .deco-icon {
        font-size: 1.2rem;
    }
    
    .deco-dot {
        width: 4px;
        height: 4px;
    }
    
    .divider-deco {
        gap: 0.6rem;
    }
}


/* ========== 欢迎区域底部波浪 ========== */
.welcome-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 5;
}

.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.wave-deco {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 6;
}

.wave-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-light-blue));
    border-radius: 50%;
    opacity: 0.6;
}

.wave-icon {
    font-size: 1.5rem;
    animation: waveIconFloat 3s ease-in-out infinite;
}

@keyframes waveIconFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-wave {
        height: 60px;
    }
    
    .wave-svg {
        height: 40px;
    }
    
    .wave-deco {
        bottom: 20px;
        gap: 0.6rem;
    }
    
    .wave-icon {
        font-size: 1.2rem;
    }
    
    .wave-dot {
        width: 4px;
        height: 4px;
    }
}
