/**
 * 豆汉平台 — 全局主题变量
 * 暗色主题为默认，亮色主题通过 html[data-theme="light"] 覆盖
 * 所有页面的颜色值统一引用此文件中的变量
 */

/* ========================================
   暗色主题（默认）
   ======================================== */
:root {
    /* 主色调 */
    --dh-primary-green: #74FF52;
    --dh-primary-blue: #165DFF;
    --dh-brand-cyan: #2C9595;
    --dh-gold: #EEB806;
    --dh-error: #ff4757;
    --dh-warning: #f0ad4e;
    --dh-success: #22C55E;

    /* 页面背景 */
    --dh-bg-page: #0A0A0A;
    --dh-bg-page-alt: #070709;
    --dh-bg-sidebar: #111214;
    --dh-bg-card: rgba(255, 255, 255, 0.05);
    --dh-bg-card-solid: #1a1a1e;
    --dh-bg-card-hover: rgba(255, 255, 255, 0.08);
    --dh-bg-input: #0F1012;
    --dh-bg-modal: #1e1e1e;
    --dh-bg-tooltip: rgba(30, 33, 41, 0.95);
    --dh-bg-overlay: rgba(0, 0, 0, 0.7);
    --dh-bg-overlay-light: rgba(0, 0, 0, 0.4);

    /* 文字颜色 */
    --dh-text-primary: #FFFFFF;
    --dh-text-secondary: rgba(255, 255, 255, 0.6);
    --dh-text-tertiary: rgba(255, 255, 255, 0.38);
    --dh-text-hint: rgba(255, 255, 255, 0.3);
    --dh-text-inverse: #000000;
    --dh-text-gray: #828282;

    /* 边框 */
    --dh-border: #343434;
    --dh-border-light: rgba(255, 255, 255, 0.1);
    --dh-border-lighter: rgba(255, 255, 255, 0.05);
    --dh-border-focus: rgba(116, 255, 82, 0.4);

    /* 阴影 */
    --dh-shadow-sm: none;
    --dh-shadow-md: none;
    --dh-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);

    /* 导航栏/Tab 栏 */
    --dh-bg-nav: #111;
    --dh-bg-tab-active: rgba(116, 255, 82, 1);

    /* 渐变 */
    --dh-gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #1a1a2e 100%);

    /* 圆角 */
    --dh-radius-sm: 4px;
    --dh-radius-md: 8px;
    --dh-radius-lg: 16px;
    --dh-radius-xl: 20px;
    --dh-radius-pill: 305px;

    /* 布局 */
    --dh-sidebar-width: 205px;
    --dh-content-gap: 22px;
}

/* ========================================
   亮色主题
   ======================================== */
