/* ============================================
   暖阳 - 适老化样式 v2
   设计系统参考 Airbnb Design System
   核心原则：内容呼吸、照片为王、克制的单色强调、零多余装饰
   新增：深色模式、5档字号、设置中心、无限滚动
   ============================================ */

:root {
    /* 品牌色 */
    --rausch: #FF385C;
    --rausch-dark: #E00B41;

    /* 亮色模式灰阶 */
    --ink: #222222;
    --charcoal: #3F3F3F;
    --ash: #6A6A6A;
    --mute: #929292;
    --stone: #C1C1C1;
    --canvas: #FFFFFF;
    --cloud: #F7F7F7;
    --hairline: #DDDDDD;
    --error: #C13515;

    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* 适老化字号 - 默认"较大" */
    --font-title: 26px;
    --font-large: 21px;
    --font-body: 19px;
    --font-small: 16px;
    --font-micro: 14px;

    /* 顶部栏高度 */
    --header-h: 64px;
    --cat-h: 52px;
}

/* === 5档字号 === */
body.font-sm {
    --font-title: 20px; --font-large: 16px; --font-body: 14px; --font-small: 12px; --font-micro: 11px;
}
body.font-md {
    --font-title: 23px; --font-large: 18px; --font-body: 16px; --font-small: 14px; --font-micro: 12px;
}
body.font-lg {
    --font-title: 26px; --font-large: 21px; --font-body: 19px; --font-small: 16px; --font-micro: 14px;
}
body.font-xl {
    --font-title: 30px; --font-large: 25px; --font-body: 22px; --font-small: 19px; --font-micro: 16px;
}
body.font-2xl {
    --font-title: 34px; --font-large: 29px; --font-body: 26px; --font-small: 22px; --font-micro: 18px;
}

/* === 深色模式（data-color-scheme + body.dark 兼容） === */
body[data-color-scheme="dark"],
body.dark {
    --ink: #F7F7F7;
    --charcoal: #E0E0E0;
    --ash: #AAAAAA;
    --mute: #888888;
    --stone: #555555;
    --canvas: #1A1A1A;
    --cloud: #2A2A2A;
    --hairline: #3A3A3A;
    --error: #FF6B6B;
}

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

body {
    font-family: "Airbnb Cereal VF", Circular, -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    font-size: var(--font-body);
    font-weight: 500;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

/* === 顶栏 === */
.header {
    background: var(--canvas);
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--hairline);
    min-height: var(--header-h);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.header-left {
    display: flex;
    flex-direction: column;
}

/* 品牌区：logo + 标题横排 */
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-logo {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.header-title {
    font-size: var(--font-title);
    font-weight: 700;
    color: var(--rausch);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: var(--font-micro);
    font-weight: 400;
    color: var(--ash);
    margin-top: 2px;
}

.header-right {
    display: flex;
    gap: var(--space-2);
}

.header-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--cloud);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.25s ease;
}

.header-btn:active {
    transform: scale(0.92);
    border-color: var(--ink);
}

.header-btn svg {
    pointer-events: none;
}

/* === 分类标签（二级菜单） === */
.categories {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--canvas);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    border-bottom: 1px solid var(--hairline);
    min-height: var(--cat-h);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.categories::-webkit-scrollbar {
    height: 4px;
}
.categories::-webkit-scrollbar-track {
    background: transparent;
}
.categories::-webkit-scrollbar-thumb {
    background: var(--stone);
    border-radius: 2px;
}
.categories {
    scrollbar-width: thin;
    scrollbar-color: var(--stone) transparent;
}

.category-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-body);
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    position: relative;
}

.category-btn.active {
    color: var(--ink);
    font-weight: 600;
    background: var(--cloud);
}

.category-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--rausch);
    border-radius: 1px;
}

.category-btn:active {
    transform: scale(0.94);
}


/* === 搜索框 === */
.search-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 4px 12px;
    background: var(--cloud);
    border-radius: var(--radius-pill);
    border: 1px solid var(--hairline);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--rausch);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.search-icon {
    flex-shrink: 0;
    color: var(--ink-3, #999);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    width: 140px;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--ink-3, #999);
}

.search-clear {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--ink-3, #999);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-clear:hover {
    background: var(--hairline);
    color: var(--ink);
}

[data-theme="dark"] .search-box {
    background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .search-input {
    color: var(--ink);
}

/* === 视频列表 === */
.video-list {
    padding: var(--space-4) var(--space-5) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: 640px;
    margin: 0 auto;
}

.video-card {
    background: transparent;
    cursor: pointer;
    transition: opacity 0.12s ease;
}

.video-card:active {
    opacity: 0.85;
}

.video-cover-wrap {
    position: relative;
    width: 100%;
}

.video-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: var(--radius-md);
    transition: background 0.25s ease;
}

.video-cover-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--cloud);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--stone);
    font-size: 32px;
    font-weight: 600;
    transition: background 0.25s ease;
}

.video-duration {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-micro);
    font-weight: 600;
}

.video-info {
    padding-top: var(--space-3);
}

.video-title {
    font-size: var(--font-large);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-small);
    color: var(--ash);
    font-weight: 500;
}

.video-up {
    color: var(--ash);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.video-meta-dot {
    color: var(--stone);
    flex-shrink: 0;
}

.video-category-tag {
    flex-shrink: 0;
    color: var(--ash);
}

.video-recommend-badge {
    flex-shrink: 0;
    background: var(--rausch);
    color: white;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-micro);
    font-weight: 600;
    margin-left: var(--space-1);
}

.video-top-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--font-micro);
    font-weight: 700;
    margin-left: var(--space-1);
}

.video-fav-badge {
    flex-shrink: 0;
    color: #FF6B35;
    font-size: var(--font-small);
    line-height: 1;
    margin-left: var(--space-1);
}

.top-recommend-card {
    border: 2px solid #FF6B35;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
}

body.dark .top-recommend-card {
    border-color: #FF6B35;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.25);
}

/* === 加载/空状态 === */
.loading,
.empty {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    font-size: var(--font-large);
    color: var(--mute);
    font-weight: 500;
    grid-column: 1 / -1;
    width: 100%;
}

/* === 底部加载更多 === */
.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    font-size: var(--font-small);
    color: var(--mute);
}

.load-more-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--hairline);
    border-top-color: var(--rausch);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === 底部 === */
.footer {
    text-align: center;
    padding: var(--space-6) var(--space-5) var(--space-8);
    font-size: var(--font-micro);
    color: var(--mute);
    font-weight: 400;
}

/* === 设置中心 === */
.settings-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.settings-overlay.active {
    display: block;
    opacity: 1;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100%;
    background: var(--canvas);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-panel.active {
    transform: translateX(0);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}

.settings-title {
    font-size: var(--font-large);
    font-weight: 700;
    color: var(--ink);
}

.settings-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--cloud);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.settings-close:active {
    transform: scale(0.9);
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2) 0 var(--space-8);
    -webkit-overflow-scrolling: touch;
}

.settings-section {
    padding: var(--space-3) var(--space-5);
}

.settings-section + .settings-section {
    border-top: 8px solid var(--cloud);
}

.settings-section-title {
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
    padding-top: var(--space-2);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--hairline);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-column {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
}

.settings-row-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-row-name {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}

.settings-row-desc {
    font-size: var(--font-micro);
    font-weight: 400;
    color: var(--ash);
    line-height: 1.3;
}

/* === 设置内提示文字 === */
.settings-hint {
    font-size: var(--font-micro);
    font-weight: 400;
    color: var(--mute);
    line-height: 1.4;
    padding: var(--space-1) 0 var(--space-2);
    margin: 0;
}

/* === Toggle 开关 === */
.toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hairline);
    border-radius: var(--radius-pill);
    transition: background 0.25s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
    background: var(--rausch);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* === 字号/数量选项按钮 === */
.font-options {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.font-option {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-small);
    font-weight: 500;
    color: var(--ink);
    background: var(--cloud);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.font-option.active {
    color: white;
    background: var(--ink);
    border-color: var(--ink);
}

.font-option:active {
    transform: scale(0.94);
}
/* === 滑动条样式 === */
.slider-options {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
}

.slider-label {
    font-size: var(--font-micro);
    color: var(--mute);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.range-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--hairline);
    border-radius: var(--radius-pill);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rausch);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 56, 92, 0.3);
    transition: transform 0.12s ease;
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rausch);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 56, 92, 0.3);
}

/* 液态玻璃模式下的滑动条 */
body[data-theme="liquid"] .range-slider {
    backdrop-filter: url("#thumb-filter") saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme="liquid"] .range-slider::-webkit-slider-thumb {
    backdrop-filter: url("#thumb-filter") saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body[data-theme="liquid"][data-color-scheme="dark"] .range-slider {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="liquid"][data-color-scheme="dark"] .range-slider::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.25);
}

