@font-face {
    font-family: 'Archivo';
    src: url("../font/Archivo.woff2");
}

*,
*::after,
*::before {
    box-sizing: border-box;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px;
}

a {
    background-color: transparent;
    color: inherit;
    letter-spacing: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
}

button,
input {
    overflow: visible;
}

input {
    color: inherit;
    letter-spacing: inherit;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

input:focus {
    outline: none;
}

button {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: inherit;
    letter-spacing: inherit;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Theme Variables & Base Styles
   ============================================ */

.theme-v2 {
    --bg: #f4f6f1;
    --surface: #ffffff;
    --surface-hover: #f3f4ef;
    --muted-surface: #e8ede2;
    --border: #d9e0d2;
    --border-light: #e7ecdf;
    --text: #1c1f14;
    --text-secondary: #5f654f;
    --text-muted: #8a9273;
    --primary: #7aa36f;
    --primary-light: #90b987;
    --primary-dark: #5f8654;
    --accent: #f0a65b;
    --accent-light: #f7c080;
    --success: #5cb58a;
    --warning: #e3a93c;
    --danger: #d46c62;
    --gradient-primary: linear-gradient(135deg, #8ab881 0%, #5f8654 100%);
    --gradient-accent: linear-gradient(135deg, #f6c27a 0%, #d78a3f 100%);
    --gradient-soft: linear-gradient(135deg, rgba(122, 163, 111, 0.12) 0%, rgba(240, 166, 91, 0.12) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    background: var(--bg);
    min-height: 100vh;
}

.theme-v2 .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .theme-v2 .container {
        padding: 0 16px;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.theme-v2 .hero {
    background: var(--gradient-soft);
    padding: 32px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.theme-v2 .hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .theme-v2 .hero {
        padding: 0;
        margin-bottom: 15px;
    }

    .theme-v2 .hero h1 {
        font-size: 26px;
    }
}

/* ============================================
   Section Styles
   ============================================ */

.theme-v2 .section {
    margin-bottom: 48px;
}

.theme-v2 .section:last-child {
    margin-bottom: 0;
}

.theme-v2 .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.theme-v2 .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 12px;
}

.theme-v2 .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.theme-v2 .more-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.theme-v2 .more-link:hover {
    color: var(--primary);
    gap: 4px;
}

.theme-v2 .more-link::after {
    content: '→';
    font-size: 16px;
    transition: none;
}

.theme-v2 .more-link:hover::after {
    transform: none;
}

@media (max-width: 768px) {
    .theme-v2 .section {
        margin-bottom: 32px;
    }

    .theme-v2 .section-title {
        font-size: 20px;
    }

    .theme-v2 .section-header {
        margin-bottom: 20px;
    }
}

/* ============================================
   Card Grid
   ============================================ */

.theme-v2 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .theme-v2 .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .theme-v2 .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .theme-v2 .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================
   Card Styles
   ============================================ */

.theme-v2 .card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: none;
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--border);
    height: 100%;
}

.theme-v2 .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-light);
}

.theme-v2 .cover {
    position: relative;
    padding-top: 110%;
    background: var(--muted-surface);
    overflow: hidden;
    display: block;
    border-bottom: 1px solid var(--border);
}

.theme-v2 .cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-v2 .card:hover .cover::after {
    opacity: 0;
}

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

.theme-v2 .card:hover .cover img {
    transform: none;
}

.theme-v2 .card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.theme-v2 .badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.theme-v2 .badge {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(122, 163, 111, 0.14);
    color: var(--primary-dark);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.theme-v2 .badge.success {
    background: rgba(92, 181, 138, 0.16);
    color: var(--success);
}

.theme-v2 .title {
    /* min-height: 40px; */
    display: flex;
    align-items: flex-start;
}

.theme-v2 .title a {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.theme-v2 .title a:hover {
    color: var(--text);
}

.theme-v2 .author {
    min-height: 18px;
}

.theme-v2 .author a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s ease;
}

.theme-v2 .author a:hover {
    color: var(--text-secondary);
}

.theme-v2 .desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ============================================
   Rank List Styles
   ============================================ */

.theme-v2 .rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-v2 .rank-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: all 0.2s ease;
    align-items: start;
}

.theme-v2 .rank-item:hover {
    background: var(--surface);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.theme-v2 .rank-num {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--surface);
    background: var(--gradient-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.theme-v2 .rank-item:nth-child(1) .rank-num {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.theme-v2 .rank-item:nth-child(2) .rank-num {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1a1a1a;
}

.theme-v2 .rank-item:nth-child(3) .rank-num {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a057 100%);
    color: var(--surface);
}

.theme-v2 .rank-title {
    margin-bottom: 6px;
}

.theme-v2 .rank-title a {
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.45;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-v2 .rank-title a:hover {
    color: var(--text);
}

.theme-v2 .rank-author {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.theme-v2 .rank-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .theme-v2 .rank-item {
        grid-template-columns: 32px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .theme-v2 .rank-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .theme-v2 .rank-title a {
        font-size: 15px;
    }
}

/* ============================================
   Advertisement Styles
   ============================================ */
.positionFixed {
    bottom: 0px;
    left: 50%;
    position: fixed;
    transform: translate(-50%, 0%);
    z-index: 999;
    width: 100%;
    display: flex;
    justify-content: center;
}

.theme-v2 .ad-div {
    clear: both;
    min-width: 250px;
    margin-bottom: 10px;
    width: 100%;
}

.theme-v2 .t_de {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .theme-v2 .ad-div {
        clear: both;
        min-width: 250px;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* ============================================
   Main Container
   ============================================ */

.theme-v2 main {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 48px;
}

@media (max-width: 768px) {
    .theme-v2 main {
        padding-bottom: 32px;
    }
}

/* ============================================
   Header
   ============================================ */

.fig-193ya7q {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(122, 163, 111, 0.16), rgba(244, 246, 241, 0.9));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fig-logo-layer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fig-1qed43h span {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.fig-1r81mzm {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: var(--muted-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.fig-twwvt9 {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.fig-twwvt9:hover {
    color: var(--text-secondary);
    background: transparent;
}

.fig-twwvt9.home_page.active,
.fig-twwvt9.category_page.active,
.fig-twwvt9.tags_page.active,
.fig-twwvt9.rank_page.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.fig-nav-layer {
    display: flex;
    justify-content: flex-end;
}

.fig-1mc4qv0 {
    width: 100%;
    max-width: 520px;
}

.fig-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(138, 184, 129, 0.12), rgba(240, 166, 91, 0.08));
    border: 1px solid rgba(122, 163, 111, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.15);
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fig-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 22px -10px rgba(95, 134, 84, 0.35);
    transform: translateY(-1px);
}

.fig-search-icon {
    color: var(--text-secondary);
    display: inline-flex;
}

.fig-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    padding: 4px 6px;
}

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

.fig-clear-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    display: none;
}

.fig-clear-btn:hover {
    color: var(--text-muted);
    background: transparent;
}

.fig-search-btn {
    border: none;
    background: var(--gradient-primary);
    /* color: #fff; */
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 18px -10px rgba(95, 134, 84, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fig-search-btn:hover {
    box-shadow: 0 10px 18px -10px rgba(95, 134, 84, 0.55);
    transform: none;
}

.fig-search-btn:active {
    transform: translateY(0);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .fig-search-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .fig-search-input {
        font-size: 14px;
    }

    .fig-search-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 12px 16px;
    }

    .fig-logo-layer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fig-1r81mzm {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .header-container {
        gap: 12px;
    }

    .fig-1r81mzm {
        gap: 6px;
        padding: 6px 8px;
    }

    .fig-twwvt9 {
        padding: 6px 10px;
        font-size: 13px;
    }

    .fig-search-bar {
        padding: 8px 10px;
    }

    .fig-search-btn {
        padding: 8px 12px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.theme-v2 .card-grid .ad-div {
    grid-column: 1 / -1;
}

/* ============================================
   Responsive Improvements
   ============================================ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .theme-v2 .card-body {
        padding: 10px;
    }

    .theme-v2 .badge {
        font-size: 12px;
        padding: 3px 6px;
    }

    .theme-v2 .title a {
        font-size: 13px;
    }

    .theme-v2 .author a {
        font-size: 12px;
    }
}

/* ============================================
   Animation & Transitions
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-v2 .section {
    animation: fadeIn 0.4s ease-out;
}

.theme-v2 .card {
    animation: fadeIn 0.4s ease-out;
}

.theme-v2 .rank-item {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   Detail Page
   ============================================ */

.theme-v2 #ISLANDS__Header {
    /* margin-top: 12px; */
    margin-bottom: 22px;
}

.rigrid-1eern24 {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.18);
    padding: 18px;
}

.rigrid-13fjb5k {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rigrid-i6bazn {
    width: 100%;
    overflow: hidden;
}

.rigrid-kzglsd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.rigrid-49gqyk {
    display: flex;
    align-items: center;
}

.rigrid-1dtnjt5 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--muted-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.rigrid-skttdv {
    display: inline-flex;
    color: var(--text-muted);
}

.rigrid-1d5dh88 {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: start;
}

.book-covers-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: var(--radius-md);
}

.cover-item.cover-main {
    width: 180px;
    height: 230px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--surface);
}

.cover-item.cover-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info-section {
    position: relative;
    padding: 8px 0;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(122, 163, 111, 0.14);
    color: var(--primary-dark);
    border-radius: 999px;
    border: 2px solid rgba(122, 163, 111, 0.3);
    font-size: 12px;
    margin-bottom: 10px;
}

.genre-tag .genre-text {
    color: inherit;
}

.share-icon {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
}

.share-icon .blue {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--muted-surface);
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.book-main-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 10px 0 12px;
}

.author-publisher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
}

.author-name {
    font-weight: 600;
}

.separator {
    color: var(--border);
}

.tag {
    color: var(--primary);
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 18px;
    background: var(--border-light);
    margin: 0 6px;
    flex-shrink: 0;
}

.rigrid-3kkk8m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 12px 22px -14px rgba(95, 134, 84, 0.6);
    border: 1px solid rgba(122, 163, 111, 0.4);
}

.rigrid-pkk2k1 {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}

.rigrid-j4odie {
    display: flex;
}

.rigrid-1sma1m6 {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.12);
}

.book_list_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.table_cell.book_info {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.12);
}

.js_book_title {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.info_list_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.option_wrap {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: var(--muted-surface);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.option_left {
    padding-bottom: 10px;
}

.option_right a {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}

.option_right a.active {
    border-color: var(--primary);
    color: var(--primary);
}

.rigrid_more_button {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.rigrid_more_button a {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.book_list_wrapper .ad-div {
    grid-column: 1 / -1;
}

@media (max-width: 992px) {
    .rigrid-1d5dh88 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rigrid-1eern24 {
        padding: 14px;
    }

    .cover-item.cover-main {
        width: 150px;
        height: 200px;
    }

    .book-main-title {
        font-size: 24px;
    }

    .stats-bar {
        gap: 10px;
    }
}

/* ============================================
   Footer
   ============================================ */

.fig-1779n19 {
    background: var(--surface-hover);
    border-top: 1px solid var(--border);
    /* margin-top: 40px; */
}

.fig-148gq1b {
    display: none;
}

.fig-14yysxo {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    background: linear-gradient(180deg, rgba(122, 163, 111, 0.12), rgba(244, 246, 241, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fig-1ppzc4i a {
    color: var(--primary);
    font-weight: 600;
}

.fig-1ppzc4i a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .fig-14yysxo {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px 28px;
        font-size: 13px;
    }
}

/* ============================================
   Read Page Styles
   ============================================ */

/* 阅读页面主容器 */
.skin-default {
    background: var(--bg);
    min-height: 100vh;
}

.skin-default .rigrid-i6bazn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px auto;
    max-width: 1280px;
    box-shadow: var(--shadow-sm);
}

.skin-default .rigrid-kzglsd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.skin-default .rigrid-49gqyk {
    display: flex;
    align-items: center;
}

.skin-default .rigrid-1dtnjt5 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--muted-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.skin-default .rigrid-skttdv {
    display: inline-flex;
    color: var(--text-muted);
}

.skin-default .rigrid-8ycyyy {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.skin-default .rigrid-8ycyyy:hover {
    color: var(--primary);
}

/* 阅读内容区域 */
.skin-default .page-d {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: var(--shadow-md);
}

.skin-default .page-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 18px;
}

.skin-default .page-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.skin-default .page-content p {
    margin-bottom: 1.2em;
    text-indent: 2em;
    text-align: justify;
}

.skin-default .page-content section {
    margin-top: 24px;
}

/* 字体控制栏 */
.read-set-font {
    background: var(--muted-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
}

.read-font-down,
.read-font-up {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.read-font-down:hover,
.read-font-up:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.read-font-bar {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
}

#readFontRange {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#readFontRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

#readFontRange::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

/* 章节导航 */
.hr-1 {
    margin: 32px auto;
    max-width: 900px;
    border: none;
    border-top: 1px solid var(--border-light);
}

.wv-15gj5ud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin: 0 auto 32px;
    max-width: 900px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.wv-15gj5ud a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--muted-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.wv-15gj5ud a:hover {
    background: var(--gradient-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.wv-15gj5ud a span {
    display: inline-block;
}

.wv-15gj5ud a span:first-child {
    font-weight: 700;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .skin-default .page-d {
        padding: 20px 16px;
        margin: 16px;
        border-radius: var(--radius-md);
    }

    .skin-default .page-content {
        font-size: 16px;
    }

    .skin-default .page-content h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .read-set-font {
        padding: 10px 12px;
        gap: 12px;
        max-width: 100%;
    }

    .read-font-down,
    .read-font-up {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .wv-15gj5ud {
        gap: 10px;
        padding: 16px;
        flex-wrap: nowrap;
    }

    .wv-15gj5ud a {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .wv-15gj5ud a span:first-child {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .skin-default .rigrid-i6bazn {
        padding: 12px;
        margin: 12px;
    }

    .skin-default .page-d {
        padding: 16px 12px;
        margin: 12px;
    }

    .skin-default .page-content {
        font-size: 15px;
    }

    .skin-default .page-content h1 {
        font-size: 18px;
    }

    .wv-15gj5ud {
        gap: 8px;
        padding: 12px;
    }

    .wv-15gj5ud a {
        font-size: 12px;
        padding: 8px 10px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .wv-15gj5ud a span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wv-15gj5ud a span:first-child {
        font-size: 13px;
    }
}

/* ============================================
   List Page Filter Styles
   ============================================ */

.fig-1jqwks2 {
    background: linear-gradient(180deg, rgba(122, 163, 111, 0.12), rgba(244, 246, 241, 0.9));
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.fig-1v8x7dw {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    position: relative;
}

.fig-19mobu8 {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.fig-19mobu8::-webkit-scrollbar {
    height: 4px;
}

.fig-19mobu8::-webkit-scrollbar-track {
    background: transparent;
}

.fig-19mobu8::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.fig-19mobu8::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.fig-70qvj9 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fig-17oe77v {
    display: inline-block;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.fig-17oe77v:hover {
    color: var(--primary);
    background: rgba(122, 163, 111, 0.08);
}

.fig-17oe77v[aria-selected='true'] {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(122, 163, 111, 0.25);
}

.fig-17oe77v[aria-selected='true']::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.fig-mglkk5 {
    display: none;
}

/* 筛选组之间的间距 */
.fig-1jqwks2 + .fig-1jqwks2 {
    margin-top: 0;
    border-top: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fig-1v8x7dw {
        padding: 12px 16px;
    }

    .fig-17oe77v {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fig-1v8x7dw {
        padding: 10px 12px;
    }

    .fig-17oe77v {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 分页样式 */
.rigrid-13y9lfb {
    margin-top: 32px;
    padding: 0;
}

.rigrid-13rc4sy {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.rigrid-13rc4sy li {
    margin: 0;
    padding: 0;
}

.rigrid-13rc4sy li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.rigrid-13rc4sy li a:hover {
    background: var(--gradient-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.rigrid-13rc4sy li a.active,
.rigrid-13rc4sy li a.rigrid-1a2neb2 {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(122, 163, 111, 0.25);
}

.rigrid-13rc4sy li a.active:hover,
.rigrid-13rc4sy li a.rigrid-1a2neb2:hover {
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .rigrid-13rc4sy {
        gap: 6px;
    }

    .rigrid-13rc4sy li a {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ============================================
   Rank Page Tab Styles
   ============================================ */

.fig-7vlw7m {
    width: 100%;
    height: auto;
    display: flex;
    margin: 0 0 24px 0;
    padding: 0;
    list-style: none;
    background: var(--muted-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.fig-7vlw7m li {
    display: flex;
    flex: 1;
    position: relative;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s ease;
}

.fig-7vlw7m li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.fig-7vlw7m li:not(.active) a:hover {
    color: var(--primary);
    background: rgba(122, 163, 111, 0.08);
}

.fig-7vlw7m li.active {
    color: var(--primary);
    background: var(--gradient-soft);
}

.fig-7vlw7m li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 8px rgba(122, 163, 111, 0.3);
}

.fig-7vlw7m li.active a {
    color: var(--primary);
    font-weight: 700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fig-7vlw7m {
        flex-wrap: wrap;
        border-radius: var(--radius-sm);
    }

    .fig-7vlw7m li {
        flex: 1 1 calc(50% - 1px);
        min-width: 0;
        font-size: 14px;
    }

    .fig-7vlw7m li a {
        padding: 12px 10px;
        font-size: 13px;
    }

    .fig-7vlw7m li.active::after {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .fig-7vlw7m {
        flex-direction: column;
    }

    .fig-7vlw7m li {
        flex: 1 1 100%;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .fig-7vlw7m li:last-child {
        border-bottom: none;
    }

    .fig-7vlw7m li.active::after {
        top: 0;
        bottom: auto;
        height: 100%;
        width: 3px;
        border-radius: 0 2px 2px 0;
    }

    .fig-7vlw7m li a {
        padding: 14px 16px;
        justify-content: flex-start;
    }
}

/* ============================================
   Author Page Styles
   ============================================ */

.author-profile {
    display: flex;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(122, 163, 111, 0.12) 0%, rgba(240, 166, 91, 0.08) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.author-stats {
    flex: 1;
    width: 100%;
}

.author-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.author-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.author-info-grid .stat-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.author-info-grid .stat-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.author-info-grid .stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
}

.author-info-grid .stat-value {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .author-profile {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .author-name {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .author-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .author-info-grid .stat-item {
        padding: 12px 16px;
    }

    .author-info-grid .stat-label {
        font-size: 13px;
    }

    .author-info-grid .stat-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .author-profile {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .author-name {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .author-info-grid .stat-item {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .author-info-grid .stat-label {
        margin-right: 0;
        font-size: 12px;
    }

    .author-info-grid .stat-value {
        font-size: 14px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {

    .theme-v2 .ad-div,
    .theme-v2 .t_de {
        display: none;
    }

    .theme-v2 .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .read-set-font,
    .wv-15gj5ud {
        display: none;
    }
}
