/* 基础样式重置 */
* {
    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 15px;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
}

a:hover {
    color: #ff6600;
}

/* 导航栏样式 */
.navbar {
    background-color: #1a1a2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: #ff6600;
}

.search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    display: flex;
}

.search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background-color: #e55a00;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: #ff6600;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff6600;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.keyword-tags a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}

.keyword-tags a:hover {
    background-color: #ff6600;
    transform: translateY(-3px);
}

/* 主要内容区 */
main {
    padding: 40px 0;
}

.section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section h2 i {
    margin-right: 10px;
    color: #ff6600;
}

.section-desc {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* 图片网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 15px;
}

.image-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.image-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.video-card:hover .play-btn {
    background-color: rgba(255, 102, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 关键词区域 */
.keyword-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.keyword-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keywords a {
    background-color: #f1f5f9;
    color: #1a1a2e;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.keywords a:hover {
    background-color: #ff6600;
    color: white;
}

/* 关键词列表区域 */
.keyword-list-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.all-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.all-keywords a {
    background-color: white;
    color: #1a1a2e;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.all-keywords a:hover {
    background-color: #ff6600;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6600;
    left: 0;
    bottom: 0;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
}

.footer-section ul li a:hover {
    color: #ff6600;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #ff6600;
    margin: 0 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 40px 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .keyword-tags a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords a, .all-keywords a {
        font-size: 12px;
        padding: 6px 12px;
    }
}