/* tpl_3 mobile - 奶油风 v2（完整覆盖：全局 + 新Header + 沉浸阅读HUD） */

:root{
    --bg0:#fffaf2;
    --bg1:#fff2e2;
    --bg2:#f6efe6;

    --card: rgba(255,255,255,.76);
    --card2: rgba(255,255,255,.92);

    --text:#2b201a;
    --muted:#8c7668;

    --cream:#fff1de;
    --latte:#f3dcc6;
    --caramel:#d39a6a;
    --cocoa:#6a4a36;
    --rose:#f2b3c7;

    --line: rgba(211,154,106,.20);
    --line2: rgba(211,154,106,.12);

    --shadow: 0 14px 30px rgba(106,74,54,.10);
    --shadow2: 0 8px 20px rgba(106,74,54,.07);

    --r14:14px;
    --r18:18px;
    --r22:22px;
    --r28:28px;

    --w-regular: 400;
    --w-medium: 500;
    /*--w-semibold: 600;*/
    --w-bold: 700;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
    margin:0;
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
    font-weight: var(--w-regular);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background:
            radial-gradient(980px 460px at 10% 0%, rgba(242,179,199,.18) 0%, rgba(242,179,199,0) 62%),
            radial-gradient(980px 520px at 92% 8%, rgba(211,154,106,.16) 0%, rgba(211,154,106,0) 66%),
            radial-gradient(700px 340px at 50% 0%, rgba(255,241,222,.82) 0%, rgba(255,241,222,0) 70%),
            repeating-linear-gradient(45deg, rgba(255,255,255,.10) 0 10px, rgba(255,255,255,0) 10px 20px),
            linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 55%, var(--bg2) 100%);
}

a{color:inherit; text-decoration:none}
img{display:block; max-width:100%}
ul{list-style:none; margin:0; padding:0}

/* overflow */
.ellipsis{overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.ellipsis-2{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

/* layout */
.c-wrap{
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 12px 12px 22px;
}

/* ===== 新版 Header：居中品牌 + 两侧胶囊 + 下方浮动搜索 ===== */
.c-header{
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 12px 8px;
    background: transparent;
}

.c-header__panel{
    border-radius: var(--r28);
    background: rgba(255,250,242,.70);
    border: 1px solid var(--line2);
    box-shadow: 0 12px 22px rgba(106,74,54,.07);
    backdrop-filter: blur(14px);
    padding: 10px;
}

.c-header__top{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    gap: 10px;
    padding: 2px 2px 10px;
}

.c-header__side{
    display:flex;
    gap:8px;
    align-items:center;
    min-width: 0;
}
.c-header__side--left{justify-content:flex-start}
.c-header__side--right{justify-content:flex-end}

.c-sidebtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,241,222,.72);
    border: 1px solid rgba(211,154,106,.16);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
    font-size: 13px;
    max-width: 42vw;
}

.c-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width: 0;
    justify-content:center;
}
.c-brand__badge{
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background:
            radial-gradient(10px 10px at 30% 30%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
            linear-gradient(135deg, var(--cream) 0%, var(--rose) 55%, var(--latte) 100%);
    border: 1px solid rgba(211,154,106,.16);
    box-shadow: var(--shadow2);
    flex: 0 0 auto;
}
.c-brand__name{
    font-weight: var(--w-bold);
    letter-spacing: .2px;
    color: var(--cocoa);
    max-width: 42vw;
}

.c-header__search{padding: 0 2px 2px}
.c-search{
    display:flex;
    gap:10px;
    padding: 10px;
    border-radius: var(--r22);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(211,154,106,.14);
    box-shadow: var(--shadow2);
}
.c-search__input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    background: transparent;
    color: var(--text);
    font-weight: var(--w-regular);
}
.c-search__btn{
    border:0;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--caramel) 0%, #e2b58e 60%, var(--rose) 100%);
    color:#fff;
    font-weight: var(--w-bold);
    box-shadow: 0 14px 22px rgba(211,154,106,.16);
    cursor:pointer;
}

/* 分类：wrap 奶油胶囊 */
.c-catgrid{
    padding: 0 12px 10px;
}
.c-catgrid__list{
    width: min(760px, 100%);
    margin: 0 auto;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.c-catgrid__link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(211,154,106,.12);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
    font-size: 13px;
    max-width: 100%;
}

