/* ==========================================
   1. 全局重置与变量 (Reset & CSS Variables)
   ========================================== */
:root {
    --bg-main: #121315;
    --bg-card: #191b1f;
    --bg-header: #18191c;
    --bg-input: #202226;
    --accent-color: #ffa501;
    --accent-hover: #ffb733;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border-color: #2a2d32;
    --max-width: 1380px;
    --transition-fast: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

li {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#mse {
    height: 528.08px;
    user-select: none;
}

.hidden {
    display: none;
}

/* 核心版心容器 (固定1380px) */
.layout-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* ==========================================
   2. 头部与导航 (Header & Navigation)
   ========================================== */
.site-header {
    background-color: var(--bg-header);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 10px 0;
    border-bottom: none;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 8px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 210px;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 4px 0 4px 12px;
    line-height: 1;
}

.logo-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--accent-color);
}

.logo-text::after {
    content: "";
    width: 72px;
    height: 2px;
    margin-top: 7px;
    background: var(--accent-color);
    opacity: 0.55;
}

.logo-text strong {
    display: block;
    color: var(--accent-color);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.logo-text em {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    opacity: 0.92;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 365px;
}

.search-box form,
.mobile-search-box form {
    display: flex;
    position: relative;
}

.search-box input,
.mobile-search-box input {
    width: 100%;
    background-color: var(--bg-input);
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 10px 45px 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}


.search-box select,
.mobile-search-box select {
    background: #202226;
    border: none;
    outline: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    color: var(--text-primary);
    padding-left: 10px;
}

.search-box input:focus,
.mobile-search-box input:focus {
    border-color: var(--accent-color);
}

.popup {
    position: fixed;
    max-height: 100%;
}

.popup-center {
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
}

.popup-notice {
    width: 80%;
    max-width: 320px;
    background: 0 0;
    overflow-y: initial;
}

.popup-notice .notice {
    padding-bottom: 15px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.popup-notice .notice .notice-tip {
    margin: 10px 15px 0;
    padding: 4px 15px;
    color: var(--accent-color);
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background-color: rgba(255, 165, 1, 0.08);
}

.popup-notice .notice .notice-header {
    padding: 25px 20px 5px;
    color: var(--accent-color);
    background: linear-gradient(180deg, rgba(255, 165, 1, 0.15) 0%, var(--bg-card) 100%);
    border-radius: 12px 12px 0 0;
}

.popup-notice .notice .notice-header h3 {
    margin: 0;
    line-height: 24px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.popup-notice .notice .notice-header h3 span {
    margin-left: 2px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.popup-notice .notice .notice-content {
    margin: 10px 15px 0;
    background-color: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.popup-notice .notice .notice-content .site-qrcode {
    margin: 8px 0 10px 15px;
    float: right;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
}

.popup-notice .notice .notice-content .site-qrcode #qrcode canvas {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    background-color: #fff;
    padding: 2px;
}

.popup-notice .notice .notice-content .notice-content-scrollbar {
    padding: 15px 20px;
    color: var(--text-primary);
}

.popup-notice .notice .notice-content .notice-content-scrollbar p {
    margin-bottom: 6px;
    line-height: 1.6;
    word-wrap: break-word;
}

.popup-notice .notice .notice-content .scroll-wrapper {
    max-height: 300px;
}

.popup-notice .notice .notice-content .scroll-wrapper>.scroll-content {
    border: none !important;
    box-sizing: content-box !important;
    height: auto;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none !important;
    overflow: scroll !important;
    padding: 0;
    position: relative !important;
    top: 0;
    width: auto !important;
    /* IE/Edge */
    scrollbar-width: none;
}

.popup-xxa {
    width: 80%;
    max-width: 400px;
    max-height: 80%;
    background: 0 0;
    overflow-y: initial;
}

.popup-xxa .xxa-item {
    height: 100%;
}

.popup-close-icon {
    width: 32px;
    height: 32px;
    background-color: var(--bg-input);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 1;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.popup-close-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
 /* 遮盖物 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    backdrop-filter: blur(2px);
}

.icon-chahao2 {
    font-size: 30px;
    font-style: normal;
    transform: translateX(-5px);
}

.search-box button,
.mobile-search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.search-box button:hover,
.mobile-search-box button:hover {
    color: var(--accent-color);
}

.mobile-search-box {
    display: none;
}

/* 保存网址按钮 */
.save-bookmark {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 165, 1, 0.12);
    color: var(--accent-color);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.save-bookmark:hover {
    background-color: var(--accent-color);
    color: var(--bg-main);
}

/* 主导航 */
.main-nav {
    width: 100%;
    padding: 0;
    background: #202226;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

.nav-list {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    gap: 0;
    min-height: 44px;
    align-items: stretch;
}

.nav-list li {
    min-width: 0;
    flex: 0 0 112px;
}

.nav-list a {
    position: relative;
    height: 100%;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-left: none;
    border-right: none;
    white-space: nowrap;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
    background: rgba(255, 165, 1, 0.08);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    transform: scaleX(1);
}

/* 二级栏目：背景宽度跟内容版心一致 */
.sub-nav {
    position: relative;
    width: 100%;
    padding: 0;
    background: var(--bg-main);
}

.sub-nav .layout-container {
    padding-left: 0;
    padding-right: 0;
}

.sub-nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    min-height: 42px;
    padding: 0;
    background: #1b1d21;
    border: none;
    border-radius: 0;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.sub-nav .layout-container::after {
    content: "›";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 42px;
    line-height: 1;
    color: var(--accent-color);
    background: linear-gradient(90deg, rgba(27, 29, 33, 0), #1b1d21 45%);
    font-size: 26px;
    font-weight: 900;
    pointer-events: none;
}

.sub-nav-inner::-webkit-scrollbar {
    display: none;
}

.sub-nav-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    min-height: 42px;
    padding: 0 16px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
}

.sub-nav-inner a:hover {
    color: var(--accent-color);
    border-color: transparent;
    background: rgba(255, 165, 1, 0.1);
}

.active_sec {
    color: var(--accent-color) !important;
    border-color: transparent !important;
    background: rgba(255, 165, 1, 0.1) !important;
}

/* 公告、APP广告位、合作专区 */
.promo-area {
    padding: 10px 0 0;
}

.notice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--text-primary);
    background: #1b1d21;
    font-size: 13px;
}

.notice-bar i {
    color: var(--accent-color);
    font-size: 15px;
}

.app-ad-list {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-ad-list::-webkit-scrollbar {
    display: none;
}

.app-ad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 76px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.app-ad-item:hover {
    color: var(--accent-color);
}

.app-ad-item em {
    font-style: normal;
    line-height: 1.2;
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: #fff;
    background: #24272c;
    border-radius: 14px;
    font-size: 25px;
}

.app-video {
    background: #ff8a00;
}

.app-comic {
    background: #5c7cfa;
}

.app-novel {
    background: #20c997;
}

.app-rank {
    background: #f59f00;
}

.app-live {
    background: #e64980;
}

.app-down {
    background: #845ef7;
}

.partner-links {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: #1b1d21;
    border-left: 3px solid var(--accent-color);
    font-size: 12px;
}

.partner-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 0;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.link-orange {
    color: #ffa501;
}

.link-blue {
    color: #74c0fc;
}

.link-green {
    color: #69db7c;
}

.link-purple {
    color: #b197fc;
}

.link-pink {
    color: #faa2c1;
}

.link-yellow {
    color: #ffd43b;
}

.link-cyan {
    color: #66d9e8;
}

.link-red {
    color: #ff8787;
}

.link-lime {
    color: #a9e34b;
}

.link-sky {
    color: #91a7ff;
}

.partner-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 165, 1, 0.12);
    border-color: rgba(255, 165, 1, 0.28);
}

/* ==========================================
   3. 主体布局与板块标题 (Sections & Grids)
   ========================================== */
.main-content {
    padding: 14px 8px 18px;
}

.content-section {
    margin-bottom: 22px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    padding: 9px 10px;
    color: var(--text-secondary);
    background: #1b1d21;
    font-size: 13px;
}

.breadcrumb a,
.breadcrumb span,
.breadcrumb strong {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb i {
    font-size: 12px;
}

.breadcrumb .crumb-sep {
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
}

.breadcrumb strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* 书籍详情页 */
.book-detail {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 14px;
    background: #1b1d21;
}

.book-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
}

.book-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.book-cover span {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    color: var(--bg-main);
    background: var(--accent-color);
    font-size: 12px;
    font-weight: 900;
}

.book-info h1 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1.25;
}

.book-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.book-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.book-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.book-meta i {
    color: var(--accent-color);
}

.book-meta em {
    color: var(--text-primary);
    font-style: normal;
}

.book-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 36px;
    padding: 0 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    font-size: 14px;
    font-weight: 800;
    border-radius: 0;
}

.book-btn.primary,
.book-btn:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.page-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px;
    background: #1b1d21;
}

