      /* 卡片网格 —— 响应式核心 */
.grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}
.grid-7 > div {
    min-width: 0;
    overflow: hidden;
}
.v-card {
    text-align: center;
    transition: transform 0.2s ease;
}
.v-card:hover { transform: translateY(-4px); }

.v-card .cover {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e9e9e9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    background-image: linear-gradient(145deg, #ddd 0%, #ececec 100%);
}

.v-card .title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-card .author {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 第二区块：横版卡片 1行3个 → 自适应 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.h-card {
    display: flex;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
}
.h-card:hover {
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
    border-color: #ffdede;
}

.h-card .cover {
    width: 85px;
    height: 115px;
    background: #ddd;
    flex-shrink: 0;
    border-radius: 4px;
    background-image: linear-gradient(135deg, #ccc, #e0e0e0);
}

.h-card .info {
    margin-left: 15px;
    flex: 1;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.h-card .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    display: inline-block;
}

.h-card .tags {
    margin-top: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: #eee;
    font-size: 11px;
    margin-right: 6px;
    border-radius: 12px;
}

.tag.status {
    background: #ff4a4a;
    color: #fff;
}

/* Tab 样式 */
.tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-btn {
    padding: 8px 0;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    position: relative;
    font-size: 15px;
    white-space: nowrap;
}

.tab-btn.active {
    color: #ff4a4a;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff4a4a;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 排行榜三列布局 */
.grid-rank {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.rank-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    color: #ff4a4a;
    font-weight: 600;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    gap: 10px;
}

.rank-num {
    width: 24px;
    height: 24px;
    background: #ccc;
    color: #fff;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num {
    background: #ff4a4a;
}

.rank-item:nth-child(2) .rank-num {
    background: #ff8e4a;
}

.rank-item:nth-child(3) .rank-num {
    background: #ffc24a;
}

.rank-img {
    width: 45px;
    height: 60px;
    background: #eee;
    flex-shrink: 0;
    border-radius: 4px;
    background-image: linear-gradient(145deg, #ddd, #f0f0f0);
}

.rank-info .r-title {
    font-size: 14px;
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.rank-info .r-author {
    font-size: 12px;
    color: #999;
}

       

/* ========= 响应式断点 (自适应核心) ========= */
/* 超大屏 1200px以上 保持7列 */
@media (max-width: 1100px) {
    .grid-7 {
grid-template-columns: repeat(6, 1fr);
gap: 12px;
    }
}

@media (max-width: 900px) {
    .grid-7 {
grid-template-columns: repeat(5, 1fr);
    }
    .grid-3 {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
    }
    .grid-rank {
gap: 20px;
    }
    .h-card .cover {
width: 75px;
height: 100px;
    }
}

@media (max-width: 768px) {
    .container {
padding: 0 12px;
    }
    .section {
padding: 15px;
margin-top: 15px;
    }
    .header-wrap {
flex-direction: column;
align-items: stretch;
    }
    .logo {
text-align: center;
    }
    .nav-main {
justify-content: center;
margin-left: 0;
gap: 18px;
    }
    .search-bar {
max-width: 100%;
width: 100%;
    }
    .grid-7 {
grid-template-columns: repeat(4, 1fr);
    }
    .grid-3 {
grid-template-columns: 1fr;
    }
    .grid-rank {
grid-template-columns: 1fr;
gap: 25px;
    }
    .block-header h2 {
font-size: 18px;
    }
    .h-card {
max-width: 100%;
    }
    .rank-info .r-title {
max-width: 180px;
    }
    .footer-wrap {
flex-direction: column;
text-align: center;
    }
    .footer-links nav {
align-items: center;
    }
}

@media (max-width: 550px) {
    .grid-7 {
grid-template-columns: repeat(3, 1fr);
gap: 12px;
    }
    .v-card .title {
font-size: 12px;
    }
    .v-card .author {
font-size: 10px;
    }
    .tab-menu {
gap: 12px;
    }
    .tab-btn {
font-size: 13px;
    }
}

@media (max-width: 400px) {
    .grid-7 {
grid-template-columns: repeat(2, 1fr);
    }
}

.placeholder-hover {
    transition: 0.2s;
}
/* ========= 简洁的Tag标签导航组件 ========= */
.tag-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
}

.tags-container {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tags-container.collapsed {
    max-height: 82px;  /* 大约两行的高度 */
}

/* 展开状态 */
.tags-container.expanded {
    max-height: 1000px;  /* 足够高显示所有标签 */
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
}

.tag-link {
    display: inline-block;
    padding: 6px 18px;
    background-color: #f5f5f5;
    border-radius: 30px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eaeaea;
    white-space: nowrap;
}
.tag-link.active {
    background-color: #ff4a4a;
    color: #fff;
    border-color: #ff4a4a;
    box-shadow: 0 2px 6px rgba(255, 74, 74, 0.3);
}
.tag-link:hover {
    background-color: #ff4a4a;
    color: #fff;
    border-color: #ff4a4a;
}

/* 展开/收起按钮 */
.toggle-btn {
    display: none;  /* 默认隐藏，只有超过20个时才显示 */
    background: none;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 20px;
    margin-top: 12px;
    font-size: 13px;
    color: #ff4a4a;
    cursor: pointer;
    font-weight: 500;
    background-color: #fff;
    transition: 0.2s;
}

.toggle-btn:hover {
    background-color: #ff4a4a;
    color: #fff;
    border-color: #ff4a4a;
}

.toggle-btn .arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .tag-link {
padding: 4px 14px;
font-size: 12px;
    }
    .tags-container.collapsed {
max-height: 70px;
    }
}
       /* ========= 全屏背景虚化层（独立于hero-section，100%宽度） ========= */
.hero-bg-wrapper {
    position: relative;
    width: 100%;
    background-color: #1a1a2e;
    overflow: hidden;
}
/* 背景虚化图片层 - 全屏宽度 */
.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}
/* 暗色遮罩，增强文字可读性 */
.hero-bg-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}
/* 内容区域容器（白色卡片背景） */
.hero-section {
    position: relative;
    z-index: 2;
    padding: 40px 0 0;
}
/* 白色卡片主体 */
.hero-card {
    background: #fff;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
}
/* 左侧缩略图 */
.hero-cover {
    flex-shrink: 0;
    width: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.hero-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}
/* 右侧信息区 */
.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: #555;
}
.info-row span {
    color: #ff4a4a;
    margin-right: 6px;
    font-weight: 600;
}
.tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0;
}
.tag {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    transition: 0.2s;
}
.tag:hover {
    background: #ff4a4a;
    color: #fff;
}
.intro-text {
    background: #faf9fc;
    padding: 16px 18px;
    border-radius: 16px;
    line-height: 1.7;
    font-size: 14px;
    color: #444;
    border-left: 4px solid #ff4a4a;
    margin: 8px 0;
}
/* 开始阅读按钮 */
.btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4a4a;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
    width: fit-content;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255,74,74,0.3);
}
.btn-read:hover {
    background: #e63e3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,74,74,0.4);
}

