/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background-color: #1a1a2e;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #4cc9f0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #4cc9f0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4cc9f0;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    width: 200px;
}

.search-box button {
    background-color: #4cc9f0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #3aa8d8;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: #4cc9f0;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1a1a2e;
    transform: translateY(-3px);
}

/* 关键词区域 */
.keywords-section {
    padding: 60px 0;
    background-color: white;
}

.keywords-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.keyword-highlight {
    background-color: #f0f8ff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #4cc9f0;
}

.keyword-highlight h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.keyword-tags a {
    background-color: #1a1a2e;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.keyword-tags a:hover {
    background-color: #4cc9f0;
    transform: translateY(-3px);
}

/* 图片展示区域 */
.gallery-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.gallery-section h2, .video-section h2, .categories-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* 视频展示区域 */
.video-section {
    padding: 60px 0;
    background-color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(76, 201, 240, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.3s;
}

.video-item:hover .play-button {
    background-color: rgba(76, 201, 240, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* 分类区域 */
.categories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.category-group {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-group h3 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #4cc9f0;
}

.category-group ul {
    list-style: none;
}

.category-group li {
    margin-bottom: 10px;
}

.category-group a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.category-group a:hover {
    color: #4cc9f0;
}

.category-group a::before {
    content: "▶";
    margin-right: 10px;
    font-size: 0.8rem;
    color: #4cc9f0;
}

/* 底部关键词区域 */
.footer-keywords {
    padding: 60px 0;
    background-color: white;
}

.footer-keywords h2 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 2rem;
}

.footer-keywords p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 页脚样式 */
.footer {
    background-color: #1a1a2e;
    color: white;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #4cc9f0;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4cc9f0;
}

.footer-contact p {
    margin-bottom: 15px;
    color: #ddd;
}

.footer-main-link {
    display: inline-block;
    background-color: #4cc9f0;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.footer-main-link:hover {
    background-color: #3aa8d8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* 图片和视频链接样式 */
.gallery-link, .video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    border-radius: 8px;
}

.gallery-link:hover, .video-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 确保链接内的项目保持原有样式 */
.gallery-link .gallery-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-link:hover .gallery-item {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-link .video-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-link:hover .video-item {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* 确保链接不破坏原有布局 */
.gallery-grid .gallery-link,
.video-grid .video-link {
    display: block;
    height: 100%;
}

/* 鼠标悬停时播放按钮效果增强 */
.video-link:hover .play-button {
    background-color: rgba(76, 201, 240, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

/* 悬停时图片放大效果 */
.gallery-link:hover .gallery-item img {
    transform: scale(1.08);
}

.video-link:hover .video-thumbnail img {
    transform: scale(1.08);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .keywords-section h2, .gallery-section h2, 
    .video-section h2, .categories-section h2 {
        font-size: 1.8rem;
    }
    
    .keyword-tags {
        gap: 10px;
    }
    
    .keyword-tags a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-link, .video-link {
        margin-bottom: 10px;
    }
}