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

:root {
    --primary: #9c27b0;
    --secondary: #ba68c8;
    --accent: #ce93d8;
    --dark: #7b1fa2;
    --bg-light: #f3e5f5;
    --bg-white: #ffffff;
    --text-dark: #2d2d2d;
    --text: #4a4a4a;
    --text-light: #8a8a8a;
    --border: #e1bee7;
    --shadow: 0 4px 12px rgba(156, 39, 176, 0.15);
    --shadow-lg: 0 8px 24px rgba(156, 39, 176, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 顶部导航栏 */
.top-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.site-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.site-code {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

.main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.menu-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.menu-link:hover,
.menu-link.current {
    color: var(--primary);
}

.menu-link.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 轮播横幅 */
.banner-slider {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.slide-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.slide-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide-image img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-content {
    animation: fadeInLeft 0.6s ease-out;
}

.slide-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-text {
    font-size: 24px;
    line-height: 1.8;
    color: var(--primary);
    font-weight: 500;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 内容区域 */
.content-area {
    padding: 0;
}

/* 关于区块 */
.about-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-box {
    max-width: 1000px;
    margin: 0 auto;
}

.area-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.about-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 25px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* 列表区块 */
.list-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.more-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--dark);
}

.comic-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comic-item {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.comic-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.item-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    text-decoration: none;
    color: inherit;
}

.item-image {
    position: relative;
    width: 200px;
    height: 280px;
    overflow: hidden;
    background: var(--text-dark);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.comic-item:hover .item-image img {
    transform: scale(1.1);
}

.item-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.item-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.item-meta {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 15px;
}

.item-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 分类区块 */
.category-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-item {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.category-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

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

.category-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.category-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-btn:hover {
    color: var(--dark);
}

/* 排行区块 */
.rank-area {
    padding: 80px 0;
    background: var(--bg-white);
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rank-row {
    display: grid;
    grid-template-columns: 60px 120px 1fr auto;
    gap: 25px;
    align-items: center;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.rank-row:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.rank-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.rank-pic {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
}

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

.rank-detail {
    flex: 1;
}

.rank-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.rank-info {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
}

.rank-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.rank-action {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: all 0.3s;
}

.rank-action:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* 页面标题 */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-heading {
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.page-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* 详情区块 */
.detail-area {
    padding: 60px 0;
    background: var(--bg-white);
}

.detail-box {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.detail-poster {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border);
}

.detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-main {
    flex: 1;
}

.detail-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.detail-tag {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 25px;
}

.detail-intro {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.detail-intro p {
    margin-bottom: 20px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-item {
    background: var(--bg-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* 章节区块 */
.chapter-area {
    padding: 60px 0;
    background: var(--bg-light);
}

.chapter-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.chapter-link {
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.chapter-link:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* 信息区块 */
.info-area {
    padding: 60px 0;
    background: var(--bg-white);
}

.info-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.info-box h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-box p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 页脚 */
.bottom-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-head {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-para {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent);
}

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

.footer-copy p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .slide-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .slide-image {
        order: -1;
    }

    .detail-box {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 99;
    }

    .menu-list.active {
        left: 0;
    }

    .menu-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .menu-link {
        display: block;
        padding: 15px 0;
    }

    .menu-btn {
        display: flex;
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .slide-title {
        font-size: 36px;
    }

    .area-title {
        font-size: 32px;
    }

    .item-link {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }

    .item-image {
        width: 150px;
        height: 210px;
    }

    .rank-row {
        grid-template-columns: 50px 100px 1fr;
    }

    .rank-action {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 28px;
    }

    .page-heading {
        font-size: 32px;
    }

    .item-link {
        grid-template-columns: 1fr;
    }

    .item-image {
        width: 100%;
        height: 300px;
    }
}
