/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4d6d;
    --primary-light: #ff8fa3;
    --secondary-color: #4361ee;
    --secondary-light: #4cc9f0;
    --accent-color: #ffd166;
    --accent-light: #ffe699;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(45deg, var(--accent-color), var(--primary-light));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--light);
    cursor: none; /* 隐藏默认光标 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 礼物盒子开场 */
.gift-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    z-index: 9999;
    perspective: 1000px;
}

.gift-box {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    animation: float 3s ease-in-out infinite;
}

.gift-box:hover {
    animation-play-state: paused;
}

.gift-box-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.gift-lid {
    position: absolute;
    width: 110%;
    height: 40px;
    left: -5%;
    top: -40px;
    background: var(--primary-light);
    border-radius: 10px 10px 0 0;
    transform-origin: bottom;
    transition: transform 1s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gift-box:hover .gift-lid {
    transform: rotateX(-110deg);
}

.gift-ribbon {
    position: absolute;
    width: 30px;
    height: 100%;
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
}

.gift-bow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.gift-bow-left, .gift-bow-right {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
}

.gift-bow-left {
    left: -25px;
    transform: rotate(-45deg);
}

.gift-bow-right {
    right: -25px;
    transform: rotate(45deg);
}

.gift-bow-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    border-radius: 50%;
    top: 15px;
    left: -10px;
}

.gift-label {
    position: absolute;
    bottom: -80px;
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gift-label h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.gift-label p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 礼花效果 */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    opacity: 0.8;
    animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 背景音乐控制按钮 */
.music-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: pulse 2s infinite;
}

/* AI祝福弹窗 */
.ai-greeting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9500;
    backdrop-filter: blur(5px);
}

.ai-greeting.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.ai-greeting-content {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.4s ease;
}

.ai-greeting-header {
    padding: 15px 20px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-greeting-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.close-greeting {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-greeting:hover {
    transform: scale(1.2);
}

.ai-greeting-body {
    padding: 25px;
    display: flex;
    gap: 20px;
}

.ai-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.greeting-text {
    flex-grow: 1;
}

.greeting-text p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.ai-greeting-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: right;
}

.new-greeting-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.new-greeting-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 主内容区域 */
.main-content {
    width: 100%;
    min-height: 100vh;
}

/* 粒子背景 - 更新颜色 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-logo i {
    margin-right: 12px;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: var(--radius-full);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    height: 3px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-color);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-color);
}

/* 首页横幅 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 400;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 5px;
}

.cta-button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease 0.6s both;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 10px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.floating-photos {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-photo {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.photo1 {
    width: 250px;
    height: 180px;
    object-fit: cover;
    top: 50px;
    right: 100px;
    animation-delay: 0s;
}

.photo2 {
    width: 200px;
    height: 150px;
    object-fit: cover;
    bottom: 100px;
    right: 50px;
    animation-delay: 3s;
}

.floating-photo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 时间轴 */
.timeline-section {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    color: var(--dark);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.timeline-item {
    position: relative;
    margin: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-marker::before {
    content: attr(data-year);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(var(--primary-light), 0.1);
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

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

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

/* 年级部分 */
.grade-section {
    padding: 120px 0 80px;
    background: rgba(255, 255, 255, 0.9);
    margin: 60px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.grade-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
    z-index: 1;
}

.grade-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.03) 0%, transparent 100%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.03) 0%, transparent 100%);
    z-index: -1;
}

.grade-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.grade-title {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: fadeInUp 0.8s ease;
}

.grade-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.photo-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.category-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    transform: scale(0.8);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    animation: pulse 1.5s infinite ease-in-out;
    transform: scale(1.1) rotate(5deg);
}

.category-card:hover .category-icon::after {
    transform: scale(1);
    opacity: 0.8;
}

.category-card h3 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.category-card p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.photo-item:hover::before {
    opacity: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 添加动画到元素 */
.hero-title {
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    animation: fadeInUp 1s ease 0.6s both;
}

.floating-photo.photo1 {
    animation: float 6s ease-in-out infinite, fadeInLeft 1s ease 0.8s both;
}

.floating-photo.photo2 {
    animation: float 8s ease-in-out infinite, fadeInRight 1s ease 1s both;
}

.grade-title {
    animation: fadeInUp 0.8s ease;
}

.grade-subtitle {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.category-card {
    animation: fadeInUp 0.8s ease;
    transition: var(--transition);
}

/* 交互动画 */
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover .category-icon {
    animation: pulse 1.5s infinite ease-in-out;
    transform: scale(1.1) rotate(5deg);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
}

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

.photo-item {
    transition: var(--transition);
}

.photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

/* 滚动触发动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 加载动画 */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .photo-categories {
        grid-template-columns: 1fr;
    }
}

/* 图片模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2100;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.close:hover {
    color: var(--accent-color);
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.modal-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 2100;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 30px;
}

.spinner:before,
.spinner:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.6;
    filter: blur(5px);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spinner:after {
    animation-delay: -1s;
}

.loading p {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 0.5s ease forwards;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
}

/* 更多动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* 特殊效果 */
.category-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.photo-item.lazy-loading {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 悬停效果增强 */
.category-card:hover .category-icon {
    animation: pulse 0.6s ease-in-out, particleGlow 1s ease-in-out;
    transform: scale(1.1) rotate(5deg);
}

.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    width: 100%;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片加载失败样式 */
.photo-item img[src=""],
.photo-item img:not([src]) {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item img[src=""]:before,
.photo-item img:not([src]):before {
    content: "📷";
    font-size: 2rem;
    color: #ccc;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 照片相关样式 */
.no-photos {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-photos i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.no-photos p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.no-photos small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.photo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
    color: #999;
    border-radius: 10px;
}

.photo-error i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.photo-count {
    color: #667eea;
    font-weight: normal;
    font-size: 0.9rem;
}

.loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
    grid-column: 1 / -1;
}

/* 增强的分类卡片样式 */
.category-card.has-photos {
    border-left: 4px solid #667eea;
}

.category-card.no-photos {
    opacity: 0.7;
    border-left: 4px solid #ddd;
}

/* 照片网格增强 */
.photo-grid:empty::after {
    content: "正在加载照片...";
    display: block;
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* 响应式照片网格 */
@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .photo-item {
        border-radius: 8px;
    }
}

/* 照片加载动画增强 */
.photo-item.lazy-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

/* 模态框增强 */
.modal-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }

    .modal-nav {
        padding: 0 10px;
    }

    .modal-prev,
    .modal-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}

/* 自定义鼠标光标 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #667eea;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.custom-cursor.cursor-hover {
    width: 30px;
    height: 30px;
    background: rgba(255, 107, 107, 0.8);
    border-color: #ff6b6b;
}

.cursor-follower.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.1);
}

.custom-cursor.cursor-click {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 1);
}

.cursor-follower.cursor-click {
    width: 30px;
    height: 30px;
    background: rgba(102, 126, 234, 0.4);
}

/* 鼠标悬停时的粒子连线增强 */
#particles-js:hover {
    opacity: 1;
}