/* === 设置内操作按钮 === */
.settings-action-btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--rausch);
    background: transparent;
    border: 1px solid var(--rausch);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-action-btn:active {
    background: var(--rausch);
    color: white;
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--canvas);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    font-size: var(--font-small);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === 播放器弹窗 === */
.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    flex-direction: column;
}

.player-modal.active {
    display: flex;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    background: #111;
    color: white;
    flex-shrink: 0;
}

.player-title-wrap {
    flex: 1;
    min-width: 0;
    margin-right: var(--space-4);
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.player-title {
    font-size: var(--font-body);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.player-pubdate {
    flex-shrink: 0;
    font-size: var(--font-micro);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.player-close {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-body);
    font-weight: 600;
    color: white;
    background: var(--rausch);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.player-close:active {
    transform: scale(0.92);
    background: var(--rausch-dark);
}

.player-fav-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-body);
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    margin-right: var(--space-2);
}

.player-fav-btn .fav-icon {
    font-size: 1.1em;
    line-height: 1;
}

.player-fav-btn.favorited {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.6);
    color: #FF6B35;
}

.player-fav-btn.favorited .fav-icon {
    color: #FF6B35;
}

.player-fav-btn:active {
    transform: scale(0.92);
}

.player-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === 响应式 === */
@media (min-width: 768px) and (orientation: landscape) {
    .video-list {
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6) var(--space-5);
        padding: var(--space-4) var(--space-6) var(--space-8);
    }
    .video-card { max-width: 420px; }
}

@media (min-width: 1200px) and (orientation: landscape) {
    .video-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
    }
    .video-card { max-width: 380px; }
}

@media (min-width: 1600px) and (orientation: landscape) {
    .video-list {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1800px;
    }
}

/* 深色模式完全由 JS 控制 body.dark 类，不使用 CSS 媒体查询 */

/* 滚动哨兵 - 始终存在于 DOM 中，用于触发无限加载 */
.scroll-sentinel {
    height: 1px;
    width: 100%;
}


/* === 更新日志 === */
.changelog {
    margin-top: var(--space-3);
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.changelog-item {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--hairline);
    font-size: var(--font-small);
    line-height: 1.5;
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-version {
    display: block;
    color: var(--rausch);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.changelog-text {
    display: block;
    color: var(--ash);
}

body.dark .changelog-item {
    border-color: var(--hairline);
}

#changelogArrow.rotated {
    transform: rotate(90deg);
}


/* === 每日摘要 === */
.digest-section-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--rausch);
    padding: var(--space-5) 0 var(--space-3);
    margin-top: var(--space-4);
    border-bottom: 2px solid var(--rausch);
    grid-column: 1 / -1;
    width: 100%;
}

.digest-card {
    border: 2px solid var(--rausch);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-digest-badge {
    font-size: 11px;
    color: #fff;
    background: var(--rausch);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.digest-greeting-card {
    background: linear-gradient(135deg, #FF385C, #E00B41);
    color: #fff;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    grid-column: 1 / -1;
    width: 100%;
}

.digest-greeting-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.digest-greeting-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* 深色模式适配 */
body.dark .digest-card {
    border-color: var(--rausch);
}

body.dark .digest-greeting-card {
    background: linear-gradient(135deg, #C02A48, #A00A31);
}


/* === 每日摘要页面 === */
.digest-view {
    padding: var(--space-4) var(--space-5) var(--space-8);
    max-width: 640px;
    margin: 0 auto;
}

.digest-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* 桌面端：digest-content 继承主页多列网格 */
@media (min-width: 768px) and (orientation: landscape) {
    .digest-content {
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6) var(--space-5);
        padding: 0 var(--space-2);
    }
    .digest-card { max-width: 420px; }
}

@media (min-width: 1200px) and (orientation: landscape) {
    .digest-content {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
    .digest-card { max-width: 380px; }
}

@media (min-width: 1600px) and (orientation: landscape) {
    .digest-content {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1800px;
    }
}

.digest-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
}

.digest-back-btn {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.digest-back-btn:active {
    opacity: 0.6;
}

.digest-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

body.dark .digest-section-header {
    color: var(--rausch);
    border-color: var(--rausch);
}


/* ============================================
   外观皮肤系统 v1
   5种皮肤：auto / light / dark / frosted / liquid
   ============================================ */

/* === 皮肤选择浮窗 === */
.skin-picker-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 210;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.skin-picker-overlay.active {
    display: block;
    opacity: 1;
}

.skin-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    left: 50%;
    transform: translate(-50%, 100%);
    background: var(--canvas);
    z-index: 211;
    border-radius: 20px 20px 0 0;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}
.skin-picker.active {
    transform: translate(-50%, 0);
}

.skin-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-5) var(--space-3);
    flex-shrink: 0;
}
.skin-picker-title {
    font-size: var(--font-large);
    font-weight: 700;
    color: var(--ink);
}
.skin-picker-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    background: var(--cloud);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.12s ease;
}
.skin-picker-close:active { transform: scale(0.9); }

.skin-options {
    /* 修复小屏溢出：flex column 子项占满剩余高度并允许收缩，内部才能滚动 */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skin-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}
.skin-option:active {
    background: var(--cloud);
}
.skin-option.selected {
    background: var(--cloud);
}

