/* ===== 基础变量 ===== */
:root {
    --pink-50: #fff5f9;
    --pink-100: #ffe8f0;
    --pink-200: #ffd1e3;
    --pink-300: #ffb0cc;
    --pink-400: #ff85b3;
    --pink-500: #ff5c9a;
    --pink-600: #ff3385;
    --pink-700: #e61e6e;
    --pink-800: #c4155a;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --peach-100: #fff1e6;
    --peach-200: #ffe0cc;
    --peach-300: #ffc9a8;
    --cream: #fffaf5;
    --white: #ffffff;
    --text-dark: #4a2040;
    --text-medium: #7a4060;
    --text-light: #a86080;
    --shadow-pink: 0 8px 32px rgba(255, 92, 154, 0.2);
    --shadow-soft: 0 4px 20px rgba(255, 180, 200, 0.25);
    --gradient-pink: linear-gradient(135deg, #ffb0cc 0%, #ff85b3 50%, #ff5c9a 100%);
    --gradient-sweet: linear-gradient(135deg, #ffd6e7 0%, #ffe0f0 25%, #fff5e0 50%, #ffe8f0 75%, #ffd6e7 100%);
    --gradient-dream: linear-gradient(135deg, #ffb0cc 0%, #e9d5ff 50%, #c7d2fe 100%);
    --font-cute: 'ZCOOL KuaiLe', 'Ma Shan Zheng', cursive;
    --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 176, 204, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(233, 213, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 225, 200, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== 粒子画布 ===== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== 鼠标跟随 ===== */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.trail-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--gradient-pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px rgba(255, 92, 154, 0.5);
}

.trail-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ===== 浮动装饰 ===== */
.floating-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.float-item {
    position: absolute;
    top: -50px;
    left: var(--x);
    font-size: 28px;
    animation: floatDown 15s linear infinite;
    animation-delay: var(--delay);
    opacity: 0.7;
    filter: drop-shadow(0 2px 4px rgba(255, 150, 180, 0.3));
}

@keyframes floatDown {
    0% {
        transform: translateY(-50px) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(105vh) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 245, 249, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(255, 150, 180, 0.15);
    border-bottom: 1px solid rgba(255, 176, 204, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pink-600);
    cursor: pointer;
}

.logo-heart {
    font-size: 1.8rem;
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.logo-text {
    font-family: var(--font-cute);
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--pink-600);
    background: var(--pink-100);
}

.nav-link.active {
    color: white;
    background: var(--gradient-pink);
    box-shadow: var(--shadow-pink);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pink-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--pink-200);
    transform: rotate(20deg) scale(1.1);
    box-shadow: var(--shadow-soft);
}

/* ===== 通用 Section 样式 ===== */
.section {
    position: relative;
    padding: 120px 40px;
    z-index: 10;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: var(--pink-100);
    color: var(--pink-600);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-cute);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 40px 100px;
    z-index: 10;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobMove 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--pink-300), var(--pink-500));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--purple-300), var(--purple-400));
    top: 30%;
    right: -80px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--peach-300), var(--pink-400));
    bottom: -80px;
    left: 40%;
    animation-delay: -10s;
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--pink-200);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--pink-700);
    font-weight: 600;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pink-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.animate-float {
    animation: floating 3s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-cute);
    font-size: clamp(4rem, 14vw, 10rem);
    line-height: 1;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.title-line {
    display: inline-block;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 8px 24px rgba(255, 92, 154, 0.3));
    animation: titleBounce 4s ease-in-out infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.15s; }
.line-3 { animation-delay: 0.3s; }
.line-4 { 
    animation-delay: 0.45s; 
    -webkit-text-fill-color: var(--pink-500);
    background: none;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-3deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

.hero-subtitle {
    margin-bottom: 50px;
}

.hero-subtitle h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.typewriter {
    font-size: 1.1rem;
    color: var(--text-light);
    min-height: 2em;
    font-family: var(--font-cute);
}

.typewriter::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: var(--pink-500);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-pink);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 92, 154, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 92, 154, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-sparkle {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink-600);
    border: 2px solid var(--pink-300);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--pink-100);
    transform: translateY(-3px);
    border-color: var(--pink-400);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-cute);
    font-size: 2.8rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--pink-300), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.scroll-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--pink-400);
    border-bottom: 2px solid var(--pink-400);
    transform: rotate(45deg);
    animation: scrollDown 1.8s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrow span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollDown {
    0%, 100% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translate(0, 0);
    }
}

