/**
 * =============================================================================
 * 声匠前台 · 暗黑模式「唯一维护入口」
 * =============================================================================
 * 已迁入：原 dark-mode-fix 规则、header-styles.css 内全部 body.dark-mode（含顶栏/会员/表单/
 * 下拉/样音与老师页等）及移动端 max-width:960px 内暗黑规则。请勿在 header-styles 再写暗黑。
 *
 * 已迁入：index-hero、Index、teacher_card、discount-card、sound_list、teacher_list、
 * filter_horizontal、card_actions、sample_card、buttons、load_more_button、TeacherHome、
 * Master、footer、footer-buttons、footer-popups（组件内 body.dark-mode 已剥离至本文件）。
 *
 * 结构说明：
 *   1) Token：html/body.dark-mode 上的 --dm-* 与 header 迁入的 --bg-color 等
 *   2) 规则：播放器与列表修正 + 自 header 迁入的大段选择器
 * =============================================================================
 */

/* -----------------------------------------------------------------------------
 * 1. Token（改暗黑主题主色请只动这里）
 * ----------------------------------------------------------------------------- */
html.dark-mode,
body.dark-mode {
    color-scheme: dark;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #737373;
    --dm-page-bg: #111111;
    --dm-page-bg-gradient:
        linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.28) 55%, #111111 100%),
        linear-gradient(180deg, #111111 0%, #0d0d0d 55%, #0a0a0a 100%);
    --dm-nav-bg: rgba(17, 17, 17, 0.92);
    --dm-nav-border-bottom: rgba(255, 255, 255, 0.06);
    --dm-hero-nav-bg: rgba(17, 17, 17, 0.78);
    --dm-hero-bg: #111111;
    --dm-index-canvas: #111111;
    /* 卡片描边：紫色细线，与样音/老师卡主色 #818cf8 一致 */
    --dm-card-list-border: rgba(129, 140, 248, 0.35);
    --dm-card-list-border-hover: rgba(129, 140, 248, 0.65);
    --dm-card-border-glow: none;
    --dm-player-surface: #1a1a1a;
    --dm-player-surface-hover: #222222;
    --dm-player-border: rgba(255, 255, 255, 0.06);
    --dm-player-border-hover: rgba(255, 255, 255, 0.1);
    --dm-accent-cyan: #2dd4bf;
    --dm-play-hover: #5eead4;
    --dm-text-on-dark: #f5f5f5;
    --dm-tag-text: #a3a3a3;
    --dm-tag-border: #333333;
    --dm-placeholder-text: #737373;
    --dm-time-bg: rgba(17, 17, 17, 0.75);
    --dm-time-text: #5eead4;
    --dm-player-btn-border: #ffffff;
    --dm-player-btn-icon: #ffffff;
    /* 播放器按钮/波形/背景色由 admin_player_config + unified-wavesurfer-player.js 注入，勿在此写死覆盖 */
}