.page-tags strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 13px;
    margin-right: 2px;
}

.page-tags strong i {
    color: var(--accent-color);
}

.page-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.page-tags a:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.book-detail .page-tags {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 14px 0 0;
    background: transparent;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.hot-tags-section {
    margin-bottom: 18px;
}

.hot-tags-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hot-tags-group {
    padding: 12px;
    background: #1b1d21;
}

.hot-tags-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 15px;
}

.hot-tags-group h3 i {
    color: var(--accent-color);
}

.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tags-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
}

.hot-tags-list li:nth-child(3n + 1) {
    color: #ffa501;
}

.hot-tags-list li:nth-child(3n + 2) {
    color: #74c0fc;
}

.hot-tags-list li:nth-child(3n) {
    color: #69db7c;
}

.hot-tags-list a:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.latest-chapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: #1b1d21;
}

.latest-chapter a {
    color: var(--accent-color);
    font-weight: 800;
}

.latest-chapter span {
    color: var(--text-secondary);
    font-size: 13px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.chapter-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 9px 10px;
    color: var(--text-secondary);
    background: #1b1d21;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-grid a:hover {
    color: var(--accent-color);
}

.chapter-grid a.is-new {
    color: var(--text-primary);
    background: rgba(255, 165, 1, 0.1);
}