/* 为特定元素恢复光标 */
input, textarea, select {
    cursor: text !important;
}

/* 移动端隐藏自定义光标 */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

/* 增强的悬停效果 */
.photo-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.nav-link:hover {
    transform: translateY(-2px);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

/* 粒子背景增强 */
#particles-js {
    transition: opacity 0.3s ease;
}

#particles-js canvas {
    transition: filter 0.3s ease;
}

/* 鼠标进入时的背景效果 */
.hero:hover #particles-js {
    filter: brightness(1.1);
}

/* 交互式元素的光标提示 */
.photo-item,
.category-card,
.nav-link,
.cta-button,
.modal-prev,
.modal-next,
.close {
    position: relative;
}

.photo-item::before,
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.photo-item:hover::before,
.category-card:hover::before {
    opacity: 1;
}

/* 点击粒子效果 */
.click-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: clickExplosion 1s ease-out forwards;
}

@keyframes clickExplosion {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--vx)), calc(-50% + var(--vy))) scale(0);
        opacity: 0;
    }
}

/* 轨迹粒子效果 */
.trail-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: trailFade 0.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* 粒子背景的鼠标交互增强 */
#particles-js {
    transition: all 0.3s ease;
}

#particles-js:hover {
    filter: brightness(1.2) saturate(1.1);
}

/* 鼠标按下时的背景效果 */
#particles-js:active {
    filter: brightness(1.3) saturate(1.2) hue-rotate(10deg);
}

/* 增强的动画效果 */
@keyframes particleGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(255, 107, 107, 0.4);
    }
}

.custom-cursor {
    animation: particleGlow 2s ease-in-out infinite;
}

/* 特殊的悬停区域效果 */
.hero:hover .floating-photo {
    animation-duration: 4s;
    filter: brightness(1.1) saturate(1.1);
}

.timeline-item:hover {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
}

/* 鼠标离开时的平滑过渡 */
* {
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* 禁用某些元素的过渡以避免冲突 */
.click-particle,
.trail-particle,
.custom-cursor,
.cursor-follower {
    transition: none !important;
}

/* 增强的粒子连线效果 */
#particles-js canvas {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

/* 鼠标悬停时的特殊效果 */
.category-card:hover .category-icon {
    animation: pulse 0.6s ease-in-out, particleGlow 1s ease-in-out;
    transform: scale(1.1) rotate(5deg);
}

/* 响应式鼠标效果 */
@media (hover: none) {
    .custom-cursor,
    .cursor-follower,
    .click-particle,
    .trail-particle {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* AI祝福小球 */
.ai-greeting-ball {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 900;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.ai-greeting-ball:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.ai-greeting-ball:active {
    transform: scale(0.95);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-greeting-ball {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 80px;
        font-size: 1.3rem;
    }
    
    .ai-greeting-content {
        width: 95%;
        max-width: 350px;
    }
    
    .ai-greeting-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ai-avatar {
        margin-bottom: 10px;
    }
}

.ai-greeting-ball.mobile {
    width: 45px;
    height: 45px;
    right: 12px;
    bottom: 70px;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-greeting-content.mobile {
    width: 92%;
    max-width: 320px;
}

.ai-greeting-content.mobile .ai-greeting-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.ai-greeting-content.mobile .ai-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.ai-greeting-content.mobile .ai-greeting-footer {
    padding: 10px 15px;
}

/* 添加窗口大小变化时的响应式调整 */
@media (max-width: 480px) {
    .ai-greeting-ball {
        width: 40px;
        height: 40px;
        right: 10px;
        bottom: 60px;
        font-size: 1.1rem;
    }
    
    .ai-greeting-content {
        width: 95%;
        max-width: 300px;
    }
    
    .ai-greeting-header {
        padding: 12px 15px;
    }
    
    .ai-greeting-header h3 {
        font-size: 1.1rem;
    }
    
    .ai-greeting-body {
        padding: 15px;
    }
    
    .ai-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .new-greeting-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