/* ===== 通用卡片 / 按钮 ===== */
.c-hero{margin-top: 10px}
.c-hero__card{
    border-radius: var(--r28);
    padding: 16px 14px;
    background:
            radial-gradient(520px 190px at 18% 0%, rgba(242,179,199,.16) 0%, rgba(242,179,199,0) 68%),
            radial-gradient(520px 190px at 92% 25%, rgba(211,154,106,.14) 0%, rgba(211,154,106,0) 70%),
            rgba(255,255,255,.70);
    border: 1px solid rgba(211,154,106,.12);
    box-shadow: var(--shadow);
}
.c-hero__title{font-size: 18px; font-weight: var(--w-bold); color: var(--cocoa)}
.c-hero__desc{margin-top: 8px; color: var(--muted); line-height: 1.7; font-size: 13px}
.c-hero__actions{display:flex; gap:10px; margin-top: 12px}

.c-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: var(--w-semibold);
    border: 1px solid rgba(211,154,106,.14);
    background: rgba(255,255,255,.70);
    min-width: 110px;
}
.c-btn--primary{
    border:0;
    color:#fff;
    background: linear-gradient(135deg, var(--caramel) 0%, #e2b58e 55%, var(--rose) 100%);
    box-shadow: 0 16px 24px rgba(211,154,106,.16);
}
.c-btn--ghost{
    color: var(--cocoa);
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 16px rgba(106,74,54,.05);
}

.c-card{
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--r28);
    background: var(--card);
    border: 1px solid rgba(211,154,106,.12);
    box-shadow: var(--shadow2);
}
.c-card__hd{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.c-card__title{margin:0; font-size: 16px; font-weight: var(--w-bold); color: var(--cocoa)}
.c-card__sub{font-size: 12px; color: var(--muted)}
.c-softlink{color: var(--caramel); font-weight: var(--w-semibold)}

.c-split{display:flex; flex-direction:column; gap:12px}

/* ===== 书列表（封面卡） ===== */
.c-booklist{display:flex; flex-direction:column; gap:10px}
.c-booklist__item{border-radius: var(--r22)}
.c-book{
    display:flex;
    gap:12px;
    padding: 10px;
    border-radius: var(--r28);
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(211,154,106,.10);
}
.c-book__cover{
    width: 92px;
    height: 124px;
    border-radius: 18px;
    object-fit: cover;
    background:#fff;
    border: 1px solid rgba(211,154,106,.12);
    box-shadow: 0 14px 22px rgba(106,74,54,.08);
    flex: 0 0 auto;
}
.c-book__body{min-width:0; flex:1; display:flex; flex-direction:column; gap:6px}
.c-book__title{font-weight: var(--w-bold)}
.c-book__intro{
    color: #3b2b21;
    line-height: 1.6;
    font-size: 13px;
}
.c-book__meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    color: var(--muted);
    font-size: 12px;
}
.c-pill{
    max-width: 42%;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(243,220,198,.40);
    border: 1px solid rgba(211,154,106,.10);
    color: var(--cocoa);
    font-weight: var(--w-medium);
}

/* ===== 单行列表 ===== */
.c-linelist{display:flex; flex-direction:column; gap:8px}
.c-linelist__item{
    border-radius: var(--r22);
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(211,154,106,.10);
    overflow:hidden;
}
.c-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 10px 12px;
}
.c-line__title{max-width: 70%; font-weight: var(--w-semibold)}
.c-line__sub{max-width: 40%; text-align:right; color: var(--muted); font-size: 12px}
.c-line--accent .c-line__title{color: var(--caramel)}

/* ===== 榜单入口 chips（index 用到） ===== */
.c-rankchips{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.c-rankchips__item{max-width: 100%;}
.c-rankchips__link{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,241,222,.66);
    border: 1px solid rgba(211,154,106,.12);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
    max-width: 100%;
}

