
:root {
    --teal: #38c6bd;
    --aqua: #2fe1d6;
    --mint: #97ffcf;
    --sunny: #fffb97;
    --bg: #12141c;
    --surface: #1b1e28;
    --surface-light: #232733;
    --border: #2c3040;
    --text: #e6e8ef;
    --text-secondary: #9a9dad;
    --text-muted: #6b6f7c;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
    --nav-height: 64px;
    --max-width: 1440px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.top-nav {
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 20, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-left .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--teal), var(--aqua));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #12141c;
    letter-spacing: -1px;
}
.nav-left h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
}
.nav-left h1 span {
    color: var(--aqua);
}
.nav-center {
    display: flex;
    gap: 4px;
}
.nav-center a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}
.nav-center a.active,
.nav-center a:hover {
    background: rgba(47, 225, 214, 0.1);
    color: var(--aqua);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-right .search-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.nav-right .search-btn:hover {
    border-color: var(--teal);
}
.nav-right .search-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
.nav-right .search-btn input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.8rem;
    width: 130px;
}
.nav-right .search-btn input::placeholder {
    color: var(--text-muted);
}
.user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 24px;
    background: rgba(56, 198, 189, 0.08);
    border: 1px solid rgba(56, 198, 189, 0.25);
    cursor: pointer;
    transition: 0.2s;
}
.user-status:hover {
    background: rgba(56, 198, 189, 0.15);
    border-color: var(--aqua);
}
.user-status img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--aqua);
}
.user-status .user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
}
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 32px 40px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-head h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.section-head h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--teal), var(--aqua));
    border-radius: 2px;
}
.section-head .more-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.section-head .more-link:hover {
    border-color: var(--aqua);
    color: var(--aqua);
}
.hero-banner {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    min-height: 300px;
}
.hero-banner .banner-img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}
.hero-banner .banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.hero-banner .banner-img:hover img {
    transform: scale(1.04);
}
.hero-banner .banner-info {
    flex: 1;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(to left, rgba(18,20,28,0.9), rgba(27,30,40,0.7));
}
.hero-banner .banner-info .badge {
    display: inline-block;
    background: var(--sunny);
    color: #12141c;
    padding: 4px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    width: fit-content;
}
.hero-banner .banner-info h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}
.hero-banner .banner-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-banner .banner-info .meta {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.hero-banner .banner-info .meta strong {
    color: var(--sunny);
}
.hero-banner .banner-info .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), var(--aqua));
    color: #12141c;
    padding: 10px 28px;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: 0.2s;
    box-shadow: 0 6px 18px rgba(56, 198, 189, 0.3);
}
.hero-banner .banner-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(56, 198, 189, 0.5);
}
.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.comic-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.comic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(56, 198, 189, 0.5);
}
.comic-card .cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1d28;
}
.comic-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.comic-card:hover .cover img {
    transform: scale(1.07);
}
.comic-card .cover .rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: var(--sunny);
    color: #12141c;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.comic-card .info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.comic-card .info .title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}
