:root {
    --color-highlight: #a7ff83;
    --color-accent: #17b978;
    --color-primary: #086972;
    --color-dark: #071a52;
    --color-dark-light: #0a2468;
    --color-card: #0c1f5c;
    --color-card-hover: #0f2a70;
    --color-text: #e8ecf1;
    --color-text-secondary: #b0bec5;
    --color-text-muted: #78909c;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-white: #ffffff;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --max-width: 1400px;
    --sidebar-width: 340px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #040d2e;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(8, 105, 114, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 5%, rgba(23, 185, 120, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 60%, rgba(7, 26, 82, 0.9) 0%, transparent 70%);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部导航栏 ========== */
.top-nav {
    width: 100%;
    background: rgba(7, 26, 82, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
    transition: background var(--transition-normal);
}

.top-nav.scrolled {
    background: rgba(7, 26, 82, 0.98);
    border-bottom: 1px solid rgba(167, 255, 131, 0.15);
}

.top-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 64px;
    gap: 16px;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-white);
    transition: opacity var(--transition-fast);
}
.nav-brand:hover {
    opacity: 0.9;
}
.nav-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--color-dark);
    flex-shrink: 0;
    letter-spacing: 0;
    line-height: 1;
}
.nav-brand h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-white);
    font-family: var(--font-heading);
    white-space: nowrap;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex-wrap: nowrap;
}
.nav-links li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.06);
}
.nav-links li a.nav-active {
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.1);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 22px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.btn-login {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-login:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.04);
}
.btn-read {
    background: linear-gradient(135deg, var(--color-accent), #1cc97a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(23, 185, 120, 0.35);
}
.btn-read:hover {
    box-shadow: 0 6px 24px rgba(23, 185, 120, 0.5);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1cc97a, var(--color-highlight));
    color: var(--color-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-text);
    flex-shrink: 0;
}
.mobile-menu-toggle svg {
    width: 26px;
    height: 26px;
}

/* ========== 主布局 ========== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 28px;
    padding: 28px;
    min-height: 60vh;
}

.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ========== 区域标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--color-highlight);
}
.section-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}
.section-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.section-link:hover {
    color: var(--color-highlight);
}

/* ========== 热门漫画卡片网格 ========== */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.comic-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
}
.comic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(167, 255, 131, 0.2);
    background: var(--color-card-hover);
}
.comic-card .card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #0a1a45;
}
.comic-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #0a1a45;
}
.comic-card:hover .card-img-wrap img {
    transform: scale(1.06);
}
.comic-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    z-index: 2;
}
.comic-card .card-badge.hot {
    background: #e74c3c;
}
.comic-card .card-badge.new {
    background: var(--color-accent);
}
.comic-card .card-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.comic-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.comic-card .card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    line-height: 1.5;
}
.comic-card .card-meta span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}
.comic-card .card-tag {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* ========== 精品推荐 ========== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.featured-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(167, 255, 131, 0.25);
}
.featured-card .feat-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a1a45;
    position: relative;
}
.featured-card .feat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
    background: #0a1a45;
}
.featured-card:hover .feat-img-wrap img {
    transform: scale(1.05);
}
.featured-card .feat-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.featured-card .feat-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
    letter-spacing: 0.3px;
}
.featured-card .feat-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 漫画详细介绍 ========== */
.detail-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.detail-card .detail-img {
    width: 180px;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: #0a1a45;
}
.detail-card .detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0a1a45;
}
.detail-card .detail-content {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-card .detail-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.4px;
}
.detail-card .detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.detail-card .detail-meta-row strong {
    color: var(--color-highlight);
    font-weight: 600;
}
.detail-card .detail-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========== 角色介绍 ========== */
.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.character-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
}
.character-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(167, 255, 131, 0.2);
}
.character-card .char-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    background: #0a1a45;
    border: 3px solid rgba(167, 255, 131, 0.3);
}
.character-card .char-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0a1a45;
}
.character-card .char-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 4px;
}
.character-card .char-role {
    font-size: 0.75rem;
    color: var(--color-highlight);
    font-weight: 500;
}
.character-card .char-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* ========== 评论区域 ========== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comment-item {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}
.comment-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--color-card-hover);
}
.comment-item .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-item .comment-user {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-white);
}
.comment-item .comment-time {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-left: auto;
}
.comment-item .comment-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.comment-item .comment-stars {
    color: #f0c040;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ========== 平台介绍 ========== */
.platform-intro {
    background: linear-gradient(135deg, rgba(8, 105, 114, 0.2), rgba(7, 26, 82, 0.6));
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    border: 1px solid rgba(167, 255, 131, 0.1);
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.platform-intro .intro-text {
    flex: 1;
    min-width: 260px;
}
.platform-intro .intro-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}
.platform-intro .intro-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}
.platform-intro .intro-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.platform-intro .intro-stat {
    text-align: center;
    min-width: 70px;
}
.platform-intro .intro-stat .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-highlight);
    letter-spacing: 1px;
}
.platform-intro .intro-stat .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ========== APP下载区域 ========== */
.app-download {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.app-download .app-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}
.app-download .app-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.app-download .app-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
}
.btn-android {
    background: #3ddc84;
    color: #000;
    box-shadow: 0 4px 14px rgba(61, 220, 132, 0.3);
}
.btn-android:hover {
    box-shadow: 0 6px 22px rgba(61, 220, 132, 0.45);
    transform: translateY(-2px);
}
.btn-ios {
    background: #1c1c1e;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-ios:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.btn-pc {
    background: #52616b;
    color: #fff;
    box-shadow: 0 4px 14px rgba(82, 97, 107, 0.3);
}
.btn-pc:hover {
    box-shadow: 0 6px 22px rgba(82, 97, 107, 0.45);
    transform: translateY(-2px);
}
.btn-mac {
    background: #2c2c2e;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-mac:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
.app-icon {
    flex-shrink: 0;
}

/* ========== 侧边栏 ========== */
.sidebar-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    border: 1px solid var(--color-border);
}
.sidebar-card .sidebar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--color-highlight);
    letter-spacing: 0.4px;
}
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}
.rank-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}
.rank-list .rank-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    color: #fff;
}
.rank-num.top1 { background: #e74c3c; }
.rank-num.top2 { background: #e67e22; }
.rank-num.top3 { background: #f39c12; }
.rank-num.normal { background: rgba(255, 255, 255, 0.1); color: var(--color-text-muted); }
.rank-list .rank-cover {
    width: 42px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a1a45;
}
.rank-list .rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0a1a45;
}
.rank-list .rank-info { flex: 1; min-width: 0; }
.rank-list .rank-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-list .rank-stat { font-size: 0.7rem; color: var(--color-text-muted); }
.rank-list .rank-change { font-size: 0.72rem; font-weight: 600; }
.rank-change.up { color: #e74c3c; }
.rank-change.down { color: #17b978; }

.total-read-card { text-align: center; padding: 20px 16px; }
.total-read-card .total-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-highlight);
    letter-spacing: 2px;
    line-height: 1;
}
.total-read-card .total-label { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 4px; }
.total-read-card .total-update { font-size: 0.7rem; color: var(--color-text-muted); margin-top: 6px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}
.stats-grid .stat-item {
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}
.stats-grid .stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-highlight);
}
.stats-grid .stat-lbl {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    width: 100%;
    background: rgba(7, 26, 82, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 28px 28px;
    margin-top: 40px;
}
.bottom-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
}
.bottom-col h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.bottom-col a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}
.bottom-col a:hover { color: var(--color-highlight); }
.bottom-col .app-download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.bottom-col .app-download-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}
.bottom-col .app-download-links a:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.05);
}
.bottom-copyright {
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .comic-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .character-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 300px; }
    :root { --sidebar-width: 300px; }
    .nav-links li a { padding: 6px 10px; font-size: 0.8rem; }
}