/* ===== 频道首推 minihero（index 用到） ===== */
.c-minibooks{display:flex; flex-direction:column; gap:10px}
.c-minibooks__item{border-radius: var(--r22)}
.c-minihero{
    display:flex;
    gap:12px;
    padding: 10px;
    border-radius: var(--r28);
    background:
            radial-gradient(260px 120px at 12% 0%, rgba(255,241,222,.75) 0%, rgba(255,241,222,0) 70%),
            rgba(255,255,255,.66);
    border: 1px solid rgba(211,154,106,.10);
}
.c-minihero__cover{
    width: 72px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(211,154,106,.12);
    background:#fff;
    flex: 0 0 auto;
}
.c-minihero__body{min-width:0; flex:1; display:flex; flex-direction:column; gap:6px}
.c-minihero__title{font-weight: var(--w-bold)}
.c-minihero__intro{color:#3b2b21; font-size:13px; line-height:1.6}
.c-minihero__meta{font-size:12px; color: var(--muted)}

/* ===== dot 列表（index 用到） ===== */
.c-dotlist{margin-top:10px; display:flex; flex-direction:column; gap:8px}
.c-dotlist__item{
    border-radius: var(--r22);
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(211,154,106,.09);
}
.c-dotline{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
}
.c-dotline__dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose) 0%, var(--caramel) 100%);
    flex: 0 0 auto;
}
.c-dotline__title{flex:1; min-width:0; font-weight: var(--w-semibold)}
.c-dotline__sub{max-width: 40%; text-align:right; color: var(--muted); font-size:12px}

/* ===== 书籍头部（book/book_list 用到） ===== */
.c-bookhead{display:flex; gap:12px}
.c-bookhead__cover{
    width: 104px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(211,154,106,.12);
    background:#fff;
    box-shadow: 0 16px 26px rgba(106,74,54,.10);
    flex:0 0 auto;
}
.c-bookhead__info{min-width:0; flex:1}
.c-bookhead__title{margin:0; font-size: 18px; line-height: 1.25; font-weight: var(--w-bold)}
.c-bookhead__meta{margin:6px 0 0; font-size: 12px; color: var(--muted)}
.c-bookhead__time{margin:6px 0 0; font-size: 12px; color: var(--muted)}
.c-bookhead__actions{display:flex; gap:10px; margin-top:10px}

/* ===== 章节列表（book/book_list 用到） ===== */
.c-chapters{display:flex; flex-direction:column; gap:8px}
.c-chapters__item{
    border-radius: var(--r22);
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(211,154,106,.09);
    overflow:hidden;
}
.c-chapters__link{
    display:block;
    padding: 12px 12px;
    font-weight: var(--w-semibold);
}

.c-more{margin-top:10px}
.c-more__link{
    display:block;
    text-align:center;
    padding: 12px 10px;
    border-radius: 999px;
    background: rgba(243,220,198,.36);
    border: 1px dashed rgba(211,154,106,.18);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
}

/* ===== pager（category/book_list 用到） ===== */
.c-pager{
    margin-top: 12px;
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
}
.c-pager__btn{
    flex: 1;
    text-align:center;
    padding: 10px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(211,154,106,.12);
    font-weight: var(--w-semibold);
    color: var(--cocoa);
}
.c-pager__mid{
    flex: 1;
    text-align:center;
    color: var(--muted);
    font-size: 12px;
}

/* text */
.c-text{
    margin:0;
    color:#3b2b21;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap:anywhere;
}

/* empty */
.c-empty{
    padding: 26px 0;
    text-align:center;
    color: var(--muted);
    font-weight: var(--w-medium);
}

/* ===== rank_index 网格（rank_index.html 用到） ===== */
.c-rankgrid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.c-rankgrid__item{
    border-radius: var(--r28);
    background:
            radial-gradient(160px 90px at 20% 10%, rgba(255,241,222,.80) 0%, rgba(255,241,222,0) 70%),
            rgba(255,255,255,.66);
    border: 1px solid rgba(211,154,106,.10);
    box-shadow: 0 10px 18px rgba(106,74,54,.06);
}
.c-rankgrid__link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    padding: 14px 12px;
}
.c-rankgrid__name{font-weight: var(--w-bold); color: var(--cocoa); max-width: 70%}
.c-rankgrid__go{
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(242,179,199,.30);
    border: 1px solid rgba(242,179,199,.35);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
    font-size: 12px;
}

