
/*========== 全局重置 & 暗色科幻风格 ==========*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
}

body {
    background: linear-gradient(120deg, #0a0a16, #1a1a38);
    color: #fff;
    min-height: 100vh;
    margin-top: 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

.container {
    width: 1700px;
    max-width: 94%;
    margin: 0 auto;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(10,10,22,0.95), rgba(10,10,22,0));
    transition: all 0.3s ease;
}
header.active {
    background: rgba(10,10,22,0.98);
    box-shadow: 0 2px 20px rgba(255, 0, 255, 0.2);
}
.header-wrap {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 20px 0;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #4fc3f7, #ff6b6b);
    -webkit-background-clip: text;
    color: transparent;
}
.logo span {
    font-size: 24px;
    color: #ff9800;
    margin-left: 8px;
}
.nav-list {
    display: flex;
    gap: 35px;
    margin-left: 80px;
}
.nav-list li a {
    font-size: 16px;
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
}
.nav-list li a:hover {
    color: #fff;
}
.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4fc3f7, #ff6b6b);
    transition: width 0.3s ease;
}
.nav-list li a:hover::after {
    width: 100%;
}

/* 全屏轮播Banner (保持不变，仅占位) */
.banner {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: -90px;
}
.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url(static/picture/banner1.jpg) center/cover;
}
.banner-slide:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url(static/picture/banner2.jpg) center/cover;
}
.banner-slide:nth-child(3) {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url(static/picture/banner3.jpg) center/cover;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
}
.banner-text h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.banner-text p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 30px;
    max-width: 600px;
}
.banner-dot {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}
.banner-dot li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}
.banner-dot li.active {
    background: #ff6b6b;
    transform: scale(1.2);
}


/*========== 主布局 ==========*/
.main-layout {
    display: flex;
    gap: 30px;
    margin: 30px auto 50px;
    align-items: flex-start;
}

/* 左侧分类 (半透明卡片) */
.sidebar {
    width: 240px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 20px 0;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.filter-header {
    padding: 0 18px 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    margin-bottom: 10px;
}
.filter-header h3 {
    font-size: 18px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-header h3 i {
    font-style: normal;
    background: #ff6b6b;
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.selected-box {
    background: rgba(0,0,0,0.3);
    padding: 12px 18px;
    border-left: 4px solid #4fc3f7;
    font-size: 14px;
    margin: 0 0 15px 0;
    border-radius: 0 8px 8px 0;
}
.selected-box p {
    color: #aaa;
}
.selected-box .tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 30px;
    margin-top: 8px;
    font-size: 13px;
    color: #4fc3f7;
    border: 1px solid rgba(79,195,247,0.3);
}

.filter-section {
    padding: 0 18px;
    margin-bottom: 25px;
}
.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    border-left: 4px solid #4fc3f7;
    padding-left: 10px;
}
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
}
.filter-tag {
    padding: 5px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    transition: 0.15s;
    border: 1px solid transparent;
}
.filter-tag:hover {
    background: rgba(79,195,247,0.15);
    border-color: #4fc3f7;
    color: #4fc3f7;
}
.filter-tag.active {
    background: #4fc3f7;
    border-color: #4fc3f7;
    color: #000;
    font-weight: 500;
}

/* 右侧主内容 */
.main-content {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 20px 25px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #aaa;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 18px;
}
.breadcrumb a {
    color: #4fc3f7;
}
.breadcrumb span {
    margin: 0 6px;
    color: #666;
}

.sub-nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tabs-left {
    display: flex;
    gap: 25px;
    font-size: 16px;
}
.tabs-left .tab {
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #aaa;
    transition: 0.2s;
}
.tabs-left .tab:hover {
    color: #fff;
}
.tabs-left .tab.active {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}
.tab-count {
    color: #aaa;
    font-size: 14px;
}

.selected-hint {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(79,195,247,0.3);
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #4fc3f7;
}
.selected-hint .clear {
    color: #ff6b6b;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
}
.selected-hint .clear:hover {
    text-decoration: underline;
}

.stat-bar {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 15px;
    font-size: 14px;
    color: #ccc;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 漫画网格 (固定5列) */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 15px;
    margin: 20px 0 25px;
}

.comic-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}
.comic-card:hover {
    transform: translateY(-6px);
    border-color: #4fc3f7;
    box-shadow: 0 10px 20px rgba(79,195,247,0.2);
}

.comic-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #222;
    display: block;
    transition: transform 0.3s ease;
}
.comic-card:hover .comic-cover {
    transform: scale(1.05);
}

.comic-info {
    padding: 10px 8px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.comic-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
/* 新增：多题材标签行 */
.comic-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 6px 0 8px;
}
.theme-tag {
    background: rgba(79, 195, 247, 0.15);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 16px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 400;
    color: #a0d8ff;
    letter-spacing: 0.3px;
    transition: 0.1s;
}
.comic-card:hover .theme-tag {
    background: rgba(79, 195, 247, 0.25);
    color: #fff;
}
.comic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-top: auto;
}
.comic-meta .score {
    color: #ffd700;
    font-weight: 600;
}
.comic-meta .hot {
    color: #ff6b6b;
}

/* 页脚 */
footer {
    background: #050510;
    padding: 35px 0 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bbb;
}
.footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-company {
    font-size: 25px;
    font-weight: bold;
    background: linear-gradient(90deg, #4fc3f7, #ff6b6b);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}
.footer-contact {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}
.footer-icp {
    margin-top: 25px;
    font-size: 12px;
    color: #666;
}
.footer-icp a {
    color: #aaa;
}
.footer-icp a:hover {
    color: #4fc3f7;
}
