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

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

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主题颜色 */
:root {
    --primary-color: #ff5722;
    --secondary-color: #ffeb3b;
    --accent-color: #3f51b5;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --gray-color: #757575;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* 通用容器 */
.section-container {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-alt {
    background-color: #f0f0f0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* 头部导航 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

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

nav ul li a:hover {
    color: var(--primary-color);
}

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

/* 主横幅 */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/template/fan/1a/static/picture/c33.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 5%;
    text-align: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 剧集卡片 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.episode-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

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

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

.episode-card:hover .episode-image img {
    transform: scale(1.1);
}

.episode-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.episode-info {
    padding: 20px;
}

.episode-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.episode-info p {
    color: var(--gray-color);
}

/* 角色滑块 */
.character-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.character-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.character-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 世界介绍 */
.world-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.world-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.world-description {
    display: grid;
    gap: 20px;
}

.world-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* 文章卡片 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.article-content p {
    color: var(--gray-color);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* APP下载 */
.app-download {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    text-align: center;
}

.feature i {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 15px;
    position: relative;
}

.icon-hd::before {
    content: 'HD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.icon-download::before {
    content: '↓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.icon-update::before {
    content: '↻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.icon-comment::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.app-download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    background: var(--dark-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.download-btn img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.app-preview img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 10px solid white;
}

/* 异火排行榜 */
.fire-ranking {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.fire-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease;
}

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

.fire-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.fire-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fire-info {
    padding: 20px;
}

.fire-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 推荐观看 */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.recommend-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.recommend-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.recommend-info {
    padding: 20px;
}

.recommend-info h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.recommend-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
    color: white;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-nav-col h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav-col ul li {
    margin-bottom: 10px;
}

.footer-nav-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-middle {
    margin-bottom: 40px;
}

.friendly-links h3 {
    color: white;
    margin-bottom: 20px;
}

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .world-info,
    .app-download {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .app-features {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .app-download-buttons {
        flex-direction: column;
    }
}