/* ===== rank 列表（rank.html 用到） ===== */
.c-ranklist{display:flex; flex-direction:column; gap:10px}
.c-ranklist__item{
    border-radius: var(--r28);
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(211,154,106,.10);
    overflow:hidden;
}
.c-rankrow{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
}
.c-rankrow__no{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: rgba(106,74,54,.06);
    color: rgba(106,74,54,.50);
    font-weight: var(--w-bold);
    flex:0 0 auto;
}
.c-rankrow__no--top{
    background: linear-gradient(135deg, var(--rose) 0%, var(--caramel) 100%);
    color:#fff;
    box-shadow: 0 14px 22px rgba(211,154,106,.14);
}
.c-rankrow__cover{
    width: 58px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(211,154,106,.12);
    background:#fff;
    flex:0 0 auto;
}
.c-rankrow__info{min-width:0; flex:1; display:flex; flex-direction:column; gap:6px}
.c-rankrow__title{font-weight: var(--w-bold)}
.c-rankrow__meta{display:flex; gap:8px; color: var(--muted); font-size: 12px}
.c-rankrow__dot{opacity:.6}

/* ===== footer ===== */
.c-footer{
    width:min(760px, 100%);
    margin: 0 auto;
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}
.c-footer__card{
    border-radius: var(--r28);
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(211,154,106,.10);
    box-shadow: var(--shadow2);
    padding: 12px;
}
.c-footer__links{display:flex; gap:10px; flex-wrap:wrap}
.c-footer__link{
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,241,222,.66);
    border: 1px solid rgba(211,154,106,.12);
    color: var(--cocoa);
    font-weight: var(--w-semibold);
}
.c-footer__meta{margin-top: 10px; color: var(--muted); font-size: 12px}
.c-footer__meta p{margin:6px 0 0}

/* ========== 沉浸式阅读页专属样式 ========== */

/* 1. 定义全局主题变量 (融入 tpl_3 的质感) */
:root {
    --rd-bg: #f8f3eb;            /* 偏奶油的羊皮纸 */
    --rd-text: #362a24;          /* 偏深咖的正文色 */
    --rd-text-sub: #a08c82;
    --rd-menu-bg: rgba(255, 255, 255, 0.85); /* 更通透的毛玻璃 */
    --rd-menu-border: rgba(211, 154, 106, 0.15); /* 融入焦糖色的边框 */
    --rd-btn-bg: rgba(0,0,0,0.03);
    --rd-btn-border: transparent;
}
body.theme-white {
    --rd-bg: #ffffff;
    --rd-text: #333333;
    --rd-menu-bg: rgba(255, 255, 255, 0.92);
}
body.theme-green {
    --rd-bg: #e6efe1;
    --rd-text: #2c4028;
    --rd-menu-bg: rgba(235, 245, 230, 0.88);
    --rd-menu-border: rgba(44, 64, 40, 0.1);
}
body.theme-sepia {
    --rd-bg: #f5e6cf;
    --rd-text: #594127;
    --rd-menu-bg: rgba(253, 244, 230, 0.88);
    --rd-menu-border: rgba(89, 65, 39, 0.1);
}
body.theme-dark {
    --rd-bg: #1c1a19;
    --rd-text: #7a736f;
    --rd-text-sub: #544d49;
    --rd-menu-bg: rgba(36, 33, 31, 0.92);
    --rd-menu-border: rgba(255, 255, 255, 0.05);
    --rd-btn-bg: rgba(255, 255, 255, 0.05);
}

/* 2. 强制应用阅读器背景 */
html.is-reader body {
    background: var(--rd-bg) !important;
    transition: background-color 0.3s ease;
    margin: 0; min-height: 100vh;
}
.read-container { background: transparent !important; min-height: 100vh; }

/* 3. 正文排版 (差异化：居中优雅书头) */
.chapter-title {
    font-size: 26px; font-weight: bold; margin: 40px 0 15px;
    line-height: 1.4; color: var(--rd-text) !important;
    letter-spacing: 1px; text-align: center; /* 居中排版 */
}
.chapter-meta {
    font-size: 13px; color: var(--rd-text-sub) !important;
    margin-bottom: 50px; letter-spacing: 1px;
    display: flex; gap: 10px; align-items: center; justify-content: center; /* 居中 */
    position: relative;
}
/* 标题下方增加精致的短横线点缀 */
.chapter-meta::after {
    content: ""; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 3px; border-radius: 2px;
    background: var(--caramel); opacity: 0.3;
}
.read-content {
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'Microsoft YaHei', sans-serif;
    font-size: 20px; line-height: 1.8;
    letter-spacing: 1px; color: var(--rd-text) !important;
    text-align: justify; text-justify: inter-ideograph;
    min-height: 60vh; white-space: pre-line;
}
.read-content p, .read-content div {
    text-indent: 2em; margin-top: 0; margin-bottom: 1.2em;
}