/* 预览缩略图 */
.skin-preview {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--hairline);
}
.sp-card {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 12px;
    border-radius: 3px;
}
.sp-card-2 {
    bottom: 20px;
    left: 8px;
    right: 12px;
    height: 10px;
}
.sp-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
}
.sp-half-light { left: 0; background: #FFFFFF; }
.sp-half-dark { right: 0; background: #1A1A1A; }

/* 各皮肤预览样式 */
.skin-preview-light { background: #FFFFFF; }
.skin-preview-light .sp-card { background: #F7F7F7; border: 1px solid #DDD; }

.skin-preview-dark { background: #1A1A1A; }
.skin-preview-dark .sp-card { background: #2A2A2A; border: 1px solid #3A3A3A; }

.skin-preview-auto { }
.skin-preview-auto .sp-card { background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.3); }

.skin-preview-frosted {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f0f0 50%, #ffe0e6 100%);
}
.skin-preview-frosted .sp-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.skin-preview-liquid {
    background: linear-gradient(135deg, #c8d6f5 0%, #e8d5f0 35%, #f5d5e0 70%, #d5e8f0 100%);
}
.skin-preview-liquid .sp-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.skin-preview-liquid .sp-card-2 {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.skin-preview-classic {
    background: linear-gradient(145deg, #8B6914 0%, #A0761D 30%, #6B4F0E 70%, #8B6914 100%);
    border: 1px solid #5A3F0A;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), inset 0 -1px 2px rgba(0,0,0,0.3);
}
.skin-preview-classic .sp-card {
    background: linear-gradient(145deg, #F5E6C8 0%, #E8D5B0 100%);
    border: 1px solid #C0A878;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}
.skin-preview-classic .sp-card-2 {
    background: linear-gradient(145deg, #D4B896 0%, #C0A070 100%);
    border: 1px solid #A08850;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}

.skin-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.skin-option-name {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}
.skin-option-desc {
    font-size: var(--font-micro);
    color: var(--ash);
    font-weight: 400;
}

.skin-check {
    flex-shrink: 0;
    color: var(--rausch);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.skin-option.selected .skin-check {
    opacity: 1;
}

/* === 设置面板新增 === */
.settings-row-value {
    max-width: 120px;
    text-align: right;
}

/* ============================================
   皮肤 5：液态玻璃 (Liquid Glass) v2

/* --- 液态玻璃边缘发光（替代贴图高光） --- */
[data-theme="liquid"] {
    --liquid-glow: 0.5;
    --liquid-glow-bottom: 0.125;
}
[data-theme="liquid"] .video-card,
[data-theme="liquid"] .search-box,
[data-theme="liquid"] .header,
[data-theme="liquid"] .category-bar,
[data-theme="liquid"] .settings-panel,
[data-theme="liquid"] .settings-overlay,
[data-theme="liquid"] .theme-picker,
[data-theme="liquid"] .font-picker,
[data-theme="liquid"] .video-player,
[data-theme="liquid"] .player-overlay,
[data-theme="liquid"] .range-slider,
[data-theme="liquid"] .skin-option,
[data-theme="liquid"] .batch-picker,
[data-theme="liquid"] .digest-card,
[data-theme="liquid"] .modal-content,
[data-theme="liquid"] .toast,
[data-theme="liquid"] .floating-settings {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--liquid-glow)),
                inset 0 -1px 0 rgba(255, 255, 255, var(--liquid-glow-bottom)),
                inset 1px 0 0 rgba(255, 255, 255, calc(var(--liquid-glow) * 0.3)),
                inset -1px 0 0 rgba(255, 255, 255, calc(var(--liquid-glow) * 0.3)) !important;
}

   严格参考 https://liunian.js.org/posts/liquid-glass/ 源码
   核心：SVG feDisplacementMap + backdrop-filter: url(#filter-id)
   v2: 全面覆盖所有UI元素 + 修复错位高光
   ============================================ */

/* --- 全局背景：渐变流光（让折射效果可见） --- */
body[data-theme="liquid"] {
    background: #000000;
}
body[data-theme="liquid"][data-color-scheme="dark"] {
    background: #000000;
}

/* --- 顶栏：液态玻璃折射（完整覆盖） --- */
body[data-theme="liquid"] .header {
    backdrop-filter: url("#searchbox-filter") saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body[data-theme="liquid"][data-color-scheme="dark"] .header {
    background: rgba(25, 25, 25, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* 顶栏高光线 */
body[data-theme="liquid"] .header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    pointer-events: none;
}

/* --- 分类栏：液态玻璃折射 --- */
body[data-theme="liquid"] .categories {
    backdrop-filter: url("#searchbox-filter") saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .categories {
    background: rgba(25, 25, 25, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- 分类按钮：液态玻璃药丸 --- */
body[data-theme="liquid"] .category-btn {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
}
body[data-theme="liquid"][data-color-scheme="dark"] .category-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body[data-theme="liquid"] .category-btn.active {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- 视频卡片：液态玻璃折射（核心效果） --- */
body[data-theme="liquid"] .video-card {
    backdrop-filter: url("#thumb-filter") saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.25s ease;
    position: relative;
}
body[data-theme="liquid"][data-color-scheme="dark"] .video-card {
    background: rgba(35, 35, 35, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.2);
}
body[data-theme="liquid"] .video-card:active {
    transform: scale(0.97);
}

/* --- 设置面板：液态玻璃折射 --- */
body[data-theme="liquid"] .settings-panel {
    backdrop-filter: url("#searchbox-filter") saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    background: rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
}
body[data-theme="liquid"][data-color-scheme="dark"] .settings-panel {
    background: rgba(25, 25, 25, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 设置关闭按钮：液态玻璃 --- */
body[data-theme="liquid"] .settings-close {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
body[data-theme="liquid"][data-color-scheme="dark"] .settings-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Toggle 开关：液态玻璃 --- */
body[data-theme="liquid"] .toggle-slider {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .toggle-slider {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body[data-theme="liquid"] .toggle input:checked + .toggle-slider {
    backdrop-filter: url("#thumb-filter") saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    background: rgba(255, 56, 92, 0.35);
    border: 1px solid rgba(255, 56, 92, 0.3);
}
body[data-theme="liquid"] .toggle-slider::before {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --- 顶栏按钮：液态玻璃药丸 --- */
body[data-theme="liquid"] .header-btn {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
body[data-theme="liquid"][data-color-scheme="dark"] .header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 搜索框：液态玻璃折射 --- */
body[data-theme="liquid"] .search-box {
    backdrop-filter: url("#searchbox-filter") saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
body[data-theme="liquid"][data-color-scheme="dark"] .search-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 设置操作按钮：液态玻璃 --- */
body[data-theme="liquid"] .settings-action-btn {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 56, 92, 0.15);
    border: 1px solid rgba(255, 56, 92, 0.35);
}
body[data-theme="liquid"][data-color-scheme="dark"] .settings-action-btn {
    background: rgba(255, 56, 92, 0.1);
}

/* --- 底部：液态玻璃 --- */
body[data-theme="liquid"] .footer {
    backdrop-filter: url("#searchbox-filter") saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    background: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .footer {
    background: rgba(25, 25, 25, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- 皮肤选择器：液态玻璃 --- */
body[data-theme="liquid"] .skin-picker {
    backdrop-filter: url("#searchbox-filter") saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.08);
}
body[data-theme="liquid"][data-color-scheme="dark"] .skin-picker {
    background: rgba(25, 25, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 皮肤选择器关闭按钮 --- */
body[data-theme="liquid"] .skin-picker-close {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
body[data-theme="liquid"][data-color-scheme="dark"] .skin-picker-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 皮肤选项：液态玻璃 --- */
body[data-theme="liquid"] .skin-option {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .skin-option {
    border: 1px solid rgba(255, 255, 255, 0.05);
}
body[data-theme="liquid"] .skin-option.selected {
    backdrop-filter: url("#thumb-filter") saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* --- Toast：液态玻璃浮泡 --- */
body[data-theme="liquid"] .toast {
    backdrop-filter: url("#thumb-filter") saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    background: rgba(45, 45, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- 置顶推荐卡片：液态玻璃 --- */
body[data-theme="liquid"] .top-recommend-card {
    backdrop-filter: url("#thumb-filter") saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

/* --- 每日摘要：液态玻璃 --- */
body[data-theme="liquid"] .digest-greeting-card {
    backdrop-filter: url("#thumb-filter") saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow: 0 8px 32px rgba(255, 56, 92, 0.15);
}
body[data-theme="liquid"] .digest-card {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- 每日摘要返回按钮：液态玻璃 --- */
body[data-theme="liquid"] .digest-back-btn {
    backdrop-filter: url("#thumb-filter") saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
}
body[data-theme="liquid"][data-color-scheme="dark"] .digest-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- 加载更多：液态玻璃 --- */
body[data-theme="liquid"] .load-more {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .load-more {
    background: rgba(255, 255, 255, 0.06);
}

/* --- 播放器头部：液态玻璃 --- */
body[data-theme="liquid"] .player-header {
    backdrop-filter: url("#searchbox-filter") saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    background: rgba(25, 25, 25, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 播放器关闭按钮：液态玻璃 --- */
body[data-theme="liquid"] .player-close {
    backdrop-filter: url("#thumb-filter") saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    background: rgba(255, 56, 92, 0.35);
    border: 1px solid rgba(255, 56, 92, 0.3);
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.15);
}

/* --- 播放器收藏按钮：液态玻璃 --- */
body[data-theme="liquid"] .player-fav-btn {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
body[data-theme="liquid"] .player-fav-btn.favorited {
    backdrop-filter: url("#thumb-filter") saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    background: rgba(255, 107, 53, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.5);
}

/* --- 设置区分隔：液态玻璃 --- */
body[data-theme="liquid"] .settings-section + .settings-section {
    border-top-color: rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .settings-section + .settings-section {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* --- 搜索清除按钮：液态玻璃 --- */
body[data-theme="liquid"] .search-clear {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* --- 关于行：液态玻璃 --- */
body[data-theme="liquid"] #aboutRow {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    border-radius: var(--radius-sm);
}

/* --- 法律协议链接：液态玻璃 --- */
body[data-theme="liquid"] .settings-section a[href*="legal"] {
    backdrop-filter: url("#thumb-filter") saturate(115%);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-theme="liquid"][data-color-scheme="dark"] .settings-section a[href*="legal"] {
    background: rgba(255, 255, 255, 0.06) !important;
}


/* ============================================
   皮肤 6：经典回忆 (Classic / Skeuomorphism)
   拟物化设计：皮革纹理、纸张质感、立体按钮
   色调：温暖棕褐、米色、琥珀
   ============================================ */

/* --- 背景纹理 --- */
body[data-theme="classic"] {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(180, 130, 40, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(120, 80, 20, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #E8D5B0 0%, #DCC8A0 50%, #D0BC90 100%);
}
body[data-theme="classic"][data-color-scheme="dark"] {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(100, 60, 10, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(60, 35, 5, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #2A1F0E 0%, #221800 50%, #1A1208 100%);
}

/* --- 顶栏：皮革质感 --- */
body[data-theme="classic"] .header {
    background:
        linear-gradient(180deg, rgba(139, 105, 20, 0.95) 0%, rgba(107, 79, 14, 0.95) 100%);
    border-bottom: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"][data-color-scheme="dark"] .header {
    background:
        linear-gradient(180deg, rgba(60, 42, 10, 0.96) 0%, rgba(40, 28, 6, 0.96) 100%);
    border-bottom: 2px solid #2A1800;
    box-shadow:
        inset 0 1px 0 rgba(200, 150, 50, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- 顶栏标题 --- */
body[data-theme="classic"] .header h1 {
    color: #FFE9B0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 220, 120, 0.3);
}
body[data-theme="classic"] .header .subtitle {
    color: #D4B896;
}
body[data-theme="classic"][data-color-scheme="dark"] .header h1 {
    color: #C0A060;
}

/* --- 顶栏按钮：立体皮革按钮 --- */
body[data-theme="classic"] .header-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
}
body[data-theme="classic"] .header-btn:active {
    background: linear-gradient(180deg, #7A5A14 0%, #A0761D 100%);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 220, 120, 0.15);
}
body[data-theme="classic"][data-color-scheme="dark"] .header-btn {
    background: linear-gradient(180deg, #5A3F0A 0%, #3A2806 100%);
    border: 1px solid #2A1800;
    color: #C0A060;
}

/* --- 分类栏：木纹质感 --- */
body[data-theme="classic"] .categories {
    background:
        linear-gradient(180deg, rgba(160, 118, 29, 0.9) 0%, rgba(130, 95, 20, 0.9) 100%);
    border-top: 1px solid #6B4F0E;
    border-bottom: 1px solid #5A3F0A;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"][data-color-scheme="dark"] .categories {
    background:
        linear-gradient(180deg, rgba(50, 35, 8, 0.92) 0%, rgba(35, 24, 4, 0.92) 100%);
    border-top: 1px solid #2A1800;
    border-bottom: 1px solid #1A1000;
}

/* --- 分类按钮：浮雕药丸 --- */
body[data-theme="classic"] .category-btn {
    background: linear-gradient(180deg, #F0DCAE 0%, #DCC8A0 100%);
    border: 1px solid #B89860;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
    color: #5A3F0A;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
body[data-theme="classic"] .category-btn.active {
    background: linear-gradient(180deg, #8B6914 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"][data-color-scheme="dark"] .category-btn {
    background: linear-gradient(180deg, #4A3510 0%, #382808 100%);
    border: 1px solid #2A1800;
    color: #C0A060;
}
body[data-theme="classic"][data-color-scheme="dark"] .category-btn.active {
    background: linear-gradient(180deg, #6B4F0E 0%, #4A3208 100%);
    color: #FFE9B0;
}

/* --- 搜索框：羊皮纸凹陷 --- */
body[data-theme="classic"] .search-box {
    background: linear-gradient(180deg, #E8D5B0 0%, #DCC8A0 100%);
    border: 2px solid #A08050;
    border-radius: 12px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.4);
}
body[data-theme="classic"] .search-box input {
    color: #4A3208;
}
body[data-theme="classic"] .search-box input::placeholder {
    color: #8B6914;
}
body[data-theme="classic"][data-color-scheme="dark"] .search-box {
    background: linear-gradient(180deg, #2A1F0E 0%, #221800 100%);
    border: 2px solid #4A3510;
}
body[data-theme="classic"][data-color-scheme="dark"] .search-box input {
    color: #D4B896;
}

/* --- 视频卡片：纸张/羊皮纸质感 --- */
body[data-theme="classic"] .video-card {
    background: linear-gradient(145deg, #F5E6C8 0%, #E8D5B0 100%);
    border: 1px solid #C0A878;
    border-radius: 12px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body[data-theme="classic"] .video-card:active {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
body[data-theme="classic"] .video-card .card-title {
    color: #3A2810;
}
body[data-theme="classic"] .video-card .card-up,
body[data-theme="classic"] .video-card .card-meta {
    color: #6B4F0E;
}
body[data-theme="classic"] .video-card .card-duration {
    background: rgba(60, 40, 10, 0.85);
    color: #FFE9B0;
    border: 1px solid rgba(30, 20, 5, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .video-card .recommend-badge {
    background: linear-gradient(180deg, #B8860B 0%, #8B6914 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3);
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card {
    background: linear-gradient(145deg, #3A2A12 0%, #2A1F0E 100%);
    border: 1px solid #5A3F0A;
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-title {
    color: #E8D5B0;
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-up,
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-meta {
    color: #A08050;
}

/* --- 设置面板：皮革面板 + 缝线 --- */
body[data-theme="classic"] .settings-panel {
    background:
        linear-gradient(145deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.3);
}
/* 缝线效果 */
body[data-theme="classic"] .settings-panel::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed rgba(255, 220, 120, 0.25);
    border-radius: 10px;
    pointer-events: none;
}
body[data-theme="classic"] .settings-panel h3 {
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .settings-panel .settings-label {
    color: #E8D5B0;
}
body[data-theme="classic"] .settings-panel .settings-desc {
    color: #C0A060;
}
body[data-theme="classic"][data-color-scheme="dark"] .settings-panel {
    background: linear-gradient(145deg, rgba(40, 28, 6, 0.97) 0%, rgba(28, 20, 4, 0.97) 100%);
    border: 2px solid #2A1800;
}

/* --- 设置关闭按钮：皮革圆钮 --- */
body[data-theme="classic"] .settings-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
}
body[data-theme="classic"] .settings-close:active {
    background: linear-gradient(180deg, #5A3F0A 0%, #8B6914 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- 设置操作按钮：浮雕按钮 --- */
body[data-theme="classic"] .settings-action-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .settings-action-btn:active {
    background: linear-gradient(180deg, #7A5A14 0%, #A0761D 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* --- 关于行：凹陷面板 --- */
body[data-theme="classic"] #aboutRow {
    background: linear-gradient(145deg, rgba(58, 40, 16, 0.4) 0%, rgba(40, 28, 10, 0.4) 100%);
    border: 1px solid rgba(90, 63, 10, 0.5);
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- 法律协议链接：羊皮纸按钮 --- */
body[data-theme="classic"] .settings-section a[href*="legal"] {
    background: linear-gradient(180deg, #DCC8A0 0%, #C0A878 100%) !important;
    border: 1px solid #A08050 !important;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #5A3F0A !important;
}
body[data-theme="classic"][data-color-scheme="dark"] .settings-section a[href*="legal"] {
    background: linear-gradient(180deg, #4A3510 0%, #382808 100%) !important;
    border: 1px solid #2A1800 !important;
    color: #C0A060 !important;
}

/* --- Toggle 开关：拟物拨杆 --- */
body[data-theme="classic"] .toggle-slider {
    background: linear-gradient(180deg, #3A2810 0%, #2A1800 100%);
    border: 1px solid #1A1000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
body[data-theme="classic"] .toggle input:checked + .toggle-slider {
    background: linear-gradient(180deg, #8B6914 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 220, 120, 0.2);
}
body[data-theme="classic"] .toggle-slider::before {
    background: linear-gradient(180deg, #F0DCAE 0%, #DCC8A0 100%);
    border: 1px solid #A08050;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body[data-theme="classic"] .toggle input:checked + .toggle-slider::before {
    background: linear-gradient(180deg, #FFE9B0 0%, #F0DCAE 100%);
}

/* --- 滑动条：凹陷轨道 --- */
body[data-theme="classic"] .range-slider {
    background: linear-gradient(180deg, #3A2810 0%, #2A1800 100%);
    border: 1px solid #1A1000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
body[data-theme="classic"] .range-slider::-webkit-slider-thumb {
    background: linear-gradient(180deg, #A0761D 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .range-slider::-moz-range-thumb {
    background: linear-gradient(180deg, #A0761D 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
}

/* --- 加载更多按钮 --- */
body[data-theme="classic"] .load-more {
    background: linear-gradient(180deg, #DCC8A0 0%, #C0A878 100%);
    border: 1px solid #A08050;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.12);
    color: #5A3F0A;
}
body[data-theme="classic"] .load-more:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- 底部 --- */
body[data-theme="classic"] .footer {
    background:
        linear-gradient(180deg, rgba(107, 79, 14, 0.9) 0%, rgba(90, 63, 10, 0.9) 100%);
    border-top: 2px solid #5A3F0A;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.15);
    color: #D4B896;
}
body[data-theme="classic"][data-color-scheme="dark"] .footer {
    background: linear-gradient(180deg, rgba(28, 20, 4, 0.92) 0%, rgba(20, 14, 2, 0.92) 100%);
    border-top: 2px solid #2A1800;
    color: #8B6914;
}

/* --- 皮肤选择器：皮革面板 --- */
body[data-theme="classic"] .skin-picker {
    background:
        linear-gradient(145deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .skin-picker::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed rgba(255, 220, 120, 0.2);
    border-radius: 10px;
    pointer-events: none;
}
body[data-theme="classic"] .skin-picker h3 {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-option {
    background: linear-gradient(145deg, #F5E6C8 0%, #E8D5B0 100%);
    border: 1px solid #C0A878;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
body[data-theme="classic"] .skin-option.selected {
    background: linear-gradient(145deg, #8B6914 0%, #6B4F0E 100%);
    border: 2px solid #FFE9B0;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .skin-option .skin-option-name {
    color: #3A2810;
}
body[data-theme="classic"] .skin-option .skin-option-desc {
    color: #6B4F0E;
}
body[data-theme="classic"] .skin-option.selected .skin-option-name {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-option.selected .skin-option-desc {
    color: #D4B896;
}
body[data-theme="classic"] .skin-option.selected .skin-check {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-picker-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- 播放器弹窗 --- */
body[data-theme="classic"] .player-header {
    background: linear-gradient(180deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border-bottom: 2px solid #5A3F0A;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.2);
}
body[data-theme="classic"] .player-title {
    color: #FFE9B0;
}
body[data-theme="classic"] .player-pubdate {
    color: #C0A060;
}
body[data-theme="classic"] .player-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}
body[data-theme="classic"] .player-close:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .player-fav-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
}
body[data-theme="classic"] .player-fav-btn.active {
    background: linear-gradient(180deg, #B8860B 0%, #8B6914 100%);
}

/* --- Toast 提示 --- */
body[data-theme="classic"] .toast {
    background: linear-gradient(145deg, rgba(60, 40, 10, 0.95) 0%, rgba(40, 28, 6, 0.95) 100%);
    border: 1px solid #5A3F0A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 220, 120, 0.15);
    color: #FFE9B0;
}

/* --- 每日摘要返回按钮 --- */
body[data-theme="classic"] .digest-back-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- 更新日志 --- */
body[data-theme="classic"] .changelog-item {
    border-bottom: 1px solid rgba(160, 118, 29, 0.3);
}
body[data-theme="classic"] .changelog-version {
    color: #FFE9B0;
}
body[data-theme="classic"] .changelog-text {
    color: #D4B896;
}

/* --- 滚动条 --- */
body[data-theme="classic"] .categories::-webkit-scrollbar-track {
    background: rgba(58, 40, 10, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .categories::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    border-radius: 4px;
}
body[data-theme="classic"] .settings-panel::-webkit-scrollbar-track {
    background: rgba(58, 40, 10, 0.2);
}
body[data-theme="classic"] .settings-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6B4F0E 0%, #4A3208 100%);
    border: 1px solid #2A1800;
    border-radius: 4px;
}

/* ============================================
   皮肤 6：经典回忆 (Classic / Skeuomorphism)
   拟物化设计：皮革纹理、纸张质感、立体按钮
   色调：温暖棕褐、米色、琥珀
   ============================================ */

/* --- 背景纹理 --- */
body[data-theme="classic"] {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(180, 130, 40, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(120, 80, 20, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #E8D5B0 0%, #DCC8A0 50%, #D0BC90 100%);
}
body[data-theme="classic"][data-color-scheme="dark"] {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(100, 60, 10, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(60, 35, 5, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #2A1F0E 0%, #221800 50%, #1A1208 100%);
}

/* --- 顶栏：皮革质感 --- */
body[data-theme="classic"] .header {
    background:
        linear-gradient(180deg, rgba(139, 105, 20, 0.95) 0%, rgba(107, 79, 14, 0.95) 100%);
    border-bottom: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"][data-color-scheme="dark"] .header {
    background:
        linear-gradient(180deg, rgba(60, 42, 10, 0.96) 0%, rgba(40, 28, 6, 0.96) 100%);
    border-bottom: 2px solid #2A1800;
    box-shadow:
        inset 0 1px 0 rgba(200, 150, 50, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- 顶栏标题 --- */
body[data-theme="classic"] .header h1 {
    color: #FFE9B0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 220, 120, 0.3);
}
body[data-theme="classic"] .header .subtitle {
    color: #D4B896;
}
body[data-theme="classic"][data-color-scheme="dark"] .header h1 {
    color: #C0A060;
}

/* --- 顶栏按钮：立体皮革按钮 --- */
body[data-theme="classic"] .header-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
}
body[data-theme="classic"] .header-btn:active {
    background: linear-gradient(180deg, #7A5A14 0%, #A0761D 100%);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 220, 120, 0.15);
}
body[data-theme="classic"][data-color-scheme="dark"] .header-btn {
    background: linear-gradient(180deg, #5A3F0A 0%, #3A2806 100%);
    border: 1px solid #2A1800;
    color: #C0A060;
}

/* --- 分类栏：木纹质感 --- */
body[data-theme="classic"] .categories {
    background:
        linear-gradient(180deg, rgba(160, 118, 29, 0.9) 0%, rgba(130, 95, 20, 0.9) 100%);
    border-top: 1px solid #6B4F0E;
    border-bottom: 1px solid #5A3F0A;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"][data-color-scheme="dark"] .categories {
    background:
        linear-gradient(180deg, rgba(50, 35, 8, 0.92) 0%, rgba(35, 24, 4, 0.92) 100%);
    border-top: 1px solid #2A1800;
    border-bottom: 1px solid #1A1000;
}

/* --- 分类按钮：浮雕药丸 --- */
body[data-theme="classic"] .category-btn {
    background: linear-gradient(180deg, #F0DCAE 0%, #DCC8A0 100%);
    border: 1px solid #B89860;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
    color: #5A3F0A;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
body[data-theme="classic"] .category-btn.active {
    background: linear-gradient(180deg, #8B6914 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"][data-color-scheme="dark"] .category-btn {
    background: linear-gradient(180deg, #4A3510 0%, #382808 100%);
    border: 1px solid #2A1800;
    color: #C0A060;
}
body[data-theme="classic"][data-color-scheme="dark"] .category-btn.active {
    background: linear-gradient(180deg, #6B4F0E 0%, #4A3208 100%);
    color: #FFE9B0;
}

/* --- 搜索框：羊皮纸凹陷 --- */
body[data-theme="classic"] .search-box {
    background: linear-gradient(180deg, #E8D5B0 0%, #DCC8A0 100%);
    border: 2px solid #A08050;
    border-radius: 12px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.4);
}
body[data-theme="classic"] .search-box input {
    color: #4A3208;
}
body[data-theme="classic"] .search-box input::placeholder {
    color: #8B6914;
}
body[data-theme="classic"][data-color-scheme="dark"] .search-box {
    background: linear-gradient(180deg, #2A1F0E 0%, #221800 100%);
    border: 2px solid #4A3510;
}
body[data-theme="classic"][data-color-scheme="dark"] .search-box input {
    color: #D4B896;
}

/* --- 视频卡片：纸张/羊皮纸质感 --- */
body[data-theme="classic"] .video-card {
    background: linear-gradient(145deg, #F5E6C8 0%, #E8D5B0 100%);
    border: 1px solid #C0A878;
    border-radius: 12px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body[data-theme="classic"] .video-card:active {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
body[data-theme="classic"] .video-card .card-title {
    color: #3A2810;
}
body[data-theme="classic"] .video-card .card-up,
body[data-theme="classic"] .video-card .card-meta {
    color: #6B4F0E;
}
body[data-theme="classic"] .video-card .card-duration {
    background: rgba(60, 40, 10, 0.85);
    color: #FFE9B0;
    border: 1px solid rgba(30, 20, 5, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .video-card .recommend-badge {
    background: linear-gradient(180deg, #B8860B 0%, #8B6914 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3);
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card {
    background: linear-gradient(145deg, #3A2A12 0%, #2A1F0E 100%);
    border: 1px solid #5A3F0A;
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-title {
    color: #E8D5B0;
}
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-up,
body[data-theme="classic"][data-color-scheme="dark"] .video-card .card-meta {
    color: #A08050;
}

/* --- 设置面板：皮革面板 + 缝线 --- */
body[data-theme="classic"] .settings-panel {
    background:
        linear-gradient(145deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.3);
}
/* 缝线效果 */
body[data-theme="classic"] .settings-panel::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed rgba(255, 220, 120, 0.25);
    border-radius: 10px;
    pointer-events: none;
}
body[data-theme="classic"] .settings-panel h3 {
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .settings-panel .settings-label {
    color: #E8D5B0;
}
body[data-theme="classic"] .settings-panel .settings-desc {
    color: #C0A060;
}
body[data-theme="classic"][data-color-scheme="dark"] .settings-panel {
    background: linear-gradient(145deg, rgba(40, 28, 6, 0.97) 0%, rgba(28, 20, 4, 0.97) 100%);
    border: 2px solid #2A1800;
}

/* --- 设置关闭按钮：皮革圆钮 --- */
body[data-theme="classic"] .settings-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
}
body[data-theme="classic"] .settings-close:active {
    background: linear-gradient(180deg, #5A3F0A 0%, #8B6914 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- 设置操作按钮：浮雕按钮 --- */
body[data-theme="classic"] .settings-action-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.15);
    color: #FFE9B0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .settings-action-btn:active {
    background: linear-gradient(180deg, #7A5A14 0%, #A0761D 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* --- 关于行：凹陷面板 --- */
body[data-theme="classic"] #aboutRow {
    background: linear-gradient(145deg, rgba(58, 40, 16, 0.4) 0%, rgba(40, 28, 10, 0.4) 100%);
    border: 1px solid rgba(90, 63, 10, 0.5);
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- 法律协议链接：羊皮纸按钮 --- */
body[data-theme="classic"] .settings-section a[href*="legal"] {
    background: linear-gradient(180deg, #DCC8A0 0%, #C0A878 100%) !important;
    border: 1px solid #A08050 !important;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #5A3F0A !important;
}
body[data-theme="classic"][data-color-scheme="dark"] .settings-section a[href*="legal"] {
    background: linear-gradient(180deg, #4A3510 0%, #382808 100%) !important;
    border: 1px solid #2A1800 !important;
    color: #C0A060 !important;
}

/* --- Toggle 开关：拟物拨杆 --- */
body[data-theme="classic"] .toggle-slider {
    background: linear-gradient(180deg, #3A2810 0%, #2A1800 100%);
    border: 1px solid #1A1000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
body[data-theme="classic"] .toggle input:checked + .toggle-slider {
    background: linear-gradient(180deg, #8B6914 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 220, 120, 0.2);
}
body[data-theme="classic"] .toggle-slider::before {
    background: linear-gradient(180deg, #F0DCAE 0%, #DCC8A0 100%);
    border: 1px solid #A08050;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body[data-theme="classic"] .toggle input:checked + .toggle-slider::before {
    background: linear-gradient(180deg, #FFE9B0 0%, #F0DCAE 100%);
}

/* --- 滑动条：凹陷轨道 --- */
body[data-theme="classic"] .range-slider {
    background: linear-gradient(180deg, #3A2810 0%, #2A1800 100%);
    border: 1px solid #1A1000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
body[data-theme="classic"] .range-slider::-webkit-slider-thumb {
    background: linear-gradient(180deg, #A0761D 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .range-slider::-moz-range-thumb {
    background: linear-gradient(180deg, #A0761D 0%, #6B4F0E 100%);
    border: 1px solid #4A3208;
}

/* --- 加载更多按钮 --- */
body[data-theme="classic"] .load-more {
    background: linear-gradient(180deg, #DCC8A0 0%, #C0A878 100%);
    border: 1px solid #A08050;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.12);
    color: #5A3F0A;
}
body[data-theme="classic"] .load-more:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- 底部 --- */
body[data-theme="classic"] .footer {
    background:
        linear-gradient(180deg, rgba(107, 79, 14, 0.9) 0%, rgba(90, 63, 10, 0.9) 100%);
    border-top: 2px solid #5A3F0A;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.15);
    color: #D4B896;
}
body[data-theme="classic"][data-color-scheme="dark"] .footer {
    background: linear-gradient(180deg, rgba(28, 20, 4, 0.92) 0%, rgba(20, 14, 2, 0.92) 100%);
    border-top: 2px solid #2A1800;
    color: #8B6914;
}

/* --- 皮肤选择器：皮革面板 --- */
body[data-theme="classic"] .skin-picker {
    background:
        linear-gradient(145deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border: 2px solid #5A3F0A;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .skin-picker::before {
    content: "";
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed rgba(255, 220, 120, 0.2);
    border-radius: 10px;
    pointer-events: none;
}
body[data-theme="classic"] .skin-picker h3 {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-option {
    background: linear-gradient(145deg, #F5E6C8 0%, #E8D5B0 100%);
    border: 1px solid #C0A878;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
body[data-theme="classic"] .skin-option.selected {
    background: linear-gradient(145deg, #8B6914 0%, #6B4F0E 100%);
    border: 2px solid #FFE9B0;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 120, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .skin-option .skin-option-name {
    color: #3A2810;
}
body[data-theme="classic"] .skin-option .skin-option-desc {
    color: #6B4F0E;
}
body[data-theme="classic"] .skin-option.selected .skin-option-name {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-option.selected .skin-option-desc {
    color: #D4B896;
}
body[data-theme="classic"] .skin-option.selected .skin-check {
    color: #FFE9B0;
}
body[data-theme="classic"] .skin-picker-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- 播放器弹窗 --- */
body[data-theme="classic"] .player-header {
    background: linear-gradient(180deg, rgba(139, 105, 20, 0.97) 0%, rgba(107, 79, 14, 0.97) 100%);
    border-bottom: 2px solid #5A3F0A;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.2);
}
body[data-theme="classic"] .player-title {
    color: #FFE9B0;
}
body[data-theme="classic"] .player-pubdate {
    color: #C0A060;
}
body[data-theme="classic"] .player-close {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}
body[data-theme="classic"] .player-close:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
body[data-theme="classic"] .player-fav-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
}
body[data-theme="classic"] .player-fav-btn.active {
    background: linear-gradient(180deg, #B8860B 0%, #8B6914 100%);
}

/* --- Toast 提示 --- */
body[data-theme="classic"] .toast {
    background: linear-gradient(145deg, rgba(60, 40, 10, 0.95) 0%, rgba(40, 28, 6, 0.95) 100%);
    border: 1px solid #5A3F0A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 220, 120, 0.15);
    color: #FFE9B0;
}

/* --- 每日摘要返回按钮 --- */
body[data-theme="classic"] .digest-back-btn {
    background: linear-gradient(180deg, #A0761D 0%, #7A5A14 100%);
    border: 1px solid #5A3F0A;
    color: #FFE9B0;
    box-shadow: inset 0 1px 0 rgba(255, 220, 120, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- 更新日志 --- */
body[data-theme="classic"] .changelog-item {
    border-bottom: 1px solid rgba(160, 118, 29, 0.3);
}
body[data-theme="classic"] .changelog-version {
    color: #FFE9B0;
}
body[data-theme="classic"] .changelog-text {
    color: #D4B896;
}

/* --- 滚动条 --- */
body[data-theme="classic"] .categories::-webkit-scrollbar-track {
    background: rgba(58, 40, 10, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
body[data-theme="classic"] .categories::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B6914 0%, #5A3F0A 100%);
    border: 1px solid #3A2806;
    border-radius: 4px;
}
body[data-theme="classic"] .settings-panel::-webkit-scrollbar-track {
    background: rgba(58, 40, 10, 0.2);
}
body[data-theme="classic"] .settings-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6B4F0E 0%, #4A3208 100%);
    border: 1px solid #2A1800;
    border-radius: 4px;
}


/* --- 液态玻璃强度滑动条 --- */
.liquid-intensity-row {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.liquid-intensity-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}
.liquid-intensity-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(100,150,255,0.3), rgba(255,255,255,0.05));
    border-radius: var(--radius-pill);
    outline: none;
    cursor: pointer;
}
.liquid-intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #d0e0ff);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.12s ease;
}
.liquid-intensity-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}
.liquid-intensity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #d0e0ff);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === 更新日志弹窗 === */
.changelog-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding: 5vh 16px;
    -webkit-overflow-scrolling: touch;
}
.changelog-modal-overlay.show { display: flex; }
.changelog-modal {
    background: var(--bg-elevated, #fff);
    border-radius: var(--radius-lg, 16px);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.changelog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4, 16px);
    border-bottom: 1px solid var(--hairline, rgba(0,0,0,0.06));
    flex-shrink: 0;
}
.changelog-modal-header h3 {
    margin: 0;
    font-size: var(--font-lg, 18px);
    font-weight: 700;
    color: var(--text, #222);
}
.changelog-modal-close {
    background: none; border: none;
    font-size: 28px; line-height: 1;
    color: var(--mute, #999);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.changelog-modal-close:hover { background: rgba(0,0,0,0.06); }
.changelog-modal-close:active { background: rgba(0,0,0,0.12); }
.changelog-modal-body {
    overflow-y: auto;
    padding: var(--space-3, 12px) var(--space-4, 16px);
    -webkit-overflow-scrolling: touch;
}
.changelog-entry {
    padding: var(--space-3, 12px) 0;
    border-bottom: 1px solid var(--hairline, rgba(0,0,0,0.06));
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry-date {
    color: var(--rausch, #E07619);
    font-weight: 600;
    font-size: var(--font-small, 14px);
    margin-bottom: var(--space-2, 8px);
}
.changelog-entry-content {
    color: var(--ash, #6A6A6A);
    font-size: var(--font-small, 14px);
    line-height: 1.7;
}
.changelog-entry-content p { margin: 0 0 6px 0; }
.changelog-entry-content p:last-child { margin-bottom: 0; }
.changelog-entry-tail {
    color: var(--rausch, #E07619) !important;
    font-style: italic;
    margin-top: 8px !important;
}
/* dark */
body.dark .changelog-modal { background: var(--bg-elevated, #1c1c1e); }
body.dark .changelog-modal-close:hover { background: rgba(255,255,255,0.1); }
/* liquid */
body[data-theme="liquid"] .changelog-modal {
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
}
body[data-theme="liquid"] .changelog-modal-header h3 { color: rgba(255,255,255,0.95); }
body[data-theme="liquid"] .changelog-modal-close { color: rgba(255,255,255,0.5); }
body[data-theme="liquid"] .changelog-modal-close:hover { background: rgba(255,255,255,0.08); }
body[data-theme="liquid"] .changelog-entry-content { color: rgba(255,255,255,0.6); }
body[data-theme="liquid"] .changelog-entry { border-bottom-color: rgba(255,255,255,0.06); }
/* classic */
body[data-theme="classic"] .changelog-modal {
    background: var(--paper, #f5ecd9);
    border: 2px solid var(--leather, #8B6914);
}

/* --- 液态玻璃按钮统一胶囊形 --- */
body[data-theme="liquid"] .header-btn,
body[data-theme="liquid"] .settings-close,
body[data-theme="liquid"] .skin-picker-close,
body[data-theme="liquid"] .settings-action-btn,
body[data-theme="liquid"] .toast,
body[data-theme="liquid"] .skin-option,
body[data-theme="liquid"] .digest-back-btn,
body[data-theme="liquid"] .changelog-modal-close {
    border-radius: 999px !important;
}


/* === 底部导航栏 === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--canvas);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-top: 1px solid var(--hairline);
    display: flex;
    z-index: 300;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--ash);
    font-size: 11px;
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--rausch);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* 主站底部留出导航栏空间 */
.video-list {
    padding-bottom: 70px !important;
}

/* 大屏：底部导航变左侧 */
@media (min-width: 768px) and (orientation: landscape) {
    .bottom-nav {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 80px;
        height: 100vh;
        flex-direction: column;
        border-top: none;
        border-right: 1px solid var(--hairline);
        padding-bottom: 0;
    }

    .bottom-nav-item {
        flex-direction: column;
        padding: 16px 0;
    }

    /* 大屏主站内容右移 */
    .header,
    .categories,
    .video-list,
    .digest-view,
    #changelogModalOverlay {
        margin-left: 80px;
    }

    .video-list {
        padding-bottom: 20px !important;
    }
}

/* 液态玻璃主题导航栏 */
body[data-theme="liquid"] .bottom-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: url("#searchbox-filter") blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="liquid"] .bottom-nav-item {
    color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

body[data-theme="liquid"] .bottom-nav-item.active {
    color: var(--rausch);
    background: rgba(255, 56, 92, 0.08);
    border-radius: 12px;
}

/* 经典回忆导航栏 */
body[data-theme="classic"] .bottom-nav {
    background: rgba(232, 213, 176, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(120, 80, 20, 0.15);
    box-shadow: 0 -2px 12px rgba(120, 80, 20, 0.08);
}

body[data-theme="classic"][data-color-scheme="dark"] .bottom-nav {
    background: rgba(42, 31, 14, 0.92);
    border-color: rgba(180, 130, 40, 0.15);
}

body[data-theme="classic"] .bottom-nav-item {
    color: #6B5A3A;
}

body[data-theme="classic"][data-color-scheme="dark"] .bottom-nav-item {
    color: rgba(232, 213, 176, 0.4);
}

body[data-theme="classic"] .bottom-nav-item.active {
    color: #8B6914;
}

body[data-theme="classic"][data-color-scheme="dark"] .bottom-nav-item.active {
    color: #D4A843;
}

/* 黑暗模式导航栏 */
body[data-color-scheme="dark"]:not([data-theme="liquid"]):not([data-theme="classic"]) .bottom-nav {
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.06);
}

/* === 公告 / 调试 弹窗 === */
.announce-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 11000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.announce-modal-overlay.show { display: flex; }
.announce-modal {
    background: var(--bg-elevated, #fff);
    border-radius: var(--radius-lg, 16px);
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: announcePop 0.25s ease;
}
@keyframes announcePop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.announce-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline, rgba(0,0,0,0.06));
    flex-shrink: 0;
}
.announce-modal-header h3 {
    margin: 0;
    font-size: var(--font-lg, 17px);
    font-weight: 700;
}
.announce-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--mute, #999);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.announce-modal-close:hover { color: var(--text, #333); }
.announce-modal-body {
    padding: 16px;
    overflow-y: auto;
    font-size: var(--font-md, 15px);
    line-height: 1.6;
    color: var(--text, #333);
    word-break: break-word;
}
.announce-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--hairline, rgba(0,0,0,0.06));
    flex-shrink: 0;
}
.announce-modal-btn {
    background: var(--accent, #ff3b57);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
}
.announce-modal-btn:hover { opacity: 0.9; }

/* 调试密码弹窗 */
.debug-modal { max-width: 340px; }
.debug-pwd-body {
    padding: 20px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.debug-pwd-body input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--hairline, rgba(0,0,0,0.15));
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg, #fff);
    color: var(--text, #333);
    outline: none;
}
.debug-pwd-body input:focus { border-color: var(--accent, #ff3b57); }
.debug-pwd-error { color: #e74c3c; font-size: 13px; min-height: 18px; }

/* 调试面板 */
.debug-panel-body {
    padding: 16px;
    overflow-y: auto;
    max-height: 55vh;
}
.debug-panel-body .settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline, rgba(0,0,0,0.06));
}

/* 深色模式适配 */
body.dark .announce-modal,
body[data-theme="dark"] .announce-modal,
body[data-theme="auto"][data-color-scheme="dark"] .announce-modal {
    background: #1c1c1e;
}
body.dark .announce-modal-body,
body[data-theme="dark"] .announce-modal-body,
body[data-theme="auto"][data-color-scheme="dark"] .announce-modal-body {
    color: #eee;
}
body.dark .debug-pwd-body input,
body[data-theme="dark"] .debug-pwd-body input,
body[data-theme="auto"][data-color-scheme="dark"] .debug-pwd-body input {
    background: #2c2c2e;
    color: #eee;
    border-color: rgba(255,255,255,0.15);
}

/* ============================================================
 * 我的板块（暖阳标题栏 + 横向视频卡片）
 * ============================================================
.mine-view {
    padding: 0 24px 56px;
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
}

/* === 顶部标题栏：与首页一致的暖阳标题 === */
.mine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0 var(--space-5);
    border-bottom: 2px solid var(--rausch);
    margin-bottom: 24px;
}
.mine-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mine-header-title {
    font-size: var(--font-title);
    font-weight: 700;
    color: var(--rausch);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}
.mine-header-subtitle {
    font-size: var(--font-micro);
    font-weight: 400;
    color: var(--ash);
    margin-top: 2px;
}
.mine-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* === 分区标题 === */
.mine-section {
    margin-bottom: 28px;
}
.mine-section-title {
    font-size: var(--font-large);
    font-weight: 700;
    color: var(--ink);
    padding: var(--space-2) 0 var(--space-4);
    margin: 0;
}

/* === 横向滚动视频卡片 === */
.mine-hscroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-2);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.mine-hscroll::-webkit-scrollbar { display: none; }

.mine-vcard {
    flex: 0 0 172px;
    width: 172px;
    cursor: pointer;
    scroll-snap-align: start;
}
.mine-vcard:active { opacity: 0.85; }

.mine-vcard-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cloud);
}
.mine-vcard-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mine-vcard-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    font-size: 24px;
    font-weight: 600;
}
.mine-vcard-dur {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: var(--font-micro);
    font-weight: 600;
}
.mine-vcard-title {
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-top: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mine-vcard-up {
    font-size: var(--font-micro);
    color: var(--mute);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === 常看UP（横向） === */
.mine-up-hscroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-2);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.mine-up-hscroll::-webkit-scrollbar { display: none; }

.mine-up-chip {
    flex: 0 0 96px;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: var(--space-4) var(--space-2);
    border-radius: var(--radius-md);
    cursor: pointer;
    scroll-snap-align: start;
}
.mine-up-chip:active { background: var(--cloud); }

.mine-up-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}
.mine-up-chip-name {
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--ink);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mine-up-chip-count {
    font-size: var(--font-micro);
    color: var(--mute);
}

/* === 设置入口 === */
.mine-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-3);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.mine-menu-item:active { background: var(--cloud); }
.mine-menu-label {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}
.mine-menu-arrow { color: var(--mute); }

/* === 空状态 === */
.mine-empty {
    padding: var(--space-8) 0;
    text-align: center;
    font-size: var(--font-small);
    color: var(--mute);
    line-height: 1.7;
}

/* 大屏：内容区右移，避开左侧导航 */
@media (min-width: 768px) and (orientation: landscape) {
    .mine-view {
        margin-left: 80px;
    }
}

/* 云控加载中：隐藏所有受云控控制的功能元素，避免闪烁 */
body.cloud-pending #navShorts,
body.cloud-pending #navMine,
body.cloud-pending .skin-option[data-theme="liquid"],
body.cloud-pending #liquidIntensityRow,
body.cloud-pending #digestSettingsGroup,
body.cloud-pending #digestBtn,
body.cloud-pending #announceBtn {
    display: none !important;
}


/* ============================================================
   移动端适配：全屏搜索页 + 语音输入占位按钮 + 设置二级全屏页
   仅 <=767px 生效，桌面端相关元素由 JS/CSS 保持隐藏
   ============================================================ */

/* 全屏搜索页 */
.search-view {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--canvas);
    z-index: 3000;
    display: none;
    flex-direction: column;
}
.search-view-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}
.search-view-back {
    background: none;
    border: none;
    padding: 6px;
    margin: -6px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-view-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--cloud);
    border-radius: var(--radius-pill);
    padding: 0 var(--space-4);
    height: 44px;
}
.search-view-box .search-icon { color: var(--mute); flex-shrink: 0; }
.search-view-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: var(--font-body);
    color: var(--ink);
    min-width: 0;
}
.search-view-input::placeholder { color: var(--mute); }
.search-view-clear {
    background: none;
    border: none;
    color: var(--mute);
    font-size: var(--font-body);
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}
.search-view-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-2) 0 calc(64px + env(safe-area-inset-bottom));
}
.search-view-empty {
    text-align: center;
    color: var(--mute);
    font-size: var(--font-small);
    padding: var(--space-10) var(--space-4);
}

/* 语音输入悬浮按钮（位于输入法键盘上方，JS 控制 bottom） */
.voice-input-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    color: var(--charcoal);
    font-size: var(--font-small);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 3010;
}
.voice-input-btn .voice-input-label { line-height: 1; }
.voice-input-btn:active { background: var(--cloud); }

/* 设置二级入口（仅移动端显示，JS 控制显隐） */
/* 修复：恢复与标准 section 一致的内边距，消除比其他设置项凸出/过宽的不对齐 */
.settings-more-entry {
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.settings-more-entry .settings-row {
    padding: 0;
    border-bottom: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.settings-more-entry:active .settings-row {
    opacity: 0.55;
    transform: translateX(3px);
}

/* 更多设置全屏页 */
.settings-more-page {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--canvas);
    z-index: 2100;
    display: none;
    flex-direction: column;
}
.settings-more-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}
.settings-more-back {
    background: none;
    border: none;
    padding: 6px;
    margin: -6px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.settings-more-title {
    font-size: var(--font-large);
    font-weight: 600;
    color: var(--ink);
}
.settings-more-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4) var(--space-5) calc(24px + env(safe-area-inset-bottom));
}
.settings-more-body .settings-section {
    padding: 0;
    margin: 0;
    border-top: none;
}
.settings-more-body .settings-section + .settings-section {
    border-top: 1px solid var(--hairline);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
}

/* 断点：手机端全屏搜索页 / 语音按钮 / 设置整屏化 */
@media (max-width: 767px) {
    .voice-input-btn { display: flex; }

    /* 设置：右侧窄抽屉 → 全屏页（保留右滑入场动效） */
    .settings-panel {
        width: 100%;
        max-width: 100vw;
    }
    /* 整屏无遮罩层，避免点击穿透 */
    .settings-overlay, .settings-overlay.active {
        display: none;
    }
}

/* 深色模式微调 */
body[data-color-scheme="dark"] .search-view,
body.dark .search-view,
body[data-color-scheme="dark"] .settings-more-page,
body.dark .settings-more-page {
    background: var(--canvas);
}
body[data-color-scheme="dark"] .search-view-box,
body.dark .search-view-box {
    background: var(--cloud);
}

/* ============================================================
   大屏：搜索框内联语音输入按钮（占位，仅 ≥768px 显示）
   ============================================================ */
.search-voice-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ash);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}
.search-voice-btn:hover {
    background: var(--hairline);
    color: var(--rausch);
}
@media (max-width: 767px) {
    /* 移动端改用全屏搜索页的悬浮语音按钮，隐藏顶部内联按钮 */
    .search-voice-btn { display: none; }
}

/* ============================================================
   快速配置：身份选择弹层 + 子女帮配引导（大屏为主）
   ============================================================ */
.ob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}
.ob-panel {
    width: 100%;
    max-width: 520px;
    background: var(--canvas);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-8) var(--space-6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.ob-title {
    font-size: var(--font-title);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--space-2);
}
.ob-subtitle {
    font-size: var(--font-small);
    color: var(--ash);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}
.ob-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.ob-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    padding: var(--space-4) var(--space-5);
    background: var(--cloud);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}
.ob-card:hover { border-color: var(--rausch); }
.ob-card:active { transform: scale(0.99); }
.ob-card-name {
    font-size: var(--font-body);
    font-weight: 700;
    color: var(--ink);
}
.ob-card-desc {
    font-size: var(--font-small);
    color: var(--ash);
}
.ob-legal {
    margin-top: var(--space-5);
    font-size: var(--font-micro);
    color: var(--mute);
    line-height: 1.6;
}
.ob-legal a { color: var(--rausch); text-decoration: none; }

/* 帮配面板表单 */
.ob-field { margin-bottom: var(--space-6); }
.ob-field-label {
    display: block;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-3);
}
.ob-choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.ob-choice {
    padding: 10px 20px;
    background: var(--cloud);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    font-size: var(--font-small);
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-family: inherit;
}
.ob-choice:hover { border-color: var(--rausch); }
.ob-choice.selected {
    background: var(--rausch);
    border-color: var(--rausch);
    color: #fff;
}
.ob-share {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
.ob-share-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: var(--cloud);
    font-size: var(--font-micro);
    color: var(--ash);
    outline: none;
}
.ob-share-copy {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1px solid var(--rausch);
    border-radius: var(--radius-md);
    background: var(--canvas);
    color: var(--rausch);
    font-size: var(--font-small);
    cursor: pointer;
    font-family: inherit;
}
.ob-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}
.ob-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--font-body);
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.15s ease;
}
.ob-btn:active { opacity: 0.8; }
.ob-btn-ghost {
    background: transparent;
    color: var(--ash);
}
.ob-btn-primary {
    background: var(--rausch);
    color: #fff;
    font-weight: 600;
}

/* --- 子女帮配：老人喜好多选 / 推荐开关 / 配置代码展示 --- */
.ob-likes {
    flex-wrap: wrap;
}
.ob-likes-empty {
    font-size: var(--font-small);
    color: var(--ash);
    padding: 4px 0;
}
.ob-toggles {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.ob-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.ob-toggle-row > span {
    font-size: var(--font-body);
    color: var(--charcoal);
}
.ob-code {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    background: var(--cloud);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
}
.ob-code-tip {
    margin: 0;
    font-size: var(--font-micro);
    color: var(--ash);
}
.ob-code-text {
    padding: var(--space-3);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: var(--font-micro);
    line-height: 1.5;
    color: var(--charcoal);
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
}
.ob-code-copy {
    align-self: flex-start;
    padding: 8px 18px;
}

/* --- 设置内：输入配置代码（仅老人模式） --- */
.code-apply-row {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
    margin-top: var(--space-3);
}
.code-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    font-size: var(--font-body);
    color: var(--charcoal);
    outline: none;
    font-family: inherit;
}
.code-input:focus { border-color: var(--rausch); }
.code-apply-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--rausch);
    color: #fff;
    font-size: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.code-apply-btn:active { opacity: 0.85; }
.code-status {
    margin-top: var(--space-3);
    font-size: var(--font-small);
}


/* ============================================================
   移动端全屏页转场动画：更多设置 / 全屏搜索页从右推进
   仅由 JS 在打开/关闭瞬间挂上 nv-in / nv-out 触发，桌面端不生效
   ============================================================ */
@keyframes nvSlideIn {
    from { transform: translateX(100%); opacity: 0.35; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes nvSlideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0.35; }
}
.search-view.nv-in,
.settings-more-page.nv-in {
    animation: nvSlideIn 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.search-view.nv-out,
.settings-more-page.nv-out {
    animation: nvSlideOut 0.22s ease forwards;
    will-change: transform;
}

/* 更多设置入口 chevron 常态 → 按压时轻微前进反馈已在上方定义 */

/* 尊重系统"减弱动态效果" */
@media (prefers-reduced-motion: reduce) {
    .search-view.nv-in, .settings-more-page.nv-in,
    .search-view.nv-out, .settings-more-page.nv-out {
        animation: none;
    }
    .settings-more-entry:active .settings-row {
        transform: none;
    }
}

/* ============================================================
   语音输入按钮：聆听态视觉反馈（脉冲动效 + 图标变色）
   适用于移动悬浮按钮(.voice-input-btn) 与 大屏内联按钮(.search-voice-btn)
   ============================================================ */
@keyframes nyVoicePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.35); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 46, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}
.voice-input-btn.listening {
    color: var(--rausch);
    border-color: var(--rausch);
    animation: nyVoicePulse 1.4s ease-out infinite;
}
.voice-input-btn.listening svg { color: var(--rausch); }

.search-voice-btn.listening {
    background: var(--rausch);
    color: #fff;
    animation: nyVoicePulse 1.4s ease-out infinite;
}
.search-voice-btn.listening svg { color: #fff; }

/* 不支持语音输入的设备：按钮置灰禁用 */
.voice-input-btn.unsupported,
.search-voice-btn.unsupported {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .voice-input-btn.listening,
    .search-voice-btn.listening { animation: none; }
}
