:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #a855f7;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --home-bg: #0a0a0f;
    --home-purple: #7c4dff;
    --home-purple-deep: #5b21b6;
    --home-muted: #a0a0a0;
}

* {
    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', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-home {
    background: var(--home-bg);
}

.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1e293b 0%, #020617 100%);
    z-index: -1;
    overflow: hidden;
}

.stars-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 40% 80%, white, transparent);
    background-size: 200% 200%;
    animation: stars 20s linear infinite;
    opacity: 0.3;
}

@keyframes stars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

/* Header Styles */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon:not(img) {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

img.logo-icon {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.user-action {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-action:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* —— 首页顶栏（设计稿排版） —— */
.site-header--home {
    background: #000000;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(124, 77, 255, 0.12);
}

.header-container--home {
    max-width: 1320px;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
    justify-content: space-between;
}

.logo-area--home {
    flex-shrink: 0;
}

.logo--home {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--home-purple) 0%, var(--home-purple-deep) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
}

.logo-wordmark {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem 0.85rem;
    min-width: 0;
    flex-wrap: wrap;
}

.logo-title-text {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-purple);
    background: linear-gradient(135deg, #a78bfa 0%, var(--home-purple) 45%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-slogan-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    line-height: 1.25;
}

.logo-slogan-top {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.logo-slogan-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--home-muted);
    white-space: nowrap;
}

.main-navigation--home {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nav-menu--home {
    gap: clamp(0.55rem, 1.1vw, 1.15rem);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu--home .nav-link {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 0;
    color: #cbd5e1;
}

.nav-menu--home .nav-link:hover,
.nav-menu--home .nav-link.active {
    color: #fff;
}

.nav-menu--home .nav-link::after {
    height: 3px;
    border-radius: 2px;
    left: 0;
    transform: none;
    background: var(--home-purple);
}

.nav-menu--home .nav-link:hover:not(.active)::after {
    background: rgba(124, 77, 255, 0.5);
}

.header-actions--home {
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.search-container--home {
    flex-direction: row;
    align-items: stretch;
    border-radius: 20px;
    padding: 0 0.65rem 0 0.95rem;
    min-height: 38px;
    background: rgba(18, 18, 26, 0.98);
    border: 1px solid rgba(120, 100, 180, 0.35);
}

.search-container--home:focus-within {
    border-color: rgba(124, 77, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.2);
}

.search-input--home {
    flex: 1;
    min-width: 0;
    width: min(240px, 26vw);
    padding: 0.45rem 0.35rem 0.45rem 0;
    font-size: 0.82rem;
    border: none;
    background: transparent;
}

.search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.15rem;
    margin-left: 0.15rem;
    line-height: 0;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.88);
}

.search-icon-btn--end {
    margin-left: 0;
}

.search-icon-btn:hover {
    color: #fff;
}

.btn-header-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: var(--home-purple);
    border: none;
    box-shadow: 0 2px 12px rgba(124, 77, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-read:hover {
    background: #6d3df0;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(124, 77, 255, 0.45);
    color: #fff;
}

@media (max-width: 1100px) {
    .logo-slogan-top,
    .logo-slogan-sub {
        white-space: normal;
    }

    .logo-wordmark {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}



.hero-first-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.hero-panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(124, 77, 255, 0.28);
    isolation: isolate;
    background-color: #08080f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: fadeInUp 0.85s ease-out;
}

.hero-panel--has-bg {
    background-image: url('/assets/images/f7be4f3823bfd3c69c184b196c40c0b9.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-panel--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        rgba(5, 5, 10, 0.94) 0%,
        rgba(6, 6, 14, 0.82) 32%,
        rgba(8, 8, 18, 0.45) 52%,
        rgba(10, 10, 22, 0.18) 72%,
        rgba(12, 10, 24, 0.08) 100%
    );
    pointer-events: none;
}

.hero-panel--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 90% 80% at 15% 85%, rgba(91, 33, 182, 0.22) 0%, transparent 52%);
    pointer-events: none;
}

.hero-panel__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 3vw, 2.75rem);
    min-height: clamp(320px, 42vw, 420px);
}

.hero-panel__copy {
    min-width: 0;
    max-width: 36rem;
    animation: fadeInLeft 0.85s ease-out;
}

