/* ================================================================
 * 黑金商务科技主题 (theme-gold)
 * 基于深黑背景 + 琥珀金点缀的商务科技风格
 * 通过 .theme-gold 前缀覆盖各页面样式，所有继承 base.html 的页面自动适配
 * ================================================================ */

/* ========== 全局 CSS 变量覆盖（黑金主题） ========== */
.theme-gold {
    --card-bg: #1a1812;
    --text-primary: #f0ece0;
    --text-secondary: #c9b896;
    --input-bg: #12100c;
    --border-color: #8c6f3a;
    --accent: #d4a84b;
    --accent-rgb: 212, 168, 75;
    /* 状态语义色（黑金主题：暗金底上的可读色） */
    --st-green: #7be0a4;       --st-green-bg: rgba(0, 200, 90, .16);
    --st-red: #ff8f8f;         --st-red-bg: rgba(220, 70, 70, .16);
    --st-blue: #6fd0ff;        --st-blue-bg: rgba(0, 150, 255, .16);
    --st-gray: #c9b896;        --st-gray-bg: rgba(180, 150, 90, .16);
    --st-amber: #ffcf7a;       --st-amber-bg: rgba(220, 160, 0, .16);
}

/* ========== 全局背景与文字 ========== */
.theme-gold body {
    background-color: #0a0805;
    color: #f0ece0;
}

/* ========== base.css 覆盖 ========== */

/* 左侧侧边栏 */
.theme-gold .left-sidebar {
    background-color: #0d0a07;
}
/* 左上角 Logo 区：与顶部 header 同高同色的黑金底 */
.theme-gold .sidebar-logo {
    background-color: #12100c;
    border-bottom: none;
}
.theme-gold .sidebar-logo:hover {
    background-color: #1a1712;
}
.theme-gold .sidebar-logo .logo-mark {
    color: #d4a84b;
}
.theme-gold .sidebar-logo .logo-text {
    color: #f0e0c0;
    text-shadow: 0 0 8px rgba(212, 168, 75, 0.25);
}
.theme-gold .sidebar-item {
    color: #c9b896;
}
.theme-gold .sidebar-item.active {
    background-color: rgba(212, 168, 75, 0.12);
    color: #ffffff;
    border-left: 3px solid #d4a84b;
}
.theme-gold .sidebar-item:hover {
    background-color: #1a1510;
}
.theme-gold ::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.35);
}
.theme-gold ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.6);
}
.theme-gold html {
    scrollbar-color: rgba(212, 168, 75, 0.35) transparent;
}

/* 顶部导航 */
.theme-gold .top-header {
    background-color: #12100c;
}
.theme-gold .welcome-text {
    color: #e6dcc8;
}
.theme-gold .btn-logout {
    background: rgba(60, 48, 24, 0.4);
    border: 1px solid #8c6f3a;
    color: #d4c098;
}
.theme-gold .btn-logout:hover {
    background: rgba(80, 64, 32, 0.55);
    color: #ffffff;
}

/* 二级折叠菜单 */
.theme-gold .sidebar-parent {
    color: #c9b896;
}
.theme-gold .sidebar-parent:hover {
    background-color: #1a1510;
    color: #f0e0c0;
}
.theme-gold .group-arrow {
    color: #8c7548;
}
.theme-gold .sidebar-group.open > .sidebar-parent .group-arrow {
    color: #d4a84b;
}
.theme-gold .sidebar-children {
    background: rgba(20, 16, 8, 0.4);
}
.theme-gold .sidebar-child {
    color: #b8a578;
    border-left: 3px solid transparent;
}
.theme-gold .sidebar-child:hover {
    background-color: #15110a;
    color: #f0e0c0;
}
.theme-gold .sidebar-child.active {
    background-color: rgba(212, 168, 75, 0.12);
    color: #ffffff;
    border-left-color: #d4a84b;
}