.chapter-grid a em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 34px;
    height: 18px;
    color: var(--bg-main);
    background: var(--accent-color);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.comic-detail .book-cover span {
    background: #74c0fc;
}

.comic-chapter-grid a.is-new {
    background: rgba(116, 192, 252, 0.12);
}

.comic-chapter-grid a em {
    background: #74c0fc;
}

.error-page {
    display: grid;
    place-items: center;
    min-height: 420px;
    padding: 48px 16px;
    text-align: center;
    background: #1b1d21;
}

.error-page strong {
    color: var(--accent-color);
    font-size: clamp(72px, 14vw, 150px);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.error-page h1 {
    margin: 12px 0 8px;
    color: var(--text-primary);
    font-size: clamp(24px, 5vw, 38px);
}

.error-page p {
    max-width: 560px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.error-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    font-weight: 800;
}

.error-actions a:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

/* 小说/漫画阅读页 */
.reader-page,
.comic-reader {
    background: #1b1d21;
    margin-bottom: 18px;
}

.reader-head {
    padding: 16px 12px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-head h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1.35;
}

.reader-head p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.reader-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.reader-nav a,
.reader-setting-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 34px;
    padding: 0 14px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    border: 0;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.reader-nav a:hover,
.reader-setting-btn:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.reader-setting-btn {
    gap: 6px;
}

.reader-settings {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(6px);
}

.reader-settings.is-open {
    display: flex;
}

.reader-settings-dialog {
    width: min(520px, 100%);
    background: #1b1d21;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reader-settings-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.reader-settings-head strong i {
    color: var(--accent-color);
}

.reader-settings-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
    border: 0;
    cursor: pointer;
    font-size: 16px;
}

.reader-settings-head button:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.reader-settings-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.reader-settings label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.reader-settings select,
.reader-settings input {
    width: 100%;
    min-height: 34px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 0;
    outline: none;
    padding: 0 8px;
}

