/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: #e6e8ee;
    background: linear-gradient(180deg, #0b0d12 0%, #0e1220 100%);
    padding-bottom: 80px; /* 为底部导航栏预留空间 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: rgba(12, 14, 22, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 18px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
/* Mobile reader overlay header */
.reader-mobile-header { display:none; position: fixed; top:0; left:0; right:0; height: 52px; background: rgba(15,17,21,0.92); backdrop-filter: blur(6px); border-bottom:1px solid rgba(255,255,255,0.06); z-index: 1001; align-items:center; gap:10px; padding: 0 12px; }
.reader-mobile-header .back-btn { display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:8px; border:1px solid #2b3344; background:#1f2430; color:#e5e7eb; text-decoration:none; }
.reader-mobile-header .title { flex:1; color:#e5e7eb; font-weight:700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f0f3ff;
    text-decoration: none;
}

/* Brand lockup (龍 + DragonLeaf Novels) */
.brand-lockup { display:flex; align-items:center; text-decoration:none; }
.brand-lockup-img { display:block; height:36px; width:auto; }
@media (max-width: 768px){ .brand-lockup-img { height:30px; } }

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #d5daf2;
    text-decoration: none;
    padding: 0.48rem 0.9rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(59, 130, 246, 0.16);
    color: #8bb4ff;
    box-shadow: inset 0 0 0 1px rgba(99, 131, 255, 0.35);
}

.search-box {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #0f1424, #0c111b);
    border-radius: 14px;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 0.4rem 0.5rem;
    width: 220px;
    color: #e6e8ee;
}

.search-box button {
    background: linear-gradient(135deg, #2a7bff, #6b8bff);
    color: #fff;
    border: none;
    padding: 0.35rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 0.5rem;
    box-shadow: 0 6px 16px rgba(42,123,255,0.25);
}

.search-box button:hover {
    background: #1d4ed8;
}

/* 主要内容 */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 0.8rem 0 0.6rem; /* 更贴近顶部/搜索 */
}

/* Brand badge */
.brand-badge { display:flex; align-items:center; gap:12px; margin: 8px 0 12px; padding: 10px 12px; background:#0f1424; border:1px solid rgba(255,255,255,0.06); border-radius:12px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.brand-badge img { width:42px; height:42px; border-radius:10px; display:block; }
.brand-text { line-height:1.2; }
.brand-title { font-weight:800; color:#e9ecff; font-size:1rem; }
.brand-subtitle { color:#9ca3af; font-size:0.85rem; }

/* Banner */
.banner { 
    position: relative; 
    overflow: hidden; 
    border-radius: 16px; 
    margin: 10px 0 12px; 
    background: #0b0d12; 
    border: 1px solid rgba(255,255,255,0.06); 
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.banner-track { 
    display: flex; 
    width: 100%; 
    transition: transform .6s ease; 
}
.banner-item { 
    min-width: 100%; 
    position: relative; 
    height: 260px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0d12;
}
.banner-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* 保持比例，裁剪铺满 */
    object-position: center center;
    opacity: .9; 
    display: block;
}
.banner-meta {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 16px 0 10px 0;
    border-radius: 0 0 14px 14px;
    max-height: 40%;
    overflow: hidden;
}
.banner-meta .badge { 
    display:inline-block; 
    background: #ef4444; 
    color:#fff; 
    padding:2px 8px; 
    border-radius:999px; 
    font-size:12px; 
    margin-bottom:6px; 
}
.banner-meta h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color:#e5e7eb;
    text-shadow: 0 3px 12px rgba(0,0,0,.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.banner-meta p {
    opacity: .85;
    font-size: 14px;
    color:#e5e7eb;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin: 0;
}
/* PC: hide banner description, keep title */
@media (min-width: 1024px) {
  .banner-meta p { display: none !important; }
}
.banner-dots { 
    position:absolute; 
    right: 14px; 
    bottom: 12px; 
    display:flex; 
    gap:6px; 
}
.banner-dots .dot { 
    width:8px; 
    height:8px; 
    border-radius:50%; 
    background:#4b5563; 
    cursor:pointer; 
    transition: background-color 0.3s;
}
.banner-dots .dot.active {
    background:#2563eb;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 小说区域 */
.novels-section {
    margin-bottom: 2rem;
}

.novels-section h2 {
    margin-bottom: 0.8rem;
    color: #e9ecff;
    font-weight: 800;
}

.novels-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.novels-grid.single-row {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.novel-card {
    background: linear-gradient(180deg, #0f1320, #0c101a);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
    min-width: 180px;
    max-width: 280px;
    width: 100%;
    padding: 0; /* 确保封面能紧贴卡片边缘 */
    box-sizing: border-box;
}

.novel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.45);
    border-color: rgba(99,131,255,0.35);
}

/* 卡片封面容器（首页热门/新品卡片） */
.novel-cover {
    height: 240px;
    background: #0b0d12;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0; /* 去除潜在外边距导致的空白 */
    border: none; /* 不加下边框，避免出现一道缝 */
}

/* 封面图片100%填充整个封面 */
.novel-cover img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* 让图片和卡片圆角完美一致，避免四角漏出背景 */
.novel-card,
.novel-cover img { border-radius: 12px 12px 0 0; }

.novel-info {
    padding: 1rem;
}

.novel-info h3 {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-size: 1.05rem;
}

.novel-info p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 筛选器 */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #0b0d12;
    border: 1px solid #1f2430;
    border-radius: 20px;
    text-decoration: none;
    color: #e5e7eb;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1f2430;
    color: #ffffff;
    border-color: #334155;
}

/* 小说详情 */
.novel-detail {
    background: #151923;
    border: 1px solid #1f2430;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.novel-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.novel-header .novel-cover {
    width: 150px;
    height: 200px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
    border: none;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 详情页封面图片等比自适应 */
.novel-header .novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 填充容器，裁剪溢出，消除空白 */
    object-position: center center;
    display: block;
    border-radius: 8px;
}

/* 小说库 - 列表式卡片 */
.novel-list { display: flex; flex-direction: column; gap: 14px; }
.novel-list-item { display: flex; gap: 12px; padding: 12px; background: #151923; border: 1px solid #1f2430; border-radius: 10px; text-decoration: none; color: #e5e7eb; }
.novel-list-item:hover { background: #1b1f2a; }
.novel-list-cover { width: 86px; height: 114px; border-radius: 6px; overflow: hidden; background: #0b0d12; flex-shrink: 0; }
.novel-list-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.novel-list-cover img { object-position: center center; }

/* 全站封面图片居中兜底 */
.novel-cover img, .novel-header .novel-cover img, .novel-list-cover img { object-position: center center !important; }
.novel-list-info { flex: 1; min-width: 0; }
.novel-list-title { margin: 0 0 6px 0; font-size: 1rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novel-list-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: .85rem; color: #9ca3af; }
.novel-list-meta .badge { background: #2a3243; color:#a7c0ff; padding: 2px 6px; border-radius: 999px; font-size: .75rem; }
.novel-list-desc { margin: 0; font-size: .9rem; color: #cbd5e1; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc-toggle { background: none; border: none; color: #60a5fa; cursor: pointer; padding: 0; margin-top: 4px; font-size: 0.9rem; }
.novel-list-tags { margin-top: 6px; display: flex; gap: 6px; }
.novel-list-tags .tag { font-size: .75rem; color: #cbd5e1; background: #1f2430; border: 1px solid #2b3344; padding: 2px 6px; border-radius: 999px; }

@media (max-width: 768px) {
  .novel-list-item { padding: 10px; }
  .novel-list-cover { width: 76px; height: 100px; }
  .novel-list-title { font-size: .95rem; }
  .novel-list-desc { -webkit-line-clamp: 3; }
}

.novel-info {
    flex: 1;
}

.novel-info h1 {
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.novel-info p {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

/* 简介两行省略 */
.novel-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc-toggle {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    padding: 0;
    margin: 4px 0 8px;
    font-size: 0.9rem;
}

/* 章节列表 */
.chapters-section {
    background: #0b0f19;
    border: 1px solid #1f2436;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 2rem;
    margin-bottom: 2rem;
}

.chapters-section h2 {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.chapters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.chapter-item {
    padding: 1rem;
    background: #000000;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: #e5e7eb;
    transition: background-color 0.3s;
}

.chapter-item:hover {
    background: #1f2430;
}

/* 阅读页面 */
.chapter-nav { display: none; }

.chapter-content {
    background: #0b0f19;
    border: 1px solid #1f2436;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 2rem;
}

.chapter-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.chapter-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e5e7eb;
    white-space: pre-line;
}

/* 管理面板 */
.upload-section,
.novels-section {
    background: #000000;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 2rem;
    margin-bottom: 2rem;
}

.upload-section h2,
.novels-section h2 {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #e5e7eb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #111111;
    border-radius: 4px;
    font-size: 1rem;
    background: #0b0d12;
    color: #e5e7eb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.25);
}

.novel-item {
    background: #0b0d12;
    padding: 1rem;
    border: 1px solid #1f2430;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.novel-item h3 {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.novel-item p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #111111;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #1d4ed8;
}

.btn:disabled {
    background: #374151;
    cursor: not-allowed;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: #e5e7eb;
}

/* 页脚 */
.footer {
    background: #0b0f19;
    color: #aab2c5;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* 底部固定导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #151923;
    border-top: 1px solid #1f2430;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem;
    background: #1f2430;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 80px;
    justify-content: center;
}

.nav-btn:hover:not(.disabled) {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #374151;
}

.nav-icon {
    font-size: 1rem;
}

.nav-text {
    font-size: 0.8rem;
    display: inline;
}

.action-btn {
    background: #059669;
    border-color: #059669;
}

.action-btn:hover:not(.disabled) {
    background: #047857;
    border-color: #047857;
}

.bookmark-status {
    color: #10b981;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* 公告（字体与本周热门标题保持一致） */
.notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 6px 0 14px; }
/* 公告卡片颜色风格（深灰卡片、浅灰描边） */
.notice-card {
    background: #171a1f;           /* 更深的灰 */
    border: 1px solid #23272e;     /* 更深的描边 */
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    font-size: 0.85rem;            /* 再小一档 */
    line-height: 1.3;
}
/* 顶部“公告”标签：白字，无底色 */
.notice-tag {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    font-size: 0.95rem;            /* 标题也再小一些 */
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 8px;
    margin: 4px auto 8px;
    text-align: center;
    line-height: 1.2;
    font-weight: 700;
}
.notice-title { 
    color:#e5e7eb; 
    font-size: 0.85rem; 
    line-height: 1.15; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

/* 移动端公告栏：确保有足够高度显示两行文本 */
@media (max-width: 768px) {
  .notice-card { 
    min-height: 60px; 
    padding: 12px 14px; 
  }
  .notice-title { 
    text-align: center; 
    line-height: 1.2; 
  }
}

/* 桌面端公告栏：整行展示且自适应高度 */
@media (min-width: 1024px) {
  .notices { grid-template-columns: 1fr; margin: 8px 0 16px; }
  .notice-card { width: 100%; padding: 12px 16px; }
  .notice-title { width: 100%; text-align: center; }
}

/* Desktop: center bottom nav groups together */
@media (min-width: 769px) {
  .bottom-nav-content { justify-content: center; gap: 0.75rem; }
  .reader-toolbar { display:flex; align-items:center; gap: 0.75rem; background: transparent; }
  .nav-buttons { flex: 0 0 auto; }
  .nav-actions { flex: 0 0 auto; display: flex; gap: 0.5rem; }
  .toolbar-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 1px; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px; /* 移动端底部导航栏需要更多空间 */
    }
    /* 再次减小两侧留白 */
    .container { padding: 0 4px; }

    .header-content {
      flex-direction: column;
      gap: 0.8rem; /* 加大导航与搜索框之间的间距 */
    }

    /* 移动端：导航置中显示，搜索框独占一行 */
    .header-content nav { width: 100%; }
    .nav { justify-content: center; }
    .search-box { width: 100%; }
    
    .nav {
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    /* 轮播图响应式 */
    .banner-item {
        height: 200px;
    }
    
    .banner-meta {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 15px 0 8px 0;
    }
    
    .banner-meta h2 {
        font-size: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .banner-meta p {
        font-size: 12px;
    }
    
    .novels-grid,
    .novels-grid.single-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .pagination-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .pagination-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .novel-card {
        min-width: 0;
        max-width: 100%;
    }

    .novel-cover {
        height: 240px;
        position: relative;
        overflow: hidden;
    }

    .novel-info {
        padding: 0.6rem;
    }

    .novel-info h3 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }

    .novels-section .novel-card .novel-info p { display: none !important; }
    
    .novel-header {
        gap: 12px;
        padding: 12px;
        align-items: center;
    }
    /* 封面缩小到约 1/3 区域 */
    .novel-header .novel-cover {
        width: 96px;
        height: 128px;
        margin: 0;
    }
    .novel-info h1 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin: 4px 0 6px;
        text-align: left;
    }
    .novel-info p { 
        font-size: 0.9rem; 
        margin: 2px 0; 
        text-align: left;
    }
    /* 简介更紧凑，保留两行 */
    .novel-desc { -webkit-line-clamp: 2; }

    /* 缩小页面顶部和模块间距 */
    .main-content { padding: 0.2rem 0; }
    .novel-detail { margin-bottom: 0.6rem; }
    .chapters-section { padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; }
    .chapters-section h2 { margin: 0.1rem 0 0.4rem; }
    .chapters-list { grid-template-columns: 1fr; gap: 0.4rem; }
    .chapter-item { padding: 0.6rem; }

    /* 详情页按钮在小屏并排等宽 */
    .novel-info .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    /* 行内按钮容器，保证一行排列与间距 */
    .action-row { display:flex; gap:8px; }
    .action-row .btn { flex:1; font-size: 0.9rem; white-space: nowrap; word-break: keep-all; }
    
    .chapter-nav {
        flex-direction: column;
    }

    .bottom-nav-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    /* 移动端保持原布局：上下两行，不显示分隔线 */
    .reader-toolbar { display:flex; flex-direction: column; align-items: stretch; gap: 0.5rem; width: 100%; }
    .toolbar-divider { display: none; }
    .nav-buttons { width: 100%; }
    .nav-actions { width: 100%; justify-content: center; }

    .nav-buttons {
        order: 1;
        width: 100%;
    }

    .nav-actions {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        flex: 1;
        min-width: 70px;
        padding: 0.5rem 0.8rem;
    }

    .nav-text {
        display: inline;
        font-size: 0.75rem;
    }

    .nav-icon {
        font-size: 0.9rem;
    }

    .filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 4px; }
    
    /* 轮播图小屏幕优化 */
    .banner-item {
        height: 160px;
    }
    
    .banner-meta {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 10px 0 5px 0;
    }
    
    .banner-meta h2 {
        font-size: 16px;
        margin-bottom: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .banner-meta p {
        font-size: 11px;
    }
    
    .banner-dots {
        right: 10px;
        bottom: 8px;
    }
    
    .banner-dots .dot {
        width: 6px;
        height: 6px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .novel-header {
        padding: 1rem;
    }

    .chapter-content {
        padding: 1rem;
    }

    .upload-section,
    .novels-section {
        padding: 1rem;
    }

    .novel-card {
        min-width: 0;
        max-width: 100%;
    }

    .novel-cover {
        height: 190px;
        position: relative;
        overflow: hidden;
    }

    .novels-grid,
    .novels-grid.single-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.14rem;
    }

    .novel-info {
        padding: 0.4rem;
    }

    .novel-info h3 {
        font-size: 0.75rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
    }

    .novels-section .novel-card .novel-info p { display: none !important; }
    
    .section-header {
        gap: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .section-header h2 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .pagination-buttons {
        margin-top: 0.6rem;
    }

    .bottom-nav {
        padding: 0.3rem 0;
    }

    .nav-btn {
        min-width: 60px;
        padding: 0.4rem 0.6rem;
    }

    .nav-text {
        font-size: 0.7rem;
    }

    .nav-icon {
        font-size: 0.8rem;
    }
}

/* 翻页按钮样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.pagination-btn {
    background: #1d1f24; /* 深灰圆形按钮 */
    border: none;
    color: #cfd3da;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 1px 4px rgba(0,0,0,0.35);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pagination-btn:hover {
    background: #2a2e35;
    color: #ffffff;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-info { font-size: 0.85rem; color: #9ca3af; }

/* 翻页按钮内图标放大 */
.pagination-btn i { font-size: 1.8rem !important; line-height: 1; display: inline-block; }

@media (max-width: 768px) {
  .pagination-btn { width: 28px; height: 28px; font-size: 0.85rem; }
  .pagination-buttons { gap: 0.4rem; margin-top: 0.7rem; }
  .pagination-btn i { font-size: 1.6rem !important; }
}