/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a6cf7;
    text-decoration: none;
}

.logo span {
    color: #ff6b9d;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-box form {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-box form:hover {
    border-color: #4a6cf7;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #3a5ce5;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a6cf7;
}

/* 关键词展示区 */
.keyword-showcase {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.keyword-showcase h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.keyword-cloud a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.keyword-cloud a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.keyword-large {
    font-size: 1.3rem;
    font-weight: 700;
}

.keyword-medium {
    font-size: 1.1rem;
    font-weight: 600;
}

.keyword-small {
    font-size: 0.9rem;
}

/* 图片画廊 */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-section h2 {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 视频区 */
.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-section h2 {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    background: #4a6cf7;
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.video-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-info h3 a:hover {
    color: #4a6cf7;
}

.video-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

.video-meta i {
    margin-right: 5px;
}

/* 分类区 */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-section h2 {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.category-card h3 a {
    color: white;
    text-decoration: none;
}

.category-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-stats {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* SEO内容区 */
.seo-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.seo-content h2 {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.keyword-list {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.keyword-list p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.all-keywords {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.all-keywords h3 {
    margin-bottom: 15px;
    color: #333;
}

.all-keywords p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* 页脚 */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-family: 'Quicksand', sans-serif;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-keywords a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.footer-keywords a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #a0aec0;
}

.footer-bottom a {
    color: #4a6cf7;
    text-decoration: none;
}

.seo-text {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.5;
}

/* 浮动搜索按钮 */
.floating-search {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#search-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7 0%, #3a5ce5 100%);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(74, 108, 247, 0.4);
    transition: all 0.3s ease;
}

#search-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.5);
}

.search-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 300px;
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-popup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-popup input {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-popup button {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-popup button:hover {
    background: #3a5ce5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-box {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .keyword-cloud {
        gap: 10px;
    }
    
    .gallery-grid,
    .video-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid,
    .video-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .keyword-showcase h2,
    .gallery-section h2,
    .video-section h2,
    .categories-section h2 {
        font-size: 1.8rem;
    }
    
    .keyword-cloud a {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-keywords {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .keyword-showcase h2,
    .gallery-section h2,
    .video-section h2,
    .categories-section h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .search-box input {
        padding: 10px 15px;
    }
    
    .floating-search {
        bottom: 20px;
        right: 20px;
    }
}