.reader-settings input[type="color"] {
    padding: 3px;
}

.reader-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 34px;
    color: #d8d8d8;
    background: #17191d;
    font-size: 18px;
    line-height: 2.05;
    text-indent: 2em;
}

.reader-content p {
    margin: 0 0 1.2em;
    text-indent: 2em;
}

.reader-nav-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comic-page-list {
    display: grid;
    gap: 8px;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px;
    background: #101113;
}

.comic-page-list img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
}

/* 列表页 */
.list-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.list-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1b1d21;
}

.list-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 800;
}

.list-tabs a.active,
.list-tabs a:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.seo-intro {
    margin-bottom: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    background: #1b1d21;
    font-size: 13px;
}

.pager-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 2px;
    padding: 12px;
    background: #1b1d21;
}

.pager-btn,
.pager-current,
.page-jump button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    font-size: 13px;
    font-weight: 800;
}

.pager-btn:hover,
.page-jump button:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.pager-wrap .pager-disabled,
.reader-nav .pager-disabled {
    pointer-events: none;
    cursor: not-allowed;
    color: #999;
}

.pager-current {
    color: var(--accent-color);
    background: transparent;
}

.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.page-jump input {
    width: 68px;
    height: 32px;
    color: var(--text-primary);
    text-align: center;
    background: var(--bg-input);
    border: 0;
    outline: none;
}

.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    background: #1b1d21;
    font-size: 13px;
}

.result-summary span {
    color: var(--accent-color);
    font-weight: 800;
}

.result-summary em {
    color: var(--text-secondary);
    font-style: normal;
}

.result-grid {
    margin-top: 0;
}

.search-result-card .card-title {
    min-height: 38px;
}

/* 排行榜页 */
.rank-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    background: #1b1d21;
}

.rank-hero h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1.3;
}

.rank-hero h1 i {
    color: var(--accent-color);
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rank-panel {
    background: #1b1d21;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
}

.rank-panel-head h2 i {
    color: var(--accent-color);
}

.rank-panel-head a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}

.rank-panel-head a:hover {
    color: var(--accent-color);
}

.rank-list {
    list-style: none;
    counter-reset: rank;
}

.rank-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
}

.rank-list em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.rank-list li:nth-child(1) em {
    color: var(--bg-main);
    background: var(--accent-color);
}

.rank-list li:nth-child(2) em {
    color: #121315;
    background: #74c0fc;
}

.rank-list li:nth-child(3) em {
    color: #121315;
    background: #69db7c;
}

.rank-list span {
    min-width: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list small {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.rank-list a:hover {
    background: rgba(255, 165, 1, 0.08);
}

/* 播放页 */
.play-simple {
    margin-bottom: 18px;
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    margin-bottom: 18px;
}

.player-panel,
.play-side {
    background: #1b1d21;
}

.player-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.player-title h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.35;
}

.player-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.player-meta i,
.play-notice i {
    color: var(--accent-color);
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    color: var(--text-secondary);
    background: #050506;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.player-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 42px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.06);
}

.video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 42px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.player-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.65);
    font-size: 13px;
}

.player-mask em {
    color: var(--text-secondary);
    font-style: normal;
}

.play-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.play-side {
    padding: 12px;
}

.play-side h2 {
    margin: 0 0 10px;
    color: var(--accent-color);
    font-size: 18px;
}

.video-info {
    margin: 0;
}

.video-info div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.video-info dt {
    color: var(--text-secondary);
}

.video-info dd {
    margin: 0;
    color: var(--text-primary);
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
}

.episode-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: var(--text-secondary);
    background: #1b1d21;
    font-size: 13px;
    font-weight: 800;
}

.episode-list a.active,
.episode-list a:hover {
    color: var(--bg-main);
    background: var(--accent-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: none;
    padding-left: 0;
}

.more-link {
    font-size: 14px;
    color: var(--text-secondary);
}

.more-link:hover {
    color: var(--accent-color);
}

/* 16:9 视频网格 (一行 5 个) */
.grid-video {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 3:4 漫画/小说网格 (一行 6 个) */
.grid-portrait {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}



.m-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ==========================================
   4. 卡片样式 (Cards)
   ========================================== */
.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    transition: background-color var(--transition-fast);
}

.card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background-color: #202329;
}