/* ========= 章节列表 & 资讯区块 ========= */
.section-card {
    background: #fff;
    border-radius: 20px;
    margin-top: 30px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.section-title {
    font-size: 22px;
    font-weight: bold;
    border-left: 5px solid #ff4a4a;
    padding-left: 15px;
    margin-bottom: 22px;
}
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.chapter-item:hover {
    background: #fef5f5;
    border-radius: 12px;
}
.chapter-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chapter-link .chapter-num {
    background: #f0f0f0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    color: #ff4a4a;
    font-weight: bold;
}
.chapter-link .chapter-name {
    color: #333;
}
.chapter-link:hover .chapter-name {
    color: #ff4a4a;
}
.update-time {
    font-size: 12px;
    color: #999;
}
.more-chapter {
    text-align: center;
    margin-top: 20px;
}
.more-chapter a {
    color: #ff4a4a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
/* 资讯列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.news-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-title:hover {
    color: #ff4a4a;
}
.news-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 18px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-card {
flex-direction: column;
align-items: center;
text-align: center;
padding: 24px 20px;
    }
    .hero-info {
align-items: center;
text-align: center;
    }
    .info-row {
justify-content: center;
    }
    .tags-area {
justify-content: center;
    }
    .btn-read {
margin: 0 auto;
    }
    .hero-cover {
width: 200px;
    }
    .hero-info h1 {
font-size: 26px;
    }
    .section-card {
padding: 18px;
    }
    .chapter-item {
flex-direction: column;
align-items: flex-start;
gap: 6px;
    }
    .update-time {
align-self: flex-end;
    }
    .news-item {
gap: 8px;
    }
    .news-title {
white-space: normal;
word-break: break-word;
font-size: 13px;
    }
}
@media (max-width: 480px) {
    .hero-cover {
width: 160px;
    }
    .btn-read {
padding: 10px 24px;
font-size: 16px;
    }
}
/* 顶部固定导航 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 20px;
}

.top-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* 左侧面包屑导航 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #ff4a4a;
}

.breadcrumb-nav .separator {
    margin: 0 4px;
    color: #ccc;
}

.breadcrumb-nav .current-chapter {
    color: #ff4a4a;
    font-weight: 500;
}

/* 中间章节名称（移动端可隐藏或显示） */
.chapter-name-center {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 15px;
}

/* 右侧APP下载按钮 */
.app-download-btn {
    background: linear-gradient(135deg, #ff4a4a, #e63e3e);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.app-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 74, 74, 0.4);
}

/* ========= 中间阅读内容区域 ========= */
.reading-content {
    margin: 80px 0 80px;
    padding: 20px 15px;
    background: #1e1e1e;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comic-images {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.comic-images img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: #2a2a2a;
}


/* 底部固定导航栏 */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 20px;
    border-top: 1px solid #eee;
}

.bottom-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    background: #f5f5f5;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-btn:hover {
    background: #ff4a4a;
    color: #fff;
}

.nav-btn.prev-btn:hover,
.nav-btn.next-btn:hover {
    background: #ff4a4a;
    color: #fff;
}

.nav-btn.directory-btn {
    background: #ff4a4a;
    color: #fff;
}

.nav-btn.directory-btn:hover {
    background: #e63e3e;
}

/* 禁用状态（第一话/最后一话无链接时） */
.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #e0e0e0;
    color: #999;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .top-container {
flex-wrap: nowrap;
    }
    .chapter-name-center {
font-size: 14px;
padding: 0 8px;
    }
    .breadcrumb-nav {
font-size: 12px;
    }
    .app-download-btn {
padding: 6px 14px;
font-size: 12px;
    }
    .nav-btn {
font-size: 13px;
padding: 8px 0;
    }
    .reading-content {
margin: 70px 0 70px;
padding: 15px 10px;
    }
}

