/* assets/css/style.css - 完整的网站样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #3a7bd5;
    --secondary-color: #ff9966;
    --accent-color: #ffcc00;
    --light-color: #f9f9f9;
    --dark-color: #333333;
    --text-color: #444444;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s ease;
}

body {
    background-color: #f7f9fc;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>'), 
                linear-gradient(135deg, rgba(58,123,213,0.8), rgba(0,210,255,0.8));
    opacity: 0.8;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 800px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-5px);
}

/* 统计信息 */
.stats-section {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

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

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 40px;
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    padding: 30px;
    background-color: #f0f7ff;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 年份主题颜色定义 */
.year-2005 { --year-color: #FF6B8B; --year-gradient: linear-gradient(135deg, #FF6B8B, #FF8E53); }
.year-2006 { --year-color: #4ECDC4; --year-gradient: linear-gradient(135deg, #4ECDC4, #44A08D); }
.year-2007 { --year-color: #FFD166; --year-gradient: linear-gradient(135deg, #FFD166, #FFB347); }
.year-2008 { --year-color: #06D6A0; --year-gradient: linear-gradient(135deg, #06D6A0, #1B9AAA); }
.year-2009 { --year-color: #118AB2; --year-gradient: linear-gradient(135deg, #118AB2, #073B4C); }
.year-2010 { --year-color: #EF476F; --year-gradient: linear-gradient(135deg, #EF476F, #FF9A76); }
.year-2011 { --year-color: #7209B7; --year-gradient: linear-gradient(135deg, #7209B7, #3A0CA3); }
.year-2012 { --year-color: #F72585; --year-gradient: linear-gradient(135deg, #F72585, #B5179E); }
.year-2013 { --year-color: #4361EE; --year-gradient: linear-gradient(135deg, #4361EE, #3A0CA3); }
.year-2014 { --year-color: #4CC9F0; --year-gradient: linear-gradient(135deg, #4CC9F0, #4895EF); }
.year-2015 { --year-color: #F15BB5; --year-gradient: linear-gradient(135deg, #F15BB5, #9B5DE5); }
.year-2016 { --year-color: #00BBF9; --year-gradient: linear-gradient(135deg, #00BBF9, #00F5D4); }
.year-2017 { --year-color: #FF9E00; --year-gradient: linear-gradient(135deg, #FF9E00, #FFD166); }
.year-2018 { --year-color: #9B5DE5; --year-gradient: linear-gradient(135deg, #9B5DE5, #F15BB5); }
.year-2019 { --year-color: #00F5D4; --year-gradient: linear-gradient(135deg, #00F5D4, #00BBF9); }
.year-2020 { --year-color: #FF595E; --year-gradient: linear-gradient(135deg, #FF595E, #FFCA3A); }
.year-2021 { --year-color: #6A4C93; --year-gradient: linear-gradient(135deg, #6A4C93, #1982C4); }
.year-2022 { --year-color: #8AC926; --year-gradient: linear-gradient(135deg, #8AC926, #1982C4); }
.year-2023 { --year-color: #FF595E; --year-gradient: linear-gradient(135deg, #FF595E, #6A4C93); }

/* 高级时间轴系统 */
.advanced-timeline {
    padding: 80px 0;
    background-color: #f0f5ff;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.timeline-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.timeline-btn {
    padding: 10px 25px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.timeline-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timeline-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timeline-years {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 40px;
    scrollbar-width: thin;
    gap: 10px;
}

.timeline-years::-webkit-scrollbar {
    height: 8px;
}

.timeline-years::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.year-btn {
    padding: 12px 25px;
    background-color: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.1rem;
}

.year-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.year-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 年份样式 - 使用CSS变量 */
.year-btn[data-year] {
    position: relative;
    overflow: hidden;
}

.year-btn[data-year]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--year-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.year-btn[data-year]:hover::before {
    opacity: 0.3;
}

.year-btn[data-year].active::before {
    opacity: 1;
}

/* 时间轴内容 */
.timeline-content {
    position: relative;
}

.timeline-main-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    z-index: 1;
    border-radius: 3px;
}

.timeline-items-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.timeline-year-group {
    margin-bottom: 60px;
    position: relative;
}

/* 年份装饰背景 */
.year-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
    background-image: var(--year-pattern);
    background-size: 300px;
    background-repeat: repeat;
}

.year-group-header {
    background: var(--year-gradient);
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    color: white;
}

.year-group-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: cover;
    z-index: -1;
}

.year-group-title {
    font-size: 2.5rem;
    margin-right: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.year-group-count {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.year-desc {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: 5px solid var(--year-color);
}

/* 瀑布流图片展示 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
    position: relative;
}

.masonry-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.masonry-item:hover .masonry-img {
    transform: scale(1.05);
}

.masonry-caption {
    padding: 20px;
}

.masonry-date {
    color: var(--year-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.masonry-date::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--year-color);
    border-radius: 50%;
    margin-right: 8px;
}

.masonry-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* 视频展示区 */
.videos-section {
    padding: 100px 0;
    background-color: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 20px;
}

/* 智能搜索和筛选 */
.search-section {
    padding: 80px 0;
    background-color: #f0f5ff;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #2a6bc5;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-tag {
    padding: 10px 25px;
    background-color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #e0e0e0;
    font-weight: 600;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-tag:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin: 60px 0;
}

.load-more-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.load-more-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
    background: linear-gradient(to right, var(--dark-color), #1a1a1a);
    color: white;
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.heart {
    color: #ff3366;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.2); }
    10% { transform: scale(1.1); }
    15% { transform: scale(1.3); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .timeline-main-line {
        left: 30px;
    }
    
    .year-group-header {
        margin-left: 60px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .year-group-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .timeline-main-line {
        display: none;
    }
    
    .year-group-header {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 加载动画 */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 飘动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* 气泡效果 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* 背景图案 */
.pattern-dots {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-lines {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, currentColor 10px, currentColor 20px);
    background-size: 28px 28px;
}

.pattern-triangles {
    background-image: 
        linear-gradient(45deg, currentColor 25%, transparent 25%),
        linear-gradient(-45deg, currentColor 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, currentColor 75%),
        linear-gradient(-45deg, transparent 75%, currentColor 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.pattern-hexagons {
    background-image: 
        linear-gradient(30deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(150deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(30deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(150deg, currentColor 12%, transparent 12.5%, transparent 87%, currentColor 87.5%, currentColor),
        linear-gradient(60deg, currentColor 25%, transparent 25.5%, transparent 75%, currentColor 75%, currentColor),
        linear-gradient(60deg, currentColor 25%, transparent 25.5%, transparent 75%, currentColor 75%, currentColor);
    background-size: 20px 35px;
    background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}