/* 基础样式 */
:root {
    --primary-color: #ff3366;
    --secondary-color: #6633ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 头部样式 */
.header {
    background: var(--dark-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo-link i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 28px;
}

/* 搜索框样式 */
.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航菜单 */
.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    margin-right: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 关键词区域 */
.keywords-section {
    background: var(--gradient);
    padding: 25px 0;
    color: white;
}

.keywords-content p {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

/* 分类导航 */
.category-nav {
    margin: 40px 0 30px;
    text-align: center;
}

.category-nav h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.category-nav h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.category-tags a {
    padding: 10px 20px;
    background: white;
    border-radius: 30px;
    font-weight: 500;
    color: var(--dark-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.category-tags a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 图片展示区 */
.gallery-section, .video-section {
    margin: 50px 0;
}

.gallery-section h2, .video-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.gallery-section h2 i, .video-section h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.gallery-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item, .video-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover, .video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-info, .video-info {
    padding: 20px;
}

.gallery-info h3, .video-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.gallery-info p, .video-info p {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

.view-btn:hover {
    opacity: 0.9;
    color: white;
}

/* 关键词列表区 */
.keyword-list-section {
    margin: 50px 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.keyword-list-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.keyword-list a {
    padding: 8px 18px;
    background: #f0f0f0;
    border-radius: 20px;
    color: var(--dark-color);
    font-size: 15px;
}

.keyword-list a:hover {
    background: var(--gradient);
    color: white;
}

/* 底部关键词区域 */
.footer-keywords {
    margin: 50px 0;
    padding: 30px;
    background: var(--dark-color);
    color: white;
    border-radius: 12px;
}

.footer-keywords-content p {
    text-align: center;
    line-height: 1.8;
    font-size: 16px;
}

/* 页脚样式 */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 50px 0 20px;
}

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

.footer-logo p {
    margin-top: 15px;
    line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
}

.social-icons a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

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

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .search-box {
        max-width: 400px;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .mobile-menu-btn {
        order: 2;
        display: block;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        margin-top: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .search-box {
        order: 3;
        margin: 20px 0;
        max-width: 100%;
    }
    
    .category-tags, .keyword-list {
        gap: 10px;
    }
    
    .category-tags a, .keyword-list a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .keywords-content p {
        font-size: 16px;
    }
}