/* ===== 定义区域 ===== */
.definition-section {
    background: var(--white);
}

.definition-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.def-card {
    background: var(--pink-50);
    border-radius: 28px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 176, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.def-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-sweet);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: rotate(45deg);
}

.def-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-pink);
    border-color: var(--pink-300);
}

.def-card:hover::before {
    opacity: 0.5;
}

.def-card > * {
    position: relative;
    z-index: 2;
}

.def-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.def-icon {
    width: 100%;
    height: 100%;
    background: var(--gradient-pink);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(255, 92, 154, 0.3);
}

.def-icon-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed var(--pink-300);
    border-radius: 30px;
    opacity: 0;
    transition: all 0.4s ease;
    animation: rotateRing 20s linear infinite;
}

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

.def-card:hover .def-icon-ring {
    opacity: 1;
}

.def-card h3 {
    font-family: var(--font-cute);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.def-card p {
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.def-detail {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    line-height: 1.7;
}

/* ===== 词源区域 ===== */
.etymology-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-50) 100%);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--pink-200), var(--pink-400), var(--pink-200));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    right: -16px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 4px solid var(--pink-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 92, 154, 0.3);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -16px;
}

.dot-inner {
    width: 10px;
    height: 10px;
    background: var(--gradient-pink);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--pink-100);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 34px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 1px solid var(--pink-100);
    transform: rotate(45deg);
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: auto;
    left: -10px;
    border-left: 1px solid var(--pink-100);
    border-bottom: 1px solid var(--pink-100);
    border-right: none;
    border-top: none;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-pink);
}

.timeline-year {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gradient-pink);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: var(--font-cute);
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.timeline-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--pink-100);
    color: var(--pink-600);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== 文化区域 ===== */
.culture-section {
    background: var(--white);
}

.culture-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.culture-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.culture-feature.reverse {
    direction: rtl;
}

.culture-feature.reverse > * {
    direction: ltr;
}

.culture-image {
    position: relative;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pink);
}

.anime-img {
    background: linear-gradient(135deg, #ffd6e7 0%, #ffc8dd 50%, #ffafcc 100%);
}

.fashion-img {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #ddd6fe 100%);
}

.food-img {
    background: linear-gradient(135deg, #fff1e6 0%, #ffe0cc 50%, #ffc9a8 100%);
}

.float-emoji {
    position: absolute;
    font-size: 3rem;
    animation: emojiFloat 3s ease-in-out infinite;
}

.float-emoji::before {
    content: var(--emoji);
}

.float-emoji:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.float-emoji:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.float-emoji:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) scale(1.15) rotate(10deg);
    }
}

.culture-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    font-family: var(--font-cute);
    font-size: 1.2rem;
    color: var(--pink-600);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.culture-text h3 {
    font-family: var(--font-cute);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.3;
}

.culture-text p {
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1rem;
}

.culture-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.culture-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--pink-50);
    border-radius: 16px;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.culture-list li:hover {
    background: var(--pink-100);
    border-color: var(--pink-200);
    transform: translateX(5px);
}

.culture-list li span {
    font-size: 1.2rem;
}

/* ===== 心理学区域 ===== */
.psychology-section {
    background: linear-gradient(180deg, var(--pink-50) 0%, var(--cream) 100%);
}

.psychology-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.psy-card {
    background: var(--white);
    border-radius: 28px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid var(--pink-100);
    overflow: hidden;
}

.psy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.psy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-pink);
}

.psy-card:hover::before {
    transform: scaleX(1);
}

.psy-number {
    font-family: var(--font-cute);
    font-size: 3rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.psy-card h3 {
    font-family: var(--font-cute);
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.psy-bar {
    height: 8px;
    background: var(--pink-100);
    border-radius: 100px;
    margin-bottom: 18px;
    overflow: hidden;
}

.psy-progress {
    height: 100%;
    width: var(--width);
    background: var(--gradient-pink);
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.psy-card.visible .psy-progress {
    transform: scaleX(1);
}

.psy-card p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.psy-quote {
    padding: 14px 18px;
    background: var(--pink-50);
    border-left: 3px solid var(--pink-400);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-cute);
    color: var(--pink-700);
    font-size: 0.95rem;
}

/* ===== 图鉴区域 ===== */
.gallery-section {
    background: var(--white);
}

.gallery-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 26px;
    border-radius: 100px;
    background: var(--pink-50);
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: var(--pink-100);
    color: var(--pink-600);
}

.filter-btn.active {
    background: var(--gradient-pink);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-pink);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.gallery-card {
    aspect-ratio: 3/4;
    perspective: 1000px;
    cursor: pointer;
}

.gallery-card.hide {
    display: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.gallery-card:hover .card-inner,
.gallery-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 28px;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(145deg, var(--pink-100), var(--pink-200));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--pink-200);
    transition: all 0.4s ease;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
}

