/* 全局样式 */
:root {
    --primary-color: #FF5E7D;
    --secondary-color: #FF8A5B;
    --accent-color: #6A11CB;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-color: #EEEEEE;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.gradient-box {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
}

/* 头部样式 */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: block;
}

.search-box {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-box form {
    display: flex;
    height: 40px;
}

.search-box input {
    flex-grow: 1;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    width: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    opacity: 0.9;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 15px;
    font-size: 14px;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
}

.download-btn:hover {
    color: white;
    opacity: 0.9;
}

/* 导航栏样式 */
nav {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    overflow-x: auto;
}

nav ul li {
    flex-shrink: 0;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

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

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* 主要内容区域样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 24px;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.more-link {
    font-size: 14px;
    color: var(--light-text);
}

/* 轮播图样式 */
.banner-section {
    position: relative;
    margin-bottom: 30px;
}

.banner-section h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 10px 0;
}

.banner-slider {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.banner-content {
    padding: 30px;
    color: white;
    max-width: 60%;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.banner-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 漫画卡片样式 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.comic-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.comic-cover {
    height: 280px;
    position: relative;
}

.comic-info {
    padding: 15px;
}

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

.comic-info p {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--light-bg);
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.comic-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.comic-card.featured .comic-cover {
    height: 100%;
}

.comic-card.featured .comic-info {
    padding: 20px;
}

.comic-card.featured .comic-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.description {
    margin-top: 10px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类浏览样式 */
.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--light-bg);
    transition: var(--transition);
}

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

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.category-item span {
    font-size: 16px;
    font-weight: 500;
}

/* APP下载样式 */
.app-section {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    padding: 30px;
    margin: 50px 0;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.app-features li {
    margin-bottom: 10px;
    font-size: 16px;
}

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

.btn-download {
    display: flex;
    align-items: center;
    padding: 12px 25px;
}

.btn-download span {
    margin-left: 8px;
}

.app-image {
    height: 400px;
}

/* 文章样式 */
.articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-image {
    height: 100%;
    min-height: 200px;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.article-content p {
    font-size: 15px;
    line-height: 1.7;
}

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

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

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

.footer-logo p {
    margin-top: 15px;
    color: #AAAAAA;
}

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

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.footer-column ul li a {
    color: #AAAAAA;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.footer-middle h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

.footer-middle h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.footer-middle ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-middle ul li {
    margin-right: 15px;
}

.footer-middle ul a {
    color: #AAAAAA;
    font-size: 14px;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    font-size: 14px;
    color: #888888;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .comic-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .comic-card.featured .comic-cover {
        height: 280px;
    }
    
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search-box {
        margin: 15px 0;
        max-width: 100%;
    }
    
    .user-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