/* 标签栏 */
.theme-gold .tab-bar-wrap {
    background: #12100c;
    border-top: 1px solid rgba(140, 110, 60, 0.12);
    border-bottom: 1px solid rgba(140, 110, 60, 0.25);
}
.theme-gold .tab-bar-scroll {
    scrollbar-color: rgba(212, 168, 75, 0.3) transparent;
}
.theme-gold .tab-bar-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.3);
}
.theme-gold .tab-item {
    background: rgba(40, 32, 16, 0.5);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #c9b896;
}
.theme-gold .tab-item:hover {
    background: rgba(60, 48, 24, 0.6);
    color: #f0e0c0;
}
.theme-gold .tab-item.active {
    background: rgba(80, 64, 32, 0.8);
    color: #ffffff;
    border-color: rgba(212, 168, 75, 0.5);
    border-bottom: 2px solid #12100c;
}
.theme-gold .tab-item.loading::after {
    background: linear-gradient(90deg, transparent, #e6b84d, transparent);
}
.theme-gold .tab-close {
    color: #8c7548;
}
.theme-gold .tab-close:hover {
    background: rgba(255, 80, 80, 0.25);
    color: #ff6666;
}
.theme-gold .tab-bar-actions {
    border-left: 1px solid rgba(140, 110, 60, 0.25);
}
.theme-gold .tab-action-btn {
    background: rgba(40, 32, 16, 0.55);
    border: 1px solid rgba(140, 110, 60, 0.35);
    color: #b8a578;
}
.theme-gold .tab-action-btn:hover {
    background: rgba(60, 48, 24, 0.65);
    border-color: rgba(212, 168, 75, 0.6);
    color: #ffffff;
}

/* iframe 容器 */
.theme-gold .tab-content-area {
    background: #0a0805;
}

/* 嵌入模式 */
.theme-gold html.iframe-embed .embed-content-wrap {
    /* 保持默认 padding */
}

/* 通用流光卡片 */
.theme-gold .tech-card {
    background: rgba(40, 30, 15, 0.5);
}
.theme-gold .tech-card::before {
    background: conic-gradient(#e6b84d, #c4942c, #e6b84d 30%);
}
.theme-gold .tech-card::after {
    background: #0d0a07;
}

/* 按钮 */
.theme-gold .btn-primary {
    background: linear-gradient(90deg, #c4942c, #e6b84d);
    color: #1a1208;
    text-shadow: none;
}
.theme-gold .btn-primary:hover {
    background: linear-gradient(90deg, #d4a84b, #f0c558);
}
.theme-gold .btn-secondary {
    background: rgba(60, 48, 24, 0.4);
    border: 1px solid #8c6f3a;
    color: #d4c098;
}
.theme-gold .btn-secondary:hover {
    background: rgba(80, 64, 32, 0.55);
    color: #ffffff;
}

/* 表格 */
.theme-gold .tech-table th,
.theme-gold .tech-table td {
    border-bottom: 1px solid rgba(140, 110, 60, 0.22);
}
.theme-gold .tech-table th {
    background: rgba(50, 38, 18, 0.55);
    color: #e6dcc8;
}
.theme-gold .tech-table td {
    color: #d0c8b8;
}

/* 工具栏与分页 */
.theme-gold .page-box button {
    background: rgba(40, 32, 16, 0.45);
    border: 1px solid #8c6f3a;
    color: #d4c098;
}
.theme-gold .page-box button:hover {
    background: rgba(60, 48, 24, 0.6);
    border-color: #d4a84b;
    color: #ffffff;
}
.theme-gold .tech-select {
    background: #12100c;
    color: #d4c098;
    border: 1px solid #8c6f3a;
}

/* 日期选择器图标 */
.theme-gold input[type="date"].tech-select::-webkit-calendar-picker-indicator,
.theme-gold input[type="month"].tech-select::-webkit-calendar-picker-indicator,
.theme-gold input[type="week"].tech-select::-webkit-calendar-picker-indicator,
.theme-gold input[type="datetime-local"].tech-select::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(10deg);
    opacity: 0.9;
    cursor: pointer;
}
.theme-gold input[type="date"].tech-select::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 侧边栏科技渐变发光分割线 -> 金色 */
.theme-gold .sidebar-divider {
    background: linear-gradient(90deg, transparent, #d4a84b, #e6b84d, transparent);
    box-shadow: 0 0 8px #d4a84b, 0 0 16px rgba(230, 184, 77, 0.4);
    animation: dividerGlowGold 3s infinite ease-in-out;
}
@keyframes dividerGlowGold {
    0% { box-shadow: 0 0 6px #d4a84b, 0 0 12px rgba(230, 184, 77, 0.25); opacity: 0.7; }
    50% { box-shadow: 0 0 12px #d4a84b, 0 0 24px rgba(230, 184, 77, 0.6); opacity: 1; }
    100% { box-shadow: 0 0 6px #d4a84b, 0 0 12px rgba(230, 184, 77, 0.25); opacity: 0.7; }
}

/* ========== global.css 覆盖（旧样式兼容） ========== */
.theme-gold .sidebar {
    background-color: #0d0a07;
}
.theme-gold .menu-item {
    color: #c9b896;
}
.theme-gold .menu-item.active {
    background-color: rgba(212, 168, 75, 0.12);
    color: #ffffff;
    border-left: 3px solid #d4a84b;
}
.theme-gold .menu-item:hover {
    background-color: #1a1510;
}
.theme-gold .top-nav {
    background-color: #12100c;
}

/* ========== index.html 首页内联样式覆盖 ========== */
.theme-gold .weather-alert-wrap {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .weather-red-header {
    background: linear-gradient(135deg, rgba(80, 60, 24, 0.95), rgba(50, 38, 14, 0.95));
    border-bottom: 1px solid rgba(212, 168, 75, 0.25);
}
.theme-gold .weather-city-card {
    background: rgba(30, 24, 12, 0.45);
    border: 1px solid rgba(140, 110, 60, 0.25);
}
.theme-gold .weather-city-card:hover {
    border-color: rgba(212, 168, 75, 0.45);
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.15);
}
.theme-gold .city-name {
    color: #d4a84b;
}
.theme-gold .weather-item {
    color: #e6dcc8;
}
.theme-gold .weather-loading,
.theme-gold .weather-error {
    color: #c9b896;
}

.theme-gold .home-card {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .home-card:hover {
    border-color: rgba(212, 168, 75, 0.4);
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.15);
}
.theme-gold .card-label {
    color: #b8a578;
}
.theme-gold .card-num {
    color: #ffffff;
}
.theme-gold .card-desc {
    color: #c9b896;
}

.theme-gold .quick-title {
    color: #f0e0c0;
    border-left: 4px solid #d4a84b;
}
.theme-gold .quick-item {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .quick-item:hover {
    background: rgba(60, 48, 24, 0.12);
    border-color: #d4a84b;
}
.theme-gold .quick-name {
    color: #ffffff;
}
.theme-gold .quick-tip {
    color: #b8a578;
}

.theme-gold .tips-card {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .tips-title {
    color: #f0e0c0;
}
.theme-gold .tips-list li {
    color: #c9b896;
}

/* ========== pur_order.css 覆盖 ========== */
.theme-gold .select-box span {
    color: #f0e0c0;
}
.theme-gold select.tech-select {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
    color: #fff;
}
.theme-gold input[type="date"].tech-select {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
    color: #fff;
}
/* pur_order 表格 */
.theme-gold .tech-card {
    background-color: rgba(40, 30, 15, 0.04);
    border: 1px solid rgba(212, 168, 75, 0.12);
}
.theme-gold .tech-table th {
    background-color: #2a2317;
    border-bottom: 1px solid #4a3e28;
    color: #fff;
}
.theme-gold .tech-table td {
    border-bottom: 1px solid rgba(212, 168, 75, 0.08);
    color: #d0c8b8;
}
.theme-gold .total-row {
    background-color: rgba(212, 168, 75, 0.1);
}
.theme-gold .total-row td {
    color: #fff;
    border-top: 1px solid rgba(212, 168, 75, 0.3);
}
.theme-gold .page-box button:disabled {
    border-color: #4a3e28;
    color: #6b5e48;
    background-color: rgba(20, 16, 8, 0.3);
}
.theme-gold .page-box span {
    color: #fff;
}
.theme-gold .no-data-tip {
    color: #8c7548;
}

/* ========== system.css 覆盖 ========== */
.theme-gold .form-row label {
    color: #b8a578;
}
.theme-gold .status-badge.status-on {
    background: rgba(52, 211, 153, 0.15);
    color: #4ade80;
    border: 1px solid rgba(52, 211, 153, 0.35);
}
.theme-gold .status-badge.status-off {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.35);
}
.theme-gold a.btn-mini {
    color: #c9b896;
    border: 1px solid rgba(140, 110, 60, 0.35);
    background: rgba(40, 32, 16, 0.35);
}
.theme-gold a.btn-mini:hover {
    background: rgba(80, 64, 32, 0.5);
    color: #ffffff;
    border-color: rgba(212, 168, 75, 0.55);
}

/* ========== module.css 覆盖 ========== */
/* module.css 与 pur_order/system 共用 tech-select, form-row 等，已覆盖 */

/* ========== bi.css 覆盖 ========== */
.theme-gold .bi-wrap {
    background: #0a0805;
}
.theme-gold .bi-wrap::before {
    background-image: radial-gradient(rgba(212, 168, 75, 0.08) 1px, transparent 1px);
}
.theme-gold .bi-title {
    color: #f0e0c0;
}
.theme-gold .sub-desc {
    color: #c9b896;
}
.theme-gold .indicator-card {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .indicator-card:hover {
    border-color: rgba(212, 168, 75, 0.4);
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.15);
}
.theme-gold .ind-label {
    color: #b8a578;
}
.theme-gold .ind-value {
    color: #ffffff;
}
.theme-gold .ind-unit {
    color: #c9b896;
}
.theme-gold .chart-card {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .card-title {
    color: #f0e0c0;
    border-left: 4px solid #d4a84b;
}
.theme-gold .card-title span:last-child {
    color: #c9b896;
}

/* ========== bi_big.css 覆盖 ========== */
.theme-gold .dashboard-wrap {
    background: #060403;
}
.theme-gold .dashboard-wrap::before {
    background-image:
        radial-gradient(rgba(230, 184, 77, 0.09) 1px, transparent 1px),
        linear-gradient(rgba(212, 168, 75, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 75, 0.06) 1px, transparent 1px);
}
.theme-gold .dash-title {
    color: #f0e0c0;
}
.theme-gold .index-card {
    background: linear-gradient(135deg, rgba(30, 24, 12, 0.75), rgba(20, 16, 8, 0.65));
    border: 1px solid rgba(212, 168, 75, 0.22);
}
.theme-gold .index-card:hover {
    border-color: rgba(230, 184, 77, 0.45);
}
.theme-gold .index-card::after {
    background: linear-gradient(45deg, transparent 40%, rgba(230, 184, 77, 0.12) 50%, transparent 60%);
}
.theme-gold .index-name {
    color: #b8a578;
}
.theme-gold .index-icon {
    background: rgba(212, 168, 75, 0.15);
    color: #d4a84b;
}
.theme-gold .index-num {
    color: #ffffff;
}
.theme-gold .index-desc {
    color: #b8a578;
}
.theme-gold .chart-box {
    background: linear-gradient(135deg, rgba(30, 24, 12, 0.7), rgba(20, 16, 8, 0.6));
    border: 1px solid rgba(212, 168, 75, 0.2);
}
.theme-gold .chart-header {
    border-left: 4px solid #d4a84b;
}
.theme-gold .chart-title {
    color: #f0e0c0;
}
.theme-gold .chart-sub {
    color: #c9b896;
}

/* ========== login.css 覆盖 ========== */
.theme-gold .space-wrap {
    background-color: #060403;
}
.theme-gold .login-card {
    background: rgba(20, 16, 8, 0.62);
    border: 1px solid rgba(212, 168, 75, 0.22);
    box-shadow: 0 0 80px rgba(212, 168, 75, 0.12);
}
.theme-gold .login-card::before {
    background: conic-gradient(
        transparent 64%,
        rgba(230, 184, 77, 0.38),
        rgba(212, 168, 75, 0.22),
        transparent
    );
}
.theme-gold .login-card::after {
    background: rgba(14, 12, 6, 0.93);
}
.theme-gold .card-header h1 {
    color: #ffffff;
    text-shadow: 0 0 22px rgba(230, 184, 77, 0.52);
}
.theme-gold .sub-title {
    color: #d4c098;
}
.theme-gold .input-group label {
    color: #d4c098;
}
.theme-gold .input-field {
    background: rgba(20, 16, 8, 0.55);
    border: 1px solid rgba(140, 110, 60, 0.28);
    color: #fff;
}
.theme-gold .input-field::placeholder {
    color: rgba(140, 110, 60, 0.5);
}
.theme-gold .input-field:focus {
    border-color: #e6b84d;
    background: rgba(30, 24, 12, 0.75);
    box-shadow: 0 0 0 3px rgba(230, 184, 77, 0.21), 0 0 30px rgba(212, 168, 75, 0.17);
}
.theme-gold .submit-btn {
    background: linear-gradient(90deg, #c4942c, #e6b84d);
    color: #1a1208;
}
.theme-gold .submit-btn:hover {
    background: linear-gradient(90deg, #b88420, #d4a84b);
    box-shadow: 0 12px 40px rgba(212, 168, 75, 0.44);
}
.theme-gold .copyright {
    color: rgba(140, 110, 60, 0.44);
}

/* ========== 通用表单输入框覆盖 ========== */
.theme-gold input[type="text"],
.theme-gold input[type="password"],
.theme-gold input[type="number"],
.theme-gold input[type="email"],
.theme-gold textarea,
.theme-gold select {
    background: rgba(20, 16, 8, 0.5);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold input[type="text"]:focus,
.theme-gold input[type="password"]:focus,
.theme-gold input[type="number"]:focus,
.theme-gold input[type="email"]:focus,
.theme-gold textarea:focus,
.theme-gold select:focus {
    border-color: #d4a84b;
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.15);
}
.theme-gold input::placeholder,
.theme-gold textarea::placeholder {
    color: rgba(140, 110, 60, 0.5);
}

/* ========== 权限配置页面覆盖 ========== */
.theme-gold .perm-card {
    border-color: rgba(140, 110, 60, 0.25);
    background: rgba(18, 14, 8, 0.85);
}
.theme-gold .perm-card h2 {
    color: #e6dcc8;
}
.theme-gold .perm-role-select label {
    color: #c9b896;
}
.theme-gold .perm-role-select select {
    background: #1a1510;
    border-color: rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold .perm-role-select select option {
    background: #1a1510;
}
.theme-gold .perm-hint {
    color: #8a7548;
}
.theme-gold .perm-menu-item {
    border-color: rgba(140, 110, 60, 0.25);
    background: rgba(20, 16, 8, 0.5);
    color: #c9b896;
}
.theme-gold .perm-menu-item:hover {
    border-color: #d4a84b;
    background: rgba(212, 168, 75, 0.08);
}
.theme-gold .perm-menu-item .menu-label {
    color: #d0c8b8;
}
.theme-gold .perm-menu-item.is-parent .menu-label {
    color: #e6dcc8;
    font-weight: 600;
}
.theme-gold .perm-btn-save {
    background: linear-gradient(135deg, #d4a84b, #b8860b);
    color: #1a1510;
}
.theme-gold .perm-btn-save:hover {
    background: linear-gradient(135deg, #e0b860, #c99a18);
}
.theme-gold .perm-btn-save:disabled {
    background: #3d3020;
    color: #7a6a48;
}
.theme-gold .perm-role-info {
    color: #d4a84b;
    background: rgba(212, 168, 75, 0.08);
    border-color: rgba(212, 168, 75, 0.2);
}
.theme-gold .perm-toolbar a {
    color: #d4a84b;
}
.theme-gold .perm-section-title {
    color: #d4a84b;
}
.theme-gold .perm-menu-item input[type="checkbox"] {
    accent-color: #d4a84b;
}

/* ========== 角色矩阵页面覆盖 ========== */
.theme-gold .matrix-title {
    color: #f0e0c0;
}
.theme-gold .matrix-legend .legend-item {
    color: #b8a578;
}
.theme-gold .matrix-scroll-wrap {
    background: rgba(18, 14, 8, 0.45);
    border-color: rgba(140, 110, 60, 0.22);
}
.theme-gold .matrix-table th {
    background: rgba(50, 38, 18, 0.55);
    color: #e6dcc8;
}
.theme-gold .matrix-table td {
    border-color: rgba(140, 110, 60, 0.2);
}
.theme-gold .matrix-table .system-header {
    background: rgba(60, 48, 24, 0.95);
    color: #f0e0c0;
}
.theme-gold .matrix-table .module-header {
    background: rgba(45, 36, 18, 0.95);
    color: #c9b896;
}
.theme-gold .matrix-table .sticky-corner {
    background: rgba(40, 32, 16, 0.98);
}
.theme-gold .matrix-table .sticky-col {
    background: rgba(18, 14, 8, 0.98);
    color: #e6dcc8;
}
.theme-gold .matrix-table tbody tr:hover td {
    background: rgba(60, 48, 24, 0.25);
}
.theme-gold .matrix-table tbody tr:hover .sticky-col {
    background: rgba(30, 24, 12, 0.98);
}
.theme-gold .matrix-table select {
    background: rgba(20, 16, 8, 0.5);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold .perm-A {
    background: rgba(0, 200, 83, 0.12);
    border-color: rgba(0, 200, 83, 0.3);
    color: #00d853;
}
.theme-gold .perm-R {
    background: rgba(70, 160, 255, 0.12);
    border-color: rgba(70, 160, 255, 0.3);
    color: #69b1ff;
}
.theme-gold .perm-E {
    background: rgba(255, 171, 64, 0.12);
    border-color: rgba(255, 171, 64, 0.3);
    color: #ffcc80;
}
.theme-gold .perm-N {
    background: rgba(120, 120, 130, 0.1);
    border-color: rgba(150, 150, 160, 0.25);
    color: #9aa3b2;
}
.theme-gold .empty-matrix {
    color: #8a7548;
}
.theme-gold .status-msg {
    color: #b8a578;
}

/* ========== 顶部主题选择器（黑金主题下覆盖） ========== */
.theme-gold .header-theme-switcher {
    background: rgba(20, 16, 8, 0.4);
    border: 1px solid rgba(140, 110, 60, 0.25);
}
.theme-gold .header-theme-switcher .theme-switcher-label {
    color: #c9b896;
    font-size: 13px;
    font-weight: bold;
}
.theme-gold .header-theme-switcher .theme-option {
    border: 1px solid rgba(140, 110, 60, 0.25);
    background: rgba(40, 32, 16, 0.35);
    color: #c9b896;
    font-size: 13px;
    padding: 5px 10px;
}
.theme-gold .header-theme-switcher .theme-option:hover {
    border-color: rgba(212, 168, 75, 0.5);
    color: #ffffff;
}
.theme-gold .header-theme-switcher .theme-option.active {
    background: rgba(212, 168, 75, 0.15);
    border-color: #d4a84b;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(212, 168, 75, 0.2);
}
.theme-gold .header-theme-switcher .theme-color-preview {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-gold .header-theme-switcher .theme-color-preview.default {
    background: linear-gradient(135deg, #0c1429, #00a8ff);
}
.theme-gold .header-theme-switcher .theme-color-preview.gold {
    background: linear-gradient(135deg, #0a0805, #d4a84b);
}
.theme-gold .header-theme-switcher .theme-color-preview.red {
    background: linear-gradient(135deg, #ffffff, #c1272d);
}

/* ========== 隧道配置表单覆盖 ========== */
.theme-gold .cfg-form-row input,
.theme-gold .cfg-form-row select {
    background: rgba(20, 16, 8, 0.5);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold .cfg-form-row input:focus,
.theme-gold .cfg-form-row select:focus {
    border-color: #d4a84b;
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.15);
}
.theme-gold .cfg-card-header {
    border-bottom: 1px solid rgba(140, 110, 60, 0.2);
}
.theme-gold .tunnel-cfg-table th {
    background: rgba(50, 38, 18, 0.55);
    color: #e6dcc8;
    border-bottom: 1px solid rgba(140, 110, 60, 0.3);
}
.theme-gold .tunnel-cfg-table td {
    border-bottom: 1px solid rgba(140, 110, 60, 0.15);
    color: #d0c8b8;
}
.theme-gold .tunnel-cfg-table tbody tr:hover {
    background: rgba(60, 48, 24, 0.15);
}

/* ========== 飞书数据拉取 (feishu_sync.html) ========== */
.theme-gold .fs-sync-select {
    background: rgba(20, 16, 8, 0.6);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold .fs-sync-select:focus {
    border-color: #d4a84b;
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.15);
}

/* ========== 飞书表单聚焦色覆盖 ========== */
.theme-gold .fs-form-card input:focus,
.theme-gold .fs-form-card select:focus,
.theme-gold .fs-config-card input:focus {
    border-color: #d4a84b;
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.15);
}

/* ========== 搜索输入框覆盖 ========== */
.theme-gold .search-input {
    background: rgba(20, 16, 8, 0.5);
    border: 1px solid rgba(140, 110, 60, 0.3);
    color: #f0e0c0;
}
.theme-gold .search-input:focus {
    border-color: #d4a84b;
}
.theme-gold .search-input::placeholder {
    color: rgba(140, 110, 60, 0.5);
}

/* ========== 工具栏文字 ========== */
.theme-gold .tool-bar span {
    color: #c9b896;
}
.theme-gold .select-box span {
    color: #c9b896;
}

/* ========== 全局密码验证弹窗（黑金主题） ========== */
.theme-gold .gpwd-confirm {
    background: #0d0a07;
    border-color: #8c6f3a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.theme-gold .gpwd-confirm h3 {
    color: #f0e0c0;
}
.theme-gold .gpwd-confirm p {
    color: #c9b896;
}
.theme-gold .gpwd-input {
    background: #12100c;
    border-color: #8c6f3a;
    color: #f0ece0;
}
.theme-gold .gpwd-input:focus {
    border-color: #d4a84b;
}
.theme-gold .gpwd-err {
    color: #ff8a8a;
}
.theme-gold .gpwd-cancel {
    background: rgba(60, 48, 24, 0.4);
    border-color: #8c6f3a !important;
    color: #d4c098;
}
.theme-gold .gpwd-cancel:hover {
    background: rgba(80, 64, 32, 0.55);
    color: #ffffff;
}
.theme-gold .gpwd-ok {
    background: linear-gradient(90deg, #c9953a, #e8c066);
    color: #1a1510;
}
.theme-gold .gpwd-ok:hover {
    background: linear-gradient(90deg, #d4a84b, #f0d07a);
}