.gallery-card:hover .card-front {
    box-shadow: var(--shadow-pink);
}

.card-emoji {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: cardEmojiFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(255, 150, 180, 0.4));
}

@keyframes cardEmojiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.card-front h3 {
    font-family: var(--font-cute);
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--pink-700);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-back {
    background: var(--gradient-pink);
    transform: rotateY(180deg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-rating {
    font-size: 1.3rem;
    letter-spacing: 2px;
}

/* ===== 互动测试区域 ===== */
.quiz-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-50) 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: var(--shadow-pink);
    border: 1px solid var(--pink-100);
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '💕';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.3;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--pink-100);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--gradient-pink);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pink-600);
    min-width: 50px;
    text-align: right;
}

.quiz-question h3 {
    font-family: var(--font-cute);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option-btn {
    width: 100%;
    padding: 18px 24px;
    background: var(--pink-50);
    border: 2px solid var(--pink-100);
    border-radius: 18px;
    text-align: left;
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.option-btn:hover {
    background: var(--pink-100);
    border-color: var(--pink-300);
    transform: translateX(5px);
    color: var(--text-dark);
}

.option-btn::before {
    content: '💗';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-btn:hover::before {
    opacity: 1;
}

.quiz-result {
    text-align: center;
}

.result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: emojiFloat 3s ease-in-out infinite;
}

.quiz-result h3 {
    font-family: var(--font-cute);
    font-size: 1.8rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.quiz-result p {
    color: var(--text-medium);
    margin-bottom: 32px;
    font-size: 1rem;
}

.result-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.score-value {
    font-family: var(--font-cute);
    font-size: 3.5rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ===== CTA 区域 ===== */
.cta-section {
    position: relative;
    padding: 100px 40px;
    background: var(--gradient-dream);
    overflow: hidden;
    z-index: 10;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(40px);
}

.cta-section::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.cta-section::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-emoji-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.cta-emoji {
    font-size: 4.5rem;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(255, 150, 180, 0.5));
}

.cta-emoji-small {
    position: absolute;
    font-size: 1.8rem;
    animation: ctaEmojiOrbit 6s linear infinite;
}

.cta-emoji-small:nth-child(2) {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.cta-emoji-small:nth-child(3) {
    bottom: -5px;
    left: -25px;
    animation-delay: -2s;
}

.cta-emoji-small:nth-child(4) {
    top: 40%;
    right: -35px;
    animation-delay: -4s;
}

@keyframes ctaEmojiOrbit {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.cta-title {
    font-family: var(--font-cute);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.cta-share {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 150, 180, 0.3);
    background: var(--white);
}

.share-btn span:first-child {
    font-size: 1.2rem;
}

/* ===== 页脚 ===== */
.footer {
    background: #fff0f5;
    padding: 80px 40px 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--pink-200);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo span:first-child {
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-logo span:last-child {
    font-family: var(--font-cute);
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pink-100);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-pink);
    transform: translateY(-4px) rotate(10deg);
    box-shadow: var(--shadow-soft);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-family: var(--font-cute);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--pink-600);
    padding-left: 6px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ===== 爱心爆发生成 ===== */
.heart-burst-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.burst-heart {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    animation: burstOut 1.5s ease-out forwards;
}

@keyframes burstOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot));
    }
}

/* ===== Reveal 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--order, 0) * 0.1s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 80px 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 4px;
        right: auto;
    }

    .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px !important;
        right: auto !important;
        border-left: 1px solid var(--pink-100) !important;
        border-bottom: 1px solid var(--pink-100) !important;
        border-right: none !important;
        border-top: none !important;
    }

    .culture-feature,
    .culture-feature.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        gap: 6px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--pink-300), transparent);
    }

    .definition-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-card {
        aspect-ratio: 3/4.5;
    }

    .card-emoji {
        font-size: 3.5rem;
    }

    .card-front h3 {
        font-size: 1.1rem;
    }

    .quiz-container {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .quiz-question h3 {
        font-size: 1.2rem;
    }

    .option-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .cta-share {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