.hero-panel__h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-panel__h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.hero-panel__desc {
    font-size: 0.98rem;
    color: var(--home-muted);
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.hero-feature-card__icon {
    flex-shrink: 0;
    color: var(--home-purple);
    display: flex;
    margin-top: 2px;
}

.hero-feature-card__line1 {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
}

.hero-feature-card__line2 {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.hero-panel__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn-hero-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(95deg, var(--home-purple) 0%, #6366f1 40%, #2563eb 100%);
    box-shadow: 0 8px 32px rgba(91, 33, 182, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(91, 33, 182, 0.55);
    color: #fff;
}

.btn-hero-gradient__arrow {
    font-weight: 700;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-hero-outline:hover {
    border-color: rgba(124, 77, 255, 0.55);
    color: #fff;
}

.btn-hero-outline__star {
    color: #fb7185;
    font-size: 1rem;
}

.stats-strip {
    margin-top: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(10, 10, 14, 0.92);
    padding: 1.1rem 0.75rem;
    animation: fadeInUp 0.9s 0.08s ease-out both;
}

.stats-strip__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.stats-strip__cell {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.7rem 0.85rem;
    padding: 0.5rem 1rem;
    min-width: 0;
}

.stats-strip__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

.stats-strip__divider {
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 48px;
    margin: 0.35rem 0;
    background: rgba(255, 255, 255, 0.06);
}

.stats-strip__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.stats-strip__svg {
    width: 28px;
    height: 28px;
}

.stats-strip__icon-wrap--books {
    color: var(--home-purple);
}
.stats-strip__icon-wrap--user {
    color: #fb7185;
}
.stats-strip__icon-wrap--eye {
    color: #22d3ee;
}
.stats-strip__icon-wrap--thumb {
    color: #4ade80;
}

.stat-number--stats {
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.stat-number--violet {
    color: var(--home-purple);
}
.stat-number--rose {
    color: #fb7185;
}
.stat-number--cyan {
    color: #22d3ee;
}
.stat-number--green {
    color: #4ade80;
}

.stats-strip__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.3;
}

/* Main Content */
.main-wrapper {
    padding: 3rem 0;
}

.main-wrapper.main-wrapper--home {
    padding: 1.5rem 0 3rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Comics Grid */
.comics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.comic-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out backwards;
}

.comic-card:nth-child(1) { animation-delay: 0.1s; }
.comic-card:nth-child(2) { animation-delay: 0.2s; }
.comic-card:nth-child(3) { animation-delay: 0.3s; }
.comic-card:nth-child(4) { animation-delay: 0.4s; }
.comic-card:nth-child(5) { animation-delay: 0.5s; }
.comic-card:nth-child(6) { animation-delay: 0.6s; }

.comic-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.comic-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--darker-bg);
}

.comic-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comic-card:hover .comic-image {
    transform: scale(1.1);
}

.comic-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.comic-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.comic-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.comic-badge.finished {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.comic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comic-card:hover .comic-overlay {
    opacity: 1;
}

.read-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comic-card:hover .read-btn {
    transform: scale(1);
}

.comic-details {
    padding: 1.5rem;
}

.comic-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.comic-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comic-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Latest Updates */
.latest-updates-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.update-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.update-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.update-link {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.update-thumb {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.update-info {
    flex: 1;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.update-chapter {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.update-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Categories */
.categories-section {
    margin-bottom: 5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: rgba(99, 102, 241, 0.1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features */
.features-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.faq-section .section-header {
    margin-bottom: 2.25rem;
}

.faq-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.faq-question {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.faq-answer {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

@media (min-width: 900px) {
    .faq-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem 1.5rem;
        align-items: start;
    }
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-panel__grid {
        min-height: 0;
        padding-top: clamp(1.75rem, 4vw, 2.5rem);
        padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
    }

    .hero-panel--has-bg {
        background-position: center top;
    }

    .hero-panel--has-bg::before {
        background: linear-gradient(
            180deg,
            rgba(5, 5, 10, 0.92) 0%,
            rgba(6, 6, 14, 0.78) 40%,
            rgba(8, 8, 18, 0.55) 100%
        );
    }

    .hero-panel__copy {
        max-width: none;
        text-align: center;
    }

    .hero-feature-grid {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-feature-card {
        text-align: left;
    }

    .hero-panel__cta {
        justify-content: center;
    }

    .nav-menu {
        gap: 1rem;
    }

    .search-input {
        width: 150px;
    }

    .header-actions--home {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-strip__inner {
        flex-wrap: wrap;
    }

    .stats-strip__divider {
        display: none;
    }

    .stats-strip__cell {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 158px;
        justify-content: flex-start;
        padding: 0.65rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .stats-strip__cell:nth-child(5),
    .stats-strip__cell:nth-child(7) {
        border-bottom: none;
    }

    .stats-strip__icon-wrap {
        width: 38px;
        height: 38px;
    }

    .stats-strip__svg {
        width: 24px;
        height: 24px;
    }
    
    .comics-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .updates-list {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }
    
    .hero-first-wrap {
        padding: 0 1rem 1.5rem;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
    }

    .btn-header-read {
        padding: 0.45rem 0.95rem;
        font-size: 0.8rem;
    }

    .stats-strip__cell {
        flex: 1 1 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .stats-strip__cell:last-of-type {
        border-bottom: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comics-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Library Page Styles */
.page-header-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Filter Section */
.filter-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.filter-select {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Library Section */
.library-section {
    margin-bottom: 5rem;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.library-stats {
    font-size: 1rem;
    color: var(--text-secondary);
}

.library-stats strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--gradient-1);
    color: white;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.library-grid.list-view {
    grid-template-columns: 1fr;
}

.library-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out backwards;
}

.library-card:nth-child(1) { animation-delay: 0.1s; }
.library-card:nth-child(2) { animation-delay: 0.2s; }
.library-card:nth-child(3) { animation-delay: 0.3s; }
.library-card:nth-child(4) { animation-delay: 0.4s; }
.library-card:nth-child(5) { animation-delay: 0.5s; }
.library-card:nth-child(6) { animation-delay: 0.6s; }

.library-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.library-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.library-grid.list-view .library-link {
    flex-direction: row;
}

.library-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--darker-bg);
    flex-shrink: 0;
}

.library-grid.list-view .library-thumbnail {
    width: 200px;
    padding-top: 0;
    height: 280px;
}

.library-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.library-card:hover .library-image {
    transform: scale(1.1);
}

.library-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.library-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.library-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.library-badge.finished {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.library-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.library-card:hover .library-overlay {
    opacity: 1;
}

.library-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.library-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.library-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.library-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.library-grid.list-view .library-summary {
    -webkit-line-clamp: 2;
}

.library-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.library-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Pagination */
.pagination-section {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 1rem 1.5rem;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: rgba(30, 41, 59, 0.8);
}

.page-num:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.page-num.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.page-dots {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Responsive for Library Page */
@media (max-width: 768px) {
    .library-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .library-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .library-grid.list-view .library-link {
        flex-direction: column;
    }
    
    .library-grid.list-view .library-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .filter-panel {
        padding: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .page-num {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Categories Page Styles */
.categories-page-section {
    margin-bottom: 5rem;
}

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.category-page-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.category-page-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.category-page-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--darker-bg);
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-page-card:hover .category-img {
    transform: scale(1.1);
}

.category-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-page-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.category-page-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-page-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.category-page-count {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-page-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* Ranking Page Styles */
.ranking-tabs-section {
    margin-bottom: 3rem;
}

.ranking-tabs {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ranking-tab {
    padding: 0.75rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.ranking-tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.ranking-content-section {
    margin-bottom: 5rem;
}

.ranking-tab-content {
    display: none;
}

.ranking-tab-content.active {
    display: block;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.ranking-item.rank-1,
.ranking-item.rank-2,
.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
}

.ranking-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ranking-item.rank-1 .ranking-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-bg);
    font-size: 1.75rem;
}

.ranking-item.rank-2 .ranking-number {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--dark-bg);
    font-size: 1.75rem;
}

.ranking-item.rank-3 .ranking-number {
    background: linear-gradient(135deg, #cd7f32, #e6a857);
    color: white;
    font-size: 1.75rem;
}

.ranking-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ranking-cover {
    width: 140px;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.ranking-item:hover .ranking-cover {
    border-color: var(--primary-color);
}

.ranking-info {
    flex: 1;
}

.ranking-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ranking-author {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.ranking-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ranking-stat {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Latest Page Styles */
.latest-timeline-section {
    margin-bottom: 5rem;
}

.update-date-group {
    margin-bottom: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.update-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.update-date-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.update-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item-full {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.update-item-full:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.update-link-full {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.update-cover-full {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.update-item-full:hover .update-cover-full {
    border-color: var(--primary-color);
}

.update-info-full {
    flex: 1;
}

.update-title-full {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.update-chapter-full {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-meta-full {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.update-time-full,
.update-author-full {
    display: flex;
    align-items: center;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .categories-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .ranking-tabs {
        padding: 1rem;
    }
    
    .ranking-tab {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ranking-link {
        flex-direction: column;
        text-align: center;
    }
    
    .ranking-cover {
        width: 120px;
        height: 160px;
    }
    
    .update-link-full {
        flex-direction: column;
    }
    
    .update-cover-full {
        width: 100%;
        height: 200px;
    }
    
    .update-date-group {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-page-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .ranking-item.rank-1 .ranking-number,
    .ranking-item.rank-2 .ranking-number,
    .ranking-item.rank-3 .ranking-number {
        font-size: 1.5rem;
    }
    
    .update-date-group {
        padding: 1rem;
    }
}

/* --- SEO: 站内关键词导航与程序化内链 --- */
.seo-spider-section {
    padding-bottom: 2.5rem;
}

.seo-section-head {
    margin-bottom: 0.75rem;
}

/* 首页「漫画导航与关键词」区块（图2样式） */
.seo-hub-section {
    background: linear-gradient(180deg, rgba(10, 10, 22, 0.35) 0%, transparent 100%);
}

/* 压缩该区块整体高度（覆盖 .filter-section / .seo-spider-section 默认上下留白） */
.filter-section.seo-spider-section.seo-hub-section {
    margin-bottom: 1.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.85rem;
}

.seo-hub-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.28;
    text-align: left;
}

.seo-hub-title__base {
    color: #f1f5f9;
}

.seo-hub-title__accent {
    color: #a855f7;
}

.seo-hub-lead {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #9ca3af;
    text-align: left;
}

.seo-keyword-nav--chips {
    margin: 0 0 0.7rem;
}

.seo-keyword-list--chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.32rem 0.42rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.seo-keyword-list--chips li {
    margin: 0;
}

a.seo-keyword-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.26rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(22, 27, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.seo-keyword-chip:hover {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(30, 27, 50, 0.98);
}

.seo-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem 0.9rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 77, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(35, 25, 55, 0.55) 0%, rgba(18, 16, 32, 0.85) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.seo-info-banner__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c4dff 0%, #5b21b6 100%);
    color: #fff;
    box-shadow: 0 0 14px rgba(124, 77, 255, 0.28);
}

.seo-info-banner__icon svg {
    width: 22px;
    height: 22px;
}

.seo-info-banner__body {
    flex: 1;
    min-width: 0;
}

.seo-info-banner .seo-internal-root {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.seo-info-banner .seo-internal-root p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.seo-info-banner .seo-internal-root p a {
    color: #c084fc;
    font-weight: 600;
}

.seo-info-banner .seo-internal-root p a:hover {
    color: #e9d5ff;
    text-decoration: underline;
}

.seo-keyword-nav {
    margin: 0.25rem 0 1rem;
}

.seo-keyword-list:not(.seo-keyword-list--chips) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.seo-keyword-list:not(.seo-keyword-list--chips) a {
    color: var(--primary-color, #6366f1);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.35);
}

.seo-keyword-list:not(.seo-keyword-list--chips) a:hover {
    color: var(--accent-color, #a855f7);
    border-bottom-color: transparent;
}

.seo-internal-root {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color, #334155);
    border-radius: 0.65rem;
    background: rgba(30, 41, 59, 0.45);
}

.seo-internal-root p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--text-secondary, #cbd5e1);
}

.seo-internal-root p a {
    color: var(--accent-color, #a855f7);
    font-weight: 600;
    text-decoration: none;
}

.seo-internal-root p a:hover {
    text-decoration: underline;
}

/* 页面级标题/面板（原 HTML 内联样式迁入） */
.section-title.section-title--filter-heading {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.section-title.section-title--ranking-tabs-intro {
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.section-title.section-title--timeline-intro {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.section-title.section-title--about-intro {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 站群自动文章栏目 */
.cluster-articles-section {
    margin-bottom: 5rem;
    padding: 2.5rem 0;
}

.cluster-articles-section--compact {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
}

.cluster-articles-feed {
    min-height: 3rem;
}

.cluster-articles-placeholder,
.cluster-articles-empty,
.cluster-articles-sync {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cluster-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cluster-article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cluster-article-card:hover {
    border-color: rgba(124, 77, 255, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.cluster-article-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.cluster-article-card__title a {
    color: var(--text-primary);
    text-decoration: none;
}

.cluster-article-card__title a:hover {
    color: var(--primary-color, #7c4dff);
}

.cluster-article-card__date {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cluster-article-card__summary {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cluster-article-card__entities {
    margin: 0;
    font-size: 0.8rem;
}

.cluster-article-card__entities .article-entity {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(124, 77, 255, 0.12);
    color: var(--primary-color, #a78bfa);
}

.cluster-articles-sync {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.about-compliance-panel {
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-title.footer-title--spaced-top {
    margin-top: 1rem;
}
