/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #e53935;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo h1 a {
    color: #e53935;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    flex: 0 0 300px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 0 20px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.search-box button:hover {
    background-color: #d32f2f;
}

/* 导航样式 */
.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav a.active, .nav a:hover {
    background-color: #e53935;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 10px;
}

.banner-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-item {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 30px;
}

.banner-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.banner-text h2 a {
    color: #fff;
}

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover, .banner-next:hover {
    background-color: #e53935;
}

/* 主内容区样式 */
.main-content {
    padding: 20px 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53935;
}

.section-title a {
    color: #e53935;
}

/* 标签区域 */
.tags-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    padding: 8px 15px;
    background-color: #f8f8f8;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tag:hover {
    background-color: #e53935;
    color: #fff;
}

/* 视频列表样式 */
.video-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-cover {
    position: relative;
    height: 180px;
    display: block;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(229, 57, 53, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* 图片列表样式 */
.image-section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-cover {
    position: relative;
    height: 150px;
    display: block;
}

.image-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(229, 57, 53, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .hover-mask {
    opacity: 1;
}

.image-info {
    padding: 15px;
}

.image-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 关键词密集区 */
.keyword-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.keyword-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #e53935;
}

.footer-links a {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #e53935;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

.footer-bottom a {
    color: #e53935;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .banner {
        height: 400px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-text h2 {
        font-size: 1.5rem;
    }
    
    .video-grid, .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 200px;
    }
    
    .video-grid, .image-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card, .image-card {
    animation: fadeIn 0.5s ease forwards;
}

.video-card:nth-child(2) {
    animation-delay: 0.1s;
}

.video-card:nth-child(3) {
    animation-delay: 0.2s;
}

.video-card:nth-child(4) {
    animation-delay: 0.3s;
}

.video-card:nth-child(5) {
    animation-delay: 0.4s;
}

.video-card:nth-child(6) {
    animation-delay: 0.5s;
}