
:root {
    --color-dark: #353940;
    --color-teal: #3e92a3;
    --color-light: #dfe0d4;
    --color-accent: #ff5335;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f0;
    --color-gray-200: #e8e8e0;
    --color-gray-300: #d0d0c8;
    --color-gray-500: #888880;
    --color-gray-700: #555550;
    --color-gray-900: #2a2d33;
    --shadow-sm: 0 1px 3px rgba(53, 57, 64, 0.08);
    --shadow-md: 0 4px 12px rgba(53, 57, 64, 0.12);
    --shadow-lg: 0 8px 30px rgba(53, 57, 64, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1320px;
    --sidebar-width: 370px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    font-size: 16px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background-color: #f2f3ee;
    color: #353940;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.top-navbar {
    width: 100%;
    background-color: #353940;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.top-navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}
.site-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.btn-nav {
    padding: 9px 20px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-read-now {
    background-color: #ff5335;
    color: #fff;
    box-shadow: 0 3px 12px rgba(255, 83, 53, 0.35);
}
.btn-read-now:hover {
    background-color: #e8482b;
    box-shadow: 0 5px 18px rgba(255, 83, 53, 0.45);
    transform: translateY(-1px);
}
.btn-read-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 83, 53, 0.3);
}
.section-nav {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0d8;
    position: sticky;
    top: 60px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.section-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 46px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar {
    display: none;
}
.section-nav-inner a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555550;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: 0.2px;
}
.section-nav-inner a:hover,
.section-nav-inner a:focus {
    color: #3e92a3;
    background-color: rgba(62, 146, 163, 0.08);
}
.section-nav-inner a.nav-active {
    color: #ffffff;
    background-color: #3e92a3;
    font-weight: 600;
}
.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.content-main {
    flex: 1;
    min-width: 0;
}
.content-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.section-block {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
    border: 1px solid #e8e8e0;
    transition: var(--transition);
}
.section-block:hover {
    box-shadow: var(--shadow-md);
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #353940;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3e92a3;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff5335;
    border-radius: 2px;
}
.sidebar .section-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
}
.sidebar .section-title::after {
    width: 36px;
    height: 3px;
    bottom: -3px;
}
.novel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.novel-card {
    background: #fafaf7;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #e8e8e0;
    display: flex;
    flex-direction: column;
}
.novel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #3e92a3;
}
.novel-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #e0e0d8;
}
.novel-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.novel-card:hover .novel-card-img-wrap img {
    transform: scale(1.06);
}
.novel-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff5335;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    z-index: 2;
}
.novel-card-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.novel-card-info .novel-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #353940;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.novel-card-info .novel-author {
    font-size: 0.78rem;
    color: #888880;
}
.novel-card-info .novel-meta {
    font-size: 0.72rem;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.novel-card-info .novel-type-tag {
    display: inline-block;
    background: rgba(62, 146, 163, 0.1);
    color: #3e92a3;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.sidebar .section-block {
    padding: 18px 16px;
    margin-bottom: 0;
}
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    background: #fafaf7;
    border: 1px solid transparent;
}
.rank-list li:hover {
    background: #fff;
    border-color: #d0d0c8;
    box-shadow: var(--shadow-sm);
}
.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;
    background: #888880;
}
.rank-num.top1 {
    background: #ff5335;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
}
.rank-num.top2 {
    background: #e87830;
    font-size: 0.82rem;
    width: 27px;
    height: 27px;
}
.rank-num.top3 {
    background: #d4a020;
    font-size: 0.8rem;
    width: 27px;
    height: 27px;
}
.rank-info {
    flex: 1;
    min-width: 0;
}
.rank-info .rank-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #353940;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-info .rank-sub {
    font-size: 0.72rem;
    color: #888880;
}
.rank-change {
    font-weight: 600;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.rank-change.up {
    color: #ff5335;
}
.rank-change.down {
    color: #888880;
}
.stat-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1;
    min-width: 90px;
    text-align: center;
    background: #fafaf7;
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    border: 1px solid #e8e8e0;
}
.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3e92a3;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.72rem;
    color: #888880;
    margin-top: 4px;
}
.total-reads-update {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 6px;
    text-align: right;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud .tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(62, 146, 163, 0.08);
    color: #3e92a3;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.tag-cloud .tag:hover {
    background: #3e92a3;
    color: #fff;
    border-color: #3e92a3;
}
.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #d0d0c8 transparent;
}
.comment-list::-webkit-scrollbar {
    width: 4px;
}
.comment-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}
.comment-list::-webkit-scrollbar-thumb {
    background: #d0d0c8;
    border-radius: 4px;
}
.comment-item {
    background: #fafaf7;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    border: 1px solid #e8e8e0;
    transition: var(--transition);
}
.comment-item:hover {
    border-color: #d0d0c8;
    box-shadow: var(--shadow-sm);
}
.comment-user {
    font-weight: 600;
    font-size: 0.82rem;
    color: #353940;
    margin-bottom: 6px;
}
.comment-text {
    font-size: 0.78rem;
    color: #555550;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comment-time {
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 4px;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.advantage-card {
    text-align: center;
    padding: 20px 14px;
    background: #fafaf7;
    border-radius: var(--radius-md);
    border: 1px solid #e8e8e0;
    transition: var(--transition);
}
.advantage-card:hover {
    border-color: #3e92a3;
    box-shadow: var(--shadow-md);
}
.advantage-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(62, 146, 163, 0.12);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.advantage-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.advantage-card h4 {
    font-size: 0.95rem;
    color: #353940;
    margin-bottom: 4px;
}
.advantage-card p {
    font-size: 0.75rem;
    color: #888880;
    line-height: 1.4;
}
.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.character-card {
    text-align: center;
    background: #fafaf7;
    border-radius: var(--radius-md);
    padding: 18px 12px;
    border: 1px solid #e8e8e0;
    transition: var(--transition);
}
.character-card:hover {
    border-color: #3e92a3;
    box-shadow: var(--shadow-md);
}
.character-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #e8e8e0;
}
.character-card h4 {
    font-weight: 700;
    font-size: 0.9rem;
    color: #353940;
}
.character-card .char-role {
    font-size: 0.72rem;
    color: #3e92a3;
    font-weight: 500;
}
.character-card p {
    font-size: 0.72rem;
    color: #888880;
    margin-top: 4px;
    line-height: 1.4;
}
.faq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-list li {
    border: 1px solid #e8e8e0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #353940;
    background: #fafaf7;
    transition: var(--transition);
    gap: 10px;
}
.faq-question:hover {
    background: #f0f0ea;
}
.faq-answer {
    padding: 0 16px 14px;
    font-size: 0.82rem;
    color: #555550;
    line-height: 1.5;
    display: none;
}
.faq-list li.open .faq-answer {
    display: block;
}
.faq-list li.open .faq-question {
    color: #3e92a3;
    background: #f5fafb;
    border-bottom: 1px solid #e0e8ea;
}
.faq-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #888880;
}
.faq-list li.open .faq-arrow {
    transform: rotate(180deg);
    color: #3e92a3;
}
.download-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.download-card {
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    background: #fafaf7;
    border: 2px solid #e8e8e0;
    transition: var(--transition);
    text-decoration: none;
    color: #353940;
    cursor: pointer;
}
.download-card:hover {
    border-color: #3e92a3;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.download-card .app-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}
.download-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.download-card span {
    font-size: 0.7rem;
    color: #888880;
}
.footer-nav {
    width: 100%;
    background-color: #353940;
    color: #c0c0b8;
    padding: 40px 20px 24px;
    margin-top: 20px;
}
.footer-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: #b0b0a8;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 4px 0;
    transition: var(--transition);
}
.footer-col a:hover {
    color: #ff5335;
}
.footer-bottom {
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.75rem;
    color: #888880;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.footer-bottom a {
    color: #b0b0a8;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.footer-bottom a:hover {
    color: #ff5335;
}
@media (max-width: 1200px) {
    .novel-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .content-sidebar {
        width: 320px;
    }
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 16px 14px 30px;
    }
    .content-sidebar {
        width: 100%;
        order: 3;
        gap: 16px;
    }
    .content-main {
        order: 2;
    }
    .novel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .section-block {
        padding: 16px 14px;
    }
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .top-navbar-inner {
        padding: 0 14px;
        height: 52px;
    }
    .site-brand h1 {
        font-size: 1.2rem;
    }
    .section-nav {
        top: 52px;
    }
    .section-nav-inner {
        height: 40px;
        gap: 4px;
        padding: 0 12px;
    }
    .section-nav-inner a {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
    html {
        scroll-padding-top: 105px;
    }
    .btn-nav {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}
@media (max-width: 600px) {
    .novel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .novel-card-info {
        padding: 8px 10px;
        gap: 3px;
    }
    .novel-card-info .novel-name {
        font-size: 0.82rem;
    }
    .novel-card-info .novel-author {
        font-size: 0.7rem;
    }
    .advantage-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .character-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .character-card img {
        width: 60px;
        height: 60px;
    }
    .download-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stat-row {
        gap: 6px;
    }
    .stat-item {
        padding: 10px 6px;
    }
    .stat-value {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    .top-navbar-inner {
        height: 48px;
        padding: 0 10px;
    }
    .site-brand h1 {
        font-size: 1.05rem;
    }
    .btn-nav {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .section-nav {
        top: 48px;
    }
    html {
        scroll-padding-top: 95px;
    }
    .footer-nav-inner {
        flex-direction: column;
        gap: 20px;
    }
    .comment-list {
        max-height: 400px;
    }
}