.comic-card .info .author {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-card .info .views {
    font-size: 0.7rem;
    color: var(--aqua);
    font-weight: 600;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.panel {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.rank-list li:hover {
    background: var(--surface-light);
}
.rank-list .num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: var(--border);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.rank-list li:nth-child(1) .num {
    background: #f7c948;
    color: #12141c;
}
.rank-list li:nth-child(2) .num {
    background: #bcc6d0;
    color: #12141c;
}
.rank-list li:nth-child(3) .num {
    background: #cd9b6b;
    color: #fff;
}
.rank-list .thumbnail {
    width: 44px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.rank-list .desc {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rank-list .desc .r-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-list .desc .r-author {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.rank-list .trend {
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.trend.up {
    color: #ff6b6b;
}
.trend.down {
    color: #6ba3ff;
}
.trend.stable {
    color: var(--text-muted);
}
.rank-list .r-views {
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.detail-block {
    display: flex;
    gap: 28px;
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    align-items: flex-start;
    flex-wrap: wrap;
}
.detail-block .detail-cover {
    flex-shrink: 0;
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 2px solid rgba(47, 225, 214, 0.4);
}
.detail-block .detail-cover img {
    width: 180px;
    height: 250px;
    object-fit: cover;
    display: block;
}
.detail-block .detail-content {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-block .detail-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}
.detail-block .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.detail-block .tags span {
    background: rgba(151, 255, 207, 0.1);
    border: 1px solid rgba(151, 255, 207, 0.3);
    color: var(--mint);
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 500;
}
.detail-block .detail-content .desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}
.detail-block .detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.detail-block .detail-meta .highlight {
    color: var(--sunny);
    font-weight: 700;
}
.detail-block .action-btns {
    display: flex;
    gap: 12px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--aqua));
    color: #12141c;
    border: none;
    padding: 10px 26px;
    border-radius: 22px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(56, 198, 189, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(56, 198, 189, 0.5);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--aqua);
    color: var(--aqua);
    padding: 10px 26px;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.btn-outline:hover {
    background: rgba(47, 225, 214, 0.08);
}
.character-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
.char-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
    padding-bottom: 16px;
}
.char-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 251, 151, 0.4);
}
.char-card .char-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1d28;
}
.char-card .char-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.char-card:hover .char-img img {
    transform: scale(1.06);
}
.char-card .char-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    margin-top: 12px;
}
.char-card .char-comic {
    font-size: 0.68rem;
    color: var(--aqua);
    margin-top: 2px;
}
.char-card .char-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.total-table-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
thead th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tbody tr:hover {
    background: rgba(56, 198, 189, 0.04);
    cursor: pointer;
}
.table-rank {
    font-weight: 800;
    font-size: 1rem;
}
tbody tr:nth-child(1) .table-rank {
    color: #f7c948;
}
tbody tr:nth-child(2) .table-rank {
    color: #bcc6d0;
}
tbody tr:nth-child(3) .table-rank {
    color: #cd9b6b;
}
.table-cover {
    width: 40px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
}
.table-title {
    font-weight: 600;
    color: var(--white);
}
.table-author {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.table-views {
    font-weight: 700;
    color: var(--sunny);
}
.table-trend {
    font-weight: 600;
    font-size: 0.75rem;
}
.trend-cell.up {
    color: #ff6b6b;
}
.trend-cell.down {
    color: #6ba3ff;
}
.wide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.rec-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}
.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 251, 151, 0.4);
}
.rec-card .rec-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1d28;
    position: relative;
}
.rec-card .rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.rec-card:hover .rec-img img {
    transform: scale(1.06);
}
.rec-card .rec-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--sunny);
    color: #12141c;
    padding: 2px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.65rem;
}
.rec-card .rec-info {
    padding: 10px 12px 12px;
}
.rec-card .rec-info .r-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-card .rec-info .r-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.star-card {
    background: var(--surface);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
    padding-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.star-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 251, 151, 0.5);
}
.star-card .star-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1d28;
    border-bottom: 3px solid var(--sunny);
}
.star-card .star-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.star-card:hover .star-img img {
    transform: scale(1.06);
}
.star-card .star-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--sunny);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: #12141c;
    box-shadow: 0 4px 14px rgba(255,251,151,0.5);
}
.star-card .s-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 12px;
    color: var(--white);
}
.star-card .s-role {
    font-size: 0.7rem;
    color: var(--aqua);
}
.star-card .s-fans {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.star-card .s-fans strong {
    color: var(--sunny);
}
.bottom-nav {
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 32px 24px;
    margin-top: 20px;
}
.bottom-nav .bottom-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.bottom-nav h4 {
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.bottom-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bottom-nav ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 0.2s;
}
.bottom-nav ul a:hover {
    color: var(--aqua);
}
.bottom-nav .copyright {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.bottom-nav .copyright span {
    color: var(--aqua);
    font-weight: 600;
}
@media (max-width: 1200px) {
    .comic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .character-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .wide-grid,
    .star-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-banner {
        flex-direction: column;
    }
    .hero-banner .banner-img {
        height: 240px;
    }
}
@media (max-width: 768px) {
    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .wide-grid,
    .star-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-block .detail-cover {
        width: 140px;
    }
    .detail-block .detail-cover img {
        width: 140px;
        height: 196px;
    }
    .bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .nav-center {
        display: none;
    }
}
@media (max-width: 480px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-container {
        padding: 14px 12px 24px;
    }
}