/* 4. 菜单栏差异化：悬浮岛 (Floating Island) 设计 */
.reader-top-bar, .reader-bottom-bar {
    position: fixed !important; z-index: 1000;
    background: var(--rd-menu-bg) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rd-menu-border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; /* 增加 Q 弹的过渡动画 */
    opacity: 0; pointer-events: none;
}
/* 顶部胶囊 */
.reader-top-bar {
    top: 15px; left: 15px; right: 15px; height: 54px;
    border-radius: 999px; /* 圆形胶囊 */
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
    transform: translateY(-150%) scale(0.95);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.reader-top-bar a {
    display: flex; align-items: center; gap: 6px;
    font-size: 15px; color: var(--rd-text); font-weight: bold; text-decoration: none;
}
.reader-top-bar a svg { width: 18px; height: 18px; opacity: 0.8; }

/* 底部悬浮面板 */
.reader-bottom-bar {
    bottom: 20px; left: 15px; right: 15px; padding: 25px 20px;
    border-radius: 28px; /* 大圆角面板 */
    transform: translateY(150%) scale(0.95);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
}
body.menu-active .reader-top-bar, body.menu-active .reader-bottom-bar {
    transform: translateY(0) scale(1);
    opacity: 1; pointer-events: auto;
}

/* 5. 底部页面导航 (差异化：包裹在底座胶囊中) */
.m-page-nav {
    display: flex; gap: 5px; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.03); border-radius: 999px; padding: 6px;
}
html.is-reader .m-page-nav__a {
    flex: 1; text-align: center; padding: 12px 0;
    border-radius: 999px; font-size: 15px; font-weight: bold;
    background: transparent !important; border: none !important;
    color: var(--rd-text) !important; box-shadow: none !important;
}
html.is-reader .m-page-nav__a.c-btn--primary {
    background: linear-gradient(135deg, var(--caramel) 0%, #e2b58e 55%, var(--rose) 100%) !important;
    color: #fff !important; box-shadow: 0 4px 12px rgba(211,154,106, 0.3) !important;
}

/* 6. 设置选项排版 (更圆润的按钮) */
.setting-row { display: flex; align-items: center; margin-bottom: 25px; gap: 15px; }
.setting-row:last-child { margin-bottom: 0; }
.setting-row .label { font-weight: bold; color: var(--rd-text-sub); font-size: 13px; width: 35px; letter-spacing: 1px;}
.setting-row button {
    padding: 8px 18px; background: var(--rd-btn-bg); border: 1px solid var(--rd-btn-border);
    border-radius: 999px; font-size: 14px; font-weight: bold; color: var(--rd-text); outline: none; transition: 0.2s;
}
.setting-row .val { min-width: 50px; text-align: center; font-weight: bold; font-size: 17px; color: var(--rd-text);}
.setting-row .btn-reset { background: transparent; color: var(--rd-text-sub); }

/* 7. 主题颜色球 */
.theme-colors { display: flex; gap: 15px; flex: 1; justify-content: space-between; align-items: center;}
.theme-btn {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.theme-btn.active { box-shadow: 0 0 0 2px var(--rd-menu-bg), 0 0 0 4px var(--caramel); transform: scale(0.9); }
.theme-default { background: #f8f3eb; }
.theme-white { background: #ffffff; border: 1px solid #eee;}
.theme-green { background: #e6efe1; }
.theme-sepia { background: #f5e6cf; }
.theme-dark { background: #1c1a19; border: 1px solid #333; }

/* 8. 新手引导遮罩 */
.reader-guide-mask {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important; backdrop-filter: blur(3px);
    z-index: 99999 !important; display: none; justify-content: center; align-items: center;
}
.guide-box {
    background: transparent; padding: 40px 20px; border-radius: 28px;
    text-align: center; width: 75%; max-width: 300px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}
.guide-box p {
    margin-bottom: 30px; padding-bottom: 30px; font-size: 17px; font-weight: bold; color: #ffffff;
    line-height: 1.8; letter-spacing: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.guide-box button {
    background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 10px 0; width: 85%; border-radius: 999px; font-size: 16px; font-weight: bold; letter-spacing: 2px;
}
/* ladyread.net */