/* 页面氛围：与登录页 Hero 渐变底色一致（全站暗黑画布） */
html.dark-mode,
html.dark-mode:has(body.index-page),
html.dark-mode:has(body.hero-ambient-page),
body.dark-mode,
body.dark-mode.index-page,
body.dark-mode.hero-ambient-page,
html:not(.dark-mode) body.dark-mode {
    background-color: var(--dm-page-bg);
    background-image: var(--dm-page-bg-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
}

html.dark-mode,
html:not(.dark-mode) body.dark-mode {
    min-height: 100%;
}

html:not(.dark-mode) body.dark-mode {
    min-height: 100vh;
}

/* 内容区透明，露出统一页面底（橙色/自定义背景由 site-background.css 单独控制） */
html.dark-mode body.dark-mode:not(.index-page):not(.hero-ambient-page):not([class*="site-bg-"]) {
    background-color: transparent;
    background-image: none;
}

/* 2. 确保主体容器背景透明 */
body.dark-mode .Whole,
body.dark-mode .Content,
body.dark-mode .toubu {
    background-color: transparent;
}

/* 3. 样音/老师列表等卡片：透明底 + 统一半透明白边 */
body.dark-mode .Sound,
body.dark-mode .voice-card,
body.dark-mode .voice-card-inner,
body.dark-mode .Teacher,
body.dark-mode .discount-teacher-card .discount-teacher-inner,
body.dark-mode .Newest {
    background-color: transparent !important;
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    box-shadow: none;
}

/* 4. 列表内文字与标签 */
body.dark-mode:not(.index-page) .Sound h2,
body.dark-mode:not(.index-page) .Sound .sound-by h2 a,
body.dark-mode:not(.index-page) .voice-name,
body.dark-mode:not(.index-page) .discount-teacher-name,
body.dark-mode:not(.index-page) .Newest li a {
    color: var(--dm-text-on-dark);
}

body.dark-mode:not(.index-page) .voice-tag,
body.dark-mode:not(.index-page) .discount-teacher-tag {
    background-color: rgba(13, 148, 136, 0.07);
    color: var(--dm-tag-text);
    border: 1px solid var(--dm-tag-border);
}

/* 5. 导航栏：非首页在此铺底；首页仅 index-hero / .index-page 规则（勿用 body.dark-mode .nav 铺全站否则盖掉透明顶栏） */

/* ========================================
   6. 播放器组件（颜色/背景/边框以 admin_player_config 为准，经 JS 注入 --player-* 变量）
   列表非卡片透明、卡片模式保留背景：由 player-bg-hide + unified-wavesurfer-player.js 控制
   ======================================== */
body.dark-mode .unified-player-container,
body.dark-mode .module-player .unified-player-container {
    background-color: var(--player-waveform-bg-color, transparent);
    border: var(--player-border-width, 1px) solid var(--player-border-color, rgba(255, 255, 255, 0.06));
    border-radius: var(--player-border-radius, 8px);
    box-shadow: none;
}

body.dark-mode .unified-player-container:hover,
body.dark-mode .module-player .unified-player-container:hover {
    border-color: var(--player-border-color, rgba(255, 255, 255, 0.1));
}

body.dark-mode .waveform-container,
body.dark-mode .module-player .waveform-container {
    background: transparent;
    border-color: var(--dm-player-border);
}

body.dark-mode .waveform-container:hover,
body.dark-mode .module-player .waveform-container:hover {
    background: transparent;
    border-color: var(--dm-player-border-hover);
}

body.dark-mode .unified-player-button .btn:not(.playing),
body.dark-mode .module-player .unified-player-button .btn:not(.playing),
body.dark-mode .Teacher .unified-player-button .btn:not(.playing),
body.dark-mode .audio_teacher_list .unified-player-button .btn:not(.playing),
body.dark-mode .voice-card .unified-player-button .btn:not(.playing),
body.dark-mode .discount-teacher-card .unified-player-button .btn:not(.playing),
body.dark-mode .btn[onclick*="stopall"]:not(.playing),
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)),
body.dark-mode .sample-card-item .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)),
body.dark-mode .voice-card .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)) {
    background: var(--player-button-pause-bg-color, transparent) !important;
    border: var(--player-button-border-width, 1.5px) solid var(--player-button-border-color, #ffffff) !important;
    box-shadow: none !important;
}

body.dark-mode .unified-player-button .btn:not(.playing):hover,
body.dark-mode .module-player .unified-player-button .btn:not(.playing):hover,
body.dark-mode .Teacher .unified-player-button .btn:not(.playing):hover,
body.dark-mode .audio_teacher_list .unified-player-button .btn:not(.playing):hover,
body.dark-mode .voice-card .unified-player-button .btn:not(.playing):hover,
body.dark-mode .discount-teacher-card .unified-player-button .btn:not(.playing):hover,
body.dark-mode .btn[onclick*="stopall"]:not(.playing):hover,
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover,
body.dark-mode .sample-card-item .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover,
body.dark-mode .voice-card .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover {
    background: var(--player-button-hover-bg-color, #ffffff) !important;
    border-color: var(--player-button-hover-color, #ffffff) !important;
}

/* 播放中：恢复后台配置的橙色（不受暗黑模式白边框影响） */
body.dark-mode .unified-player-button .btn.playing,
body.dark-mode .btn[onclick*="stopall"].playing,
body.dark-mode .sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode .sample-item .controls.playing .btn-primary,
body.dark-mode #sound_list .sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode #samples-container .sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode .samples-grid .sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode .TeacherHome .sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode .index-sample-item .controls .btn-primary:has(.glyphicon-pause),
body.dark-mode .sound-list-container .Sound .controls .btn-primary:has(.glyphicon-pause) {
    border-color: var(--player-button-playing-color, #ffffff) !important;
    background: var(--player-button-playing-bg-color, transparent) !important;
}

body.dark-mode .unified-player-button .btn .play-icon,
body.dark-mode .unified-player-button .btn .play-triangle,
body.dark-mode .controls .glyphicon-play {
    fill: var(--player-button-play-icon-color, #ffffff);
}

/* 白底引用卡：不套用全站暗黑白图标，由 applyButtonStyle 内联 !important 控制 */
body.dark-mode #cs-context-card .unified-player-button .btn .play-triangle,
body.dark-mode #cs-context-card .unified-player-button .btn .pause-rect-1,
body.dark-mode #cs-context-card .unified-player-button .btn .pause-rect-2,
body.dark-mode .cs-context-card .unified-player-button .btn .play-triangle,
body.dark-mode .cs-context-card .unified-player-button .btn .pause-rect-1,
body.dark-mode .cs-context-card .unified-player-button .btn .pause-rect-2,
body.dark-mode .player-surface-light .unified-player-button .btn .play-triangle,
body.dark-mode .player-surface-light .unified-player-button .btn .pause-rect-1,
body.dark-mode .player-surface-light .unified-player-button .btn .pause-rect-2 {
    fill: unset;
}

body.dark-mode .unified-player-button .btn:not(.playing):hover .play-icon,
body.dark-mode .unified-player-button .btn:not(.playing):hover .play-triangle,
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover .glyphicon-play {
    fill: var(--player-button-pause-icon-color, #1a1a1a);
}

body.dark-mode .unified-player-button .btn.playing .play-icon::before,
body.dark-mode .unified-player-button .btn.playing .play-icon::after,
body.dark-mode .controls .glyphicon-play.glyphicon-pause::before,
body.dark-mode .controls .glyphicon-play.glyphicon-pause::after {
    background-color: #ffffff;
}

body.dark-mode:not(.index-page) .unified-player-time,
body.dark-mode:not(.index-page) .current-time-on-pointer,
body.dark-mode:not(.index-page) .current-time-on-pointer-home {
    color: var(--dm-time-text);
    background-color: var(--dm-time-bg);
}

body.dark-mode .sample-card-item .waveform-container {
    background: transparent;
    border: 1px solid var(--dm-player-border);
    border-radius: 8px;
    box-shadow: none;
}

body.dark-mode .sample-card-item:hover .waveform-container {
    background: transparent;
    border-color: var(--dm-player-border-hover);
    box-shadow: none;
}

 

body.dark-mode:not(.index-page) .Teacher:hover .audio_teacher_list {
    background: transparent;
    border-color: var(--dm-player-border-hover);
}

/* ========================================
   7. 播放按钮强制覆盖
   ======================================== */
body.dark-mode .btn[class*="play"]:not(.playing),
body.dark-mode .btn.btn-primary[style*="border-radius"]:not(.playing),
body.dark-mode .controls .btn:not(.playing),
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)),
body.dark-mode [class*="player"] .btn:not(.playing),
body.dark-mode [class*="player"] .btn-primary:not(.playing) {
    background: var(--player-button-pause-bg-color, transparent) !important;
    border: var(--player-button-border-width, 1.5px) solid var(--player-button-border-color, #ffffff) !important;
    color: var(--player-button-play-icon-color, #ffffff);
}

body.dark-mode .btn[class*="play"]:not(.playing):hover,
body.dark-mode .btn.btn-primary[style*="border-radius"]:not(.playing):hover,
body.dark-mode .controls .btn:not(.playing):hover,
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover,
body.dark-mode [class*="player"] .btn:not(.playing):hover,
body.dark-mode [class*="player"] .btn-primary:not(.playing):hover {
    background: var(--player-button-hover-bg-color, #ffffff) !important;
    border-color: var(--player-button-hover-color, #ffffff) !important;
}

body.dark-mode .glyphicon-play,
body.dark-mode [class*="play-icon"],
body.dark-mode [class*="play-triangle"],
body.dark-mode .controls i {
    border-color: transparent transparent transparent var(--dm-player-btn-icon, #ffffff);
    color: #ffffff;
    fill: var(--dm-player-btn-icon, #ffffff);
}

/* 客服/引用卡波形播放键：跟随后台播放器变量，勿套用上方全站白三角/白暂停条 */
body.dark-mode #cs-chat-window-modern .cs-wave-play-btn,
body.dark-mode #cs-context-card .cs-wave-play-btn,
body.dark-mode .cs-context-card .cs-wave-play-btn {
    border-color: var(--button-border-color, var(--player-button-border-color, #333333)) !important;
    background: var(--button-pause-bg-color, var(--player-button-pause-bg-color, transparent)) !important;
}

body.dark-mode #cs-chat-window-modern .cs-wave-play-btn:not(.playing) .play-icon,
body.dark-mode #cs-context-card .cs-wave-play-btn:not(.playing) .play-icon,
body.dark-mode .cs-context-card .cs-wave-play-btn:not(.playing) .play-icon {
    border-left-color: var(--button-play-icon-color, var(--player-button-play-icon-color, #000000)) !important;
    color: inherit !important;
    fill: inherit !important;
}

body.dark-mode #cs-chat-window-modern .cs-wave-play-btn:hover,
body.dark-mode #cs-context-card .cs-wave-play-btn:hover,
body.dark-mode .cs-context-card .cs-wave-play-btn:hover {
    background: var(--button-hover-color, var(--player-button-hover-bg-color, #ff9800)) !important;
    border-color: var(--button-hover-color, var(--player-button-hover-color, #ff9800)) !important;
}

body.dark-mode #cs-chat-window-modern .cs-wave-play-btn:hover .play-icon,
body.dark-mode #cs-context-card .cs-wave-play-btn:hover .play-icon,
body.dark-mode .cs-context-card .cs-wave-play-btn:hover .play-icon {
    border-left-color: var(--button-pause-icon-color, var(--player-button-pause-icon-color, #000000)) !important;
}

body.dark-mode #cs-chat-window-modern .cs-wave-play-btn.playing,
body.dark-mode #cs-context-card .cs-wave-play-btn.playing,
body.dark-mode .cs-context-card .cs-wave-play-btn.playing {
    border-color: var(--button-playing-color, var(--player-button-playing-color, #ff9800)) !important;
    background: var(--button-playing-bg-color, var(--player-button-playing-bg-color, transparent)) !important;
}

body.dark-mode #cs-chat-window-modern .cs-wave-play-btn.playing .play-icon::before,
body.dark-mode #cs-chat-window-modern .cs-wave-play-btn.playing .play-icon::after,
body.dark-mode #cs-context-card .cs-wave-play-btn.playing .play-icon::before,
body.dark-mode #cs-context-card .cs-wave-play-btn.playing .play-icon::after,
body.dark-mode .cs-context-card .cs-wave-play-btn.playing .play-icon::before,
body.dark-mode .cs-context-card .cs-wave-play-btn.playing .play-icon::after {
    background-color: var(--button-playing-color, var(--player-button-playing-color, #ff9800)) !important;
}

body.dark-mode .controls .btn:not(.playing):hover .glyphicon-play,
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover .glyphicon-play,
body.dark-mode .controls .btn:not(.playing):hover i,
body.dark-mode .controls .btn-primary:not(.playing):not(:has(.glyphicon-pause)):hover i,
body.dark-mode .unified-player-button .btn:not(.playing):hover .play-triangle {
    border-left-color: var(--player-button-pause-icon-color, #1a1a1a);
    fill: var(--player-button-pause-icon-color, #1a1a1a);
}

body.dark-mode .glyphicon-pause,
body.dark-mode .glyphicon-play.glyphicon-pause {
    color: #ffffff;
}

body.dark-mode .glyphicon-pause::before,
body.dark-mode .glyphicon-pause::after,
body.dark-mode .glyphicon-play.glyphicon-pause::before,
body.dark-mode .glyphicon-play.glyphicon-pause::after {
    background-color: #ffffff;
}

/* 全站样音卡片播放按钮：覆盖 sound_list / TeacherHome / Index 等页面内 #000 描边（非播放态） */
body.dark-mode .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode #sound_list .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode #samples-container .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode .samples-grid .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode .TeacherHome .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode .index-sample-item .controls .btn-primary:not(:has(.glyphicon-pause)),
body.dark-mode .sound-list-container .Sound .controls .btn-primary:not(:has(.glyphicon-pause)) {
    border-color: #ffffff !important;
    background: transparent !important;
}

body.dark-mode .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode #sound_list .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode #samples-container .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode .samples-grid .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode .TeacherHome .sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode .index-sample-item .controls .btn-primary:not(:has(.glyphicon-pause)):hover,
body.dark-mode .sound-list-container .Sound .controls .btn-primary:not(:has(.glyphicon-pause)):hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

body.dark-mode .sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode #sound_list .sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode #samples-container .sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .samples-grid .sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .TeacherHome .sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .index-sample-item .controls .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .sound-list-container .Sound .controls .glyphicon-play:not(.glyphicon-pause) {
    border-color: transparent transparent transparent #ffffff !important;
}

body.dark-mode .sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode #sound_list .sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode #samples-container .sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .samples-grid .sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .TeacherHome .sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .index-sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause),
body.dark-mode .sound-list-container .Sound .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause) {
    border-left-color: #1a1a1a !important;
}

body.dark-mode .unified-player-button .btn:not(.playing) .play-triangle {
    fill: var(--player-button-play-icon-color, #ffffff) !important;
}

body.dark-mode .unified-player-button .btn:not(.playing):hover .play-triangle {
    fill: var(--player-button-pause-icon-color, #1a1a1a) !important;
}

body.dark-mode:not(.index-page) .Sound .controls,
body.dark-mode:not(.index-page) .Sound .waveform-container {
    background: transparent;
    border-color: var(--player-border-color, rgba(255, 255, 255, 0.06));
}

body.dark-mode:not(.index-page) .Sound:hover .controls,
body.dark-mode:not(.index-page) .Sound:hover .waveform-container {
    border-color: var(--dm-player-border-hover);
}

/* 样音列表 .sample-item：勿强制 unified-player-container 透明，否则会盖住卡片模式 dark_mode_bg_color */
body.dark-mode:not(.index-page) .sample-item .waveform-container {
    background: transparent;
    border-color: var(--dm-player-border);
    border-radius: 8px;
    box-shadow: none;
}

body.dark-mode:not(.index-page) .sample-item:hover .waveform-container {
    border-color: var(--dm-player-border-hover);
}

/* ========================================
   8. 播放器占位符
   ======================================== */
body.dark-mode .unified-player-placeholder,
body.dark-mode [id^="unified-player-placeholder-"] {
    background-color: transparent;
    background: transparent;
    border: 1px dashed var(--dm-player-border);
    color: var(--dm-placeholder-text);
}

body.dark-mode .waveform-placeholder {
    background: transparent;
    border: 1px dashed var(--dm-player-border);
    color: var(--dm-placeholder-text);
}

body.dark-mode .unified-player-placeholder span,
body.dark-mode .waveform-placeholder span {
    color: var(--dm-placeholder-text);
}


/* =============================================================================
 * 以下自 header-styles.css 迁入（2026-04-02），请勿在 header-styles 重复写 body.dark-mode
 * ============================================================================= */

body.dark-mode .drawer-icon svg {
    fill: #ffffff;
}

/* Logo暗黑模式 - 实心「匠」字图标直接显示（旧版透明底 Logo 的 invert/lighten 已不适用） */
body.dark-mode .nav-logo img {
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1;
}

body.dark-mode .user-avatar {
    background-color: #0d9488;
    color: #ffffff;
}

body.dark-mode .user-avatar:hover {
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.5);
}

body.dark-mode .user-links a {
    color: #ffffff;
    border-color: #0d9488;
}

body.dark-mode .user-links a:hover {
    color: #ffffff;
    background-color: rgba(99, 102, 241, 0.2);
}

/* 深色模式下登录按钮（与 .site-layout-toggle 同款浅底） */
body.dark-mode #login-btn {
    border-color: #fff !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #login-btn:hover {
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}
/* 深色模式变量 - 极简灰调暗色版 */
body.dark-mode {
    /* 基础色（引用顶部 dm-*） */
    --bg-color: var(--dm-page-bg);
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: var(--dm-nav-bg);
    --shadow-color: rgba(0, 0, 0, 0.45);
    
    --primary-color: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-light: rgba(45, 212, 191, 0.12);
    --hover-bg: rgba(45, 212, 191, 0.08);
    --secondary-color: #38bdf8;
    --secondary-hover: #7dd3fc;
    --drawer-bg: #1a1a1a;
    --drawer-header-bg: #222222;
    --input-bg: #1a1a1a;
    --input-text: #f5f5f5;
    --input-border: #333333;
    --btn-primary-bg: #0d9488;
    --btn-primary-text: #ffffff;
    --btn-default-bg: #222222;
    --btn-default-text: #f5f5f5;
    --table-header-bg: #222222;
    --table-border: #2e2e2e;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    --divider-color: #2e2e2e;
    --link-color: #5eead4;
    --link-hover: #99f6e4;
    --overlay-bg: rgba(17, 17, 17, 0.75);
    --success-color: #2dd4bf;
    --warning-color: #d97706;
    --error-color: #e8798a;
    --info-color: #60a5fa;
    
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 导航栏 - 与画布同系、轻磨砂（不含首页 index-page，首页顶栏透明见下文） */
body.dark-mode:not(.index-page):not(.hero-ambient-page) .nav {
    background: var(--dm-nav-bg);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--dm-nav-border-bottom);
}

/* PC 顶栏主导航深色模式：与首页 body.dark-mode.index-page 一致（仅 ≥961px，避免覆盖移动端抽屉内 pill 样式） */
@media screen and (min-width: 961px) {
    body.dark-mode .main-nav .nav-link {
        color: rgba(255, 255, 255, 0.92);
        border-left-color: transparent;
        font-weight: 600;
    }

    body.dark-mode .main-nav .nav-link:hover {
        background-color: transparent !important;
        border-left-color: transparent;
        color: #86efac !important;
    }

    body.dark-mode .main-nav .nav-link.active {
        background-color: transparent !important;
        border-left-color: transparent;
        color: #ffffff !important;
        font-weight: 700;
    }

    body.dark-mode .main-nav .nav-link::after {
        background: rgba(74, 222, 128, 0.75);
    }

    body.dark-mode .main-nav .nav-link.active::after {
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
    }
}

/* 手机端菜单深色模式 - 由移动端媒体查询统一管理 */

body.dark-mode .nav-icon {
    color: #ffffff;
}

body.dark-mode .menu-overlay {
    background-color: rgba(0,0,0,0.8);
}

body.dark-mode .menu-toggle span {
    background: #e0e0e0;
}

/* 抽屉样式 - 深色模式 */
body.dark-mode .user-drawer {
    background-color: var(--drawer-bg);
}

body.dark-mode .drawer-header {
    background-color: var(--drawer-header-bg);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .drawer-header h3 {
    color: #ffffff;
}

body.dark-mode .user-info {
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .dark-mode-toggle span {
    color: #e0e0e0;
}

body.dark-mode .toggle-slider {
    background-color: #555;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
    background-color: #9c27b0;
}

body.dark-mode .drawer-link {
    color: #ffffff;
}

body.dark-mode .drawer-link:hover {
    background-color: var(--hover-bg);
}

body.dark-mode .drawer-submenu {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .drawer-sublink {
    color: #cccccc;
}

body.dark-mode .drawer-sublink:hover {
    background-color: var(--hover-bg);
    color: #ffffff;
}

body.dark-mode .dropdown-arrow {
    fill: #ffffff;
}

/* 容器和内容区域 */
body.dark-mode .section, 
body.dark-mode .container,
body.dark-mode .layui-container,
body.dark-mode .layui-row,
body.dark-mode .layui-col-md12,
body.dark-mode .content-area,
body.dark-mode .main-content {
    background-color: var(--dm-page-bg);
    color: var(--text-color);
}

/* 顶栏内 .layui-container 不铺底：否则盖住 .nav 的透明/Hero 背景（首页等） */
body.dark-mode .nav > .layui-container {
    background-color: transparent !important;
    color: inherit;
}

/* 卡片样式 */
body.dark-mode .card,
body.dark-mode .layui-card,
body.dark-mode .box,
body.dark-mode .panel,
body.dark-mode .layui-panel {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

body.dark-mode .card-header,
body.dark-mode .layui-card-header,
body.dark-mode .box-header,
body.dark-mode .panel-header {
    /* background-color: var(--drawer-header-bg); */
    /* border-bottom: 1px solid var(--border-color); */
    color: var(--text-color);
}

/* 表格样式 */
body.dark-mode table,
body.dark-mode .layui-table {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--table-border);
}

body.dark-mode th,
body.dark-mode .layui-table thead tr {
    background-color: var(--table-header-bg);
    color: var(--text-color);
    border-color: var(--table-border);
}

body.dark-mode td,
body.dark-mode .layui-table tbody tr {
    border-color: var(--table-border);
}

body.dark-mode .layui-table-hover tbody tr:hover,
body.dark-mode .layui-table tbody tr:hover {
    background-color: var(--hover-bg);
}

/* 表单样式 */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .layui-input,
body.dark-mode .layui-textarea,
body.dark-mode .layui-select {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--input-border);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus,
body.dark-mode .layui-input:focus,
body.dark-mode .layui-textarea:focus {
    border-color: var(--link-color);
}

body.dark-mode label,
body.dark-mode .layui-form-label {
    color: var(--text-color);
}

 

body.dark-mode .btn-default,
body.dark-mode .layui-btn-default {
    background-color: var(--btn-default-bg) !important;
    color: var(--btn-default-text);
}

body.dark-mode .btn-primary,
body.dark-mode .layui-btn-primary {
    background-color: #0d948800 !important;
    color: var(--btn-primary-text);
}

/* 链接样式 */
body.dark-mode a {
    color: var(--link-color);
}

body.dark-mode a:hover {
    color: var(--link-hover);
}

/* 主题分类标题 */
body.dark-mode .theme-category-title {
    color: #fff;
}

/* 样音列表页面：卡片透明（与 sound_list.css / Index 一致；勿在此铺实色底） */
body.dark-mode .sample-item {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
}

body.dark-mode .sample-item:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: none !important;
}

/* 样音库 / 老师主页 列表·双列 strip：分割线 + 等距悬停，不加外框（配色见 sound-card-config-css） */
body.dark-mode #sound_list.list-view .sample-item,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item,
body.dark-mode #samples-container.list-view .sample-item,
body.dark-mode .samples-grid.list-view .sample-item,
body.dark-mode #samples-container:not(.list-view):not(.card-view) .sample-item,
body.dark-mode .samples-grid:not(.list-view):not(.card-view) .sample-item {
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode #sound_list.list-view .sample-item:hover,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item:hover,
body.dark-mode #samples-container.list-view .sample-item:hover,
body.dark-mode .samples-grid.list-view .sample-item:hover,
body.dark-mode #samples-container:not(.list-view):not(.card-view) .sample-item:hover,
body.dark-mode .samples-grid:not(.list-view):not(.card-view) .sample-item:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode .sample-item .sample-title {
    color: #ffffff !important;
}

body.dark-mode .sample-item .sample-style {
    color: #b0adb3 !important;
}

body.dark-mode .teacher-code {
    color: #b0adb3 !important;
}

body.dark-mode .teacher-link {
    color: #ffffff !important;
}

body.dark-mode .sample-actions a {
    color: #b0adb3 !important;
}

body.dark-mode .sample-actions a:hover {
    color: #0d9488 !important;
    background: transparent !important;
}

body.dark-mode .sample-avatar-container {
    border-color: #555 !important;
}

body.dark-mode .sample-actions .icon-order,
body.dark-mode .sample-actions .icon-download,
body.dark-mode .sample-actions .icon-star {
    stroke: #ffffff !important;
}

body.dark-mode .sample-actions .icon-star.filled {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

 

body.dark-mode .sample-actions a svg path {
    stroke: #ffffff !important;
}

/* 水平筛选条暗黑样式统一在 css/web/components/filter_horizontal.css（避免与组件重复、与 TeacherHome 冲突） */

/* 非 filter 组件内的搜索框（旧页） */
body.dark-mode .search-area input[type="text"] {
    background: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f9fafb !important;
}

body.dark-mode .search-area input[type="text"]:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .search-area input[type="submit"] {
    background: #0d9488 !important;
}

body.dark-mode .search-area input[type="submit"]:hover {
    background: #3d9d91 !important;
}

/* 样音列表筛选标签 */
body.dark-mode .filter-tags .filter-tag a {
    background: transparent !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .filter-tags .filter-tag a:hover,
body.dark-mode .filter-tags .filter-tag a.active {
    background: transparent !important;
    border-color: #0d9488 !important;
    color: #a5b4fc !important;
}

/* 样音列表筛选结果显示 */
body.dark-mode .Selected {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .Selected a {
    background: transparent !important;
    color: #81c0ff !important;
    border: 1px solid rgba(74, 144, 226, 0.45) !important;
}

body.dark-mode .Selected a:hover {
    background: transparent !important;
    border-color: rgba(74, 144, 226, 0.65) !important;
    color: #a5b4fc !important;
}

body.dark-mode .Selected a img {
    filter: brightness(0) invert(1) !important;
}

body.dark-mode .Selected span {
    color: #ffffff !important;
}

body.dark-mode .NoFilters span {
    color: #b0adb3 !important;
}

body.dark-mode .search-tag {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .search-tag:hover {
    background: #383838 !important;
}

body.dark-mode .clear-filter {
    background: transparent !important;
    color: #0d9488 !important;
    border-color: #0d9488 !important;
}

body.dark-mode .clear-filter:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

/* 配音员入驻 teacher_apply.php（.teacher-apply-page：透明底、不污染其它 .compact-form） */
body.dark-mode .teacher-apply-page.compact-form {
    background: transparent;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .teacher-apply-page .form-header {
    background: transparent;
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .teacher-apply-page .form-header h1 {
    color: #f1f5f9;
}

body.dark-mode .teacher-apply-page .form-nav {
    color: #94a3b8;
}

body.dark-mode .teacher-apply-page .form-section {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .teacher-apply-page .section-title {
    color: #cbd5e1;
    border-left-color: #818cf8;
}

body.dark-mode .teacher-apply-page .form-label {
    color: #94a3b8;
}

body.dark-mode .teacher-apply-page .form-input,
body.dark-mode .teacher-apply-page .form-textarea,
body.dark-mode .teacher-apply-page select.form-input {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

body.dark-mode .teacher-apply-page select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2394a3b8' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
}

body.dark-mode .teacher-apply-page select.form-input option {
    background-color: #1a1a1a;
    color: #e2e8f0;
}

body.dark-mode .teacher-apply-page .form-input:focus,
body.dark-mode .teacher-apply-page .form-textarea:focus,
body.dark-mode .teacher-apply-page select.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

body.dark-mode .teacher-apply-page .form-input::placeholder,
body.dark-mode .teacher-apply-page .form-textarea::placeholder {
    color: #64748b;
}

body.dark-mode .teacher-apply-page .form-input.error {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

body.dark-mode .teacher-apply-page .field-error {
    color: #f87171;
}

body.dark-mode .teacher-apply-page .select-trigger {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .teacher-apply-page .select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

body.dark-mode .teacher-apply-page .select-trigger.active {
    border-color: #6366f1;
}

body.dark-mode .teacher-apply-page .select-placeholder {
    color: #64748b;
}

body.dark-mode .teacher-apply-page .select-placeholder.has-selection {
    color: #f1f5f9;
}

body.dark-mode .teacher-apply-page .select-arrow::before {
    border-top-color: #94a3b8;
}

body.dark-mode .teacher-apply-page .select-options {
    background: rgba(15, 17, 23, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.dark-mode .teacher-apply-page .select-option {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .teacher-apply-page .select-option:hover {
    background: rgba(99, 102, 241, 0.12);
}

body.dark-mode .teacher-apply-page .option-text {
    color: #e2e8f0;
}

body.dark-mode .teacher-apply-page .option-checkbox {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .teacher-apply-page .select-option:hover .option-checkbox {
    border-color: #818cf8;
}

body.dark-mode .teacher-apply-page .select-option input[type="checkbox"]:checked ~ .option-checkbox {
    background: #6366f1;
    border-color: #6366f1;
}

body.dark-mode .teacher-apply-page .file-upload-label {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    border-style: dashed;
    color: #94a3b8;
}

body.dark-mode .teacher-apply-page .file-upload-label small {
    color: #64748b;
}

body.dark-mode .teacher-apply-page .file-upload:hover .file-upload-label {
    border-color: #818cf8;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.08);
}

body.dark-mode .teacher-apply-page .file-upload.file-selected .file-upload-label {
    border-color: #3d9d91;
    background: rgba(13, 148, 136, 0.1);
    color: #6ee7b7;
}

body.dark-mode .teacher-apply-page .file-info {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .teacher-apply-page .file-name {
    color: #e2e8f0;
}

body.dark-mode .teacher-apply-page .file-size {
    color: #94a3b8;
}

body.dark-mode .teacher-apply-page .upload-hint {
    color: #64748b;
}

body.dark-mode .teacher-apply-page .submit-btn {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.65);
    color: #c7d2fe;
}

body.dark-mode .teacher-apply-page .submit-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #eef2ff;
}

body.dark-mode .teacher-apply-page .submit-btn:disabled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: #71717a;
}

/* 入驻页弹窗（仅本页 .teacher-apply-modal） */
body.dark-mode .teacher-apply-modal .modal-box {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .teacher-apply-modal .modal-title {
    color: #f1f5f9;
}

body.dark-mode .teacher-apply-modal .modal-message {
    color: #94a3b8;
}

body.dark-mode .teacher-apply-modal .modal-btn {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.65);
    color: #c7d2fe;
}

body.dark-mode .teacher-apply-modal .modal-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #eef2ff;
}

/* 老师详情页面 */
body.dark-mode .TeacherHome {
    background: transparent !important;
    --th-panel-tint-bg: rgba(255, 255, 255, 0.08);
    --tvcbook-stats-bar-bg: var(--th-panel-tint-bg);
}

body.dark-mode .TeacherBanner {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

body.dark-mode .TeacherBanner h3,
body.dark-mode .TeacherBanner h4 {
    color: #ffffff !important;
}

body.dark-mode .teacher-scroll-header {
    background: rgba(26, 28, 40, 0.98) !important;
    box-shadow: none !important;
}

body.dark-mode .teacher-scroll-header .tsh-user-name {
    color: #f1f5f9 !important;
}

body.dark-mode .teacher-scroll-header .tsh-share {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .teacher-scroll-header .tsh-share:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .teacher-scroll-header .tsh-user-block {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .teacher-scroll-header .tsh-contact.Btn01-inline {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .teacher-scroll-header .tsh-btn-follow.Btn02-inline:not(.cancel_collection) {
    background: #818cf8 !important;
    color: #fff !important;
}

body.dark-mode .teacher-scroll-header .cancel_collection.Btn02-inline {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .teacher-info,
body.dark-mode .teacher-stats {
    color: #b0adb3 !important;
}

body.dark-mode .teacher-card,
body.dark-mode .info-card {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .teacher-card:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
}

body.dark-mode .price-section {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #0d9488 !important;
}

body.dark-mode .price-value {
    color: #ffffff !important;
}

body.dark-mode .price-label {
    color: #b0adb3 !important;
}

body.dark-mode .teacher-tags span,
body.dark-mode .teacher-tags a {
    background: transparent !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .teacher-tags span:hover,
body.dark-mode .teacher-tags a:hover {
    background: transparent !important;
    border-color: #0d9488 !important;
    color: #a5b4fc !important;
}

body.dark-mode .teacher-intro,
body.dark-mode .teacher-description {
    color: #b0adb3 !important;
}

body.dark-mode .section-title,
body.dark-mode .category-title {
    color: #ffffff !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .contact-btn,
body.dark-mode .action-btn {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .contact-btn:hover,
body.dark-mode .action-btn:hover {
    background: #3d9d91 !important;
}

body.dark-mode .stats-item {
    color: #b0adb3 !important;
}

body.dark-mode .stats-value {
    color: #ffffff !important;
}

body.dark-mode .sample-count {
    color: #b0adb3 !important;
}

body.dark-mode .mingzi {
    color: #ffffff !important;
}

body.dark-mode .BtnBar a.Btn01,
body.dark-mode .BtnBar a.Btn02 {
    border-color: #3a3a51 !important;
    color: #ffffff !important;
}

body.dark-mode .BtnBar a.Btn01:hover,
body.dark-mode .BtnBar a.Btn02:hover {
    background: #0d9488 !important;
}

body.dark-mode .Volume {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .Volume span.Number {
    color: #ffffff !important;
}

body.dark-mode .Volume span.LineThrough {
    color: #666 !important;
}

body.dark-mode .Column_Show {
    background: transparent !important;
}

body.dark-mode .samples-grid,
body.dark-mode #samples-container {
    background: transparent !important;
}

body.dark-mode .TeacherHome .samples-grid,
body.dark-mode .TeacherHome #samples-container {
    background: transparent !important;
}

body.dark-mode .TeacherHome-right-column {
    background: transparent !important;
}

body.dark-mode .TeacherHome-left-column {
    background: transparent !important;
}

body.dark-mode .no-sounds {
    color: #b0adb3 !important;
}

body.dark-mode .loading-message {
    color: #b0adb3 !important;
}

body.dark-mode .filter-count {
    color: #b0adb3 !important;
}

body.dark-mode .total-count {
    color: #ffffff !important;
}

body.dark-mode .clear-all {
    color: #0d9488 !important;
}

body.dark-mode .clear-all:hover {
    color: #3d9d91 !important;
}

/* 会员中心页面 */
body.dark-mode {
    background: var(--dm-hero-bg) !important;
    background-image: none !important;
}

body.dark-mode .member-page-container {
    background: transparent;
}

body.dark-mode .member-page-content {
    background: transparent;
}

body.dark-mode .content-main {
    background: transparent;
}

/* 会员中心：基本信息 / 修改密码 / 找回密码（透明底 + 描边，无 !important） */
body.dark-mode .member-page-container .page-form-card {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .member-page-container .page-form-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .member-page-container .page-form-title {
    color: #f1f5f9;
}

body.dark-mode .member-page-container .form-label {
    color: #94a3b8;
}

body.dark-mode .member-page-container .form-label-hint {
    color: #64748b;
}

body.dark-mode .member-page-container .form-input,
body.dark-mode .member-page-container .form-textarea {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

body.dark-mode .member-page-container .form-input::placeholder,
body.dark-mode .member-page-container .form-textarea::placeholder {
    color: #64748b;
}

body.dark-mode .member-page-container .form-input:focus,
body.dark-mode .member-page-container .form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.dark-mode .member-page-container .form-input[readonly],
body.dark-mode .member-page-container input.form-input[readonly],
body.dark-mode .member-page-container .form-input-readonly {
    background: transparent;
    color: #94a3b8;
}

body.dark-mode .member-page-container .form-radio-label {
    color: #e2e8f0;
}

body.dark-mode .member-page-container .form-radio-label input[type="radio"] {
    accent-color: #6366f1;
}

body.dark-mode .member-page-container .toggle-pwd {
    color: #cbd5e1;
    opacity: 0.9;
}

body.dark-mode .member-page-container .form-submit-btn {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.65);
    color: #c7d2fe;
}

body.dark-mode .member-page-container .form-submit-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #eef2ff;
}

body.dark-mode .member-page-container .code-inline-btn {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.65);
    color: #c7d2fe;
}

body.dark-mode .member-page-container .code-inline-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #eef2ff;
}

body.dark-mode .member-page-container .code-inline-btn:disabled,
body.dark-mode .member-page-container .form-submit-btn:disabled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: #71717a;
    filter: none;
    cursor: not-allowed;
}

body.dark-mode .member-page-container .field-msg.error {
    color: #f87171;
}

body.dark-mode .member-page-container .field-msg.success {
    color: #4ade80;
}

body.dark-mode .member-page-container .reset-success-box p {
    color: #94a3b8;
}

body.dark-mode .member-page-container .reset-success-box svg {
    color: #4ade80;
}

body.dark-mode .content-banner {
    background: linear-gradient(135deg, #0d9488 0%, #3d9d91 100%) !important;
}

body.dark-mode .banner-title {
    color: #ffffff !important;
}

body.dark-mode .banner-subtitle {
    color: #ffffff !important;
}

body.dark-mode .dashboard-card {
    background: var(--dm-page-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .dashboard-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode .card-header {
    border-bottom-color: #333 !important;
}

body.dark-mode .card-title {
    color: #ffffff !important;
}

body.dark-mode .card-more {
    color: #0d9488 !important;
}

body.dark-mode .card-content {
    color: #b0adb3 !important;
}

body.dark-mode .stats-grid {
    background: transparent !important;
}



body.dark-mode .stat-number {
    color: #ffffff !important;
}

body.dark-mode .stat-label {
    color: #b0adb3 !important;
}

body.dark-mode .quick-actions {
    background: transparent !important;
}

body.dark-mode .action-btn {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .action-btn:hover {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .member-nav-card,
body.dark-mode .MemberLeft {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .nav-user-info {
    border-bottom-color: #333 !important;
}

body.dark-mode .nav-user-avatar {
    background: linear-gradient(135deg, #0d9488 0%, #3d9d91 100%) !important;
}

body.dark-mode .nav-user-name {
    color: #ffffff !important;
}

body.dark-mode .nav-user-status {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .nav-user-status.vip {
    background: linear-gradient(135deg, #0d9488 0%, #3d9d91 100%) !important;
    color: #ffffff !important;
}

body.dark-mode .MemberLeft ul {
    background: transparent !important;
}

body.dark-mode .MemberLeft a {
    color: #b0adb3 !important;
}

body.dark-mode .MemberLeft a:hover,
body.dark-mode .MemberLeft a.active {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .member-nav,
body.dark-mode .member-sidebar {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .member-nav-link,
body.dark-mode .member-sidebar a {
    color: #b0adb3 !important;
}

body.dark-mode .member-nav-link:hover,
body.dark-mode .member-sidebar a:hover,
body.dark-mode .member-nav-link.active,
body.dark-mode .member-sidebar a.active {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .content-main {
    background: transparent !important;
}

body.dark-mode .member-card,
body.dark-mode .order-card,
body.dark-mode .info-card {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .member-card:hover,
body.dark-mode .order-card:hover {
    background: #252525 !important;
}

body.dark-mode .card-title,
body.dark-mode .order-title {
    color: #ffffff !important;
}

body.dark-mode .card-content,
body.dark-mode .order-content {
    color: #b0adb3 !important;
}

body.dark-mode .order-status {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #0d9488 !important;
}

body.dark-mode .order-status.completed {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
}

body.dark-mode .order-status.cancelled {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff4444 !important;
}

body.dark-mode .action-btn {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .action-btn:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .action-btn.primary {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .action-btn.primary:hover {
    background: #3d9d91 !important;
}

body.dark-mode .member-stats {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

 

body.dark-mode .stat-value {
    color: #ffffff !important;
}

body.dark-mode .member-info-item {
    border-bottom-color: #333 !important;
}

body.dark-mode .member-info-label {
    color: #b0adb3 !important;
}

body.dark-mode .member-info-value {
    color: #ffffff !important;
}

body.dark-mode .order-grid,
body.dark-mode .voice-section {
    background: transparent !important;
}

body.dark-mode .voice-title a {
    color: #ffffff !important;
}

body.dark-mode .order-info {
    color: #b0adb3 !important;
}

body.dark-mode .nav-item {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .nav-count {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #0d9488 !important;
}

body.dark-mode .nav-item.active .nav-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.dark-mode .member-profile {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .profile-avatar {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .profile-name {
    color: #ffffff !important;
}

body.dark-mode .profile-level {
    color: #b0adb3 !important;
}

body.dark-mode .quick-actions {
    background: var(--dm-page-bg) !important;
}

body.dark-mode .quick-action-item {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .quick-action-item:hover {
    background: #0d9488 !important;
}

body.dark-mode .member-nav-menu {
    background: var(--dm-page-bg) !important;
}

body.dark-mode .member-nav-item {
    border-bottom-color: #333 !important;
}

body.dark-mode .member-nav-submenu {
    background: #2c2c2c !important;
}

body.dark-mode .member-nav-sublink {
    color: #b0adb3 !important;
}

body.dark-mode .member-nav-sublink:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

/* ---------- 会员中心：左侧栏 sidebar-nav（MemberCenter.css / member_nav.html） ---------- */
body.dark-mode .sidebar-nav {
    background: var(--dm-page-bg) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sidebar-user {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .sidebar-avatar {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
}

body.dark-mode .wechat-dot {
    border-color: var(--dm-page-bg) !important;
}

body.dark-mode .sidebar-username {
    color: #f3f4f6 !important;
}

body.dark-mode .sidebar-badge {
    color: #94a3b8 !important;
}

body.dark-mode .sidebar-badge.vip {
    color: #c4b5fd !important;
}

body.dark-mode .menu-section-title {
    color: #64748b !important;
}

body.dark-mode .sidebar-nav .sidebar-menu .menu-item {
    color: #94a3b8 !important;
}

body.dark-mode .sidebar-nav .sidebar-menu .menu-item:hover,
body.dark-mode .sidebar-nav .sidebar-menu .menu-item.active {
    background: rgba(99, 102, 241, 0.16) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .sidebar-nav .sidebar-menu .menu-icon {
    color: #64748b !important;
}

body.dark-mode .sidebar-nav .sidebar-menu .menu-item:hover .menu-icon,
body.dark-mode .sidebar-nav .sidebar-menu .menu-item.active .menu-icon {
    color: #a5b4fc !important;
}

body.dark-mode .sidebar-nav .sidebar-menu .menu-item.active .menu-label {
    font-weight: 600 !important;
}

body.dark-mode .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .logout-link {
    color: #94a3b8 !important;
}

body.dark-mode .logout-link:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
}

body.dark-mode .logout-link:hover .menu-icon {
    color: #f87171 !important;
}

/* ---------- 会员中心首页 member_center_home（内联 .home-*） ---------- */
body.dark-mode .home-welcome {
    background: var(--dm-page-bg) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .home-info h1 {
    color: #f3f4f6 !important;
}

body.dark-mode .home-info p {
    color: #94a3b8 !important;
}

body.dark-mode .home-vip-badge {
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

body.dark-mode .home-action-item {
    background: var(--dm-page-bg) !important;
    border-color: transparent !important;
    color: #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .home-action-item:hover {
    background: #222530 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .home-action-title {
    color: #f3f4f6 !important;
}

body.dark-mode .home-action-desc {
    color: #94a3b8 !important;
}

body.dark-mode .home-action-icon {
    background: rgba(26, 115, 232, 0.18) !important;
    color: #a8c7fa !important;
}

body.dark-mode .home-action-item:hover .home-action-icon {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #e0e7ff !important;
}

body.dark-mode .home-stat-card {
    background: var(--dm-page-bg) !important;
    border-color: transparent !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .home-stat-number {
    color: #f3f4f6 !important;
}

body.dark-mode .home-stat-label {
    color: #94a3b8 !important;
}

body.dark-mode .home-stat-icon {
    background: rgba(26, 115, 232, 0.18) !important;
    color: #a8c7fa !important;
}

body.dark-mode .home-section {
    background: var(--dm-page-bg) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .home-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .home-section-title {
    color: #f3f4f6 !important;
}

body.dark-mode .home-section-more {
    color: #a5b4fc !important;
}

body.dark-mode .home-section-more:hover {
    color: #c7d2fe !important;
}

body.dark-mode .home-empty,
body.dark-mode .home-empty-text {
    color: #94a3b8 !important;
}

body.dark-mode .home-order-item {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .home-order-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .home-order-title {
    color: #f3f4f6 !important;
}

body.dark-mode .home-order-meta {
    color: #94a3b8 !important;
}

/* 会员中心移动端面包屑 */
body.dark-mode .breadcrumb-nav a {
    color: #94a3b8 !important;
}

body.dark-mode .breadcrumb-nav a:hover {
    color: #e2e8f0 !important;
}

body.dark-mode .breadcrumb-separator {
    color: #64748b !important;
}

body.dark-mode .breadcrumb-current {
    color: #f3f4f6 !important;
}

/* 会员中心 · 订单列表 member_demand_order.css（尽量透明） */
body.dark-mode .member-demand-order-page .order-nav-container {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
}

body.dark-mode .member-demand-order-page .order-nav-container .nav-item {
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-nav-container .nav-item:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .member-demand-order-page .order-nav-container .nav-item.active {
    color: #bae6fd !important;
    background: rgba(14, 165, 233, 0.14) !important;
    box-shadow: none !important;
}

body.dark-mode .member-demand-order-page .order-nav-container .nav-count {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-nav-container .nav-item.active .nav-count {
    background: rgba(14, 165, 233, 0.35) !important;
    color: #f0f9ff !important;
}

body.dark-mode .order-search-box .search-input-wrapper {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .order-search-box.expanded .search-input-wrapper {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.22) !important;
}

body.dark-mode .order-search-input {
    color: #f3f4f6 !important;
}

body.dark-mode .order-search-input::placeholder {
    color: #64748b !important;
}

body.dark-mode .order-search-btn {
    color: #94a3b8 !important;
}

body.dark-mode .order-search-btn:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .order-search-clear {
    color: #64748b !important;
}

body.dark-mode .order-search-clear:hover {
    color: #e2e8f0 !important;
}

/* 会员中心 · 需求订单列表（member_demand_order：列表区 / 卡片 / 分页 / 空状态） */
body.dark-mode .member-demand-order-page .order-list-container {
    background: transparent !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-item {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-number {
    color: #e2e8f0 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-time {
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .copy-order-btn {
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .copy-order-btn:hover {
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, 0.12) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* 状态徽章：深色底上的柔和语义色 */
body.dark-mode .member-demand-order-page .order-list-container .order-status.status-1 {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fbbf24 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-2 {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-3 {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fca5a5 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-5,
body.dark-mode .member-demand-order-page .order-list-container .order-status.status-8,
body.dark-mode .member-demand-order-page .order-list-container .order-status.status-10 {
    background: rgba(34, 197, 94, 0.14) !important;
    color: #86efac !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-6 {
    background: rgba(168, 85, 247, 0.14) !important;
    color: #d8b4fe !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-7 {
    background: rgba(13, 148, 136, 0.14) !important;
    color: #5eead4 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .order-status.status-4,
body.dark-mode .member-demand-order-page .order-list-container .order-status.status-9 {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-title {
    color: #f1f5f9 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-title .title-label {
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-title a {
    color: #f1f5f9 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-title a:hover {
    color: #7dd3fc !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-tag {
    background: transparent !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .voice-tag:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .amount-value {
    color: #f1f5f9 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .amount-value.clickable-price:hover {
    color: #7dd3fc !important;
}

body.dark-mode .member-demand-order-page .order-list-container .payment-method {
    color: #94a3b8 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .content-text-modern {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    color: #e2e8f0 !important;
}

/* 订单卡片按钮（覆盖 member_demand_order 内 !important 浅色 hover） */
body.dark-mode .member-demand-order-page .order-list-container .action-btn {
    background: transparent !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.primary {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #e0f2fe !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.primary:hover {
    background: rgba(14, 165, 233, 0.28) !important;
    color: #f0f9ff !important;
    border-color: #38bdf8 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.danger {
    color: #94a3b8 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.danger:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.success {
    color: #86efac !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .action-btn.success:hover {
    color: #4ade80 !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.4) !important;
}

/* 分页 */
body.dark-mode .member-page-container .pagination-container .Page a,
body.dark-mode .pagination-container .Page a,
body.dark-mode .pagination-container .Page span {
    color: #94a3b8 !important;
}

body.dark-mode .pagination-container .Page a:hover {
    background: rgba(14, 165, 233, 0.14) !important;
    color: #e0f2fe !important;
}

body.dark-mode .pagination-container .Page a.Current,
body.dark-mode .pagination-container .Page .Current {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.35) !important;
}

/* 空状态 / 加载 */
body.dark-mode .member-demand-order-page .order-list-container .empty-state,
body.dark-mode .member-demand-order-page .order-list-container .empty-state-modern,
body.dark-mode .member-demand-order-page .order-list-container .loading-state {
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .member-demand-order-page .order-list-container .empty-state-desc {
    color: #64748b !important;
}

body.dark-mode .member-demand-order-page .order-list-container .empty-state-text {
    color: #f1f5f9 !important;
}

body.dark-mode .member-demand-order-page .order-list-container .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-top-color: #0ea5e9 !important;
}

/* 手机端订单卡（member_demand_order 将 .order-item 设为白底，需覆盖） */
@media (max-width: 768px) {
    body.dark-mode .member-demand-order-page .order-list-container .order-item {
        background: transparent !important;
        box-shadow: none !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .order-header {
        background: transparent !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .order-number {
        color: #cbd5e1 !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .order-time {
        color: #94a3b8 !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .contact-section,
    body.dark-mode .member-demand-order-page .order-list-container .amount-section {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .amount-section::before {
        color: #94a3b8 !important;
    }

    body.dark-mode .member-demand-order-page .order-list-container .actions-section {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }
}

/* 订单列表内嵌样音卡片（与全站 sample_card 深色底区分） */
body.dark-mode .member-demand-order-page .sample-card-item {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    box-shadow: none !important;
}

body.dark-mode .member-demand-order-page .sample-card-item:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
}

body.dark-mode .member-demand-order-page .sample-card-item .waveform-container {
    background: transparent !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .dropdown-content {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .dropdown-content a {
    color: #b0adb3 !important;
}

body.dark-mode .dropdown-content a:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .settings-title {
    color: #b0adb3 !important;
}

/* 会员中心订单页面 */
body.dark-mode .order-item,
body.dark-mode .order-header,
body.dark-mode .order-body {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .order-item:hover {
    background: #252525 !important;
}

body.dark-mode .order-number,
body.dark-mode .order-date {
    color: #b0adb3 !important;
}

body.dark-mode .order-price {
    color: #ffffff !important;
}

body.dark-mode .order-tags span {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .order-button,
body.dark-mode .order-action {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .order-button:hover,
body.dark-mode .order-action:hover {
    background: #0d9488 !important;
}

body.dark-mode .order-button.primary {
    background: #0d9488 !important;
}

body.dark-mode .order-button.primary:hover {
    background: #3d9d91 !important;
}

body.dark-mode .order-details {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .detail-label {
    color: #b0adb3 !important;
}

body.dark-mode .detail-value {
    color: #ffffff !important;
}

body.dark-mode .page-title {
    color: #ffffff !important;
}

body.dark-mode .order-nav {
    border-bottom-color: #333 !important;
}

body.dark-mode .order-card {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .order-card:hover {
    background: #252525 !important;
}

body.dark-mode .order-info-row {
    color: #b0adb3 !important;
}

body.dark-mode .order-meta {
    color: #b0adb3 !important;
}

body.dark-mode .order-actions {
    background: transparent !important;
}

body.dark-mode .action-btn.secondary {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .action-btn.secondary:hover {
    background: #383838 !important;
}

body.dark-mode .order-status-tag {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .order-status-tag.processing {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #0d9488 !important;
}

body.dark-mode .order-status-tag.completed {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
}

body.dark-mode .order-status-tag.cancelled {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff4444 !important;
}

body.dark-mode .order-status-tag.pending {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
}

body.dark-mode .order-content {
    background: transparent !important;
}

body.dark-mode .voice-title {
    color: #ffffff !important;
}

body.dark-mode .voice-title a {
    color: #ffffff !important;
}

body.dark-mode .voice-details {
    color: #b0adb3 !important;
}

body.dark-mode .order-status {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .status-1 {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
}

body.dark-mode .status-2,
body.dark-mode .status-7 {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #0d9488 !important;
}

body.dark-mode .status-3 {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff4444 !important;
}

body.dark-mode .status-5,
body.dark-mode .status-8,
body.dark-mode .status-10 {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
}

body.dark-mode .status-6 {
    background: rgba(108, 117, 125, 0.2) !important;
    color: #6c757d !important;
}

body.dark-mode .order-price-section {
    color: #ffffff !important;
}

body.dark-mode .price-label {
    color: #b0adb3 !important;
}

body.dark-mode .price-amount {
    color: #ffffff !important;
}

/* 订单详情页面 */
body.dark-mode .detail-container,
body.dark-mode .detail-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .detail-header {
    background: var(--dm-page-bg) !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .detail-title {
    color: #ffffff !important;
}

body.dark-mode .detail-subtitle {
    color: #b0adb3 !important;
}

body.dark-mode .detail-info-grid {
    background: transparent !important;
}

body.dark-mode .info-item {
    border-bottom-color: #333 !important;
}

body.dark-mode .info-label {
    color: #b0adb3 !important;
}

body.dark-mode .info-value {
    color: #ffffff !important;
}

body.dark-mode .detail-section-title {
    color: #ffffff !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .file-list {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .file-item {
    background: var(--dm-page-bg) !important;
    border-color: #444 !important;
}

body.dark-mode .file-name {
    color: #ffffff !important;
}

body.dark-mode .file-size {
    color: #b0adb3 !important;
}

body.dark-mode .file-download {
    color: #0d9488 !important;
}

body.dark-mode .file-download:hover {
    color: #3d9d91 !important;
}

body.dark-mode .timeline {
    border-left-color: #333 !important;
}

body.dark-mode .timeline-item {
    color: #b0adb3 !important;
}

body.dark-mode .timeline-dot {
    background: #0d9488 !important;
    border-color: #333 !important;
}

body.dark-mode .timeline-content {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .timeline-time {
    color: #666 !important;
}

body.dark-mode .timeline-text {
    color: #ffffff !important;
}

body.dark-mode .detail-footer {
    background: var(--dm-page-bg) !important;
    border-top-color: #333 !important;
}

body.dark-mode .back-button {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .back-button:hover {
    background: #383838 !important;
}

/* 订单详情流程标签页 */
body.dark-mode .process-tabs,
body.dark-mode .tab-nav {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

 

 

body.dark-mode .tab-item:hover {
    background: #0a0a0a00 !important;
}

 
body.dark-mode .process-detail-card {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .process-detail-card h3 {
    color: #ffffff !important;
    background: transparent !important;
}

body.dark-mode .tab-content .process-detail-card {
    background: var(--dm-page-bg) !important;
}

body.dark-mode #tab-processing .process-detail-card {
    background: var(--dm-page-bg) !important;
}

body.dark-mode .detail-grid {
    background: transparent !important;
}

body.dark-mode .detail-item {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .detail-label {
    color: #b0adb3 !important;
}

body.dark-mode .detail-value {
    color: #ffffff !important;
}

body.dark-mode .detail-value.status-success,
body.dark-mode .status-success {
    color: #4ade80 !important;
}

body.dark-mode .detail-value.status-warning,
body.dark-mode .status-warning {
    color: #ffc107 !important;
}

body.dark-mode .detail-value.status-error,
body.dark-mode .status-error {
    color: #ff4444 !important;
}

body.dark-mode .detail-value.status-info,
body.dark-mode .status-info {
    color: #0d9488 !important;
}

body.dark-mode .status-badge {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .status-badge.active {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .order-timeline {
    background: transparent !important;
}

body.dark-mode .process-step {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .process-step.completed {
    background: rgba(40, 167, 69, 0.2) !important;
    border-color: #4ade80 !important;
}

body.dark-mode .process-step.active {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #0d9488 !important;
}

body.dark-mode .step-title {
    color: #ffffff !important;
}

body.dark-mode .step-desc {
    color: #b0adb3 !important;
}

body.dark-mode .tab-loading {
    background: rgba(30, 30, 30, 0.9) !important;
    color: #ffffff !important;
}

body.dark-mode .order-detail-container {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .order-detail-header {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .order-detail-body {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .main-container {
    background: #0a0a0a00 !important;
}

body.dark-mode .order-info-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .empty-state,
body.dark-mode .no-data {
    background: var(--dm-page-bg) !important;
    color: #b0adb3 !important;
}

body.dark-mode .sample-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .audio-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .payment-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .production-section {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .order-detail-content {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .section-card {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .section-header {
    background: transparent !important;
    color: #ffffff !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .section-body {
    background: transparent !important;
}

body.dark-mode .info-row {
    border-bottom-color: #333 !important;
}

body.dark-mode .info-key {
    color: #b0adb3 !important;
}

body.dark-mode .info-val {
    color: #ffffff !important;
}

body.dark-mode .process-nav,
body.dark-mode .process-navbar {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .process-tab {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
}

body.dark-mode .process-tab.active {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .process-tab:hover {
    background: #383838 !important;
}

body.dark-mode .tab-icon {
    filter: brightness(0.8) !important;
}

body.dark-mode .tab-text {
    color: inherit !important;
}

body.dark-mode .order-content-area {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .content-wrapper {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .detail-page-content {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode #tab-order-submit,
body.dark-mode #tab-processing,
body.dark-mode #tab-sample-selection,
body.dark-mode #tab-payment-pending,
body.dark-mode #tab-payment-completed,
body.dark-mode #tab-production,
body.dark-mode #tab-completed {
    background: #0a0a0a00 !important;
}

body.dark-mode .order-detail-wrapper {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .detail-content-area {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .process-content {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .order-details-page {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .tab-pane {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .member-page-content .content-main {
    background: transparent;
}

 

body.dark-mode .process-tabs-header {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .process-tabs-content {
    background: var(--dm-hero-bg) !important;
}

body.dark-mode .order-header {
    background: var(--dm-page-bg)00 !important;
    border-color: #333 !important;
}

body.dark-mode .order-title h1,
body.dark-mode .order-id {
    color: #ffffff !important;
}

body.dark-mode .order-basic-info {
    color: #b0adb3 !important;
}

body.dark-mode .info-badge {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .tab-info {
    color: #b0adb3 !important;
}

body.dark-mode .tab-title {
    color: #ffffff !important;
}

body.dark-mode .tab-status {
    color: #b0adb3 !important;
}

body.dark-mode .tab-status.completed {
    color: #4ade80 !important;
}

body.dark-mode .tab-status.active {
    color: #0d9488 !important;
}

body.dark-mode .tab-status.pending {
    color: #666 !important;
}

body.dark-mode .tab-switch-loading {
    background: rgba(10, 10, 10, 0.95) !important;
    color: #ffffff !important;
}

/* =============================================================================
 * 需求订单详情 member_center.php?action=demandOrderDetails
 * （demand_order_details.html + process_tabs_professional + timeline）
 * ============================================================================= */

body.dark-mode .main-container .content-area {
    color: #e2e8f0;
}

/* 手机顶栏 */
@media (max-width: 768px) {
    body.dark-mode .detail-topbar {
        background: var(--dm-page-bg) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    body.dark-mode .detail-back-btn {
        color: #e2e8f0 !important;
    }

    body.dark-mode .detail-topbar-title {
        color: #f3f4f6 !important;
    }

    body.dark-mode .detail-topbar-service {
        color: #94a3b8 !important;
    }

    body.dark-mode .breadcrumb {
        background: var(--dm-page-bg) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        color: #94a3b8 !important;
    }

    body.dark-mode .breadcrumb a {
        color: #a5b4fc !important;
    }

    body.dark-mode .breadcrumb a:hover {
        color: #c7d2fe !important;
    }
}

body.dark-mode .content-area .order-header {
    background: var(--dm-page-bg) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .content-area .info-badge {
    color: #94a3b8 !important;
    background: none !important;
}

/* 覆盖 order-consult-button.css 的绿色渐变 */
body.dark-mode .order-consult-btn,
body.dark-mode .content-area .order-header .order-consult-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3) !important;
}

body.dark-mode .order-consult-btn:hover,
body.dark-mode .content-area .order-header .order-consult-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
}

/* 流程条：覆盖 process_tabs_professional 浅蓝渐变 + 白底内容区 */
body.dark-mode .production-process-tabs .process-tabs-header {
    background: linear-gradient(180deg, #1e2538 0%, var(--dm-page-bg) 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .production-process-tabs .process-tabs-header::before {
    background: rgba(99, 102, 241, 0.28) !important;
}

body.dark-mode .production-process-tabs .process-tabs-content {
    background: var(--dm-page-bg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .production-process-tabs .tab-item.active-tab::after {
    border-left: 10px solid transparent !important;
    border-right: 10px solid transparent !important;
    border-bottom: 10px solid var(--dm-page-bg) !important;
}

@media (max-width: 768px) {
    body.dark-mode .production-process-tabs .tab-item.active-tab::after {
        border-left: 8px solid transparent !important;
        border-right: 8px solid transparent !important;
        border-bottom: 8px solid var(--dm-page-bg) !important;
    }
}

@media (max-width: 480px) {
    body.dark-mode .production-process-tabs .tab-item.active-tab::after {
        border-left: 7px solid transparent !important;
        border-right: 7px solid transparent !important;
        border-bottom: 7px solid var(--dm-page-bg) !important;
    }
}

body.dark-mode .tab-item.active .tab-icon {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

body.dark-mode .tab-item.current .tab-icon {
    background: #252830 !important;
    color: #a5b4fc !important;
    border-color: #6366f1 !important;
    box-shadow: none !important;
}

body.dark-mode .tab-item.pending .tab-icon {
    background: #252830 !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .production-process-tabs .tab-icon {
    filter: none !important;
}

body.dark-mode .tab-item.active .tab-title,
body.dark-mode .tab-item.current .tab-title {
    color: #a5b4fc !important;
}

body.dark-mode .tab-item.pending .tab-title {
    color: #64748b !important;
}

body.dark-mode .tab-status.completed {
    color: #86efac !important;
}

body.dark-mode .tab-status.active {
    color: #a5b4fc !important;
}

body.dark-mode .tab-status.pending {
    color: #94a3b8 !important;
}

/* 详情卡片 / 列表（与 demand_order_details_custom 协同） */
body.dark-mode .content-area .process-detail-card-simple {
    background: transparent !important;
    border-color: transparent !important;
}

body.dark-mode .content-area .card-title-simple {
    color: #f1f5f9 !important;
}

body.dark-mode .content-area .detail-list-simple {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .content-area .detail-row-simple {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .content-area .detail-row-simple:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .content-area .label-simple {
    color: #94a3b8 !important;
}

body.dark-mode .content-area .value-simple {
    color: #f1f5f9 !important;
}

body.dark-mode .content-area .value-simple.price-simple,
body.dark-mode .content-area .price-simple {
    color: #fca5a5 !important;
}

body.dark-mode .content-area .value-simple.status-pending {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

body.dark-mode .content-area .value-simple.status-success {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.12) !important;
}

body.dark-mode .payment-waiting-notice {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

/* 样音时间轴卡片（覆盖全站 .sample-item 透明规则） */
body.dark-mode .main-container .content-area .sample-item {
    background: var(--dm-page-bg) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .main-container .content-area .sample-item:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .content-area .timeline-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .content-area .timeline-header h3 {
    color: #f1f5f9 !important;
}

body.dark-mode .content-area .teacher-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
}

body.dark-mode .content-area .teacher-badge .teacher-link {
    color: #a5b4fc !important;
}

body.dark-mode .content-area .price-badge {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}

body.dark-mode .content-area .status-badge {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #a5b4fc !important;
}

/* 成品区下方统一播放器 */
body.dark-mode .content-area .product-player-section .unified-player-container,
body.dark-mode .main-container .content-area .product-player .unified-player-container {
    background: transparent !important;
    border: 1px solid var(--dm-player-border) !important;
    box-shadow: none !important;
}

/* ---------- 订单详情 · 试音作品 (#tab-trial-audio) ---------- */
body.dark-mode #tab-trial-audio .trial-title {
    color: #f1f5f9 !important;
}

body.dark-mode #tab-trial-audio .trial-count {
    background: #6366f1 !important;
    color: #ffffff !important;
}

body.dark-mode #tab-trial-audio .trial-count.waiting {
    background: #2c2c2c !important;
    color: #94a3b8 !important;
}

body.dark-mode #tab-trial-audio .trial-tip {
    color: #94a3b8 !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .sample-item {
    background: var(--dm-page-bg) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .sample-item:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .timeline-header-top h3 {
    color: #f1f5f9 !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .teacher-badge {
    background: #252830 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .teacher-badge .teacher-link {
    color: #e2e8f0 !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .teacher-badge .teacher-link:hover {
    color: #a5b4fc !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .price-badge {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .status-badge.status-待选定 {
    background: #6366f1 !important;
    color: #ffffff !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .status-badge.status-已选定 {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}

body.dark-mode #tab-trial-audio .sample-list-wrapper .timeline-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode #tab-trial-audio .version-timeline-item {
    background: #252830 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #tab-trial-audio .version-timeline-item:hover:not(.selected) {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode #tab-trial-audio .version-timeline-item.selected {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: #0d9488 !important;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.15) !important;
}

body.dark-mode #tab-trial-audio .version-name {
    color: #f1f5f9 !important;
}

body.dark-mode #tab-trial-audio .version-time-inline,
body.dark-mode #tab-trial-audio .version-time {
    color: #94a3b8 !important;
}

body.dark-mode #tab-trial-audio .version-current-badge {
    background: #2c2c2c !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
}

body.dark-mode #tab-trial-audio .version-comment {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cbd5e1 !important;
    border-left-color: #6366f1 !important;
}

body.dark-mode #tab-trial-audio .timeline-container::before {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode #tab-trial-audio .version-timeline-item::before {
    background: var(--dm-page-bg) !important;
    border-color: #64748b !important;
}

body.dark-mode #tab-trial-audio .timeline-player .unified-player-container,
body.dark-mode #tab-trial-audio .version-player-container .unified-player-container,
body.dark-mode #tab-trial-audio .sample-player .unified-player-container {
    background: transparent !important;
    border: 1px solid var(--dm-player-border) !important;
    box-shadow: none !important;
}

body.dark-mode #tab-trial-audio .timeline-player .unified-player-container:hover,
body.dark-mode #tab-trial-audio .version-player-container .unified-player-container:hover,
body.dark-mode #tab-trial-audio .sample-player .unified-player-container:hover {
    background: transparent !important;
    border-color: var(--dm-player-border-hover) !important;
}

/* 播放按钮三角/暂停条：覆盖 JS 写入的深色 fill */
body.dark-mode #tab-trial-audio .unified-player-button .btn .play-triangle,
body.dark-mode #tab-trial-audio .unified-player-button .btn .play-icon {
    fill: #ffffff !important;
}

body.dark-mode #tab-trial-audio .unified-player-button .btn:hover .play-triangle,
body.dark-mode #tab-trial-audio .unified-player-button .btn:hover .play-icon {
    fill: #1a1a1a !important;
}

body.dark-mode #tab-trial-audio .loading-versions {
    color: #94a3b8 !important;
}

body.dark-mode #tab-trial-audio .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-top-color: #6366f1 !important;
}

body.dark-mode #tab-trial-audio .no-sample-notice {
    background: #252830 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-style: dashed !important;
}

body.dark-mode #tab-trial-audio .no-sample-notice-title {
    color: #f1f5f9 !important;
}

body.dark-mode #tab-trial-audio .no-sample-notice-desc {
    color: #94a3b8 !important;
}

/* 订单详情页内联确认框 */
body.dark-mode .confirm-dialog {
    background: var(--dm-page-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
}

body.dark-mode .confirm-title {
    color: #f1f5f9 !important;
}

body.dark-mode .confirm-message {
    color: #94a3b8 !important;
}

body.dark-mode .confirm-btn-cancel {
    background: #2c2c2c !important;
    color: #e2e8f0 !important;
}

body.dark-mode .confirm-btn-cancel:hover {
    background: #383838 !important;
}

body.dark-mode .confirm-btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
}

/* 会员中心收藏页面 */
body.dark-mode .collection-tabs {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .collection-tab {
    /* background: #2c2c2c !important; */
    color: #b0adb3 !important;
}

body.dark-mode .collection-tab.active,
body.dark-mode .collection-tab:hover {
     
    color: #ffffff !important;
}

body.dark-mode .collection-card,
body.dark-mode .sound-card {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .collection-card:hover,
body.dark-mode .sound-card:hover {
    background: #252525 !important;
}

body.dark-mode .sound-title {
    color: #ffffff !important;
}

body.dark-mode .sound-by {
    color: #b0adb3 !important;
}

body.dark-mode .collection-actions button {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .collection-actions button:hover {
    background: #383838 !important;
}

body.dark-mode .cancel-collect {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .cancel-collect:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
}

body.dark-mode .collect-sound-card,
body.dark-mode .collected-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 波形/统一播放器容器背景由 dark-mode-unified.css 与组件定义，勿在此全局 transparent !important 覆盖 */

body.dark-mode .play-button:not(.unified-player-button .btn) {
    background: var(--player-button-pause-bg-color, #2c2c2c) !important;
    border-color: var(--player-button-border-color, #555) !important;
}

body.dark-mode .action-buttons button {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .action-buttons button:hover {
    background: #0d9488 !important;
}

body.dark-mode .tab-nav-item {
    color: #b0adb3 !important;
}

body.dark-mode .tab-nav-item.active {
    color: #0d9488 !important;
    border-bottom-color: #0d9488 !important;
}

body.dark-mode .sound-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

body.dark-mode .sound-item:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: none !important;
}

body.dark-mode .sound-header {
    background: transparent !important;
}

body.dark-mode .sound-info {
    background: transparent !important;
}

body.dark-mode .sound-teacher {
    color: #b0adb3 !important;
}

body.dark-mode .sound-teacher a {
    color: #0d9488 !important;
}

/* .sound-player / .sound-waveform：不强制透明，避免盖住播放器设计色 */

body.dark-mode .sound-controls {
    background: transparent !important;
}

body.dark-mode .sound-play-btn {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode .sound-actions {
    background: transparent !important;
}

body.dark-mode .sound-actions button,
body.dark-mode .card-actions button {
    background: #2c2c2c !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

body.dark-mode .sound-actions button:hover,
body.dark-mode .card-actions button:hover {
    background: #383838 !important;
}

body.dark-mode .cancel-btn {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .cancel-btn:hover {
    background: #dc3545 !important;
}

body.dark-mode .order-btn {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .order-btn:hover {
    background: #3d9d91 !important;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #0d9488 0%, #3d9d91 100%) !important;
}

body.dark-mode .page-title {
    color: #ffffff !important;
}

body.dark-mode .MemberMain {
    background: transparent !important;
}

body.dark-mode .Sound_list {
    background: transparent !important;
}

body.dark-mode .card-container {
    background: transparent !important;
}

body.dark-mode .teacher-card {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

body.dark-mode .teacher-card:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
}

body.dark-mode .card-header {
    background: transparent !important;
}

body.dark-mode .teacher-details {
    background: transparent !important;
}

body.dark-mode .teacher-code {
    color: #ffffff !important;
}

body.dark-mode .language-info {
    color: #b0adb3 !important;
}

body.dark-mode .search-container {
    background: transparent !important;
}

body.dark-mode .search-box {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .search-icon {
    color: #b0adb3 !important;
}

body.dark-mode .confirm-dialog {
    background: rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode .confirm-dialog-content {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .confirm-dialog-header {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .confirm-dialog-title {
    color: #ffffff !important;
}

body.dark-mode .confirm-dialog-close {
    color: #b0adb3 !important;
}

body.dark-mode .confirm-dialog-body {
    color: #b0adb3 !important;
}

body.dark-mode .confirm-dialog-btn {
    background: #2c2c2c !important;
    color: #ffffff !important;
}

body.dark-mode .confirm-dialog-btn-confirm {
    background: #0d9488 !important;
}

body.dark-mode .confirm-dialog-btn-confirm:hover {
    background: #3d9d91 !important;
}

body.dark-mode .confirm-dialog-btn-cancel:hover {
    background: #383838 !important;
}

body.dark-mode .sound-avatar2 {
    border-color: #555 !important;
}

/* 批量操作工具栏 - 暗黑模式 */
body.dark-mode .batch-actions-toolbar {
    background: linear-gradient(to bottom, #27272a, #1f2229) !important;
    border-color: #3f3f46 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .batch-actions-toolbar::after {
    background: linear-gradient(to left, rgba(31, 34, 41, 0.9), transparent) !important;
}

/* 批量操作工具栏滚动条 - 暗黑模式 */
body.dark-mode .batch-actions-toolbar::-webkit-scrollbar-track {
    background: transparent !important;
}

body.dark-mode .batch-actions-toolbar::-webkit-scrollbar-thumb {
    background: #52525b !important;
}

body.dark-mode .batch-actions-toolbar::-webkit-scrollbar-thumb:hover {
    background: #71717a !important;
}

/* 批量操作按钮 - 暗黑模式 */
body.dark-mode .batch-action-btn {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    color: #e5e7eb !important;
}

body.dark-mode .batch-action-btn:hover {
    background: #3f3f46 !important;
    border-color: #52525b !important;
}

/* 批量试音按钮 - 暗黑模式（紫色） */
body.dark-mode .batch-action-btn.btn-audition {
    color: #818cf8 !important;
    border-color: #6366f1 !important;
}

body.dark-mode .batch-action-btn.btn-audition:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

/* 批量下载按钮 - 暗黑模式（绿色） */
body.dark-mode .batch-action-btn.btn-download {
    color: #3d9d91 !important;
    border-color: #0d9488 !important;
}

body.dark-mode .batch-action-btn.btn-download:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
}

/* 批量删除按钮 - 暗黑模式（红色） */
body.dark-mode .batch-action-btn.btn-delete {
    color: #f87171 !important;
    border-color: #ef4444 !important;
}

body.dark-mode .batch-action-btn.btn-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* 全选复选框 - 暗黑模式 */
body.dark-mode .select-all-checkbox {
    color: #e5e7eb !important;
}

body.dark-mode .select-all-checkbox input[type="checkbox"] {
    accent-color: #6366f1 !important;
    border-color: #52525b !important;
}

/* 选中数量显示 - 暗黑模式 */
body.dark-mode .selected-count {
    color: #94a3b8 !important;
}

body.dark-mode .selected-count strong {
    color: #818cf8 !important;
}

/* 批量模式下的样音卡片 - 暗黑模式 */
body.dark-mode .samples-grid.batch-mode .sample-item.selected {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: #6366f1 !important;
}

body.dark-mode .sample-checkbox input[type="checkbox"] {
    accent-color: #6366f1 !important;
    border-color: #52525b !important;
}

/* 会员中心修改密码页面 */
body.dark-mode .password-form,
body.dark-mode .edit-form {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .form-title {
    color: #ffffff !important;
}

body.dark-mode .form-group label {
    color: #b0adb3 !important;
}

body.dark-mode .form-control,
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .form-control:focus,
body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="password"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode textarea:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .form-control::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #666 !important;
}

body.dark-mode .btn-submit,
body.dark-mode .submit-button {
    background: #0d9488 !important;
    color: #ffffff !important;
}

body.dark-mode .btn-submit:hover,
body.dark-mode .submit-button:hover {
    background: #3d9d91 !important;
}

body.dark-mode .form-hint,
body.dark-mode .help-text {
    color: #666 !important;
}

body.dark-mode .error-message {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff4444 !important;
    border-color: #ff4444 !important;
}

body.dark-mode .success-message {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
    border-color: #4ade80 !important;
}

body.dark-mode .form-section {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .form-section-title {
    color: #ffffff !important;
}

body.dark-mode .form-description {
    color: #b0adb3 !important;
}

body.dark-mode .form-container {
    background: var(--dm-page-bg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .input-container input[type="password"] {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .input-container input[type="password"]:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .input-container input[type="password"]::placeholder {
    color: #666 !important;
}

body.dark-mode .floating-label {
    color: #666 !important;
    background: #2c2c2c !important;
}

body.dark-mode .input-container input:focus ~ .floating-label,
body.dark-mode .input-container input:not(:placeholder-shown) ~ .floating-label {
    color: #0d9488 !important;
    background: var(--dm-page-bg) !important;
}

body.dark-mode .toggle-password {
    color: #b0adb3 !important;
}

body.dark-mode .eye-icon {
    filter: brightness(0) invert(0.7) !important;
}

body.dark-mode .submit-btn,
body.dark-mode button[type="submit"] {
     
    color: #ffffff !important;
}

body.dark-mode .submit-btn:hover,
body.dark-mode button[type="submit"]:hover {
    background: #3d9d91 !important;
}

/* 会员信息编辑页面 */
body.dark-mode .input-container input[type="text"],
body.dark-mode .input-container input[type="email"],
body.dark-mode .input-container input[type="tel"],
body.dark-mode .input-container input[type="date"] {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .input-container input[type="text"]:focus,
body.dark-mode .input-container input[type="email"]:focus,
body.dark-mode .input-container input[type="tel"]:focus,
body.dark-mode .input-container input[type="date"]:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .input-container textarea {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .input-container textarea:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .radio-label,
body.dark-mode label[for] {
    color: #b0adb3 !important;
}

body.dark-mode input[type="radio"] {
    accent-color: #0d9488 !important;
}

body.dark-mode .field-label {
    color: #b0adb3 !important;
}

body.dark-mode .field-hint {
    color: #666 !important;
}

/* 找回密码页面 */
body.dark-mode .alert,
body.dark-mode .alert-warning,
body.dark-mode .alert-info,
body.dark-mode .warning-box,
body.dark-mode .info-box {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

body.dark-mode .alert-success {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #4ade80 !important;
    border-color: #4ade80 !important;
}

body.dark-mode .alert-danger,
body.dark-mode .alert-error {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff4444 !important;
    border-color: #ff4444 !important;
}

body.dark-mode .return-link,
body.dark-mode .back-link {
    color: #0d9488 !important;
}

body.dark-mode .return-link:hover,
body.dark-mode .back-link:hover {
    color: #3d9d91 !important;
}

body.dark-mode .form-intro {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

body.dark-mode .form-intro strong {
    color: #ffc107 !important;
}

/* 订单页面 demand.php */
body.dark-mode .section-title {
    color: #ffffff !important;
}

body.dark-mode .selected-info {
    background: var(--dm-page-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .selected-info-item {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .selected-info-label {
    color: #b0adb3 !important;
}

body.dark-mode .selected-info-value {
    color: #ffffff !important;
}

body.dark-mode .audio-player {
    background: transparent !important;
}

body.dark-mode .audio-player .controls {
    background: transparent !important;
}

body.dark-mode .audio-player .btn,
body.dark-mode .audio-player .btn-primary {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.dark-mode .audio-player .btn:hover,
body.dark-mode .audio-player .btn-primary:hover {
    background: transparent !important;
    opacity: 0.8 !important;
}

/* 订单页面播放图标 - CSS三角形样式 */
body.dark-mode .audio-player .glyphicon-play,
body.dark-mode .selected-info .controls .glyphicon-play {
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 8px 0 8px 13px !important;
    border-color: transparent transparent transparent #ffffff !important;
    background: none !important;
    display: inline-block !important;
    position: relative !important;
    transition: none !important;
    margin-left: 1px !important;
}

body.dark-mode .audio-player .btn:hover .glyphicon-play,
body.dark-mode .selected-info .controls .btn:hover .glyphicon-play {
    border-left-color: #e0e0e0 !important;
}

/* 播放状态：暂停图标 */
body.dark-mode .audio-player .glyphicon-play.glyphicon-pause,
body.dark-mode .selected-info .controls .glyphicon-play.glyphicon-pause {
    width: 10px !important;
    height: 12px !important;
    border: none !important;
    background: none !important;
    position: relative !important;
    display: inline-block !important;
    margin-left: 0 !important;
}

/* 暂停图标的两个白色竖条 */
body.dark-mode .audio-player .glyphicon-play.glyphicon-pause::before,
body.dark-mode .audio-player .glyphicon-play.glyphicon-pause::after,
body.dark-mode .selected-info .controls .glyphicon-play.glyphicon-pause::before,
body.dark-mode .selected-info .controls .glyphicon-play.glyphicon-pause::after {
    content: '' !important;
    position: absolute !important;
    width: 3px !important;
    height: 12px !important;
    background: #ffffff !important;
    top: 0 !important;
    border-radius: 0.5px !important;
}

body.dark-mode .audio-player .glyphicon-play.glyphicon-pause::before,
body.dark-mode .selected-info .controls .glyphicon-play.glyphicon-pause::before {
    left: 0 !important;
}

body.dark-mode .audio-player .glyphicon-play.glyphicon-pause::after,
body.dark-mode .selected-info .controls .glyphicon-play.glyphicon-pause::after {
    right: 0 !important;
}

body.dark-mode .selected-info .controls .btn,
body.dark-mode .selected-info .controls .btn-primary {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.dark-mode .audio-player .loading,
body.dark-mode .audio-player .error {
    color: #b0adb3 !important;
}

body.dark-mode .audio-player .current-time-on-pointer-home,
body.dark-mode .audio-player .total-time {
    color: #b0adb3 !important;
}

/* #waveform-teacher / #waveform-sample：不强制透明，与 unified 播放器样式一致 */

body.dark-mode .form-label {
    color: #b0adb3 !important;
}

body.dark-mode .form-input,
body.dark-mode select.form-input {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .form-input:focus,
body.dark-mode select.form-input:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .form-input::placeholder {
    color: #666 !important;
}

body.dark-mode .input-unit {
    background: #2c2c2c !important;
    color: #b0adb3 !important;
    border-color: #555 !important;
}

body.dark-mode .input-with-unit {
    background: transparent !important;
}

/* 老师详情页样音列表：仅卡片视图保留外框；列表/双列 strip 由 sound-card-config-css 控制 */
body.dark-mode #samples-container.card-view .sample-item,
body.dark-mode .samples-grid.card-view .sample-item {
    background: transparent !important;
    border: 1px solid var(--sound-card-border, var(--card-surface-outline, rgba(255, 255, 255, 0.07))) !important;
    box-shadow: var(--sound-card-shadow-rest, none) !important;
}

body.dark-mode #samples-container.card-view .sample-item:hover,
body.dark-mode .samples-grid.card-view .sample-item:hover {
    background: var(--sound-list-hover-bg, rgba(255, 255, 255, 0.06)) !important;
    border-color: var(--sound-card-border-hover, var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12))) !important;
    box-shadow: none !important;
}

body.dark-mode .TeacherHome .sample-item .sample-title,
body.dark-mode #samples-container .sample-item .sample-title,
body.dark-mode .samples-grid .sample-item .sample-title {
    color: #ffffff !important;
}

body.dark-mode .TeacherHome .sample-item .sample-style,
body.dark-mode #samples-container .sample-item .sample-style,
body.dark-mode .samples-grid .sample-item .sample-style {
    color: #b0adb3 !important;
}

body.dark-mode .TeacherHome .teacher-code,
body.dark-mode #samples-container .teacher-code,
body.dark-mode .samples-grid .teacher-code {
    color: #b0adb3 !important;
}

body.dark-mode .TeacherHome .teacher-link,
body.dark-mode #samples-container .teacher-link,
body.dark-mode .samples-grid .teacher-link {
    color: #ffffff !important;
}

body.dark-mode .TeacherHome .sample-actions a,
body.dark-mode #samples-container .sample-actions a,
body.dark-mode .samples-grid .sample-actions a {
    color: #b0adb3 !important;
}

body.dark-mode .TeacherHome .sample-actions a:hover,
body.dark-mode #samples-container .sample-actions a:hover,
body.dark-mode .samples-grid .sample-actions a:hover {
    color: #0d9488 !important;
    background: transparent !important;
}

body.dark-mode .TeacherHome .sample-actions .icon-order,
body.dark-mode .TeacherHome .sample-actions .icon-download,
body.dark-mode .TeacherHome .sample-actions .icon-star,
body.dark-mode #samples-container .sample-actions .icon-order,
body.dark-mode #samples-container .sample-actions .icon-download,
body.dark-mode #samples-container .sample-actions .icon-star,
body.dark-mode .samples-grid .sample-actions .icon-order,
body.dark-mode .samples-grid .sample-actions .icon-download,
body.dark-mode .samples-grid .sample-actions .icon-star {
    stroke: #ffffff !important;
}

body.dark-mode .TeacherHome .sample-actions .icon-star.filled,
body.dark-mode #samples-container .sample-actions .icon-star.filled,
body.dark-mode .samples-grid .sample-actions .icon-star.filled {
    fill: #551018 !important;
    stroke: #551018 !important;
}

/* 筛选组件暗黑模式：已由 filter_horizontal.css 组件统一管理 */

body.dark-mode .TeacherHome .search-area input[type="text"] {
    background: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f9fafb !important;
}

body.dark-mode .TeacherHome .search-area input[type="text"]:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .TeacherHome .search-area input[type="submit"] {
    background: #0d9488 !important;
}

body.dark-mode .TeacherHome .search-area input[type="submit"]:hover {
    background: #3d9d91 !important;
}

/* 老师详情页筛选结果 */
body.dark-mode .TeacherHome .Selected {
    background: transparent !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .TeacherHome .Selected a {
    background: transparent !important;
    color: #81c0ff !important;
    border: 1px solid rgba(74, 144, 226, 0.45) !important;
}

body.dark-mode .TeacherHome .Selected a:hover {
    background: transparent !important;
    border-color: rgba(74, 144, 226, 0.65) !important;
    color: #a5b4fc !important;
}

body.dark-mode .TeacherHome .Selected a img {
    filter: brightness(0) invert(1) !important;
}

body.dark-mode .TeacherHome .Selected span {
    color: #ffffff !important;
}

body.dark-mode .TeacherHome .search-tag {
    background: transparent !important;
    color: #81c0ff !important;
    border: 1px solid rgba(74, 144, 226, 0.45) !important;
}

body.dark-mode .TeacherHome .search-tag:hover {
    background: transparent !important;
    border-color: rgba(74, 144, 226, 0.65) !important;
}

body.dark-mode .TeacherHome .clear-filter {
    background: transparent !important;
    color: #0d9488 !important;
    border-color: #0d9488 !important;
}

body.dark-mode .TeacherHome .clear-filter:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
}

/* 分隔线 */
body.dark-mode hr,
body.dark-mode .divider {
    border-color: var(--divider-color);
}

/* 遮罩层 */
body.dark-mode .overlay,
body.dark-mode .modal-backdrop {
    background-color: var(--overlay-bg);
}

/* 状态颜色 */
body.dark-mode .success {
    color: var(--success-color);
}

body.dark-mode .warning {
    color: var(--warning-color);
}

body.dark-mode .error {
    color: var(--error-color);
}

body.dark-mode .info {
    color: var(--info-color);
}

/* ✅ 价格弹窗深色模式已由 teacher_price_popup 组件统一管理 */

/* 登录提示弹窗深色模式 */
body.dark-mode .login-prompt {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .login-prompt-content {
    background: var(--dm-page-bg);
    border: 1px solid #333;
    color: #ffffff;
}

body.dark-mode .login-prompt .close-btn {
    color: #b0adb3;
}

body.dark-mode .login-prompt .close-btn:hover {
    color: #ffffff;
}

body.dark-mode .login-prompt-buttons button:first-child {
    background-color: #0d9488;
}

body.dark-mode .login-prompt-buttons button:first-child:hover {
    background-color: #3d9d91;
}

body.dark-mode .login-prompt-buttons button:last-child {
    background-color: #c44336;
}

body.dark-mode .login-prompt-buttons button:last-child:hover {
    background-color: #d85447;
}

/* 平板端样式 (768px - 1200px) */
@media (max-width: 1200px) and (min-width: 769px) {
    /* 头部高度 */
    .nav {
        height: 60px !important;
    }
    
    /* Logo大小 */
    .nav-logo img {
        max-height: 48px !important;
        width: auto;
    }
    
    /* 登录按钮 */
    #login-btn {
        padding: 15px 18px !important;
        font-size: 13px !important;
        border-radius: 18px !important;
    }
    
    #login-btn::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 22px;
    }
}

/* 平板端移动菜单修正 (769px - 960px) */
@media (max-width: 960px) and (min-width: 769px) {
    /* 全屏菜单，无需额外调整 */
}

/* 移动端样式 (小于768px) */
@media (max-width: 768px) {
    /* 头部高度 */
    .nav {
        height: 56px !important;
    }
    
    /* 全屏菜单，无需额外调整宽度 */
    
    /* 菜单按钮大小 */
    .menu-toggle {
        width: 24px !important;
        height: 20px !important;
    }
    
    .menu-toggle span {
        height: 2.5px !important;
    }
    
    .menu-toggle span:nth-child(1) {
        top: 2px !important;
    }
    
    .menu-toggle span:nth-child(2) {
        top: 9px !important;
        width: 12px !important; /* 中间短 */
    }
    
    .menu-toggle span:nth-child(3) {
        top: 16px !important;
    }
    
    .menu-toggle.active span:nth-child(1),
    .menu-toggle.active span:nth-child(3) {
        top: 8px !important;
    }
    
    /* 确保移动端字体大小不被浏览器自动调整 */
    html {
        font-size: 14px !important;
        -webkit-text-size-adjust: 100% !important;
        -moz-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    body {
        font-size: 14px !important;
    }
    
    .user-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
    
    /* Logo大小 - 在小屏幕上进一步限制 */
    .nav-logo {
        max-width: calc(100% - 160px) !important;
    }
    
    .nav-logo img {
        max-height: 42px !important;
        max-width: 100% !important;
        width: auto !important;
    }
    
    /* Container padding 调整 */
    .nav .layui-container {
        padding: 0 12px !important;
        gap: 8px !important;
    }
    
    /* 登录按钮 */
    #login-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 16px !important;
    }
    
    #login-btn::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 19px;
    }
    
    /* 导航链接调整 */
    .nav-link {
        font-size: 14px !important;
        padding: 8px 12px;
    }
    
    /* 按钮调整 */
    .btn {
        font-size: 14px !important;
        padding: 8px 16px;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    /* 头部高度 */
    .nav {
        height: 52px !important;
    }
    
    /* 顶部品牌 */
    .main-nav ul::before {
        top: 20px;
        font-size: 12px;
        letter-spacing: 6px;
        width: 50px;
    }
    
    /* 底部 */
    .main-nav ul::after {
        bottom: 24px;
        font-size: 10px;
    }
    
    /* 菜单列表 */
    .main-nav ul {
        padding: 50px 16px !important;
        gap: 6px !important;
    }
    
    /* 导航链接 */
    .main-nav .nav-link {
        font-size: 16px !important;
        padding: 0px 32px !important;
        letter-spacing: 1.5px;
    }
    
    /* 菜单按钮 */
    .menu-toggle {
        width: 26px !important;
        height: 26px !important;
    }
    
    .menu-toggle span {
        width: 18px !important;
        left: 4px !important;
    }
    
    .menu-toggle span:nth-child(1) {
        top: 6px !important;
    }
    
    .menu-toggle span:nth-child(2) {
        top: 12px !important;
        width: 12px !important;
    }
    
    .menu-toggle span:nth-child(3) {
        top: 18px !important;
    }
    
    .menu-toggle.active span {
        width: 18px !important;
    }
    
    .menu-toggle.active span:nth-child(1),
    .menu-toggle.active span:nth-child(3) {
        top: 12px !important;
    }
    
    .menu-toggle.active span:nth-child(2) {
        width: 0 !important;
    }
}
    
    /* 更小屏幕的字体调整 */
    html {
        font-size: 13px !important;
        -webkit-text-size-adjust: 100% !important;
        -moz-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    body {
        font-size: 13px !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    /* Logo进一步缩小 - 确保不重叠 */
    .nav-logo {
        max-width: calc(100% - 130px) !important;
    }
    
    .nav-logo img {
        max-height: 38px !important;
        max-width: 100% !important;
        width: auto !important;
    }
    
    /* Container padding 进一步调整 */
    .nav .layui-container {
        padding: 0 20px !important;
        gap: 6px !important;
    }
    
    /* 用户链接区域 */
    .user-links {
        display: flex !important;
        gap: 8px !important;
    }
    
    /* 登录按钮 */
    #login-btn {
        padding: 10px 10px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
    }
    
    #register-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    #login-btn::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 16px;
    }
    
  
    
    /* 按钮进一步调整 */
    .btn {
        font-size: 13px !important;
        padding: 6px 12px;
    }
}

/* ========================================
   用户下拉菜单样式 - 替代抽屉式菜单
   ======================================== */

/* 下拉菜单容器 - 20260203修复定位 */
.user-dropdown-wrapper {
    position: relative !important;
    display: inline-flex;
    align-items: center;
}

/* 确保user-area不会影响下拉菜单定位 */
.user-area .user-dropdown-wrapper {
    position: relative !important;
}

/* 头像与面板之间的空隙：无 DOM 节点时 mouse 会「断触」导致菜单秒关；展开后桥接层承接 hover */
@media screen and (min-width: 769px) {
    .user-dropdown-wrapper::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 0;
        width: 260px;
        max-width: min(260px, calc(100vw - 32px));
        height: 14px;
        z-index: 10000;
        pointer-events: none;
    }
    .user-dropdown-wrapper.active::after {
        pointer-events: auto;
    }
}

/* PC端下拉菜单强制定位 */
@media screen and (min-width: 769px) {
    .user-dropdown-wrapper .user-dropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* 🎨 用户菜单面板：略抬层次、字重与全站 500 档一致 */
.user-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 16px 40px -8px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10001;
    overflow: visible;
    border: 1px solid var(--card-border, #d4d4d8);
}

/* 下拉菜单显示状态 */
.user-dropdown-wrapper.active .user-dropdown,
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 指向头像的小三角（与面板同色，避免双层错位感） */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fafafa;
    transform: rotate(45deg);
    border-left: 1px solid var(--color-border, #d4d4d8);
    border-top: 1px solid var(--color-border, #d4d4d8);
    z-index: 1;
}

/* 用户信息区 */
.dropdown-user-info {
    padding: 16px 18px 14px;
    text-align: center;
    background: #fafafa;
    border-radius: 14px 14px 0 0;
    position: relative;
    border-bottom: 1px solid var(--color-border, #d4d4d8);
}

/* 三角与灰底衔接 */
.dropdown-user-info::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fafafa;
    transform: rotate(45deg);
    z-index: 2;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    margin: 0 auto 8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#dropdown-display-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.dropdown-username {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.dropdown-username span {
    font-weight: 500;
    color: #000000;
}

/* 微信徽章 */
.wechat-badge-dropdown {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #09bb07 0%, #00d100 100%);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(9, 187, 7, 0.4);
}

/* 分隔线 */
.dropdown-divider {
    height: 1px;
    background: var(--color-border, #d4d4d8);
    margin: 0;
}

.dropdown-links {
    padding: 6px 8px 8px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border-radius: 10px;
    margin: 1px 0;
}

.dropdown-link:hover {
    background: #f3f4f6;
}

.dropdown-link.active {
    background: #f3f4f6;
    color: #111827;
}

.dropdown-link svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.dropdown-link:hover svg {
    color: #111827;
}

.dropdown-link span {
    flex: 1;
}

/* 🎨 简约风格退出登录 */
.dropdown-logout {
    color: #6b7280;
    margin-top: 4px;
}

.dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-logout:hover svg {
    color: #dc2626;
}

/* 子菜单容器 */
.dropdown-submenu-wrapper {
    position: relative;
}

.dropdown-submenu-toggle {
    justify-content: flex-start;
}

.submenu-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.dropdown-submenu-wrapper.active .submenu-arrow {
    transform: rotate(180deg);
}

/* 🎨 简约风格子菜单 */
.dropdown-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #f9fafb;
}

.dropdown-submenu-wrapper.active .dropdown-submenu {
    max-height: 150px;
}

.dropdown-sublink {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 44px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    /* 🚀 优化：明确属性 */
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-sublink svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    opacity: 0.6;
    flex-shrink: 0;
    /* 🚀 优化：明确属性 */
    transition: color 0.15s ease, opacity 0.15s ease;
}

.dropdown-sublink:hover {
    background: #f3f4f6;
    color: #0d9488;
    border-radius: 6px;
    margin: 0 8px;
    padding-left: 36px;
    padding-right: 12px;
}

.dropdown-sublink:hover svg {
    opacity: 1;
    fill: #0d9488;
}

.dropdown-sublink.active {
    background: #ede9fe;
    color: #0d9488;
    border-radius: 6px;
    margin: 0 8px;
    padding-left: 36px;
    padding-right: 12px;
}

.dropdown-sublink.active svg {
    opacity: 1;
    fill: #0d9488;
}

/* ========================================
   下拉菜单深色模式
   ======================================== */
/* 🎨 暗黑模式简约下拉菜单 */
body.dark-mode .user-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.35),
        0 16px 40px -8px rgba(0, 0, 0, 0.45);
}

body.dark-mode .user-dropdown::before {
    background: #111827;
    border-color: #374151;
}

body.dark-mode .dropdown-user-info {
    background: #111827;
    border-bottom-color: #374151;
}

body.dark-mode .dropdown-user-info::before {
    background: #111827;
}

body.dark-mode .dropdown-avatar {
    background: #374151;
}

body.dark-mode .dropdown-username {
    color: #9ca3af;
}

body.dark-mode .dropdown-username span {
    color: #f9fafb;
}

body.dark-mode .dropdown-link {
    color: #f9fafb;
}

body.dark-mode .dropdown-link:hover {
    background: #374151;
}

body.dark-mode .dropdown-link svg {
    color: #9ca3af;
}

body.dark-mode .dropdown-submenu {
    background: #111827;
}

body.dark-mode .dropdown-logout {
    color: #9ca3af;
}

body.dark-mode .dropdown-username {
    color: #d1d5db;
}

body.dark-mode .dropdown-username span {
    color: #f9fafb;
}

body.dark-mode .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-link {
    color: #d1d5db;
}

body.dark-mode .dropdown-link:hover {
    background: #374151;
    border-radius: 8px;
}

body.dark-mode .dropdown-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 8px;
}

body.dark-mode .dropdown-link svg {
    fill: #9ca3af;
}

body.dark-mode .dropdown-link:hover svg,
body.dark-mode .dropdown-link.active svg {
    fill: #a5b4fc;
}

body.dark-mode .dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

body.dark-mode .dropdown-logout:hover svg {
    fill: #fca5a5;
}

body.dark-mode .dropdown-submenu {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .dropdown-sublink {
    color: #9ca3af;
}

body.dark-mode .dropdown-sublink svg {
    fill: #9ca3af;
}

body.dark-mode .dropdown-sublink:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

body.dark-mode .dropdown-sublink:hover {
    background: #374151;
    border-radius: 6px;
}

body.dark-mode .dropdown-sublink:hover svg {
    fill: #a5b4fc;
}

body.dark-mode .dropdown-sublink.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 6px;
}

body.dark-mode .dropdown-sublink.active svg {
    fill: #a5b4fc;
}


/* =============================================================================
 * 移动端 max-width:960px 内 body.dark-mode（自 header-styles 迁入 2026-04-02）
 * ============================================================================= */

/* ========================================
   移动端深色模式
   ======================================== */
@media screen and (max-width: 960px) {
    body.dark-mode .main-nav {
        background: var(--dm-page-bg) !important;
    }
    
    body.dark-mode .main-nav ul::before {
        color: #71717a !important;
        border-bottom-color: #27272a !important;
    }
    
    body.dark-mode .main-nav ul::after {
        color: #52525b !important;
    }
    
    body.dark-mode .main-nav .nav-link {
        color: #a1a1aa !important;
        font-weight: 500 !important;
    }
    
    body.dark-mode .main-nav .nav-link:hover {
        color: #f4f4f5 !important;
        background: #1a1f2c !important;
    }
    
    body.dark-mode .main-nav .nav-link:focus-visible {
        outline-color: #3d9d91 !important;
    }
    
    body.dark-mode .main-nav .nav-link.active {
        color: #6ee7b7 !important;
        background: rgba(13, 148, 136, 0.12) !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }
    
    body.dark-mode .main-nav .nav-link.active:hover {
        color: #a7f3d0 !important;
        background: rgba(13, 148, 136, 0.18) !important;
    }
    
    body.dark-mode .main-nav .nav-link.active:active {
        background: rgba(13, 148, 136, 0.22) !important;
    }
    
    body.dark-mode .main-nav .nav-link.active::after {
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
    }
    
    body.dark-mode .menu-toggle span {
        background: #e0e0e0;
    }
}



/* =============================================================================
 * 组件 / 页面迁入：index-hero.css
 * ============================================================================= */


/* ---------- 深色模式：极简洁净深灰底（底部波浪不变） ---------- */
body.dark-mode .index-hero-section {
    --hero-accent-a: #a3a3a3;
    --hero-accent-b: #737373;
    --hero-accent-c: #525252;
    --hero-bg-a: #111111;
    --hero-bg-b: #0d0d0d;
    --hero-bg-base: #0a0a0a;
    --hero-orb-a: rgba(255, 255, 255, 0.05);
    --hero-orb-b: rgba(163, 163, 163, 0.04);
    --hero-orb-c: rgba(115, 115, 115, 0.03);
    --hero-mesh-a: rgba(255, 255, 255, 0.025);
    --hero-mesh-b: rgba(163, 163, 163, 0.02);
    --hero-mesh-c: rgba(115, 115, 115, 0.015);
    --hero-mesh-d: rgba(82, 82, 82, 0.012);
    --hero-title-gradient: linear-gradient(118deg, #f8fafc 0%, #c7d2fe 28%, #f9a8d4 58%, #67e8f9 100%);
    --hero-subtitle: #94a3b8;
    --hero-divider-gradient: linear-gradient(90deg, rgba(129, 140, 248, 0.1), #818cf8 20%, #f472b6 50%, #22d3ee 80%, rgba(34, 211, 238, 0.1));
    --hero-wave-fill: url(#hero-wave-home);
}

body.dark-mode .index-hero-section--teachers {
    --hero-orb-a: rgba(167, 139, 250, 0.2);
    --hero-orb-b: rgba(244, 114, 182, 0.15);
    --hero-orb-c: rgba(251, 146, 60, 0.14);
    --hero-mesh-a: rgba(167, 139, 250, 0.13);
    --hero-mesh-b: rgba(244, 114, 182, 0.09);
    --hero-mesh-c: rgba(251, 146, 60, 0.1);
    --hero-title-gradient: linear-gradient(118deg, #faf5ff 0%, #ddd6fe 30%, #f9a8d4 58%, #fdba74 100%);
    --hero-divider-gradient: linear-gradient(90deg, rgba(167, 139, 250, 0.1), #a78bfa 20%, #f472b6 50%, #fb923c 80%, rgba(251, 146, 60, 0.1));
    --hero-wave-fill: url(#hero-wave-teachers);
}

body.dark-mode .index-hero-section--samples {
    --hero-orb-a: rgba(56, 189, 248, 0.2);
    --hero-orb-b: rgba(45, 212, 191, 0.15);
    --hero-orb-c: rgba(129, 140, 248, 0.14);
    --hero-mesh-a: rgba(56, 189, 248, 0.12);
    --hero-mesh-b: rgba(45, 212, 191, 0.1);
    --hero-mesh-c: rgba(129, 140, 248, 0.09);
    --hero-title-gradient: linear-gradient(118deg, #f0f9ff 0%, #7dd3fc 32%, #5eead4 60%, #a5b4fc 100%);
    --hero-divider-gradient: linear-gradient(90deg, rgba(56, 189, 248, 0.1), #38bdf8 20%, #2dd4bf 50%, #818cf8 80%, rgba(129, 140, 248, 0.1));
    --hero-wave-fill: url(#hero-wave-samples);
}

body.dark-mode .index-hero-section--apply {
    --hero-orb-a: rgba(167, 139, 250, 0.2);
    --hero-orb-b: rgba(244, 114, 182, 0.15);
    --hero-orb-c: rgba(251, 146, 60, 0.14);
    --hero-mesh-a: rgba(167, 139, 250, 0.13);
    --hero-mesh-b: rgba(244, 114, 182, 0.09);
    --hero-mesh-c: rgba(251, 146, 60, 0.1);
    --hero-title-gradient: linear-gradient(118deg, #faf5ff 0%, #ddd6fe 30%, #f9a8d4 58%, #fdba74 100%);
    --hero-divider-gradient: linear-gradient(90deg, rgba(167, 139, 250, 0.1), #a78bfa 20%, #f472b6 50%, #fb923c 80%, rgba(251, 146, 60, 0.1));
    --hero-wave-fill: url(#hero-wave-teachers);
}

body.dark-mode .index-hero-section--home,
body.dark-mode .index-hero-section--teachers,
body.dark-mode .index-hero-section--samples,
body.dark-mode .index-hero-section--apply {
    background:
        linear-gradient(180deg, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, 0.35) 55%, var(--dm-index-canvas) 100%),
        linear-gradient(145deg, var(--hero-bg-a) 0%, var(--hero-bg-b) 55%, var(--hero-bg-base) 100%);
    border-bottom: none;
    padding-bottom: 12px;
    box-sizing: border-box;
}

body.dark-mode .index-hero-section--home::before,
body.dark-mode .index-hero-section--teachers::before,
body.dark-mode .index-hero-section--samples::before,
body.dark-mode .index-hero-section--apply::before {
    background-image:
        radial-gradient(ellipse 72% 56% at 18% 8%, var(--hero-mesh-a) 0%, transparent 58%),
        radial-gradient(ellipse 58% 48% at 88% 12%, var(--hero-mesh-b) 0%, transparent 55%),
        radial-gradient(ellipse 64% 52% at 52% 92%, var(--hero-mesh-c) 0%, transparent 58%),
        radial-gradient(ellipse 48% 40% at 72% 38%, var(--hero-mesh-d) 0%, transparent 52%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

body.dark-mode .index-hero-section--home::after,
body.dark-mode .index-hero-section--teachers::after,
body.dark-mode .index-hero-section--samples::after,
body.dark-mode .index-hero-section--apply::after {
    opacity: 0.055;
}

body.dark-mode .index-hero-section .hero-ambient__orb--a {
    background: var(--hero-orb-a);
}

body.dark-mode .index-hero-section .hero-ambient__orb--b {
    background: var(--hero-orb-b);
}

body.dark-mode .index-hero-section .hero-ambient__orb--c {
    background: var(--hero-orb-c);
}

body.dark-mode .index-hero-section .hero-title-line--head {
    text-shadow: none;
}

body.dark-mode .index-hero-section .hero-title-brand,
body.dark-mode .index-hero-section .hero-title-lead {
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

body.dark-mode .index-hero-section .hero-eyebrow {
    color: color-mix(in srgb, var(--hero-accent-c) 88%, #fff) !important;
    background: color-mix(in srgb, var(--hero-accent-a) 16%, transparent);
    border-color: color-mix(in srgb, var(--hero-accent-a) 32%, transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

body.dark-mode .index-hero-section .hero-title-line--desc,
body.dark-mode .index-hero-section .hero-title-line--sub {
    color: rgba(226, 232, 240, 0.82) !important;
}

body.dark-mode .index-hero-section--teachers .hero-title-line--desc,
body.dark-mode .index-hero-section--samples .hero-title-line--desc,
body.dark-mode .index-hero-section--apply .hero-title-line--desc {
    color: rgba(241, 245, 249, 0.92) !important;
}

body.dark-mode .index-hero-section .hero-title-divider {
    background: var(--hero-divider-gradient) !important;
    box-shadow: 0 0 22px rgba(129, 140, 248, 0.28);
}

body.dark-mode.index-page .main-nav:not(.active) .nav-link,
body.dark-mode.hero-ambient-page .main-nav:not(.active) .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.dark-mode.index-page .main-nav:not(.active) .nav-link:hover,
body.dark-mode.hero-ambient-page .main-nav:not(.active) .nav-link:hover {
    color: #86efac !important;
}

body.dark-mode.index-page .main-nav:not(.active) .nav-link.active,
body.dark-mode.hero-ambient-page .main-nav:not(.active) .nav-link.active {
    color: #fff !important;
}

/* 首页 Hero 顶栏：悬停条仍偏青绿；当前页下划线改白，避免像「黑线」 */
body.dark-mode.index-page .main-nav:not(.active) .nav-link:hover:not(.active)::after,
body.dark-mode.hero-ambient-page .main-nav:not(.active) .nav-link:hover:not(.active)::after {
    background: rgba(129, 250, 154, 0.9) !important;
}

body.dark-mode.index-page .main-nav:not(.active) .nav-link.active::after,
body.dark-mode.hero-ambient-page .main-nav:not(.active) .nav-link.active::after {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

/* 深色 Hero：抵消 index-hero 里浅色字晕，改用暗描边；未滚动时下划线略加轮廓 */
body.dark-mode.index-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65) !important;
}

body.dark-mode.index-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link:hover,
body.dark-mode.index-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link.active,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link:hover,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link.active {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
}

body.dark-mode.index-page.nav-scrolled .main-nav:not(.active) .nav-link,
body.dark-mode.hero-ambient-page.nav-scrolled .main-nav:not(.active) .nav-link {
    text-shadow: none !important;
}

body.dark-mode.index-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link::after,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link::after {
    height: 2px !important;
    /* 深色粒子底上勿用黑描边，否则当前项像暗线；非当前项 hover 仍用上方配色 */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}

body.dark-mode.index-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link.active::after,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .main-nav:not(.active) .nav-link.active::after {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

/* 首页暗黑：顶栏全透明叠 Hero（html前缀与 header 内联同权，避免首屏闪 rgba条） */
html.dark-mode body.dark-mode.index-page:not(.nav-scrolled) .nav,
body.dark-mode.index-page:not(.nav-scrolled) .nav,
html.dark-mode body.dark-mode.hero-ambient-page:not(.nav-scrolled) .nav,
body.dark-mode.hero-ambient-page:not(.nav-scrolled) .nav {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 滚动后：实色深底顶栏，与正文区背景一致 */
html.dark-mode body.dark-mode.index-page.nav-scrolled .nav,
body.dark-mode.index-page.nav-scrolled .nav,
html.dark-mode body.dark-mode.hero-ambient-page.nav-scrolled .nav,
body.dark-mode.hero-ambient-page.nav-scrolled .nav {
    background: var(--dm-index-canvas, #111111) !important;
    background-color: var(--dm-index-canvas, #111111) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
    box-shadow: none !important;
}


/* Logo：实心「匠」字图标，暗黑模式保持原色 */
body.dark-mode.index-page .nav .nav-logo img,
body.dark-mode.index-page .nav .nav-logo img.trans,
body.dark-mode.index-page .nav .nav-logo img.brand-primary,
body.dark-mode.hero-ambient-page .nav .nav-logo img,
body.dark-mode.hero-ambient-page .nav .nav-logo img.trans,
body.dark-mode.hero-ambient-page .nav .nav-logo img.brand-primary {
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1;
}


body.dark-mode.index-page .nav .user-links a,
body.dark-mode.hero-ambient-page .nav .user-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}


body.dark-mode.index-page .nav #login-btn,
body.dark-mode.hero-ambient-page .nav #login-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}


body.dark-mode.index-page .nav #login-btn:hover,
body.dark-mode.hero-ambient-page .nav #login-btn:hover {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #fff !important;
}

body.dark-mode.index-page .nav .site-layout-toggle,
body.dark-mode.hero-ambient-page .nav .site-layout-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.dark-mode.index-page .nav .site-layout-toggle:hover,
body.dark-mode.hero-ambient-page .nav .site-layout-toggle:hover {
    background: #0d9488 !important;
    color: #fff !important;
}


body.dark-mode.index-page .nav .user-avatar,
body.dark-mode.hero-ambient-page .nav .user-avatar {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}


body.dark-mode.index-page .nav .menu-toggle span,
body.dark-mode.hero-ambient-page .nav .menu-toggle span {
    background: rgba(255, 255, 255, 0.92) !important;
}


body.dark-mode.index-page .main-nav:not(.active),
body.dark-mode.hero-ambient-page .main-nav:not(.active) {
    background: transparent !important;
}

body.dark-mode.index-page.nav-scrolled .main-nav:not(.active),
body.dark-mode.hero-ambient-page.nav-scrolled .main-nav:not(.active) {
    background: var(--dm-index-canvas, #111111) !important;
}

/* 首页移动端全屏菜单展开：与 header-styles 深色菜单一致 */
body.dark-mode.index-page .main-nav.active,
body.dark-mode.hero-ambient-page .main-nav.active {
    background: var(--dm-page-bg) !important;
}


html.dark-mode:has(body.hero-ambient-page) {
    background-color: var(--dm-index-canvas);
    background-image: var(--dm-page-bg-gradient);
}

body.dark-mode.hero-ambient-page {
    background-color: var(--dm-index-canvas);
    background-image: var(--dm-page-bg-gradient);
}

body.dark-mode.hero-ambient-page .Whole > .Content,
body.dark-mode.hero-ambient-page .Whole > .content {
    background: transparent;
}

/* 与 Hero 底部渐变终点 #111827 一致，避免与主内容区之间出现一条色差带 */
html.dark-mode:has(body.index-page) {
    background-color: var(--dm-index-canvas);
    background-image: var(--dm-page-bg-gradient);
}


/* hero-ambient-page 由 index-hero.css 提供 login 同款 ::before 全屏渐变 */
body.dark-mode.index-page:not(.hero-ambient-page) {
    background-color: var(--dm-index-canvas);
    background-image: var(--dm-page-bg-gradient);
}


body.dark-mode.index-page .Content,
body.dark-mode.index-page .Content.index-home-content {
    background: transparent;
}

/* Hero 与主内容衔接：首页 + 列表页凡「粒子头 + .Content」结构一致处理（仅暗黑；不占布局） */
body.dark-mode.index-page .index-hero-section + .Content {
    box-shadow: inset 0 100px 72px -58px rgba(10, 15, 24, 0.38);
}


/*
 * 手机端暗黑：Hero 底部晕入页面底色，与 .Content 顶晕染衔接
 */
@media screen and (max-width: 768px) {
    body.dark-mode .index-hero-section {
        contain: none;
    }

    body.dark-mode .index-hero-section.index-hero-section--home,
    body.dark-mode .index-hero-section.index-hero-section--teachers,
    body.dark-mode .index-hero-section.index-hero-section--samples,
    body.dark-mode .index-hero-section.index-hero-section--apply {
        box-shadow: inset 0 -120px 88px -36px var(--dm-index-canvas);
    }

    body.dark-mode.index-page .index-hero-section + .Content {
        box-shadow:
            inset 0 110px 96px -52px rgba(5, 8, 14, 0.5),
            inset 0 48px 56px -28px rgba(10, 15, 24, 0.32);
    }
}


/* =============================================================================
 * 组件 / 页面迁入：components/teacher_card.css
 * ============================================================================= */


body.dark-mode .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}


body.dark-mode .HeadImg {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);  /* 🎯 暗黑模式阴影 */
  background-color: #374151;
}


body.dark-mode .teacher-stats-line .stat-num {
  color: #f9fafb;
}

body.dark-mode .teacher-stats-line .stat-label {
  color: #9ca3af;
}


body.dark-mode .teacher-stats-line .stat-divider {
  color: #6b7280;
}


body.dark-mode .teacher-stats-line {
  background: transparent;
  border: none;
}

body.dark-mode .audio_teacher_list .unified-player-container {
  background-color: var(--player-waveform-bg-color, transparent);
  border-color: var(--player-border-color, rgba(255, 255, 255, 0.1));
}


body.dark-mode .voice-name {
  color: #f9fafb;
}


body.dark-mode .voice-avatar-link:hover .voice-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(74, 86, 243, 0.35), 0 3px 8px rgba(0, 0, 0, 0.3);
}


body.dark-mode .voice-info-text {
  color: #9ca3af;
}


body.dark-mode .voice-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}


body.dark-mode .voice-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}


/* ========== 暗黑模式（以 teacher_list.css 为准） ========== */

/* 暗黑模式 - Bunny Studio 风格：透明底 + 统一边框 */
body.dark-mode .Teacher {
  background: transparent !important;
  border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
  box-shadow: none;
}


body.dark-mode .Teacher:hover {
  background: transparent !important;
  border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}

body.dark-mode .Teacher:hover .HeadImg {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}


body.dark-mode .teacher-code {
  color: #f9fafb;
}


body.dark-mode .Teacher:hover .teacher-code {
  color: #a5b4fc;
}


/* 功能按钮颜色：由 card_actions.js + 后台「样音按钮 / 暗黑样式」注入；此处仅保留文字次要色 */
body.dark-mode .sample-actions,
body.dark-mode .teacher-actions,
body.dark-mode .voice-actions {
  --card-text-secondary: #9ca3af;
}


body.dark-mode .teacher-info-text {
  color: #9ca3af;
}


body.dark-mode .voice-card-inner {
  background: transparent !important;
  border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
  box-shadow: none;
}


body.dark-mode .voice-card-inner:hover {
  background: transparent !important;
  border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}


body.dark-mode .voice-card:focus-within .voice-card-inner,
body.dark-mode .voice-card-inner:focus {
  outline-color: rgba(129, 140, 248, 0.55);
}


body.dark-mode .voice-avatar {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);  /* 🎯 暗黑模式阴影 */
  background-color: #374151;
}

body.dark-mode .discount-teacher-inner {
  background: transparent !important;
  border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
  box-shadow: none;
}


body.dark-mode .discount-teacher-inner:hover {
  background: transparent !important;
  border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}


body.dark-mode .discount-teacher-card:focus-within .discount-teacher-inner,
body.dark-mode .discount-teacher-inner:focus {
  outline-color: rgba(129, 140, 248, 0.55);
}


/* 深色模式 - 折扣标签和倒计时 */
body.dark-mode .discount-badge {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}


body.dark-mode .discount-countdown {
  color: #a1a1aa;
  background: transparent;
  border: none;
}


body.dark-mode .discount-countdown::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12,6 12,12 16,14'/%3E%3C/svg%3E");
}


body.dark-mode .discount-countdown.urgent {
  color: #fb923c;
  background: transparent;
  border: none;
}


body.dark-mode .discount-countdown.urgent::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12,6 12,12 16,14'/%3E%3C/svg%3E");
}


/* 首页限时打折：价格区内倒计时（暗色） */
body.dark-mode .discount-price-section .discount-countdown {
  --dc-fg: #cbd5e1;
  color: var(--dc-fg);
  background: none;
  box-shadow: none;
  border: none;
}

body.dark-mode .discount-price-section .discount-countdown::before {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12,6 12,12 16,14'/%3E%3C/svg%3E");
  box-shadow: none;
}

body.dark-mode .discount-price-section .discount-countdown.urgent {
  --dc-fg: #fdba74;
  background: none;
  box-shadow: none;
  border: none;
}

body.dark-mode .discount-price-section .discount-countdown.urgent::before {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12,6 12,12 16,14'/%3E%3C/svg%3E");
}

body.dark-mode .discount-price-section .discount-countdown.expired {
  --dc-fg: #94a3b8;
}

body.dark-mode .discount-price-section .discount-countdown.expired .discount-countdown-text {
  color: var(--dc-fg);
}

/* =============================================================================
 * 组件 / 页面迁入：discount-card.css
 * ============================================================================= */


body.dark-mode .discount-scroll-hint-text {
  background: var(--card-bg-white, #2a2a2a);
  color: var(--card-text-secondary, #aaa);
  border-color: var(--card-border, #444);
}


body.dark-mode .discount-scroll-hint-arrow {
  background: var(--card-primary-color, #2dd4bf);
}


body.dark-mode .discount-scroll-hint-bottom {
  color: var(--card-text-secondary, #919191);
}


body.dark-mode .discount-teacher-card:focus-within .discount-teacher-inner,
body.dark-mode .discount-teacher-inner:focus {
  outline-color: rgba(129, 140, 248, 0.55);
}


body.dark-mode .discount-badge {
  background: #ff6b81;
}


body.dark-mode .discount-teacher-type {
  color: #95a5a6; /* 暗黑模式下更亮的灰色 */
}


body.dark-mode .discount-teacher-info-text {
  color: #999;
}


body.dark-mode .discount-teacher-tag {
  background: transparent;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.14);
}


  body.dark-mode .discount-teacher-tag:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
  }


  body.dark-mode .discount-teacher-inner:hover .discount-teacher-avatar {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5),
                0 3px 8px rgba(0, 0, 0, 0.3);
  }


/* 限时打折：倒计时+价区与下方波形同一衬底；不要描边（避免青线突兀） */
body.dark-mode .discount-price-section {
  background: var(--dm-player-surface);
  border: none;
  box-shadow: none;
  border-radius: 8px;
}


  body.dark-mode .discount-teacher-card:hover .discount-price-section {
    background: var(--dm-player-surface-hover);
    border: none;
  }


/* 特价老师卡内播放器：跟随后台 dark_mode_bg_color，无配置时回退 dm 表面色 */
body.dark-mode .discount-teacher-card .unified-player-container,
body.dark-mode .discount-teacher-card .module-player .unified-player-container {
  background-color: var(--player-waveform-bg-color, var(--dm-player-surface));
  border: var(--player-border-width, 1px) solid var(--player-border-color, transparent);
  box-shadow: none;
}


body.dark-mode .discount-teacher-card .unified-player-container:hover,
body.dark-mode .discount-teacher-card .module-player .unified-player-container:hover,
body.dark-mode .discount-teacher-card:hover .unified-player-container,
body.dark-mode .discount-teacher-card:hover .module-player .unified-player-container {
  border-color: var(--player-border-color, rgba(255, 255, 255, 0.1));
}


body.dark-mode .discount-teacher-card .waveform-container,
body.dark-mode .discount-teacher-card .module-player .waveform-container {
  background: var(--dm-player-surface);
  border: none;
  box-shadow: none;
}


body.dark-mode .discount-teacher-card .waveform-container:hover,
body.dark-mode .discount-teacher-card .module-player .waveform-container:hover {
  background: var(--dm-player-surface-hover);
  border: none;
  box-shadow: none;
}


body.dark-mode .discount-teacher-card:hover .waveform-container,
body.dark-mode .discount-teacher-card:hover .module-player .waveform-container {
  background: var(--dm-player-surface-hover);
  border: none;
  box-shadow: none;
}


body.dark-mode .discount-price-label {
  color: #b0adb3;
}


body.dark-mode .discount-action-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}


  body.dark-mode .discount-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }


body.dark-mode .discount-countdown {
  color: #ff6b81;
}



/* =============================================================================
 * 组件 / 页面迁入：Index.css
 * ============================================================================= */


body.dark-mode .Public.Floor02 .Cn,
body.dark-mode .Public.Floor05 .Cn {
    color: #ffffff;
}


body.dark-mode .Public.Floor02 p a,
body.dark-mode .Public.Floor05 p a {
    color: #888888;
}


body.dark-mode .Public.Floor02 p a:hover,
body.dark-mode .Public.Floor05 p a:hover {
    color: #ffffff;
}

body.dark-mode .voice-tab-more a {
  color: #888;
}

body.dark-mode .voice-tab-more a:hover {
  color: #fff;
}

body.dark-mode .voice-tab {
  color: #888;
}

body.dark-mode .voice-tab:hover {
  color: #fff;
}

body.dark-mode .voice-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}


body.dark-mode .teacherName {
  color: #ffffff;
}


body.dark-mode .tag {
  color: #b0adb3;
}


body.dark-mode .cardActions {
  border-top-color: #333;
}


body.dark-mode .cardActions li a {
  color: #b0adb3;
}


body.dark-mode .pricePopupContent {
  background-color: var(--dm-page-bg);
  color: #ffffff;
}


body.dark-mode .popupTitle {
  border-bottom-color: #333;
}


body.dark-mode .static-banner {
  background: #2a2a2a;
}


body.dark-mode .banner-background {
  background: #2a2a2a;
}


/* 深色模式：卡片透明，与推荐区一致 */
body.dark-mode .sound-list-container .Sound {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}


body.dark-mode .sound-list-container .Sound:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
    box-shadow: none;
}


body.dark-mode .sound-list-container .Sound:focus-within,
body.dark-mode .sound-list-container .Sound:focus {
    outline-color: #3d9d91;
}


body.dark-mode .sound-list-container .Sound .sound-by h2 {
    color: #ffffff !important;
}


body.dark-mode .sound-list-container .Sound .Operate a:hover {
    background-color: #3d9d91 !important;
    border-color: #3d9d91 !important;
}


body.dark-mode .sound-list-container .Sound .controls .btn-primary {
    border-color: #ffffff !important;
}


body.dark-mode .sound-list-container .Sound .controls .btn-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
}


body.dark-mode .sound-list-container .Sound .controls .glyphicon-play {
    border-color: transparent transparent transparent #ffffff !important;
}


body.dark-mode .sound-list-container .Sound .controls .btn-primary:hover .glyphicon-play {
    border-left-color: #1a1a1a !important;
}


body.dark-mode .discount-scroll-hint-text {
  background: rgba(40, 40, 40, 0.85);
  color: #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


body.dark-mode .discount-scroll-hint-arrow {
  background: var(--card-primary-color, #3d9d91);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.5);
}


body.dark-mode .discount-scroll-hint-bottom {
  color: var(--card-text-secondary, #aaa);
}


body.dark-mode .icon-order,
body.dark-mode .icon-download,
body.dark-mode .icon-star {
  stroke: #999999;
}


body.dark-mode .icon-star.filled {
  fill: #3d9d91;
  stroke: #3d9d91;
}


/* 深色模式图标样式 */
body.dark-mode .icon-order,
body.dark-mode .icon-download,
body.dark-mode .icon-star {
  stroke: #b0adb3;
}


body.dark-mode h1.Public,
body.dark-mode h1.Public1,
body.dark-mode h1.Public span.Cn,
body.dark-mode h1.Public1 span.Cn1 {
    color: #ffffff !important;
}


/* 深色模式：卡片底透明，默认描边区分层级（须写 border 宽度，仅 border-color 无效） */
body.dark-mode .Sound,
body.dark-mode .index-sample-item {
    background-color: transparent !important;
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    box-shadow: none !important;
}

    
    body.dark-mode .Sound:hover, 
    body.dark-mode .index-sample-item:hover {
        border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
        background: transparent !important;
        box-shadow: none !important;
    }


body.dark-mode .Sound h2 {
    color: #ffffff !important;
}


body.dark-mode .oldPrice {
    color: #666666 !important;
}


body.dark-mode .Newest {
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
}


body.dark-mode .News {
    background: #1a1a1a !important;
}


body.dark-mode .News li a {
    color: #ffffff !important;
}


body.dark-mode .News li span {
    color: #666666 !important;
    background: #1a1a1a !important;
}


body.dark-mode .Teacher h2 span {
    color: #ffffff !important;
}

body.dark-mode .index-sample-page-btn {
    background: var(--card-bg-white, #2a2a2a);
    border-color: var(--card-border, #444);
    color: #999;
}

body.dark-mode .index-sample-page-btn svg {
    stroke: #999;
}

body.dark-mode .index-sample-page-btn:hover:not(.disabled) {
    background-color: var(--card-primary-color, #3d9d91);
    border-color: var(--card-primary-color, #3d9d91);
}

body.dark-mode .index-sample-page-btn:hover:not(.disabled) svg {
    stroke: #ffffff;
}

body.dark-mode .index-sample-page-dot {
    background: #555;
}

body.dark-mode .index-sample-page-dot.active {
    background: var(--card-primary-color, #3d9d91);
}


/* 播放器/波形/占位：由 dark-mode-unified.css 与组件统一，不在此处覆盖背景 */

/* 推荐样音：标题与辅助字色与老师卡片信息行一致 */
body.dark-mode .index-sample-title {
    color: #f9fafb !important;
}


body.dark-mode .index-sample-item .sample-style,
body.dark-mode .index-sample-item .style-tags,
body.dark-mode .index-sample-item .sample-play-count {
    color: #9ca3af !important;
}

/* 推荐样音头像：与声音列表 .sample-avatar 深色模式一致 */
body.dark-mode .index-sample-avatar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #374151;
    border: none;
}


body.dark-mode .index-action-icon {
    background: var(--card-bg-white, rgba(255, 255, 255, 0.06)) !important;
}


body.dark-mode .index-action-icon svg {
    stroke: #d1d5db !important;
}


/* =============================================================================
 * 组件 / 页面迁入：sound_list.css
 * ============================================================================= */


body.dark-mode .info-avatar img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


body.dark-mode .sample-avatar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #374151; /* ✅ 已与老师卡片统一 */
}


/* 深色模式 - 空状态提示 */
body.dark-mode .Result {
    color: #9ca3af;
}

body.dark-mode .Result span {
    color: #9ca3af;
}

body.dark-mode .Result svg {
    stroke: #6b7280;
}


/* 样音卡片深色模式：透明底 + 科技青描边（须写 border 宽度，仅 border-color 无效） */
body.dark-mode .sample-item {
    background: transparent;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
    box-shadow: none;
}


body.dark-mode .sample-item:hover {
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
    box-shadow: none;
}

body.dark-mode #sound_list.list-view .sample-item,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item,
body.dark-mode #sound_list.list-view .sample-item:hover,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item:hover {
    border: none !important;
    box-shadow: none !important;
}


/* 两列/列表视图也写标题与辅助字（原先仅 card-view 有深色标题） */
body.dark-mode #sound_list .sample-title,
body.dark-mode .sample-item .sample-title {
    color: #f9fafb !important;
    font-weight: 600 !important;
    font-synthesis: none;
}


body.dark-mode .sample-style,
body.dark-mode .style-tags {
    color: #9ca3af !important;
}


body.dark-mode .sample-title-link:hover .sample-title {
    color: #4ade80 !important;
}


body.dark-mode .sample-avatar {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #374151;
}


body.dark-mode .sample-avatar-container {
    border-color: rgba(255, 255, 255, 0.12);
}


/* 🌙 搜索框暗黑模式：已由 filter_horizontal.css 统一管理 */

/* ===== 筛选暗黑模式样式已移至组件 ===== */
/* 筛选暗黑模式样式现在由 /css/web/components/filter_horizontal.css 统一管理 */

/* ===== 已选条件标签 - 暗黑模式：已移至组件 filter_horizontal.css ===== */

/* ===== 搜索标签 - 暗黑模式 ===== */
body.dark-mode .search-tag {
    background: transparent;
    color: #81c0ff;
    border: 1px solid rgba(74, 144, 226, 0.45);
}


body.dark-mode .search-tag:hover {
    background: transparent;
    color: #a5b4fc;
    border-color: rgba(74, 144, 226, 0.65);
}


body.dark-mode .search-tag img,
body.dark-mode .Selected a img {
    filter: brightness(0) invert(1);
}


/* 视图切换按钮暗黑模式样式已移至 filter_horizontal.css 组件 */

/* ===== 卡片视图 - 暗黑模式 ===== */
body.dark-mode #sound_list.card-view .sample-item {
    background: transparent;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    box-shadow: none !important;
}


body.dark-mode #sound_list.card-view .sample-item:hover {
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: none !important;
}


body.dark-mode #sound_list.card-view .sample-item .sample-avatar {
    box-shadow: none;
    background-color: #374151;
}


body.dark-mode #sound_list.card-view .sample-item .sample-title {
    color: #f9fafb;
}


body.dark-mode #sound_list.card-view .sample-item .sample-style {
    color: #9ca3af;
}


/* ===== 播放次数 - 暗黑模式 - Bunny Studio 风格 ===== */
body.dark-mode .sample-play-count {
    color: #6b7280;
}


body.dark-mode .sample-play-count svg {
    color: #6b7280;
}


body.dark-mode .play-count-number {
    color: #6b7280;
}


/* ===== 操作按钮 - 暗黑模式 ===== */
/* 按钮样式已统一在 /css/web/components/card_actions.css 中控制 */
body.dark-mode #sound_list.card-view .sample-item .sample-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}


/* 播放器区域：由 dark-mode-unified.css 统一，不在此覆盖 */

/* 列表/双列 strip 布局：由 sound_list.css 统一管理（底部分割线 + ::before 悬停灰底） */
body.dark-mode #sound_list.list-view .sample-item,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode #sound_list.list-view .sample-item:hover,
body.dark-mode #sound_list:not(.list-view):not(.card-view) .sample-item:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* 功能按钮圆形底：与首页 index-action-icon 一致 */
body.dark-mode #sound_list .sample-actions .action-icon {
    background: var(--card-bg-white, rgba(255, 255, 255, 0.06)) !important;
}


body.dark-mode #sound_list .sample-actions .action-icon svg {
    stroke: #d1d5db !important;
}



/* =============================================================================
 * 组件 / 页面迁入：teacher_list.css
 * ============================================================================= */


/* 深色模式 - 空状态提示 */
body.dark-mode .Result {
    color: #9ca3af;
}

body.dark-mode .Result span {
    color: #9ca3af;
}

body.dark-mode .Result svg {
    stroke: #6b7280;
}


/* 筛选条件区域 */
body.dark-mode .Choice {
    background: var(--dm-page-bg);
}


body.dark-mode .Choice .Category {
    color: #ffffff;
}


body.dark-mode .Choice .Conditions a {
    color: #b0adb3;
    border-color: #555;
    background: #2c2c2c;
}


body.dark-mode .Choice .Conditions a:hover {
    background: #0d9488;
    color: #ffffff;
}


body.dark-mode .Choice .Conditions a span {
    color: #b0adb3;
}


/* 搜索输入框 */
body.dark-mode .search-area input[type="text"] {
    background: #2c2c2c;
    color: #ffffff;
    border-color: #555;
}


body.dark-mode .search-area input[type="text"]:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}


/* 搜索图标按钮 */
body.dark-mode .search-icon-btn {
    color: #b0adb3;
}


body.dark-mode .search-icon-btn:hover {
    color: #0d9488;
}


/* ✅ 老师卡片的暗黑模式样式已迁移到 /css/web/components/teacher_card.css */

/* ✅ 标签、老师名称、分享按钮的暗黑模式样式已迁移到 /css/web/components/teacher_card.css */

/* ✅ 旧版HTML结构的暗黑模式样式已废弃 */
/* body.dark-mode .Teacher h4, h5 - 旧版老师信息 */
/* body.dark-mode .Teacher .Price - 旧版价格显示 */
/* body.dark-mode .Teacher dd span - 旧版标签 */

/* ✅ 旧版 .Operate 操作按钮的暗黑模式样式已废弃 */
/* 功能按钮暗黑模式样式已统一在 /css/web/components/card_actions.css 中控制 */

/* ✅ 移动端响应式样式已迁移到组件 */
/* - 播放器容器样式 → /css/web/components/teacher_card.css */
/* - 功能按钮样式 → /css/web/components/card_actions.css */
/* - 时间指针样式 → unified-wavesurfer-player 组件 */

/* 排序区域 */
body.dark-mode .Sort {
    background: var(--dm-page-bg);
}


body.dark-mode .Sort li a {
    color: #ffffff;
}


body.dark-mode .Sort p {
    color: #b0adb3;
}


/* 暗黑模式样式已移至组件CSS */

/* 时间显示 */
body.dark-mode .current-time-on-pointer {
    background-color: var(--player-time-bg-color, #0d9488);
    color: var(--player-time-text-color, #ffffff);
}


/* 广告条 */
body.dark-mode .AdBar.M_B2 {
    background: linear-gradient(135deg, #2d3561 0%, #4a2545 100%);
}


body.dark-mode .AdBar.M_B2 a {
    color: #b0adb3;
    border-color: rgba(255,255,255,0.2);
}


body.dark-mode .AdBar.M_B2 a:hover {
    background: rgba(120, 23, 196, 0.3);
    color: #ffffff;
}


/* 暗黑模式 - .Selected 样式已迁移至 filter_horizontal.css */

/* 搜索标签 */
body.dark-mode .search-tag {
    background: #2c2c2c;
    color: #ffffff;
    border: 1px solid #555;
}


body.dark-mode .search-tag img {
    filter: brightness(0) invert(1);
}


/* 筛选标签 */
body.dark-mode .filter-tag a {
    background: #2c2c2c;
    color: #ffffff;
    border-color: #555;
}


body.dark-mode .filter-tag a:hover,
body.dark-mode .filter-tag a.active {
    background: #0d9488;
    color: #ffffff;
}


/* 清除筛选按钮 */
body.dark-mode .clear-filter,
body.dark-mode .filter-reset {
    color: #0d9488;
    border-color: #0d9488;
}


body.dark-mode .clear-filter:hover,
body.dark-mode .filter-reset:hover {
    background: #0d9488;
    color: #ffffff;
}



/* =============================================================================
 * 组件：components/filter_horizontal.css
 * 布局切换图标已改为模板内联 SVG + currentColor（见 sound_list / teacher_home），此处不再维护 data-URL。
 * ============================================================================= */

body.dark-mode .filter-horizontal .layout-btn:not(:last-child)::after {
  background: #444;
}


/* =============================================================================
 * 组件 / 页面迁入：components/card_actions.css
 * ============================================================================= */


/* 深色模式变量（--card-bg-white 由 card_actions.js + 后台「按钮背景色/暗黑模式背景色」写入 :root） */
body.dark-mode {
    --card-border: rgba(255, 255, 255, 0.12);
    --card-text-secondary: #aaa;
    --card-text-tertiary: #ddd;
    --card-bg-gray: rgba(255, 255, 255, 0.08);
    --card-shadow-large: 0 4px 20px rgba(0, 0, 0, 0.5);
}


body.dark-mode #card-action-tooltip.card-action-tooltip {
  background: rgba(30, 30, 30, 0.72);
  color: rgba(243, 244, 246, 0.95);
}


/* ==================== 深色模式 ==================== */
body.dark-mode .sample-actions .action-dropdown,
body.dark-mode .teacher-actions .action-dropdown,
body.dark-mode .voice-actions .action-dropdown {
  background: var(--card-dropdown-bg, #1f1f23) !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--card-dropdown-ring, rgba(255, 255, 255, 0.08)) !important;
}


body.dark-mode .sample-actions .action-dropdown::after,
body.dark-mode .teacher-actions .action-dropdown::after,
body.dark-mode .voice-actions .action-dropdown::after {
  border-top-color: var(--card-dropdown-arrow, var(--card-dropdown-bg, #1f1f23)) !important;
  background: transparent !important;
  box-shadow: none !important;
}


body.dark-mode .sample-actions .action-dropdown.action-dropdown--open-down::after,
body.dark-mode .teacher-actions .action-dropdown.action-dropdown--open-down::after,
body.dark-mode .voice-actions .action-dropdown.action-dropdown--open-down::after {
  border-bottom-color: var(--card-dropdown-arrow, var(--card-dropdown-bg, #1f1f23)) !important;
}


body.dark-mode .sample-actions .action-dropdown-item,
body.dark-mode .teacher-actions .action-dropdown-item,
body.dark-mode .voice-actions .action-dropdown-item {
  color: var(--card-dropdown-text, #a1a1aa) !important;
}


body.dark-mode .sample-actions .action-dropdown-item span,
body.dark-mode .teacher-actions .action-dropdown-item span,
body.dark-mode .voice-actions .action-dropdown-item span {
  color: var(--card-dropdown-text, #a1a1aa) !important;
}


body.dark-mode .sample-actions .action-dropdown-item:hover,
body.dark-mode .teacher-actions .action-dropdown-item:hover,
body.dark-mode .voice-actions .action-dropdown-item:hover {
  background: var(--card-dropdown-item-hover-bg, rgba(255, 255, 255, 0.08)) !important;
}


body.dark-mode .sample-actions .action-dropdown-item:hover span,
body.dark-mode .teacher-actions .action-dropdown-item:hover span,
body.dark-mode .voice-actions .action-dropdown-item:hover span {
  color: var(--card-dropdown-text, #f3f4f6) !important;
}


body.dark-mode .sample-actions .action-dropdown-item svg.icon,
body.dark-mode .teacher-actions .action-dropdown-item svg.icon,
body.dark-mode .voice-actions .action-dropdown-item svg.icon {
  stroke: var(--card-dropdown-icon-color, #71717a) !important;
}


body.dark-mode .sample-actions .action-dropdown-item:hover svg.icon path,
body.dark-mode .sample-actions .action-dropdown-item:hover svg.icon polyline,
body.dark-mode .sample-actions .action-dropdown-item:hover svg.icon line,
body.dark-mode .teacher-actions .action-dropdown-item:hover svg.icon path,
body.dark-mode .teacher-actions .action-dropdown-item:hover svg.icon polyline,
body.dark-mode .teacher-actions .action-dropdown-item:hover svg.icon line {
  stroke: #a1a1aa;
}


body.dark-mode .action-icon.collected svg,
body.dark-mode .index-action-icon.collected svg,
body.dark-mode .icon-star.filled {
  fill: var(--card-collected-color);
  stroke: var(--card-collected-color);
}


body.dark-mode .voice-action-btn.collected,
body.dark-mode .collection_teacher.collected {
  color: var(--card-collected-color);
}


body.dark-mode .sample-actions .action-dropdown-item:focus,
body.dark-mode .teacher-actions .action-dropdown-item:focus {
  background: var(--card-bg-gray);
}



/* =============================================================================
 * 组件 / 页面迁入：components/sample_card.css
 * ============================================================================= */


/* ========== 暗黑模式支持 ========== */
body.dark-mode .sample-card-item {
  background: transparent !important;
  border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
  box-shadow: none;
}


body.dark-mode .sample-card-item:hover {
  background: transparent !important;
  border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}


body.dark-mode .sample-card-item .sample-title {
  color: #fff;
}


body.dark-mode .sample-card-item .sample-style {
  color: #aaa;
}


body.dark-mode .sample-card-item .sample-play-count {
  color: #888;
}


body.dark-mode .sample-card-item:hover .sample-play-count {
  color: #2dd4bf;
}


body.dark-mode .sample-card-item .waveform-container {
  background: transparent;
  border: 1px solid var(--dm-player-border);
  border-radius: 8px;
  box-shadow: none;
}


body.dark-mode .sample-card-item .sample-avatar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #374151;
}



/* =============================================================================
 * 组件 / 页面迁入：components/buttons.css
 * ============================================================================= */


body.dark-mode .btn {
    color: #ffffff;
}


body.dark-mode .btn-secondary {
    background: #2a2a2a;
    border-color: #333333;
    color: #ffffff;
}


body.dark-mode .btn-secondary:hover {
    background: #333333;
    border-color: #444444;
}


body.dark-mode .btn-ghost {
    border-color: #333333;
    color: #ffffff;
}


body.dark-mode .btn-ghost:hover {
    background: #2a2a2a;
    border-color: #444444;
}


body.dark-mode .btn-text {
    color: #b0b0b0;
}


body.dark-mode .btn-text:hover {
    color: #3d9d91;
}



/* =============================================================================
 * 组件 / 页面迁入：components/load_more_button.css
 * ============================================================================= */


/* ===== 暗黑模式支持 ===== */
body.dark-mode .load-more-button {
    background: #2c2c2c;
    border: 1px solid #444;
    color: #b0adb3;
}


body.dark-mode .load-more-button:hover:not(:disabled) {
    background: #3d9d91;
    border-color: #3d9d91;
    color: #ffffff;
}


body.dark-mode .load-more-container.no-more .load-more-button,
body.dark-mode .load-more-container.loading .load-more-button {
    background: #2c2c2c;
    border: 1px solid #444;
    color: #666;
}


body.dark-mode .load-more-container.no-more .load-more-button:hover {
    background: #2c2c2c;
    border-color: #444;
    color: #666;
}



/* =============================================================================
 * 组件 / 页面迁入：TeacherHome.css
 * ============================================================================= */


/* 深色模式：数据横条保留浅衬底（与浅色 #f7f7f7 条对应，避免融进页面） */
body.dark-mode .teacher-stats-grid {
    background: var(--tvcbook-stats-bar-bg, rgba(255, 255, 255, 0.08));
    border: none;
    border-radius: var(--th-radius-stats, 4px);
    box-shadow: none;
}


body.dark-mode .teacher-stats-grid .stat-number {
    color: #f1f5f9;
}


body.dark-mode .teacher-stats-grid .stat-label {
    color: #94a3b8;
}


/* 深色模式 - 价格区域 */
body.dark-mode .teacher-profile-card .profile-price-section {
    border-bottom: 1px solid #374151;
}


body.dark-mode .teacher-profile-card .profile-price-section .Volume {
    border: none !important;
    background: var(--tvcbook-stats-bar-bg, rgba(255, 255, 255, 0.08)) !important;
}


body.dark-mode .teacher-profile-card .profile-price-section .Volume li.PriceRow .PriceLabel {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}


body.dark-mode .teacher-profile-card .profile-price-section .Volume li.PriceRow .PriceValue .LineThrough {
    color: #6b7280 !important;
}


body.dark-mode .teacher-profile-card .profile-price-section .Volume li.PriceRow .PriceValue .Number {
    color: #f9fafb !important;
    font-weight: 400 !important;
}


body.dark-mode .teacher-profile-card .profile-price-section .Volume li.PriceRow:not(:last-child)::after {
    display: none;
    content: none;
}


body.dark-mode .teacher-profile-card .profile-tag-more {
    background: transparent;
    color: #9ca3af;
    border-color: rgba(255, 255, 255, 0.14);
}


body.dark-mode .teacher-profile-card .intro-toggle-btn {
    color: #60a5fa;
}


body.dark-mode .teacher-profile-card .intro-toggle-btn:hover {
    color: #93c5fd;
}


/* 深色模式 - 简介文本 */
body.dark-mode .teacher-profile-card .profile-intro-text {
    color: #9ca3af;
}


/* 深色模式 */
body.dark-mode .teacher-profile-card {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}


/* 老师主页：主卡 / 资料卡统一浅底无边框（与 TeacherHome.css --th-panel-surface-bg 一致） */
/* 与 TeacherHome.css 顶卡断点一致（767.98px） */
@media screen and (max-width: 767.98px) {
    body.dark-mode .TeacherHome .TeacherBanner-left {
        border: none !important;
    }

    body.dark-mode .TeacherHome .teacher-stats-grid {
        border: none !important;
    }

    body.dark-mode .TeacherHome .teacher-profile-card {
        border: none !important;
    }
}


body.dark-mode .teacher-profile-card .profile-card-title {
    color: #f9fafb;
}


body.dark-mode .teacher-profile-card .profile-info-row:nth-child(odd) {
    background: transparent;
}


body.dark-mode .teacher-profile-card .profile-info-row:nth-child(even) {
    background: transparent;
}

body.dark-mode .teacher-profile-card .profile-info-row {
    border-bottom-color: #374151;
}


body.dark-mode .teacher-profile-card .profile-label {
    color: #f9fafb;
    font-weight: 700;
}


body.dark-mode .teacher-profile-card .profile-value {
    color: #94a3b8;
    font-weight: 400;
}


body.dark-mode .teacher-profile-card .profile-tag {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}


body.dark-mode .teacher-profile-card .profile-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(13, 148, 136, 0.28);
}


body.dark-mode .teacher-profile-card .profile-intro-section {
    border-top-color: #374151;
}


/* 深色模式：浅灰字、常规字重；竖线略深 */
body.dark-mode .teacher-info-line-header {
  color: #e2e8f0;
  font-weight: 400;
}

body.dark-mode .teacher-info-line-header .tag-item {
  color: inherit;
  background: none;
  border: none;
  font-weight: 400;
}

body.dark-mode .teacher-info-line-header .tag-separator {
  display: inline;
  color: #64748b;
}


/* 深色模式 */
body.dark-mode .teacher-tags-card {
    border-top-color: #374151;
}

body.dark-mode .teacher-tags-card .tag-item {
  color: #cbd5e1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .teacher-tags-card .teacher-stats-line .stat-num {
  color: #e5e7eb;
}

body.dark-mode .teacher-tags-card .teacher-stats-line .stat-label {
  color: #9ca3af;
}


body.dark-mode .teacher-tags-card .teacher-stats-line .stat-divider {
  color: #4b5563;
}


body.dark-mode .info-avatar img {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); /* 暗黑模式内边框 */
}


body.dark-mode .sample-avatar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* 🎯 暗黑模式外阴影，与老师卡片统一 */
    background-color: #374151; /* 🎯 与老师卡片统一 */
}


/* 播放器悬停效果已由卡片整体悬停控制，无需单独设置 */

/* 深色模式 - 老师主页列表/双列 strip（与 #sound_list 一致，不覆盖后台边框/隔断条配置） */
body.dark-mode #samples-container.list-view .sample-item,
body.dark-mode .samples-grid.list-view .sample-item,
body.dark-mode #samples-container:not(.list-view):not(.card-view) .sample-item,
body.dark-mode .samples-grid:not(.list-view):not(.card-view) .sample-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode #samples-container.list-view .sample-item:hover,
body.dark-mode .samples-grid.list-view .sample-item:hover,
body.dark-mode #samples-container:not(.list-view):not(.card-view) .sample-item:hover,
body.dark-mode .samples-grid:not(.list-view):not(.card-view) .sample-item:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* 搜索框深色模式 */
body.dark-mode .search-area input[type="text"] {
  background: #2c2c2c00 !important;
  color: #ffffff !important;
  border-color: #555 !important;
}


body.dark-mode .search-area input[type="text"]:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}


body.dark-mode .search-icon-btn {
  color: #b0adb3 !important;
}


body.dark-mode .search-icon-btn:hover {
  color: #0d9488 !important;
}


/* 左侧主信息卡（含联系/关注） */
body.dark-mode .TeacherBanner-left {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 浅色版已改为 TVCBOOK 主蓝 + 浅灰次按钮；此处覆盖全站 .Btn01/.Btn02 暗黑规则，避免老师主页按钮颠倒 */
body.dark-mode .TeacherBanner .BtnBar a.Btn02,
body.dark-mode .TeacherBanner .BtnBar a.Btn02.collection_teacher,
body.dark-mode .TeacherBanner .BtnBar a.Btn02.Favorites,
body.dark-mode .TeacherBanner .BtnBar a.Btn02-inline:not(.cancel_collection) {
  color: #fff !important;
  background: #818cf8 !important;
  border: none !important;
}

body.dark-mode .TeacherBanner .BtnBar a.Btn02:hover:not(.cancel_collection),
body.dark-mode .TeacherBanner .BtnBar a.Btn02-inline:hover:not(.cancel_collection) {
  background: #3f46e8 !important;
}

body.dark-mode .TeacherBanner .BtnBar a.Btn01,
body.dark-mode .TeacherBanner .BtnBar a.Btn01-inline {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .TeacherBanner .BtnBar a.cancel_collection {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
}


/* 🎯 头像暗黑模式：与左侧主信息卡同一套投影结构 */
body.dark-mode .TeacherBanner .HeadImg {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.45);
  background-color: #374151;
}

/* 老师自介：覆盖 TeacherHome.css 浅色条（#f7f7f7 + !important） */
body.dark-mode #waveformx .intro-player-style .unified-player-container,
body.dark-mode .intro-player-style .unified-player-container,
body.dark-mode #waveformx .teacher-intro-player .unified-player-container,
body.dark-mode .teacher-intro-player .unified-player-container,
body.dark-mode .TeacherHome .intro-player-style .unified-player-container,
body.dark-mode .TeacherHome .teacher-intro-player .unified-player-container {
  background-color: var(--tvcbook-stats-bar-bg, rgba(255, 255, 255, 0.08)) !important;
  background: var(--tvcbook-stats-bar-bg, rgba(255, 255, 255, 0.08)) !important;
  border: none !important;
  box-shadow: none !important;
}


/* 老师名称和信息 */
body.dark-mode .TeacherBanner-center .Name h2,
body.dark-mode .TeacherBanner-center .Name h3,
body.dark-mode .TeacherHome .TeacherBanner .teacher-name-info .Name h2,
body.dark-mode .TeacherHome .TeacherBanner-left .Name h2 {
  color: #5eead4 !important;
}


body.dark-mode .TeacherBanner-center .Ability h2 {
  color: #e0e0e0;
}


body.dark-mode .TeacherBanner-center .Ability h2 span {
  color: #b0adb3;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}


body.dark-mode .TeacherBanner-center .Intro dt {
  color: #b0adb3;
}


/* 价格区域 */
body.dark-mode .TeacherData {
  background: rgba(0, 0, 0, 0.2);
  border-color: #333;
}


body.dark-mode .Volume .PriceLabel {
  color: #999;
  font-weight: 600;
}


body.dark-mode .Volume .PriceValue {
  color: #ffffff;
}


body.dark-mode .Volume .PriceValue .Number {
  color: #0d9488;
  font-weight: 400;
}


/* 深色模式：交易数据 */
body.dark-mode .teacher-trade-stats {
  color: #999;
}


body.dark-mode .trade-stat-label {
  color: #999;
}


body.dark-mode .trade-stat-value {
  color: #ffffff;
}


body.dark-mode .trade-stat-divider {
  color: #666;
}


/* 深色模式：作品数和粉丝数 */
body.dark-mode .teacher-name-info .teacher-stats-line .stat-num {
  color: #ffffff;
}

body.dark-mode .teacher-name-info .teacher-stats-line .stat-label {
  color: #9ca3af;
}


body.dark-mode .teacher-name-info .teacher-stats-line .stat-divider {
  color: #666;
}


/* 深色模式：交易数据在价格表上方 */
body.dark-mode .teacher-trade-stats.price-stats {
  border-bottom-color: #333;
}


/* 深色模式：分享按钮（与浅色同为线框型，减轻灰块感） */
body.dark-mode .teacher-share-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}


body.dark-mode .teacher-share-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}


/* 深色模式：按钮样式 - 简洁设计 */
body.dark-mode .Btn01-inline {
  background: #667eea;
  box-shadow: none;
}


body.dark-mode .Btn01-inline:hover {
  background: #FB8C00 !important;
}


body.dark-mode .Btn02-inline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #ffffff;
}


body.dark-mode .Btn02-inline:hover {
  background: #FB8C00 !important;
  border-color: #FB8C00 !important;
}


/* 深色模式：播放次数 */
body.dark-mode .sample-play-count {
  color: #888;
}


body.dark-mode .sample-play-count svg {
  color: #888;
}


body.dark-mode .play-count-number {
  color: #aaa;
}


body.dark-mode .Volume .PriceValue .LineThrough {
  color: #666;
}


body.dark-mode .fenjiexian {
  background: #333;
}


/* 按钮区域 */
body.dark-mode .Contrlo {
  background: rgba(0, 0, 0, 0.2);
  border-color: #333;
}


body.dark-mode .Contrlo li a {
  color: #b0adb3;
  background: rgba(99, 102, 241, 0.1);
  border-color: #444;
}


body.dark-mode .Contrlo li a:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #0d9488;
  border-color: #0d9488;
}


/* 去配音按钮 */
body.dark-mode .go-order-btn {
  background: #667eea;
  color: #ffffff;
}


body.dark-mode .go-order-btn:hover {
  background: #FB8C00;
}


/* 音频播放器暗黑模式 */
body.dark-mode .audio-player-card {
  background: rgba(0, 0, 0, 0.2);
  border-color: #333;
}


body.dark-mode .play-button:not(.unified-player-button .btn) {
  background: var(--player-button-pause-bg-color, rgba(99, 102, 241, 0.15));
  border-color: var(--player-button-border-color, #444);
}


body.dark-mode .play-button:not(.unified-player-button .btn):hover {
  background: var(--player-button-hover-bg-color, rgba(99, 102, 241, 0.25));
  border-color: var(--player-button-hover-color, #0d9488);
}


/* ⚠️ 旧的waveform-container暗黑模式样式已删除，新结构使用module-player */

body.dark-mode .mingzi {
  color: #e0e0e0;
}


/* 暗黑模式 - 卡片视图 - 🎯 样式与列表视图统一 */
body.dark-mode .samples-grid.card-view .sample-item {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07)) !important;
    box-shadow: none !important;
}


body.dark-mode .samples-grid.card-view .sample-item:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: none !important;
}


body.dark-mode .samples-grid.card-view .sample-item .sample-avatar {
    border: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important; /* 内边框 */
}


body.dark-mode .samples-grid.card-view .sample-item .sample-title {
    color: #ffffff !important;
}


body.dark-mode .samples-grid.card-view .sample-item .sample-style {
    color: #b0adb3 !important;
}


body.dark-mode .samples-grid.card-view .sample-item .sample-actions {
    border-top-color: #3a3a3a !important;
}



/* =============================================================================
 * 组件 / 页面迁入：Master.css
 * ============================================================================= */


/* 深色模式 */
body.dark-mode {
    background-color: #121212; /* 🎨 深色背景 */
    color: #ffffff;
}


body.dark-mode div,
body.dark-mode a {
    color: #ffffff;
}


body.dark-mode th,
body.dark-mode td {
    color: #b0b0b0;
}


body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2a2a2a;
    border-color: #333333;
    color: #ffffff;
}


body.dark-mode a {
    color: #ffffff;
}


body.dark-mode a:hover {
    color: #3d9d91;
}


body.dark-mode .Foot dd {
    background: var(--dm-page-bg);
    color: #b0adb3;
    border-top-color: #333;
}


body.dark-mode .Foot dd a {
    color: #ffffff !important;
}


body.dark-mode .Foot dd a:hover {
    color: #7817c4 !important;
}


body.dark-mode .skeleton-block {
    background: linear-gradient(90deg, #2a2a2a 25%, #363636 50%, #2a2a2a 75%);
    background-size: 1200px 100%;
}


body.dark-mode .sample-item-skeleton {
    background: #1e1e1e;
    border-color: #333;
}


body.dark-mode .teacher-item-skeleton {
    background: #1e1e1e;
    border-color: #333;
}



/* =============================================================================
 * 组件 / 页面迁入：footer.css
 * ============================================================================= */


/* 深色模式样式 */
body.dark-mode .Foot {
    background-color: var(--dm-page-bg);
    color: #b0adb3;
}


body.dark-mode .Foot dl dd {
    color: #b0adb3;
}


body.dark-mode .Foot a,
body.dark-mode .Foot a:link,
body.dark-mode .Foot a:visited {
    color: #ffffff;
}


body.dark-mode .Foot a:hover {
    color: #7817c4;
}


/* 深色模式下的回到顶部按钮样式 - 已移至 footer-buttons.css 统一管理 */
/*
body.dark-mode #gotop {
    background-color: #7817c4;
}


body.dark-mode #gotop:before {
    border-top-color: #ffffff;
    border-left-color: #ffffff;
}


body.dark-mode #gotop:hover {
    background-color: #6610b0;
}



/* =============================================================================
 * 组件 / 页面迁入：footer-buttons.css
 * ============================================================================= */


/* 暗黑模式下显示太阳：暖色高光表示「切回浅色」 */
body.dark-mode #btn-dark .icon-moon {
    display: none;
}

body.dark-mode #btn-dark .icon-sun {
    display: block;
}

body.dark-mode #btn-dark.floating-btn-theme {
    color: #fbbf24;
}

body.dark-mode #btn-dark.floating-btn-theme svg {
    stroke: currentColor;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
}

body.dark-mode #btn-dark.floating-btn-theme:hover {
    color: #fde68a;
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0.06) 100%);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

body.dark-mode #btn-dark.floating-btn-theme:hover svg {
    filter: drop-shadow(0 0 14px rgba(253, 224, 138, 0.45));
}

body.dark-mode .notification-dot {
    border-color: #2a2a2a;
}

body.dark-mode .floating-buttons {
    background: rgba(24, 24, 30, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

body.dark-mode .floating-buttons:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

body.dark-mode .floating-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .floating-btn svg {
    stroke: #94a3b8;
}

body.dark-mode .floating-btn:hover svg {
    stroke: #e2e8f0;
}

body.dark-mode #btn-chat svg {
    stroke: #64b5f6;
}

body.dark-mode #btn-chat:hover svg {
    stroke: #90caf9;
}


body.dark-mode .floating-tooltip {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


body.dark-mode .floating-tooltip::after {
    border-left-color: #ffffff;
}


body.dark-mode .notification-dot {
    border-color: #1a1a1a;
}



/* =============================================================================
 * 组件 / 页面迁入：footer-popups.css
 * ============================================================================= */


/* ===== 聊天窗口样式已由 chat.css 统一管理 ===== */

/* ===== 底部版权区域 - 继承 Master.css 的全局字体设置 ===== */

/* ===== 暗黑模式适配 ===== */
body.dark-mode .help-popup {
    background: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
}


body.dark-mode .popup-close-btn-inline {
    background: #334155;
    color: #cbd5e1;
}


body.dark-mode .popup-close-btn-inline:hover {
    background: #475569;
    color: #f1f5f9;
}


body.dark-mode .popup-title-inline {
    color: #f1f5f9;
}


body.dark-mode .help-popup-content {
    color: #cbd5e1;
}


body.dark-mode .help-section {
    background: #0f172a;
}


body.dark-mode .help-section-tips {
    background: #1e293b;
    border: 1px solid #334155;
}


body.dark-mode .popup-arrow-inline {
    border-top-color: #1e293b;
}

/* =============================================================================
 * 登录 / 注册弹窗（#login-modal / #register-modal）
 * 修复：全局 body.dark-mode div,a { color:#fff } 与 .modal-content 白底叠加导致不可读
 * ============================================================================= */

body.dark-mode #login-modal .modal-content,
body.dark-mode #register-modal .modal-content {
    background: var(--dm-page-bg) !important;
    color: #e8e8ed !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55) !important;
}

body.dark-mode #login-modal .modal-close,
body.dark-mode #register-modal .modal-close {
    color: #e2e8f0 !important;
    background: #252b3a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode #login-modal .modal-close:hover,
body.dark-mode #register-modal .modal-close:hover {
    background: #2f3749 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 弹窗内输入框聚焦环与品牌绿一致（覆盖全局紫环） */
body.dark-mode #login-modal .input-container input[type="text"]:focus,
body.dark-mode #login-modal .input-container input[type="password"]:focus,
body.dark-mode #login-modal .input-container input[type="email"]:focus,
body.dark-mode #register-modal .input-container input[type="text"]:focus,
body.dark-mode #register-modal .input-container input[type="password"]:focus,
body.dark-mode #register-modal .input-container input[type="email"]:focus,
body.dark-mode #register-modal .input-container input[type="tel"]:focus {
    border-color: #70c489 !important;
    box-shadow: 0 0 0 3px rgba(112, 196, 137, 0.32) !important;
}

body.dark-mode #login-modal .modal-title,
body.dark-mode #register-modal .modal-title {
    color: #f4f4f5 !important;
}

body.dark-mode #login-modal .modal-subtitle,
body.dark-mode #register-modal .modal-subtitle {
    color: #94a3b8 !important;
}

/* 分段控件：绿轨 + 滑动亮块（暗色） */
body.dark-mode #login-modal .login-tabs.segmented-tabs,
body.dark-mode #register-modal .login-tabs.segmented-tabs,
body.dark-mode #register-modal .register-tabs.segmented-tabs {
    --segment-bg: #166534 !important;
    background: #166534 !important;
    border-bottom: none !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode #login-modal .login-tabs.segmented-tabs .tabs-indicator,
body.dark-mode #register-modal .login-tabs.segmented-tabs .tabs-indicator,
body.dark-mode #register-modal .register-tabs.segmented-tabs .tabs-indicator {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode #login-modal .login-tabs.segmented-tabs .tab-item:not(.active),
body.dark-mode #register-modal .login-tabs.segmented-tabs .tab-item:not(.active),
body.dark-mode #register-modal .register-tabs.segmented-tabs .tab-item:not(.active) {
    color: rgba(255, 255, 255, 0.82) !important;
    background: transparent !important;
}

body.dark-mode #login-modal .login-tabs.segmented-tabs .tab-item.active,
body.dark-mode #register-modal .login-tabs.segmented-tabs .tab-item.active,
body.dark-mode #register-modal .register-tabs.segmented-tabs .tab-item.active {
    color: #ffffff !important;
}

body.dark-mode #login-modal .login-tabs.segmented-tabs .tab-item:hover:not(.active),
body.dark-mode #register-modal .login-tabs.segmented-tabs .tab-item:hover:not(.active),
body.dark-mode #register-modal .register-tabs.segmented-tabs .tab-item:hover:not(.active) {
    color: #ffffff !important;
}

body.dark-mode #login-modal .login-tabs.segmented-tabs .tab-item.active:hover,
body.dark-mode #register-modal .login-tabs.segmented-tabs .tab-item.active:hover,
body.dark-mode #register-modal .register-tabs.segmented-tabs .tab-item.active:hover {
    color: #ffffff !important;
}

body.dark-mode #login-modal .form-options label,
body.dark-mode #register-modal .form-options label {
    color: #cbd5e1 !important;
}

body.dark-mode #login-modal .form-options .links a,
body.dark-mode #register-modal .form-options .links a {
    color: #a5b4fc !important;
}

body.dark-mode #login-modal .form-options .links a:hover,
body.dark-mode #register-modal .form-options .links a:hover {
    color: #c7d2fe !important;
}

body.dark-mode #login-modal .form-options .links .link-dot,
body.dark-mode #register-modal .form-options .links .link-dot {
    background: rgba(255, 255, 255, 0.28) !important;
}

body.dark-mode #login-modal .form-options input[type="checkbox"],
body.dark-mode #register-modal .form-options input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: #2c2c2c !important;
}

body.dark-mode #login-modal .form-options input[type="checkbox"]:checked,
body.dark-mode #register-modal .form-options input[type="checkbox"]:checked {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}

body.dark-mode #login-modal .verification-row,
body.dark-mode #register-modal .verification-row {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode #login-modal .send-code-btn,
body.dark-mode #register-modal .send-code-btn {
    background: #2c2c2c !important;
    color: #e2e8f0 !important;
    border-left-color: #444 !important;
}

body.dark-mode #login-modal .send-code-btn:hover,
body.dark-mode #register-modal .send-code-btn:hover {
    background: #383838 !important;
}

body.dark-mode #login-modal .email-with-code input[type="email"],
body.dark-mode #login-modal .email-with-code input[type="text"],
body.dark-mode #register-modal .email-with-code input[type="email"],
body.dark-mode #register-modal .email-with-code input[type="text"] {
    background: #2c2c2c !important;
    border-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode #login-modal .email-with-code input:focus ~ .floating-label,
body.dark-mode #login-modal .email-with-code input:not(:placeholder-shown) ~ .floating-label,
body.dark-mode #register-modal .email-with-code input:focus ~ .floating-label,
body.dark-mode #register-modal .email-with-code input:not(:placeholder-shown) ~ .floating-label {
    background: var(--dm-page-bg) !important;
    color: #94a3b8 !important;
}

body.dark-mode #login-modal .get-code-btn,
body.dark-mode #register-modal .get-code-btn {
    background: #2c2c2c !important;
    color: #e2e8f0 !important;
    border-color: #555 !important;
}

body.dark-mode #login-modal .get-code-btn:hover,
body.dark-mode #register-modal .get-code-btn:hover {
    background: #383838 !important;
    border-color: #666 !important;
}

body.dark-mode #login-modal .captcha-row,
body.dark-mode #register-modal .captcha-row {
    background: #2c2c2c !important;
    border-color: #555 !important;
}

body.dark-mode #login-modal .captcha-row input,
body.dark-mode #register-modal .captcha-row input {
    color: #ffffff !important;
}

body.dark-mode #login-modal .captcha-canvas,
body.dark-mode #register-modal .captcha-canvas {
    background: #252525 !important;
    border-left-color: #444 !important;
}

body.dark-mode #login-modal .form-agreement,
body.dark-mode #register-modal .form-agreement {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode #register-modal .form-agreement {
    background: transparent !important;
    border: none !important;
}

body.dark-mode #login-modal .form-agreement label {
    color: #94a3b8 !important;
}

body.dark-mode #register-modal .register-agreement-login-row label.form-agreement {
    color: #cbd5e1 !important;
}

body.dark-mode #login-modal .form-agreement input[type="checkbox"],
body.dark-mode #register-modal .form-agreement input[type="checkbox"] {
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: #2c2c2c !important;
}

body.dark-mode #login-modal .form-agreement input[type="checkbox"]:checked,
body.dark-mode #register-modal .form-agreement input[type="checkbox"]:checked {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}

body.dark-mode #login-modal .form-login-link {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode #login-modal .form-login-link p {
    color: #94a3b8 !important;
}

body.dark-mode #login-modal .form-login-link .login-link {
    color: #a5b4fc !important;
}

body.dark-mode #register-modal .register-login-inline {
    color: #94a3b8 !important;
}

body.dark-mode #register-modal .register-login-inline .login-link {
    color: #a5b4fc !important;
}

body.dark-mode #login-modal .login-tip,
body.dark-mode #register-modal .login-tip {
    color: #94a3b8 !important;
}

body.dark-mode #login-modal .login-icon img,
body.dark-mode #register-modal .login-icon img {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode #login-modal #modal-wechat-panel,
body.dark-mode #register-modal #modal-wechat-register-panel,
body.dark-mode #login-modal #modal-wechat-qrcode,
body.dark-mode #register-modal #modal-wechat-register-qrcode {
    background: transparent !important;
}

body.dark-mode #register-modal .wechat-register-tips p {
    color: #94a3b8 !important;
}

body.dark-mode #login-modal #wechat-refresh-btn a,
body.dark-mode #login-modal #wechat-register-refresh-btn a,
body.dark-mode #register-modal #wechat-refresh-btn a,
body.dark-mode #register-modal #wechat-register-refresh-btn a {
    background: #2c2c2c !important;
    color: #e2e8f0 !important;
    border-color: #555 !important;
}

body.dark-mode #login-modal #wechat-refresh-btn a:hover,
body.dark-mode #login-modal #wechat-register-refresh-btn a:hover,
body.dark-mode #register-modal #wechat-refresh-btn a:hover,
body.dark-mode #register-modal #wechat-register-refresh-btn a:hover {
    background: #383838 !important;
    border-color: #666 !important;
}

body.dark-mode #login-modal .red-link,
body.dark-mode #register-modal .red-link {
    color: #fca5a5 !important;
}

body.dark-mode #login-modal input:-webkit-autofill,
body.dark-mode #login-modal input:-webkit-autofill:hover,
body.dark-mode #login-modal input:-webkit-autofill:focus,
body.dark-mode #register-modal input:-webkit-autofill,
body.dark-mode #register-modal input:-webkit-autofill:hover,
body.dark-mode #register-modal input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2c2c2c inset !important;
    box-shadow: 0 0 0 1000px #2c2c2c inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.dark-mode #login-modal .input-container input:focus ~ .floating-label,
body.dark-mode #login-modal .input-container input:not(:placeholder-shown) ~ .floating-label,
body.dark-mode #register-modal .input-container input:focus ~ .floating-label,
body.dark-mode #register-modal .input-container input:not(:placeholder-shown) ~ .floating-label {
    background: var(--dm-page-bg) !important;
}

/* 注册弹窗：浮动标签对比度（可读优先） */
body.dark-mode #register-modal .floating-label {
    color: #94a3b8 !important;
}

body.dark-mode #register-modal .input-container input:focus ~ .floating-label,
body.dark-mode #register-modal .input-container input:not(:placeholder-shown) ~ .floating-label {
    color: #cbd5e1 !important;
}

body.dark-mode #register-modal .input-container input:focus ~ .floating-label {
    color: #f1f5f9 !important;
}

/* 全局 body.dark-mode button { background 透明 } 会冲掉绿钮，此处恢复（与浅色渐变主按钮一致） */
body.dark-mode #login-modal .login-btn,
body.dark-mode #register-modal .register-btn {
    background: linear-gradient(180deg, #7dca96 0%, #5eb87a 48%, #52a86d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode #login-modal .login-btn:hover,
body.dark-mode #register-modal .register-btn:hover {
    background: linear-gradient(180deg, #86cf9e 0%, #66bf84 48%, #5aad76 100%) !important;
}

body.dark-mode #login-modal .login-btn:active,
body.dark-mode #register-modal .register-btn:active {
    background: #4a9d63 !important;
}

body.dark-mode #login-modal .login-btn:disabled,
body.dark-mode #register-modal .register-btn:disabled {
    background: #3a3a42 !important;
    color: #888 !important;
}

body.dark-mode #login-modal .wechat-login-btn,
body.dark-mode #register-modal .wechat-login-btn {
    background: #07c160 !important;
    color: #ffffff !important;
}

/* ========== demand.php 配音下单：暗黑尽量透明（仅 templates/china/demand_order.html） ========== */
body.dark-mode .demand-order-page {
    background: transparent;
}

body.dark-mode .demand-order-page .compact-form {
    background: transparent;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page .form-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .demand-order-page .form-header h1 {
    color: #f1f5f9;
}

body.dark-mode .demand-order-page .form-section {
    background: transparent;
}

body.dark-mode .demand-order-page .section-title {
    color: #cbd5e1;
    border-left-color: #818cf8;
}

body.dark-mode .demand-order-page .form-label {
    color: #94a3b8;
}

body.dark-mode .demand-order-page .form-input,
body.dark-mode .demand-order-page .form-textarea,
body.dark-mode .demand-order-page select.form-input {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

body.dark-mode .demand-order-page .form-input:hover,
body.dark-mode .demand-order-page .form-textarea:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

body.dark-mode .demand-order-page .form-input:focus,
body.dark-mode .demand-order-page .form-textarea:focus,
body.dark-mode .demand-order-page select.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

body.dark-mode .demand-order-page .form-input::placeholder,
body.dark-mode .demand-order-page .form-textarea::placeholder {
    color: #64748b;
}

body.dark-mode .demand-order-page .login-status-text {
    color: #94a3b8;
}

body.dark-mode .demand-order-page .file-upload-label {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.dark-mode .demand-order-page .file-upload:hover .file-upload-label {
    border-color: #818cf8;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.08);
}

body.dark-mode .demand-order-page .file-upload.file-selected .file-upload-label {
    border-color: #3d9d91;
    background: rgba(13, 148, 136, 0.1);
    color: #6ee7b7;
}

body.dark-mode .demand-order-page .file-info {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page .selected-info {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page .audio-player {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .demand-order-page .submit-btn-trial {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .demand-order-page .submit-btn-trial:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: #818cf8;
    color: #eef2ff;
}

body.dark-mode .demand-order-page .submit-btn-trial .btn-text {
    color: inherit;
}

body.dark-mode .demand-order-page .submit-btn-pay {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.65);
    color: #c7d2fe;
}

body.dark-mode .demand-order-page .submit-btn-pay:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #eef2ff;
}

body.dark-mode .demand-order-page .submit-btn.not-logged-in {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: #71717a;
}

body.dark-mode .demand-order-page .success-message {
    background: transparent;
    border: 1px solid rgba(13, 148, 136, 0.35);
    color: #a7f3d0;
}

body.dark-mode .demand-order-page .success-message h3 {
    color: #3d9d91;
}

body.dark-mode .demand-order-page .success-message p {
    color: #94a3b8;
}

body.dark-mode .demand-order-page .order-center-link {
    background: transparent;
    border: 1px solid #3d9d91;
    color: #6ee7b7;
}

body.dark-mode .demand-order-page .order-center-link:hover {
    background: rgba(13, 148, 136, 0.12);
}

/* 样音 / 老师卡片 */
body.dark-mode .demand-order-page .order-Teacher,
body.dark-mode .demand-order-page .order-sample-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.dark-mode .demand-order-page .order-Teacher:hover,
body.dark-mode .demand-order-page .order-sample-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

body.dark-mode .demand-order-page .order-TeacherBox {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.dark-mode .demand-order-page .order-Teacher:hover .order-TeacherBox {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .demand-order-page .order-waveform-container {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page .order-sample-item:hover .order-waveform-container {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .demand-order-page .order-audio_teacher_list .controls .btn-primary,
body.dark-mode .demand-order-page .order-sample-item .controls .btn-primary {
    background: transparent !important;
    border-color: #ffffff !important;
}

body.dark-mode .demand-order-page .order-audio_teacher_list .controls .btn-primary:hover,
body.dark-mode .demand-order-page .order-sample-item .controls .btn-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

body.dark-mode .demand-order-page .order-sample-item .controls .glyphicon-play:not(.glyphicon-pause) {
    border-color: transparent transparent transparent #ffffff !important;
}

body.dark-mode .demand-order-page .order-sample-item .controls .btn-primary:hover .glyphicon-play:not(.glyphicon-pause) {
    border-left-color: #1a1a1a !important;
}

body.dark-mode .demand-order-page .order-voice-action-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

body.dark-mode .demand-order-page .order-voice-action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
}

body.dark-mode .demand-order-page .order-action-icon {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .demand-order-page .order-action-icon:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
}

/* 样音卡片内价格弹窗 */
body.dark-mode .demand-order-page .order-price-popup-content {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .demand-order-page .order-price-popup-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.dark-mode .demand-order-page .order-price-popup-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

/* 主内容后的兄弟弹窗：#modal-overlay、#price-modal-overlay */
body.dark-mode #modal-overlay {
    background: rgba(2, 6, 23, 0.12);
}

body.dark-mode #modal-overlay .modal-box {
    background: rgba(30, 41, 59, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 20px 40px -12px rgba(0, 0, 0, 0.45);
}

body.dark-mode #modal-overlay .modal-title {
    color: #f1f5f9;
}

body.dark-mode #modal-overlay .modal-message {
    color: #94a3b8;
}

body.dark-mode #modal-overlay .modal-btn {
    background: #3b82f6;
    border: none;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.35);
}

body.dark-mode #modal-overlay .modal-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

body.dark-mode #modal-overlay .modal-close-btn {
    color: #64748b;
}

body.dark-mode #modal-overlay .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

body.dark-mode #modal-overlay .modal-icon.success {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.5) 0%, rgba(5, 150, 105, 0.35) 100%);
    color: #6ee7b7;
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-modal-box {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-modal-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-modal-title {
    color: #f1f5f9;
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-detail-unified {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-detail-total {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-note {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-modal-close {
    color: #94a3b8;
}

body.dark-mode .demand-order-page ~ #price-modal-overlay .price-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

/* ========== /sound/{id} 样音详情 sound_detail：透明（与 demand 一致） ========== */
body.dark-mode .sound-detail-page {
    background: transparent;
}

body.dark-mode .sound-detail-page .sample-card-item {
    background: transparent !important;
    border: 1px solid var(--card-surface-outline, rgba(255, 255, 255, 0.07));
    box-shadow: none;
}

body.dark-mode .sound-detail-page .sample-card-item:hover {
    background: transparent !important;
    border-color: var(--card-surface-outline-hover, rgba(255, 255, 255, 0.12));
    box-shadow: none;
}

/* 详情页播放器：无边框，背景色与全站 JS 注入的 --player-waveform-bg-color 一致（勿写死 #222） */
body.dark-mode .sound-detail-page .sample-card-item .waveform-container {
    background: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .sound-detail-page .sample-card-item .waveform-container:hover {
    background: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .sound-detail-page .sample-card-item .waveform-container .unified-player-container,
body.dark-mode .sound-detail-page .sample-card-item .unified-player-container,
body.dark-mode .sound-detail-page .unified-player-container,
body.dark-mode .sound-detail-page .module-player .unified-player-container {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .sound-detail-page .sample-card-item .waveform-container .unified-player-container:hover,
body.dark-mode .sound-detail-page .sample-card-item .unified-player-container:hover,
body.dark-mode .sound-detail-page .unified-player-container:hover,
body.dark-mode .sound-detail-page .module-player .unified-player-container:hover {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.dark-mode .sound-detail-page .teacher-price-popup-content {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .sound-detail-page .teacher-price-popup-title {
    color: #ffffff !important;
}

body.dark-mode .sound-detail-page .price-note-title {
    color: #ffffff !important;
}

body.dark-mode .sound-detail-page .teacher-price-popup-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.dark-mode .sound-detail-page .teacher-price-popup-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

body.dark-mode .sound-detail-page .teacher-price-note {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sound-detail-page .price-note-content {
    background: transparent;
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-left-width: 3px;
    color: #cbd5e1;
}