/* 封面容器 */
.thumb-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.video-card .thumb-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 25px;
    background: rgba(0, 0, 0, 0.58);
    pointer-events: none;
}

/* 视频封面比例 16:9 */
.video-card .thumb-wrapper {
    aspect-ratio: 16 / 9;
}

/* 竖版封面比例 3:4 */
.portrait-card .thumb-wrapper {
    aspect-ratio: 3 / 4;
}

.thumb-wrapper img {
    transition: transform 0.3s ease;
}

.card:hover .thumb-wrapper img {
    transform: none;
    opacity: 0.92;
}

/* 播放图标悬浮叠加 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 36px;
    color: var(--accent-color);
    opacity: 0;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 角标 Badge */
.badge {
    position: absolute;
    bottom: 5px;
    right: 8px;
    z-index: 2;
    background-color: transparent;
    color: #fff;
    font-size: 11px;
    padding: 0;
    border-radius: 0;
    backdrop-filter: blur(2px);
}

.badge.duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge.views {
    top: auto;
    left: 8px;
    right: auto;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
}

.badge.views i {
    color: var(--accent-color);
    font-size: 11px;
}

.badge.duration i {
    color: var(--accent-color);
    font-size: 11px;
}

.cover-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 9px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-status i {
    color: var(--accent-color);
    font-size: 11px;
}

.novel-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 24px;
    padding: 0 9px;
    color: var(--bg-main);
    background: var(--accent-color);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
}