@media (max-width: 992px) {
    .main-container { flex-direction: column; padding: 20px 16px; gap: 24px; }
    .sidebar { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sidebar-card { padding: 14px 12px; }
    .comic-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .character-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .top-nav-inner { padding: 0 16px; height: 56px; }
    .nav-brand h1 { font-size: 1.15rem; }
    .btn-nav { padding: 7px 14px; font-size: 0.8rem; }
    .detail-card { flex-direction: column; align-items: center; text-align: center; }
    .detail-card .detail-img { width: 140px; height: 200px; }
    .app-download { flex-direction: column; text-align: center; }
    .app-download .app-buttons { justify-content: center; }
    .platform-intro { flex-direction: column; text-align: center; }
    .platform-intro .intro-stats { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .comic-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .character-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .featured-grid { grid-template-columns: 1fr; gap: 12px; }
    .sidebar { grid-template-columns: 1fr; gap: 14px; }
    .section-title { font-size: 1.15rem; }
    .main-container { padding: 14px 10px; gap: 20px; }
    .content-area { gap: 24px; }
    .bottom-nav-inner { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .bottom-col .app-download-links { justify-content: center; }
    .btn-download { padding: 10px 14px; font-size: 0.78rem; }
    .comic-card .card-info { padding: 8px 10px; gap: 4px; }
    .comic-card .card-title { font-size: 0.82rem; }
    .comic-card .card-meta span { font-size: 0.65rem; padding: 1px 6px; }
    .detail-card { padding: 18px 14px; }
    .detail-card .detail-content h3 { font-size: 1.1rem; }
    .comment-item { padding: 12px 14px; }
    .comment-item .comment-text { font-size: 0.78rem; }
    .platform-intro { padding: 20px 16px; }
    .app-download { padding: 20px 16px; }
    .top-nav-inner { height: 50px; padding: 0 10px; gap: 8px; }
    .nav-brand h1 { font-size: 1rem; }
    .nav-brand .brand-icon { width: 30px; height: 30px; font-size: 16px; border-radius: 7px; }
    .btn-nav { padding: 6px 10px; font-size: 0.72rem; border-radius: 16px; }
}

@media (max-width: 380px) {
    .comic-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .btn-read { display: none; }
    .btn-login { padding: 6px 10px; font-size: 0.7rem; }
    .nav-brand h1 { font-size: 0.9rem; }
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(7, 26, 82, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 6px;
}
.mobile-nav-panel.active { display: flex; }
.mobile-nav-panel a {
    display: block;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.nav-active {
    color: var(--color-highlight);
    background: rgba(167, 255, 131, 0.06);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(23, 185, 120, 0.4);
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
}
.back-to-top:hover {
    background: var(--color-highlight);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(167, 255, 131, 0.5);
}

@keyframes pulse-update {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.live-update { animation: pulse-update 2s ease-in-out infinite; }