@media (max-width: 550px) {
    .breadcrumb-nav .separator,
    .breadcrumb-nav a:not(:first-child) {
font-size: 11px;
    }
    .chapter-name-center {
display: none;  /* 超小屏隐藏中间章节名，节省空间，面包屑仍可见 */
    }
    .app-download-btn span {
display: none;
    }
    .app-download-btn::before {
content: "📱";
margin-right: 0;
    }
    .app-download-btn {
padding: 6px 12px;
    }
}
/* 主体内容 */
.article-wrapper {
    background: #fff;
    margin: 30px 0 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 32px 36px;
}

/* H1 标题 */
.article-title {
    font-size: 32px;
    font-weight: 800;
    color: #0a1927;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* 元数据信息行（发布时间/作者可选） */
.article-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 14px;
    color: #6c7a8e;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* H2 章节标题 */
.chapter-title {
    font-size: 24px;
    font-weight: 700;
    margin: 28px 0 18px 0;
    padding-left: 12px;
    border-left: 5px solid #ff4a4a;
    color: #1e2a3e;
}

/* ========= 漫画标签卡片 (图片左，右边详细信息) ========= */
.comic-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 1px solid #ffe0d0;
    border-radius: 28px;
    padding: 24px;
    margin: 20px 0 32px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.comic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 74, 74, 0.08);
}
/* 左侧封面 */
.comic-cover {
    flex-shrink: 0;
    width: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.comic-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
/* 右侧信息 */
.comic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comic-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}
.comic-author {
    font-size: 14px;
    color: #ff4a4a;
    font-weight: 500;
    background: #fff0ec;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    width: fit-content;
}
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}
.tag-sm {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    color: #4a5b6e;
}
.latest-chapter {
    font-size: 14px;
    color: #2c7da0;
    font-weight: 500;
    background: #e8f4f8;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    width: fit-content;
}
.card-intro {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-read-card {
    background: #ff4a4a;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255,74,74,0.3);
}
.btn-read-card:hover {
    background: #e63e3e;
    transform: translateY(-2px);
}

/* 漫画内容区域 (正文) */
.comic-content {
    margin-top: 30px;
    font-size: 16px;
    color: #2d3e50;
    line-height: 1.75;
}
.comic-content p {
    margin-bottom: 20px;
}
.comic-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.content-placeholder {
    background: #faf9fc;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    color: #9aa9bb;
    font-style: italic;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .article-wrapper {
padding: 24px 20px;
margin: 20px 0;
    }
    .article-title {
font-size: 26px;
    }
    .chapter-title {
font-size: 20px;
margin: 20px 0 14px;
    }
    .comic-card {
flex-direction: column;
align-items: center;
text-align: center;
padding: 20px;
    }
    .comic-info {
align-items: center;
text-align: center;
    }
    .comic-cover {
width: 140px;
    }
    .comic-title {
font-size: 20px;
    }
    .btn-read-card {
margin: 0 auto;
    }
    .tag-group {
justify-content: center;
    }
}

@media (max-width: 550px) {
    .article-title {
font-size: 22px;
    }
    .chapter-title {
font-size: 18px;
    }
    .comic-cover {
width: 120px;
    }
    .container {
padding: 0 16px;
    }
}
       /* 排行榜按钮容器 */
.rank-tabs {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

/* 第一行：总榜/月榜/周榜 */
.rank-type-row {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* 第二行：地区筛选 */
.rank-region-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 通用按钮样式 */
.rank-btn {
    display: inline-block;
    padding: 8px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 40px;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    line-height: 1.2;
    text-decoration: none;
}

/* 高亮样式（active） */
.rank-btn.active {
    background: #ff4a4a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 74, 74, 0.3);
}

/* 悬停效果（非高亮时） */
.rank-btn:not(.active):hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

/* 响应式：小屏幕时按钮稍微缩小 */
@media (max-width: 640px) {
    .rank-btn {
padding: 6px 18px;
font-size: 13px;
    }
    .rank-tabs {
padding: 14px 16px;
    }
    .rank-type-row {
gap: 10px;
    }
    .rank-region-row {
gap: 10px;
    }
}

@media (max-width: 480px) {
    .rank-btn {
padding: 5px 14px;
font-size: 12px;
    }
}
.rank-num-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    width: 28px;
    height: 28px;
    background: #ff4a4a;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-family: monospace;
}