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

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

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

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

a:hover {
    color: #ff8787;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.logo h1 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #fff;
    color: #ff6b6b;
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.banner-content {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 0 30px 30px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.banner-image {
    text-align: center;
    margin-top: 30px;
}

.banner-image img {
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 剧集区域样式 */
.drama-section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #ff6b6b;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ff6b6b;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #777;
    font-size: 16px;
}

.drama-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.drama-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.drama-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.drama-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.drama-info {
    padding: 20px;
}

.drama-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tags span {
    background-color: #ffeaea;
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.drama-info p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.watch-btn {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background-color: #ff8787;
    color: white;
}

/* 分类区域样式 */
.category-section {
    padding: 50px 0;
    background-color: #fff;
}

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

.category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.category-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.category-item p {
    color: #777;
    font-size: 14px;
}

/* 文章区域样式 */
.articles-section {
    padding: 50px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 10px;
}

/* APP下载区域样式 */
.app-download {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    padding: 60px 0;
    color: #fff;
}

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

.app-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.app-info p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

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

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

.app-btn {
    display: inline-block;
    background-color: white;
    color: #a18cd1;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #a18cd1;
}

.app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.app-image img {
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    justify-content: space-around;
}

.footer-links-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-links-column h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links-column ul li {
    margin-bottom: 8px;
}

.footer-links-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #ff6b6b;
}

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

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .drama-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 24px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 30px;
    }
    
    .drama-cards {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
    }
}