/**
 * 幻剑书盟样式表
 * 主色调: 深红(#bf2c24) + 深色背景(#1a1a2e)
 * 风格参考: 幻剑书盟(hjsmw.com)
 */

/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    min-width: 320px;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, button, select { font-family: inherit; outline: none; }

/* ===== 布局容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部Header - 深色背景 ===== */
.header {
    background: #1a1a2e;
    border-bottom: 1px solid #2d2d44;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: #bf2c24;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}
.header-search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
}
.header-search-bar input {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #3a3a55;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #252540;
    color: #fff;
    font-size: 14px;
}
.header-search-bar input::placeholder { color: #8888a0; }
.header-search-bar button {
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #bf2c24;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-search-bar button:hover { background: #d43d35; }
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-right a {
    color: #b0b0c8;
    font-size: 13px;
    transition: color 0.2s;
}
.header-right a:hover { color: #fff; }
.header-right .btn-login {
    padding: 5px 14px;
    border: 1px solid #bf2c24;
    border-radius: 4px;
    color: #bf2c24;
    font-size: 13px;
}
.header-right .btn-login:hover { background: #bf2c24; color: #fff; }
.header-right .btn-writer {
    padding: 5px 14px;
    background: #bf2c24;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}
.header-right .btn-writer:hover { background: #d43d35; }

/* ===== 主导航 - 红色背景 ===== */
.nav-menu {
    background: #bf2c24;
    box-shadow: 0 2px 8px rgba(191, 44, 36, 0.3);
}
.nav-menu-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 46px;
}
.nav-menu a {
    padding: 0 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    height: 46px;
    line-height: 46px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.nav-menu .nav-home { font-weight: 600; }

/* ===== 移动端菜单按钮 ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c9d1d9;
    border-radius: 1px;
}

/* ===== 主体内容区 ===== */
.main { min-height: calc(100vh - 300px); padding: 20px 0; }

/* ===== 区块标题 ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: #bf2c24;
    border-radius: 2px;
}
.section-more {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}
.section-more:hover { color: #bf2c24; }

/* ===== 紧凑小说列表样式 ===== */
.novel-list-compact {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.novel-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    gap: 14px;
}
.novel-list-item:last-child { border-bottom: none; }
.novel-list-item:hover { background: #fafafa; }
.novel-list-item .item-cover {
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}
.novel-list-item .item-cover img { width: 100%; height: 100%; object-fit: cover; }
.novel-list-item .item-info { flex: 1; min-width: 0; }
.novel-list-item .item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}
.novel-list-item .item-title:hover { color: #bf2c24; }
.novel-list-item .item-intro {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.novel-list-item .item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}
.novel-list-item .item-meta .meta-author { color: #bf2c24; }
.novel-list-item .item-meta .meta-word { color: #666; }
.novel-list-item .item-meta .meta-status {
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    background: #f0f0f0;
    color: #666;
}
.novel-list-item .item-meta .meta-status.status-end { background: #e8f5e9; color: #2e7d32; }
.novel-list-item .item-meta .meta-status.status-serial { background: #fff3e0; color: #e65100; }
.novel-list-item .item-rank {
    width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #bbb;
    flex-shrink: 0;
}
.novel-list-item .item-rank.top3 { color: #bf2c24; }
.novel-list-item .item-update {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}

/* ===== 卡片布局（辅助用） ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.novel-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.novel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.novel-card .card-cover {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
    background: #f0f0f0;
}
.novel-card .card-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.novel-card:hover .card-cover img { transform: scale(1.05); }
.novel-card .card-badge {
    position: absolute;
    top: 6px; left: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.badge-hot { background: #bf2c24; }
.badge-new { background: #2ea043; }
.badge-rec { background: #58a6ff; }
.badge-end { background: #8b949e; }
.novel-card .card-info { padding: 10px; }
.novel-card .card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.novel-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}
.novel-card .card-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.novel-card .card-tag {
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    background: #f5f5f5;
    color: #666;
}

/* ===== 横向列表样式（最新更新等） ===== */
.novel-list {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.novel-list-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.novel-list-row:last-child { border-bottom: none; }
.novel-list-row:hover { background: #fafafa; }
.novel-list-row .row-rank {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #bbb;
    flex-shrink: 0;
}
.novel-list-row .row-rank.top3 { color: #bf2c24; }
.novel-list-row .row-info { flex: 1; min-width: 0; }
.novel-list-row .row-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.novel-list-row .row-title:hover { color: #bf2c24; }
.novel-list-row .row-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.novel-list-row .row-update {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 12px;
}
.novel-list-row .row-chapter {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    margin-left: 8px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 轮播区 ===== */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.carousel {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    position: relative;
}
.carousel-item {
    display: none;
    padding: 20px;
}
.carousel-item.active { display: block; }
.carousel-item-inner {
    display: flex;
    gap: 16px;
}
.carousel-cover {
    width: 140px;
    height: 185px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.carousel-cover img { width: 100%; height: 100%; object-fit: cover; }
.carousel-info { flex: 1; }
.carousel-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.carousel-info .carousel-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.carousel-info .carousel-meta span { margin-right: 12px; }
.carousel-info .carousel-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dots .dot.active { background: #bf2c24; }

/* ===== 侧边栏排行榜 ===== */
.rank-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}
.rank-panel-header {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #e8e8e8;
    background: #fafafa;
}
.rank-panel-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.rank-panel-item:last-child { border-bottom: none; }
.rank-panel-item:hover { background: #fafafa; }
.rank-panel-item .rank-num {
    width: 20px; height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
    color: #999;
    background: #f0f0f0;
}
.rank-panel-item .rank-num.top { background: #bf2c24; color: #fff; }
.rank-panel-item .rank-info { flex: 1; min-width: 0; }
.rank-panel-item .rank-title {
    font-size: 13px;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-panel-item .rank-title:hover { color: #bf2c24; }
.rank-panel-item .rank-author {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: #bf2c24;
    color: #bf2c24;
}
.pagination span.current {
    background: #bf2c24;
    border-color: #bf2c24;
    color: #fff;
    font-weight: 600;
}
.pagination span:not(.current) {
    border: none;
    background: transparent;
    color: #aaa;
}

/* ===== 分类页面布局 ===== */
.list-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}
.sidebar-cat {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    position: sticky;
    top: 110px;
    height: fit-content;
}
.sidebar-cat-header {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #e8e8e8;
    background: #fafafa;
}
.sidebar-cat-list a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}
.sidebar-cat-list a:last-child { border-bottom: none; }
.sidebar-cat-list a:hover, .sidebar-cat-list a.active {
    color: #bf2c24;
    background: #fafafa;
    padding-left: 20px;
}
.sidebar-cat-list a.active { font-weight: 600; }

/* ===== 分类筛选器 ===== */
.filter-bar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.filter-bar .filter-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}
.filter-bar .filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-bar .filter-options a {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s;
}
.filter-bar .filter-options a:hover, .filter-bar .filter-options a.active {
    background: #bf2c24;
    color: #fff;
}

/* ===== 小说详情页 ===== */
.novel-detail {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 24px;
}
.novel-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}
.novel-detail-cover {
    width: 200px;
    height: 270px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.novel-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.novel-detail-info { flex: 1; }
.novel-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.novel-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}
.novel-detail-meta span { display: flex; align-items: center; gap: 4px; }
.novel-detail-meta .meta-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: #f5f5f5;
    color: #bf2c24;
}
.novel-detail-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}
.novel-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: #bf2c24;
    color: #fff;
}
.btn-primary:hover { background: #d43d35; }
.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}
.btn-secondary:hover { background: #eee; color: #333; }

/* ===== 章节列表 - 表格形式 ===== */
.chapter-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-top: 16px;
    overflow: hidden;
}
.chapter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 2px solid #e8e8e8;
    background: #fafafa;
}
.chapter-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}
.chapter-sort { font-size: 13px; color: #888; }
.chapter-table {
    width: 100%;
    border-collapse: collapse;
}
.chapter-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}
.chapter-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}
.chapter-table tr:hover td {
    background: #fafafa;
}
.chapter-table .chapter-title-link {
    color: #333;
    transition: color 0.2s;
}
.chapter-table .chapter-title-link:hover { color: #bf2c24; }
.chapter-table .chapter-num { color: #999; width: 80px; }
.chapter-table .chapter-word { color: #999; width: 100px; text-align: right; }
.chapter-table .chapter-time { color: #aaa; width: 120px; text-align: right; }

/* ===== 阅读页 ===== */
.read-header {
    background: #1a1a2e;
    border-bottom: 1px solid #2d2d44;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.read-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}
.read-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50%;
}
.read-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.read-nav a, .read-nav button {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #b0b0c8;
    background: #252540;
    border: 1px solid #3a3a55;
    cursor: pointer;
    transition: all 0.2s;
}
.read-nav a:hover, .read-nav button:hover {
    background: #bf2c24;
    border-color: #bf2c24;
    color: #fff;
}
.read-nav a.disabled, .read-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.read-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px;
    background: #fff;
    min-height: calc(100vh - 50px);
}
.read-body h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}
.read-body .read-meta {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}
.read-content {
    font-size: 18px;
    line-height: 2;
    color: #333;
}
.read-content p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}
.read-footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

/* ===== 搜索页 ===== */
.search-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 28px;
    text-align: center;
    margin-bottom: 20px;
}
.search-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
}
.search-header .search-bar {
    max-width: 520px;
    margin: 0 auto;
}
.search-results-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}
.search-results-count strong { color: #bf2c24; }
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p { font-size: 15px; }

/* ===== 热门标签云 ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
}
.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}
.tag-cloud a:hover {
    background: #bf2c24;
    color: #fff;
    border-color: #bf2c24;
}

/* ===== 底部 - 多栏布局 ===== */
.footer {
    background: #1a1a2e;
    border-top: 2px solid #bf2c24;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2d2d44;
}
.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.footer-column a {
    display: block;
    font-size: 13px;
    color: #8888a0;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-column a:hover { color: #bf2c24; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: #8888a0;
    transition: color 0.2s;
}
.footer-links a:hover { color: #bf2c24; }
.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #6666a0;
    line-height: 2;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}
.breadcrumb a { color: #888; transition: color 0.2s; }
.breadcrumb a:hover { color: #bf2c24; }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: #333; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; }
    .list-layout { grid-template-columns: 1fr; }
    .sidebar-cat { position: static; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { height: 52px; }
    .logo { font-size: 18px; }
    .logo-icon { width: 30px; height: 30px; font-size: 14px; }
    .header-search-bar { margin: 0 10px; max-width: 200px; }
    .header-search-bar input { height: 32px; font-size: 13px; }
    .header-search-bar button { height: 32px; padding: 0 12px; font-size: 12px; }
    .header-right { gap: 10px; }
    .header-right a { font-size: 12px; }
    .header-right a.btn-writer { display: none; }
    .nav-menu-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; height: 40px; }
    .nav-menu a { padding: 0 14px; height: 40px; line-height: 40px; font-size: 13px; }
    .hero-section { margin-bottom: 16px; }
    .carousel-item { padding: 14px; }
    .carousel-item-inner { flex-direction: column; }
    .carousel-cover { width: 120px; height: 160px; margin: 0 auto; }
    .carousel-info h2 { font-size: 18px; }
    .novel-detail-header { flex-direction: column; }
    .novel-detail-cover { width: 160px; height: 215px; margin: 0 auto; }
    .novel-detail-info h1 { font-size: 20px; text-align: center; }
    .novel-detail-meta { justify-content: center; }
    .novel-detail-actions { justify-content: center; }
    .read-body { padding: 24px 16px; }
    .read-content { font-size: 16px; }
    .footer-top { grid-template-columns: 1fr; gap: 16px; }
    .card-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .chapter-table .chapter-word, .chapter-table .chapter-time { display: none; }
    .novel-list-item .item-intro { display: none; }
    .novel-list-row .row-chapter { display: none; }
    .filter-bar { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .novel-card .card-info { padding: 8px; }
    .novel-card .card-title { font-size: 12px; }
    .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 13px; }
    .btn { padding: 8px 20px; font-size: 14px; }
    .novel-list-item { padding: 10px; gap: 10px; }
    .novel-list-item .item-cover { width: 50px; height: 68px; }
    .novel-list-item .item-title { font-size: 14px; }
}
