/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 黄金布局容器 */
.main-container {
    display: flex;
    width: 90%;
    margin: 20px auto;
    gap: 2%;
}

/* 左侧70%主内容 */
.content-left {
    width: 70%;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* 右侧30%侧边栏 */
.content-right {
    width: 30%;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Hero区轮播 */
.hero-section {
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Hero区文案 */
.hero-text {
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 10px 0;
}

/* 韩漫列表样式 */
.hanman-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.hanman-item {
    width: calc(33.33% - 20px);
    text-decoration: none;
    color: #333;
}

.hanman-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hanman-item h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

/* 侧边栏模块 */
.sidebar-module {
    margin-bottom: 30px;
}

.sidebar-module h3 {
    border-bottom: 2px solid #e53935;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sidebar-module ul {
    list-style: none;
}

.sidebar-module li {
    margin: 8px 0;
}

.sidebar-module a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.sidebar-module a:hover {
    color: #e53935;
}

/* 页脚样式 */
.footer-section {
    width: 90%;
    margin: 30px auto 20px;
    padding: 20px;
    background: #333;
    color: white;
    border-radius: 8px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #e53935;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copyright a {
    color: white;
    text-decoration: none;
}

/* 响应式适配（移动端） */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .content-left, .content-right {
        width: 100%;
        margin-bottom: 20px;
    }
    .hanman-item {
        width: calc(50% - 20px);
    }
    .carousel-container {
        height: 200px;
    }
    .footer-nav, .copyright {
        flex-direction: column;
        gap: 10px;
    }
}

/* 三级页面样式（通用） */
.three-level-page {
    width: 90%;
    margin: 20px auto;
}

.comic-header {
    margin-bottom: 20px;
}

.comic-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.comic-cover {
    width: 200px;
    height: auto;
}

.comic-desc {
    flex: 1;
}

.chapter-list, .comment-list, .recommend-comic {
    margin: 30px 0;
}

.chapter-list ul, .comment-list ul, .recommend-comic ul {
    list-style: none;
    margin-top: 10px;
}

.chapter-list li, .comment-list li, .recommend-comic li {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.chapter-list a, .recommend-comic a {
    text-decoration: none;
    color: #333;
}

.chapter-list a:hover, .recommend-comic a:hover {
    color: #e53935;
}