html[data-theme="light"] {
    /* 主色调 — 亮色下降低饱和度/亮度以保持对比度 */
    --dh-primary-green: #16A34A;
    --dh-primary-blue: #165DFF;
    --dh-brand-cyan: #0D9488;
    --dh-gold: #CA8A04;
    --dh-error: #EF4444;
    --dh-warning: #F59E0B;
    --dh-success: #16A34A;

    /* 页面背景 */
    --dh-bg-page: #F5F5F7;
    --dh-bg-page-alt: #F0F0F2;
    --dh-bg-sidebar: #FFFFFF;
    --dh-bg-card: #FFFFFF;
    --dh-bg-card-solid: #FFFFFF;
    --dh-bg-card-hover: #F8F9FA;
    --dh-bg-input: #F0F1F3;
    --dh-bg-modal: #FFFFFF;
    --dh-bg-tooltip: rgba(255, 255, 255, 0.95);
    --dh-bg-overlay: rgba(0, 0, 0, 0.4);
    --dh-bg-overlay-light: rgba(0, 0, 0, 0.2);

    /* 文字颜色 */
    --dh-text-primary: #1A1A1A;
    --dh-text-secondary: #666666;
    --dh-text-tertiary: #999999;
    --dh-text-hint: #BBBBBB;
    --dh-text-inverse: #FFFFFF;
    --dh-text-gray: #828282;

    /* 边框 */
    --dh-border: #E5E7EB;
    --dh-border-light: rgba(0, 0, 0, 0.06);
    --dh-border-lighter: rgba(0, 0, 0, 0.03);
    --dh-border-focus: rgba(22, 163, 74, 0.4);

    /* 阴影 — 亮色主题靠阴影分层 */
    --dh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --dh-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --dh-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* 导航栏/Tab 栏 */
    --dh-bg-nav: #FFFFFF;
    --dh-bg-tab-active: #16A34A;

    /* 渐变 */
    --dh-gradient-banner: linear-gradient(135deg, #E8F5E9 0%, #E3F2FD 50%, #E8F5E9 100%);
}

/* ========================================
   亮色主题 — 全局覆盖规则
   修复未使用 CSS 变量的残留硬编码色值
   ======================================== */

/* --- 全局基础 --- */
html[data-theme="light"] body,
html[data-theme="light"] body.home-2-0 {
    background-color: #F5F5F7 !important;
    color: #1A1A1A !important;
}

/* --- 侧边栏 --- */
html[data-theme="light"] .layout .sidebar,
html[data-theme="light"] body.home-2-0 .layout .sidebar {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .sidebar .sidebar-nav li a,
html[data-theme="light"] body.home-2-0 .sidebar .sidebar-nav li a {
    color: #333333 !important;
}
html[data-theme="light"] .sidebar .sidebar-nav li:hover {
    background: rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .sidebar .sidebar-nav li:hover a {
    color: #111111 !important;
}
html[data-theme="light"] .sidebar .sidebar-nav li.active a,
html[data-theme="light"] body.home-2-0 .sidebar .sidebar-nav li.active a {
    color: #16A34A !important;
}
html[data-theme="light"] .sidebar .sidebar-nav.divider {
    border-top-color: #E5E7EB !important;
}
html[data-theme="light"] .sidebar .logo-box {
    color: #1A1A1A !important;
}
html[data-theme="light"] .sidebar .nav-icon {
    filter: brightness(0.3) !important;
}
html[data-theme="light"] .sidebar .sidebar-bottom-icons .sidebar-icon-btn {
    color: #666 !important;
}
html[data-theme="light"] .sidebar .sidebar-section-title {
    color: #999 !important;
}

/* --- 头部 --- */
html[data-theme="light"] .main-container .header,
html[data-theme="light"] body.home-2-0 .main-container .header {
    background: #FFFFFF !important;
    border-bottom-color: #E5E7EB !important;
}
html[data-theme="light"] .header .search-input {
    background: #F5F5F7 !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .header .search-input::placeholder {
    color: #999 !important;
}
html[data-theme="light"] .header .user-name-link,
html[data-theme="light"] .header .header-group,
html[data-theme="light"] .header .header-tool-item,
html[data-theme="light"] .header .user-greeting,
html[data-theme="light"] .header .vip-text {
    color: #333 !important;
}
html[data-theme="light"] .header .logout-link {
    color: #666 !important;
    border-color: #E5E7EB !important;
    background: #F5F5F7 !important;
}
html[data-theme="light"] .header .douli-count {
    color: #333 !important;
}

/* --- 主内容区 --- */
html[data-theme="light"] .main-container,
html[data-theme="light"] body.home-2-0 .main-container {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .main-container .main {
    background: #FFFFFF !important;
}
html[data-theme="light"] .main .section-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .main-container .footer {
    background: #F8F9FA !important;
    border-top-color: #E5E7EB !important;
    color: #999 !important;
}

/* --- 智能体详情页左栏 (single-links) --- */
html[data-theme="light"] .sl2-sidebar,
html[data-theme="light"] .sl2-left-panel {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .sl2-agent-name,
html[data-theme="light"] .sl2-header-title,
html[data-theme="light"] .sl2-section-title,
html[data-theme="light"] .sl2-label {
    color: #1A1A1A !important;
}
html[data-theme="light"] .sl2-desc,
html[data-theme="light"] .sl2-hint,
html[data-theme="light"] .sl2-subtitle {
    color: #666 !important;
}
html[data-theme="light"] .sl2-form-section {
    background: #F8F9FA !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .sl2-textarea,
html[data-theme="light"] .sl2-input,
html[data-theme="light"] .sl2-select {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .sl2-textarea::placeholder,
html[data-theme="light"] .sl2-input::placeholder {
    color: #BBB !important;
}
html[data-theme="light"] .sl2-model-selector {
    background: #F5F5F7 !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .sl2-model-option {
    color: #333 !important;
}
html[data-theme="light"] .sl2-model-option:hover {
    background: #F0F0F0 !important;
}
html[data-theme="light"] .sl2-upload-area {
    border-color: #E5E7EB !important;
    background: #F8F9FA !important;
    color: #999 !important;
}
html[data-theme="light"] .sl2-params-bar {
    background: #F5F5F7 !important;
    border-color: #E5E7EB !important;
    color: #666 !important;
}
html[data-theme="light"] .sl2-tab {
    color: #666 !important;
}
html[data-theme="light"] .sl2-tab.active {
    color: #16A34A !important;
}

/* --- 智能体详情页右栏 (对话区) --- */
html[data-theme="light"] .single-links-chat-area {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .single-links-chat-header {
    background: #F8F9FA !important;
    border-bottom-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .single-links-chat-messages {
    background: #FFFFFF !important;
}
html[data-theme="light"] .single-links-message.bot .single-links-message-content {
    background: #F5F5F7 !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .single-links-breadcrumbs {
    background: #F8F9FA !important;
    border-bottom-color: #E5E7EB !important;
    color: #666 !important;
}
html[data-theme="light"] .single-links-sidebar-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .single-links-card-content {
    color: #1A1A1A !important;
}
html[data-theme="light"] .single-links-description {
    color: #666 !important;
}
html[data-theme="light"] .single-links-stats {
    color: #999 !important;
}

/* --- 智能体详情页右栏 Tab --- */
html[data-theme="light"] .sl2-right-tabs .sl2-tab,
html[data-theme="light"] .single-links-right-tab {
    color: #666 !important;
}
html[data-theme="light"] .sl2-right-tabs .sl2-tab.active,
html[data-theme="light"] .single-links-right-tab.active {
    color: #16A34A !important;
    border-bottom-color: #16A34A !important;
}

/* --- 快捷提问按钮 --- */
html[data-theme="light"] .sl2-quick-btn,
html[data-theme="light"] .single-links-quick-question {
    background: #F5F5F7 !important;
    border: 1px solid #E5E7EB !important;
    color: #333 !important;
}
html[data-theme="light"] .sl2-quick-btn:hover,
html[data-theme="light"] .single-links-quick-question:hover {
    background: #E8E8EA !important;
    border-color: #D0D0D0 !important;
}

/* --- 收藏/分享按钮 --- */
html[data-theme="light"] .sl2-favorite-btn,
html[data-theme="light"] .sl2-action-btn {
    color: #666 !important;
    border-color: #E5E7EB !important;
}

/* --- 智能体卡片 --- */
html[data-theme="light"] .agent-card-2,
html[data-theme="light"] body.home-2-0 .agent-card-2 {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .agent-card-2 .agent-card-title,
html[data-theme="light"] .agent-card-2 .agent-card-name {
    color: #1A1A1A !important;
}
html[data-theme="light"] .agent-card-2 .agent-card-desc {
    color: #666 !important;
}

/* --- 分类标签/Tab --- */
html[data-theme="light"] .dh-tab-item,
html[data-theme="light"] .dh-category-tab {
    background: #F5F5F7 !important;
    color: #666 !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .dh-tab-item.active,
html[data-theme="light"] .dh-category-tab.active {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
}

/* --- 作品广场分类 Tab --- */
html[data-theme="light"] .discover-cats .cat-item {
    background: #F5F5F7 !important;
    color: #666 !important;
}
html[data-theme="light"] .discover-cats .cat-item.active {
    background: #16A34A !important;
    color: #FFFFFF !important;
}

/* --- 智能体广场分类标签 --- */
html[data-theme="light"] .as-cat-btn {
    background: #F0F0F2 !important;
    color: #666 !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .as-cat-btn.active,
html[data-theme="light"] .as-cat-btn:hover {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
}
html[data-theme="light"] .as-tag {
    background: #F0F0F2 !important;
    color: #666 !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .as-tag.active {
    background: #E8F5E9 !important;
    color: #16A34A !important;
    border-color: #16A34A !important;
}

/* --- 脚本库/资产库表格 --- */
html[data-theme="light"] .scripts-table,
html[data-theme="light"] .assets-grid {
    color: #1A1A1A !important;
}
html[data-theme="light"] .scripts-table th {
    background: #F8F9FA !important;
    color: #666 !important;
    border-bottom-color: #E5E7EB !important;
}
html[data-theme="light"] .scripts-table td {
    border-bottom-color: #F0F0F0 !important;
    color: #333 !important;
}
html[data-theme="light"] .scripts-table a {
    color: #16A34A !important;
}

/* --- 弹窗/模态框 --- */
html[data-theme="light"] .ac-edit-modal,
html[data-theme="light"] .dh-modal-content,
html[data-theme="light"] .recharge-modal-inner {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .ac-edit-title {
    color: #1A1A1A !important;
}

/* --- 作品卡片下方信息 --- */
html[data-theme="light"] .work-card-info,
html[data-theme="light"] .work-card .work-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .work-card .work-author {
    color: #999 !important;
}

/* --- 用户头像占位 --- */
html[data-theme="light"] .work-card .work-avatar,
html[data-theme="light"] .user-avatar-placeholder {
    background: #E5E7EB !important;
}

/* --- 回到顶部按钮 --- */
html[data-theme="light"] #back-top {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] #back-top::before {
    border-top-color: #333 !important;
    border-right-color: #333 !important;
}
html[data-theme="light"] #back-top:hover {
    background-color: #F5F5F7 !important;
}

/* --- 移动端 Tab 栏 --- */
html[data-theme="light"] nav.m-tab-bar {
    background: #FFFFFF !important;
    border-top: 1px solid #E5E7EB !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] nav.m-tab-bar .m-tab-text {
    color: #999 !important;
}
html[data-theme="light"] nav.m-tab-bar .m-tab-item.active .m-tab-text {
    color: #16A34A !important;
}

/* --- 移动端头部 --- */
html[data-theme="light"] .m-header {
    background: #FFFFFF !important;
    border-bottom-color: #E5E7EB !important;
}
html[data-theme="light"] .m-header .m-logo span {
    color: #1A1A1A !important;
}
html[data-theme="light"] .m-header .m-search-icon {
    color: #666 !important;
}

/* --- 移动端首页 --- */
html[data-theme="light"] body.is-mobile {
    background: #F5F5F7 !important;
}
html[data-theme="light"] .m-section-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .m-agent-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .m-agent-card .m-agent-name {
    color: #1A1A1A !important;
}

/* --- 客服弹窗 --- */
html[data-theme="light"] .dh-cs-popup {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}
html[data-theme="light"] .dh-cs-popup .cs-title {
    color: #1A1A1A !important;
}

/* --- 主题切换按钮 hover --- */
html[data-theme="light"] .dh-theme-toggle-header:hover {
    background: #F0F0F0 !important;
}
html[data-theme="dark"] .dh-theme-toggle-header:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* --- 创作页 (agent-create) --- */
html[data-theme="light"] .agent-create-page {
    background: #F5F5F7 !important;
}
html[data-theme="light"] .ac-card {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .ac-label {
    color: #1A1A1A !important;
}
html[data-theme="light"] .ac-textarea {
    background: #F8F9FA !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .ac-textarea::placeholder {
    color: #BBB !important;
}

/* --- 我的智能体 / 资产库 卡片 --- */
html[data-theme="light"] .ma-card,
html[data-theme="light"] .asset-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .ma-card .ma-name,
html[data-theme="light"] .asset-card .asset-name {
    color: #1A1A1A !important;
}
html[data-theme="light"] .ma-card .ma-desc,
html[data-theme="light"] .asset-card .asset-type {
    color: #999 !important;
}

/* --- 页面标题 --- */
html[data-theme="light"] .page-title,
html[data-theme="light"] .ac-layout h1,
html[data-theme="light"] .ac-layout h2 {
    color: #1A1A1A !important;
}

/* --- 全局链接色 --- */
html[data-theme="light"] a {
    color: inherit;
}

/* --- 滚动条（亮色模式） --- */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F5F5F7;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 4px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}

/* ========================================
   亮色主题 — 全局强制覆盖（兜底）
   解决 body.home-2-0 页面中大量硬编码白色文字问题
   ======================================== */

/* body.home-2-0 下的主内容区全局文字色 */
html[data-theme="light"] body.home-2-0 .main-container .main,
html[data-theme="light"] body.home-2-0 .main-container .main *:not(a):not(.search-btn):not(.login-link):not(.ac-btn-primary):not(.ac-btn-secondary):not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not(svg):not(path):not(.dh-theme-icon) {
    color: #1A1A1A;
}
/* 恢复链接色 */
html[data-theme="light"] body.home-2-0 .main-container .main a {
    color: #16A34A;
}
html[data-theme="light"] body.home-2-0 .main-container .main a:hover {
    color: #15803D;
}
/* 恢复按钮上的白色文字 */
html[data-theme="light"] body.home-2-0 .search-btn,
html[data-theme="light"] body.home-2-0 .login-link,
html[data-theme="light"] body.home-2-0 .ac-btn-primary,
html[data-theme="light"] body.home-2-0 [class*="btn-primary"],
html[data-theme="light"] body.home-2-0 .sl2-gen-btn {
    color: #FFFFFF !important;
}
/* 次要文字 */
html[data-theme="light"] body.home-2-0 .main-container .main .agent-stats,
html[data-theme="light"] body.home-2-0 .main-container .main .stats-item,
html[data-theme="light"] body.home-2-0 .main-container .main time,
html[data-theme="light"] body.home-2-0 .main-container .main .meta,
html[data-theme="light"] body.home-2-0 .main-container .main .date {
    color: #999 !important;
}

/* --- 会员页 (page-huiyuan) --- */
html[data-theme="light"] .vip-pricing-table,
html[data-theme="light"] .vip-plan,
html[data-theme="light"] .vip-features,
html[data-theme="light"] .membership-section {
    color: #1A1A1A !important;
}
html[data-theme="light"] .vip-plan .plan-title,
html[data-theme="light"] .vip-plan .plan-name {
    color: inherit !important;
}
html[data-theme="light"] .vip-plan .plan-price,
html[data-theme="light"] .vip-plan .plan-desc {
    color: #333 !important;
}
html[data-theme="light"] .vip-plan .plan-feature {
    color: #666 !important;
}
html[data-theme="light"] .vip-plan .plan-btn {
    color: #FFFFFF !important;
}
/* 会员卡通用 */
html[data-theme="light"] .membership-card,
html[data-theme="light"] .price-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .price-card .card-header {
    color: #1A1A1A !important;
}
html[data-theme="light"] .check-icon {
    color: #16A34A !important;
}

/* --- 智能体广场分类标签（修复白色文字） --- */
html[data-theme="light"] .as-filter-section,
html[data-theme="light"] .as-categories,
html[data-theme="light"] .filter-group {
    color: #1A1A1A !important;
}
html[data-theme="light"] .as-filter-label,
html[data-theme="light"] .filter-label,
html[data-theme="light"] .as-cat-label {
    color: #666 !important;
}
html[data-theme="light"] .as-cat-item,
html[data-theme="light"] .filter-item {
    background: #F0F0F2 !important;
    color: #666 !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .as-cat-item.active,
html[data-theme="light"] .filter-item.active {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
}
html[data-theme="light"] .as-cat-item:hover,
html[data-theme="light"] .filter-item:hover {
    background: #E8E8EA !important;
    color: #333 !important;
}

/* --- 智能体卡片（广场页） --- */
html[data-theme="light"] .agent-square-card,
html[data-theme="light"] .as-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .as-card:hover,
html[data-theme="light"] .agent-square-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}
html[data-theme="light"] .as-card .card-name,
html[data-theme="light"] .as-card .agent-name {
    color: #1A1A1A !important;
}
html[data-theme="light"] .as-card .card-desc,
html[data-theme="light"] .as-card .agent-desc {
    color: #666 !important;
}

/* --- 分类页/标签页/搜索结果（category-2.0/tag-2.0/search） --- */
html[data-theme="light"] .category-list-item,
html[data-theme="light"] .post-card-2,
html[data-theme="light"] .search-result-item,
html[data-theme="light"] .archive-post {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .post-card-2 .post-title,
html[data-theme="light"] .archive-post .post-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .post-card-2 .post-excerpt,
html[data-theme="light"] .archive-post .post-excerpt {
    color: #666 !important;
}
html[data-theme="light"] .post-card-2 .post-meta,
html[data-theme="light"] .archive-post .post-meta {
    color: #999 !important;
}
html[data-theme="light"] .post-card-2 .post-category,
html[data-theme="light"] .archive-post .category-badge {
    background: #E8F5E9 !important;
    color: #16A34A !important;
}

/* --- 专区页面（cjzx/dhxt/gzlzx 等 single-post_* 页面） --- */
html[data-theme="light"] .single-post-content,
html[data-theme="light"] .entry-content,
html[data-theme="light"] .post-content {
    color: #1A1A1A !important;
}
html[data-theme="light"] .entry-content h1,
html[data-theme="light"] .entry-content h2,
html[data-theme="light"] .entry-content h3,
html[data-theme="light"] .entry-content h4 {
    color: #1A1A1A !important;
}
html[data-theme="light"] .entry-content p,
html[data-theme="light"] .entry-content li {
    color: #333 !important;
}

/* --- 登录页 --- */
html[data-theme="light"] body.login {
    background: #F5F5F7 !important;
}
html[data-theme="light"] .login-card,
html[data-theme="light"] .login-container,
html[data-theme="light"] #loginform {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}

/* --- 专区页面内容区（工作流/创作中心/导航/小助手/定制） --- */
html[data-theme="light"] .page-content-area,
html[data-theme="light"] .workflow-content,
html[data-theme="light"] .dhxt-content,
html[data-theme="light"] .cjzx-content,
html[data-theme="light"] .gzlzx-content {
    color: #1A1A1A !important;
}
html[data-theme="light"] .section-heading,
html[data-theme="light"] .section-title-bar {
    color: #1A1A1A !important;
}
html[data-theme="light"] .feature-card,
html[data-theme="light"] .intro-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .intro-card p {
    color: #666 !important;
}
html[data-theme="light"] .download-btn,
html[data-theme="light"] .action-btn {
    color: #FFFFFF !important;
}

/* --- 通用内容卡片 --- */
html[data-theme="light"] .content-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .data-card {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}

/* --- 表格通用 --- */
html[data-theme="light"] table {
    color: #1A1A1A;
}
html[data-theme="light"] table th {
    background: #F8F9FA !important;
    color: #666 !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] table td {
    border-color: #F0F0F0 !important;
    color: #333 !important;
}

/* --- 输入框通用 --- */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #BBB !important;
}

/* --- 搜索框区域背景 --- */
html[data-theme="light"] .search-bar-wrap,
html[data-theme="light"] body.home-2-0 .search-bar-wrap {
    background: #F5F5F7 !important;
}

/* --- 分页 --- */
html[data-theme="light"] .pagination a,
html[data-theme="light"] .page-numbers {
    color: #666 !important;
    border-color: #E5E7EB !important;
    background: #FFFFFF !important;
}
html[data-theme="light"] .pagination .current,
html[data-theme="light"] .page-numbers.current {
    background: #16A34A !important;
    color: #FFFFFF !important;
    border-color: #16A34A !important;
}

/* --- 面包屑 --- */
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .breadcrumb {
    color: #999 !important;
}
html[data-theme="light"] .breadcrumbs a,
html[data-theme="light"] .breadcrumb a {
    color: #666 !important;
}

/* --- 底部 footer --- */
html[data-theme="light"] .site-footer,
html[data-theme="light"] footer,
html[data-theme="light"] .main-container .footer {
    background: #F8F9FA !important;
    color: #999 !important;
    border-top-color: #E5E7EB !important;
}

/* --- 充值弹窗 --- */
html[data-theme="light"] .dh-recharge-modal {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .dh-recharge-modal .amount-item {
    background: #F5F5F7 !important;
    border: 1px solid #E5E7EB !important;
    color: #333 !important;
}
html[data-theme="light"] .dh-recharge-modal .amount-item.dh-selected {
    border-color: #16A34A !important;
    background: #E8F5E9 !important;
}
html[data-theme="light"] .dh-recharge-modal .pay-method {
    border-color: #E5E7EB !important;
}

/* --- 升级/购买弹窗 --- */
html[data-theme="light"] .upgrade-modal,
html[data-theme="light"] .purchase-modal {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}

/* --- 豆粒信息栏 --- */
html[data-theme="light"] .douli-bar,
html[data-theme="light"] .douli-info {
    color: #333 !important;
}

/* --- 用户中心 --- */
html[data-theme="light"] .user-panel,
html[data-theme="light"] .user-center-content {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .user-panel .panel-title {
    color: #1A1A1A !important;
}

/* --- 强制所有 .home-2-0 内 <style> 白色文字覆盖 --- */
/* 这些选择器命中 homepage-2.1.css 中未用变量的残留 */
html[data-theme="light"] body.home-2-0 .agent-card-2 .agent-card-overlay,
html[data-theme="light"] body.home-2-0 .agent-card-2::after {
    background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 100%) !important;
}

/* --- sidebar-collapsed 亮色适配 --- */
html[data-theme="light"] .sidebar-collapsed {
    background: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .sidebar-collapsed .nav-icon {
    filter: brightness(0.3) !important;
}
html[data-theme="light"] .sidebar-collapsed .sidebar-nav li a {
    color: #333 !important;
}

/* ========================================
   亮色主题 — 各页面专用选择器覆盖
   基于全站扫描结果精确命中
   ======================================== */

/* === 会员页 (page-huiyuan) === */
html[data-theme="light"] .vip-page-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .vip-page-desc {
    color: #666 !important;
}
html[data-theme="light"] .vip-card-name,
html[data-theme="light"] .business-card-name {
    color: #1A1A1A !important;
}
html[data-theme="light"] .vip-card-price,
html[data-theme="light"] .business-card-desc {
    color: #333 !important;
}
html[data-theme="light"] .vip-card-price span {
    color: #999 !important;
}
html[data-theme="light"] .vip-feature,
html[data-theme="light"] .business-feature {
    color: #666 !important;
}
html[data-theme="light"] .vip-footer-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .vip-footer-text {
    color: #999 !important;
}
html[data-theme="light"] .vip-card.trial .vip-buy-btn,
html[data-theme="light"] .vip-card.silver .vip-buy-btn,
html[data-theme="light"] .vip-card.gold .vip-buy-btn,
html[data-theme="light"] .vip-card.diamond .vip-buy-btn {
    color: #fff !important;
}

/* === 智能体广场/工作流/创作中心 共用前缀 (gzlzx/cjzx/dhxt) === */
html[data-theme="light"] .gzlzx-page-title,
html[data-theme="light"] .cjzx-page-title,
html[data-theme="light"] .dhxt-page-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-page-desc,
html[data-theme="light"] .cjzx-page-desc,
html[data-theme="light"] .dhxt-page-desc {
    color: #666 !important;
}
html[data-theme="light"] .gzlzx-filter-label,
html[data-theme="light"] .cjzx-filter-label,
html[data-theme="light"] .dhxt-filter-label {
    color: #666 !important;
}
html[data-theme="light"] .gzlzx-filter-tag,
html[data-theme="light"] .cjzx-filter-tag,
html[data-theme="light"] .dhxt-filter-tag {
    color: #666 !important;
    background: #F0F0F2 !important;
    border: 1px solid #E5E7EB !important;
}
html[data-theme="light"] .gzlzx-filter-tag.active,
html[data-theme="light"] .cjzx-filter-tag.active,
html[data-theme="light"] .dhxt-filter-tag.active {
    color: #FFFFFF !important;
    background: #16A34A !important;
    border-color: #16A34A !important;
}
html[data-theme="light"] .gzlzx-filter-tag:hover,
html[data-theme="light"] .cjzx-filter-tag:hover,
html[data-theme="light"] .dhxt-filter-tag:hover {
    background: #E8E8EA !important;
    color: #333 !important;
}
html[data-theme="light"] .gzlzx-workflow-title,
html[data-theme="light"] .cjzx-plugin-title,
html[data-theme="light"] .dhxt-course-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-workflow-meta,
html[data-theme="light"] .cjzx-plugin-meta,
html[data-theme="light"] .dhxt-course-meta {
    color: #999 !important;
}
html[data-theme="light"] .gzlzx-empty,
html[data-theme="light"] .cjzx-empty,
html[data-theme="light"] .dhxt-empty {
    color: #BBB !important;
}
html[data-theme="light"] .gzlzx-pagination a,
html[data-theme="light"] .cjzx-pagination a,
html[data-theme="light"] .dhxt-pagination a {
    color: #666 !important;
    border-color: #E5E7EB !important;
    background: #FFFFFF !important;
}
html[data-theme="light"] .gzlzx-pagination .current,
html[data-theme="light"] .cjzx-pagination .current,
html[data-theme="light"] .dhxt-pagination .current {
    background: #16A34A !important;
    color: #FFFFFF !important;
}
html[data-theme="light"] .gzlzx-workflow-badge,
html[data-theme="light"] .cjzx-plugin-badge,
html[data-theme="light"] .dhxt-course-badge {
    background: rgba(0, 0, 0, 0.5) !important;
}
/* 卡片容器 */
html[data-theme="light"] .gzlzx-workflow-card,
html[data-theme="light"] .cjzx-plugin-card,
html[data-theme="light"] .dhxt-course-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

/* === 详情页 (single-post_gzlzx/cjzx/dhxt) 面包屑+内容 === */
html[data-theme="light"] .gzlzx-breadcrumbs,
html[data-theme="light"] .dhxt-breadcrumbs {
    color: #999 !important;
}
html[data-theme="light"] .gzlzx-breadcrumbs a,
html[data-theme="light"] .dhxt-breadcrumbs a {
    color: #666 !important;
}
html[data-theme="light"] .gzlzx-breadcrumbs .separator,
html[data-theme="light"] .dhxt-breadcrumbs .separator {
    color: #CCC !important;
}
html[data-theme="light"] .gzlzx-breadcrumbs .current,
html[data-theme="light"] .dhxt-breadcrumbs .current {
    color: #333 !important;
}
html[data-theme="light"] .gzlzx-title,
html[data-theme="light"] .dhxt-article-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-meta-item .label,
html[data-theme="light"] .dhxt-meta-item {
    color: #999 !important;
}
html[data-theme="light"] .gzlzx-meta-item .value {
    color: #333 !important;
}
html[data-theme="light"] .gzlzx-membership-tags .tag {
    color: #666 !important;
    background: #F0F0F2 !important;
}
html[data-theme="light"] .gzlzx-desc-box,
html[data-theme="light"] .gzlzx-brief {
    color: #333 !important;
}
html[data-theme="light"] .gzlzx-section-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-usage-box p {
    color: #666 !important;
}
html[data-theme="light"] .gzlzx-content h1,
html[data-theme="light"] .gzlzx-content h2,
html[data-theme="light"] .gzlzx-content h3,
html[data-theme="light"] .gzlzx-content h4 {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-content p,
html[data-theme="light"] .gzlzx-content ul,
html[data-theme="light"] .gzlzx-content ol {
    color: #333 !important;
}
html[data-theme="light"] .gzlzx-btn {
    color: #fff !important;
}
html[data-theme="light"] .gzlzx-btn-vip:hover,
html[data-theme="light"] .gzlzx-btn-bean:hover,
html[data-theme="light"] .gzlzx-btn-lock:hover,
html[data-theme="light"] .gzlzx-btn-welfare:hover {
    color: #fff !important;
}
html[data-theme="light"] .gzlzx-tooltip {
    background: #FFFFFF !important;
    color: #333 !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
html[data-theme="light"] .gzlzx-vip-banner .vip-text h3 {
    color: #fff !important;
}
html[data-theme="light"] .gzlzx-vip-banner .vip-text p {
    color: rgba(255,255,255,0.6) !important;
}
html[data-theme="light"] .gzlzx-modal {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-modal h3 {
    color: #1A1A1A !important;
}
html[data-theme="light"] .gzlzx-modal p {
    color: #666 !important;
}
html[data-theme="light"] .gzlzx-modal .modal-close {
    color: #999 !important;
}
html[data-theme="light"] .gzlzx-modal .modal-btn {
    color: #fff !important;
}
html[data-theme="light"] .gzlzx-modal .balance-info {
    color: #999 !important;
}
html[data-theme="light"] .redeem-input {
    color: #1A1A1A !important;
    background: #F0F1F3 !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .redeem-input::placeholder {
    color: #BBB !important;
}

/* === 导航系统详情页 (single-post_dhxt) === */
html[data-theme="light"] .dhxt-lock-message {
    color: #1A1A1A !important;
}
html[data-theme="light"] .dhxt-lock-desc {
    color: #666 !important;
}
html[data-theme="light"] .dhxt-article-content h1,
html[data-theme="light"] .dhxt-article-content h2,
html[data-theme="light"] .dhxt-article-content h3,
html[data-theme="light"] .dhxt-article-content h4 {
    color: #1A1A1A !important;
}
html[data-theme="light"] .dhxt-article-content p {
    color: #333 !important;
}
html[data-theme="light"] .dhxt-article-content ul,
html[data-theme="light"] .dhxt-article-content ol {
    color: #333 !important;
}
html[data-theme="light"] .dhxt-article-content pre {
    background: #F0F1F3 !important;
    color: #333 !important;
}
html[data-theme="light"] .dhxt-comments-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .dhxt-comment-form textarea {
    color: #1A1A1A !important;
    background: #F8F9FA !important;
    border-color: #E5E7EB !important;
}
html[data-theme="light"] .dhxt-comment-form textarea::placeholder {
    color: #BBB !important;
}
html[data-theme="light"] .dhxt-user-name {
    color: #666 !important;
}
html[data-theme="light"] .dhxt-chapter-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .dhxt-chapter-num {
    color: #999 !important;
}
html[data-theme="light"] .dhxt-chapter-name {
    color: #666 !important;
}

/* === 分类页 (category-2.0) === */
html[data-theme="light"] .sidebar-section-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .sidebar-post-title {
    color: #333 !important;
}
html[data-theme="light"] .article-list-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .article-list-desc {
    color: #666 !important;
}
html[data-theme="light"] .article-card-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .article-card-excerpt {
    color: #666 !important;
}
html[data-theme="light"] .article-card-meta {
    color: #999 !important;
}
html[data-theme="light"] .pagination-2 a {
    color: #666 !important;
}
html[data-theme="light"] .no-articles {
    color: #BBB !important;
}
html[data-theme="light"] .article-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

/* === 标签页 (tag-2.0) === */
html[data-theme="light"] .tag-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .tag-desc {
    color: #666 !important;
}
html[data-theme="light"] .tag-article-title {
    color: #1A1A1A !important;
}
html[data-theme="light"] .tag-article-excerpt {
    color: #666 !important;
}
html[data-theme="light"] .tag-article-meta {
    color: #999 !important;
}
html[data-theme="light"] .tag-pagination a {
    color: #666 !important;
}
html[data-theme="light"] .no-posts {
    color: #BBB !important;
}
html[data-theme="light"] .tag-article-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

/* === 搜索页 (search) === */
html[data-theme="light"] .search-2-title {
    color: #666 !important;
}
html[data-theme="light"] .search-2-card .s2-name {
    color: #1A1A1A !important;
}
html[data-theme="light"] .search-2-card .s2-desc {
    color: #666 !important;
}
html[data-theme="light"] .search-2-empty {
    color: #BBB !important;
}
html[data-theme="light"] .search-2-pagination a {
    color: #666 !important;
}
html[data-theme="light"] .search-2-pagination span.dots {
    color: #BBB !important;
}
html[data-theme="light"] .search-2-list-item .s2l-title,
html[data-theme="light"] .search-2-list-item .s2l-title a {
    color: #1A1A1A !important;
}
html[data-theme="light"] .search-2-list-item .s2l-desc {
    color: #666 !important;
}
html[data-theme="light"] .search-2-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

/* === 链接分类页 (taxonomy-link_cat-2.0) === */
html[data-theme="light"] .loading-more {
    color: #999 !important;
}
html[data-theme="light"] .no-more-data {
    color: #BBB !important;
}

/* === 退款政策页移动端 === */
@media (max-width: 768px) {
    html[data-theme="light"] .rp-title {
        color: #1A1A1A !important;
    }
    html[data-theme="light"] .rp-update-time {
        color: #999 !important;
    }
    html[data-theme="light"] .rp-section-title {
        color: #1A1A1A !important;
    }
    html[data-theme="light"] .rp-section p,
    html[data-theme="light"] .rp-section li {
        color: #333 !important;
    }
    html[data-theme="light"] .rp-note {
        color: #666 !important;
    }
}
