/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #e74c3c;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: #fff;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    height: 36px;
    padding: 0 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #c0392b;
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.slide-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-info p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.slider-controls span {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-controls span.active {
    background-color: #e74c3c;
}

/* 主要内容区样式 */
main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.section-header h3 {
    font-size: 20px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.more {
    color: #999;
    font-size: 14px;
}

.more:hover {
    color: #e74c3c;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.episode {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-info {
    padding: 10px 0;
}

.card-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 内容介绍样式 */
.content-intro {
    background-color: #fff;
}

.article-list article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.article-list article:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.article-list h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.article-list p {
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* APP下载模块样式 */
.app-download {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.app-content {
    display: flex;
    align-items: center;
}

.app-info {
    flex: 1;
    padding: 30px;
}

.app-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.app-info p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-features {
    margin-bottom: 25px;
}

.app-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.app-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    color: #e74c3c;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #c0392b;
}

.download-btn i {
    margin-right: 8px;
}

.app-qrcode {
    width: 200px;
    text-align: center;
    padding: 20px;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 4px;
}

.app-qrcode p {
    margin-top: 10px;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #999;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav-item {
    width: 25%;
    padding-right: 20px;
    margin-bottom: 20px;
}

.footer-nav-item h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-item h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-nav-item ul li {
    margin-bottom: 8px;
}

.footer-nav-item ul li a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-nav-item ul li a:hover {
    color: #e74c3c;
}

.footer-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-qrcode {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .slider {
        height: 300px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 200px;
    }
    
    .slide-info h2 {
        font-size: 18px;
    }
    
    .slide-info p {
        font-size: 14px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-nav-item {
        width: 100%;
    }
}

/* 主题色彩方案 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --text-color: #333;
    --light-text: #999;
    --background: #f5f5f5;
    --card-bg: #fff;
    --border-color: #eee;
}

h1 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin: 20px 0;
    padding-bottom: 20px;
    position: relative;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
}