/* 卡片文本内容 */
.card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    /* 限制2行的高度 */
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-meta,
.sub-text {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   5. 页脚与浮动工具 (Footer & Back to top)
   ========================================== */
.site-footer {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 18px 0;
    margin-top: 18px;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    box-shadow: none;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    z-index: 999;
}

.back-to-top:hover {
    color: var(--bg-main);
    background-color: rgba(255, 165, 1, 0.88);
    border-color: rgba(255, 165, 1, 0.88);
    transform: translateY(-3px);
}

/* ==========================================
   6. 响应式适配 (Responsive Design)
   ========================================== */
@media (max-width: 1200px) {
    .grid-video {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-portrait {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-video {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-portrait {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        position: static;
    }

    #mse {
        height: 230px;
    }

    .layout-container {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        padding-left: 6px;
        padding-right: 6px;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 8px;
    }

    .logo {
        min-width: auto;
        flex: 1 1 auto;
    }

    .logo-text strong {
        font-size: 25px;
    }

    .logo-text em {
        font-size: 11px;
    }

    .header-wrapper .search-box {
        display: none;
    }

    .mobile-search-box {
        display: block;
        padding: 8px 6px 0;
        background: var(--bg-main);
    }

    .promo-area {
        padding: 8px 6px 0;
    }

    .notice-bar {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .app-ad-list {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
        overflow: visible;
        padding: 10px 0 8px;
    }

    .app-ad-item {
        min-width: 0;
        gap: 5px;
        font-size: 11px;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 10px;
    }

    .partner-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
        border-left-width: 0;
        font-size: 10px;
    }

    .partner-links a {
        min-height: 26px;
        padding: 0 3px;
    }

    .rank-hero {
        display: block;
        padding: 12px 10px;
    }

    .rank-hero h1 {
        font-size: 20px;
    }

    .rank-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rank-list a {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        min-height: 40px;
        padding: 0 10px;
        gap: 8px;
    }

    .rank-list span {
        font-size: 13px;
    }

    .rank-list small {
        font-size: 11px;
    }

    .save-bookmark {
        flex: 0 0 auto;
        padding: 8px 12px;
    }

    .nav-list a {
        font-size: 14px;
    }

    .nav-list {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .nav-list li {
        flex: initial;
    }



    .sub-nav-inner a {
        padding: 0 10px;
    }

    .sub-nav-inner {
        padding-right: 34px;
        flex-wrap: nowrap;
    }

    .sub-nav .layout-container::after {
        display: flex;
    }

    .grid-video {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-portrait {
        grid-template-columns: repeat(3, 1fr);
    }

    .book-detail {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 0;
        padding: 10px;
    }

    .book-cover img {
        aspect-ratio: 3 / 4;
        height: auto;
    }

    .book-info {
        padding-left: 10px;
    }

    .book-info h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .book-meta {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 12px;
        margin-bottom: 0;
    }

    .book-desc {
        display: none;
    }

    .book-actions {
        gap: 6px;
        padding-top: 8px;
    }

    .book-btn {
        min-width: 0;
        flex: 1;
        min-height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .page-tags {
        gap: 6px;
        margin-bottom: 14px;
        padding: 8px 6px;
    }

    .page-tags strong {
        width: 100%;
    }

    .page-tags a {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .hot-tags-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hot-tags-group {
        padding: 10px 8px;
    }

    .hot-tags-list {
        gap: 6px;
    }

    .hot-tags-list a {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .latest-chapter {
        display: block;
    }

    .latest-chapter span {
        display: block;
        margin-top: 6px;
    }

    .play-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .player-title {
        display: block;
        padding: 10px;
    }

    .player-title h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .player-meta {
        gap: 8px;
        overflow-x: auto;
    }

    .player-mask {
        display: block;
        padding: 8px 10px;
        font-size: 12px;
    }

    .player-mask em {
        display: block;
        margin-top: 3px;
    }

    .big-play {
        width: 60px;
        height: 60px;
        font-size: 34px;
    }

    .episode-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .reader-head h1 {
        font-size: 20px;
    }

    .reader-nav {
        gap: 6px;
        padding: 10px 6px;
    }

    .reader-nav a,
    .reader-setting-btn {
        min-width: 72px;
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .reader-settings {
        padding: 12px;
        align-items: flex-end;
    }

    .reader-settings-dialog {
        width: 100%;
    }

    .reader-settings-body {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .reader-content {
        padding: 20px 14px;
        font-size: 17px;
        line-height: 1.95;
    }

    .comic-page-list {
        gap: 6px;
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        gap: 8px;
    }

    .save-bookmark {
        width: auto;
        height: auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 13px;
    }

    .cover-status {
        min-height: 30px;
        font-size: 11px;
    }

    .app-icon {
        width: 50px;
        height: 50px;
    }

    .app-ad-item {
        font-size: 10px;
    }

    .error-page {
        min-height: 340px;
        padding: 36px 12px;
    }

    .grid-portrait {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   保存网址提示弹窗
   ========================================== */
.bookmark-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.bookmark-modal.active {
    display: flex;
    opacity: 1;
}

.bookmark-modal-box {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.bookmark-modal.active .bookmark-modal-box {
    transform: translateY(0);
}

.bookmark-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.bookmark-modal-close:hover {
    background-color: var(--bg-input);
    color: var(--text-primary);
}

.bookmark-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-right: 32px;
}

.bookmark-modal-header i {
    font-size: 22px;
    color: var(--accent-color);
}

.bookmark-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.bookmark-modal-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.bookmark-modal-body .tip-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background-color: var(--bg-input);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.bookmark-modal-body .tip-step:last-child {
    margin-bottom: 0;
}

.bookmark-modal-body .tip-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-main);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-modal-body .tip-step-text {
    flex: 1;
    color: var(--text-primary);
}

.bookmark-modal-body .tip-step-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.bookmark-modal-body .tip-key {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: "Consolas", "Monaco", monospace;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0 2px;
    font-size: 13px;
}

.bookmark-modal-body .tip-hint {
    margin-top: 12px;
    padding: 10px 12px;
    background-color: rgba(255, 165, 1, 0.08);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 768px) {
    .bookmark-modal-box {
        padding: 20px 16px;
        max-width: 340px;
    }

    .bookmark-modal-header h3 {
        font-size: 16px;
    }

    .bookmark-modal-body {
        font-size: 13px;
    }
}