/* ================================================================
   P3: 夜间模式
   ================================================================ */
[data-theme="dark"] {
    --color-white:    #1e293b;
    --color-slate-50: #0f172a;
    --color-slate-100:#1e293b;
    --color-slate-200:#334155;
    --color-slate-300:#475569;
    --color-slate-400:#64748b;
    --color-slate-500:#94a3b8;
    --color-slate-600:#cbd5e1;
    --color-slate-700:#e2e8f0;
    --color-slate-800:#f1f5f9;
    --color-slate-900:#f8fafc;
    --color-blue-50:  #1e3a5f;
    --color-blue-100: #1e40af;
    background-color: var(--color-slate-50);
    color: var(--color-slate-600);
}
[data-theme="dark"] body { background-color: #0f172a; color: #cbd5e1; }
[data-theme="dark"] header { background-color: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .bg-white { background-color: #1e293b !important; }
[data-theme="dark"] .bg-slate-50 { background-color: #0f172a !important; }
[data-theme="dark"] .bg-slate-100 { background-color: #1e293b !important; }
[data-theme="dark"] .text-slate-900 { color: #f1f5f9 !important; }
[data-theme="dark"] .text-slate-800 { color: #e2e8f0 !important; }
[data-theme="dark"] .text-slate-700 { color: #cbd5e1 !important; }
[data-theme="dark"] .text-slate-600 { color: #94a3b8 !important; }
[data-theme="dark"] .border-slate-200 { border-color: #334155 !important; }
[data-theme="dark"] .border-slate-100 { border-color: #1e293b !important; }
[data-theme="dark"] footer { background-color: #0f172a !important; }
[data-theme="dark"] footer.border-slate-800,
[data-theme="dark"] footer .border-slate-800 {
    border-color: rgba(148, 163, 184, 0.16) !important;
}
[data-theme="dark"] footer h4.border-slate-800 {
    border-color: rgba(148, 163, 184, 0.22) !important;
}
[data-theme="dark"] footer .bg-slate-800\/40 {
    background-color: rgba(30, 41, 59, 0.32) !important;
}
[data-theme="dark"] .aura-modal-card,
[data-theme="dark"] .aura-ai-chat,
[data-theme="dark"] .aura-ai-inputbar,
[data-theme="dark"] .aura-ai-message,
[data-theme="dark"] .aura-pay-method {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .aura-ai-prompts,
[data-theme="dark"] .aura-ai-messages,
[data-theme="dark"] .aura-ai-inputbar input,
[data-theme="dark"] .aura-btn-muted,
[data-theme="dark"] .aura-pay-notice {
    background: #0f172a;
}
[data-theme="dark"] .aura-ai-message,
[data-theme="dark"] .aura-pay-method-title,
[data-theme="dark"] .aura-pay-intro h3,
[data-theme="dark"] .aura-pay-error-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-pay-method-desc,
[data-theme="dark"] .aura-pay-intro p,
[data-theme="dark"] .aura-pay-status-label,
[data-theme="dark"] .aura-pay-status-text,
[data-theme="dark"] .aura-pay-plan-info,
[data-theme="dark"] .aura-pay-loading-text,
[data-theme="dark"] .aura-pay-result-sub,
[data-theme="dark"] .aura-pay-manual-note,
[data-theme="dark"] .aura-pay-notice p {
    color: #94a3b8;
}
[data-theme="dark"] .aura-pay-breadcrumb-current,
[data-theme="dark"] .aura-pay-status-amount,
[data-theme="dark"] .aura-pay-status-currency {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-pay-qr-box {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-pay-status-head,
[data-theme="dark"] .aura-pay-actions,
[data-theme="dark"] .aura-pay-divider::before,
[data-theme="dark"] .aura-pay-divider::after,
[data-theme="dark"] .aura-pay-notice {
    border-color: #334155;
}
[data-theme="dark"] .aura-user-nav-item {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-user-nav-item:hover {
    background: #0f172a;
}
[data-theme="dark"] .aura-user-nav-item.active {
    background: #1e3a5f;
    color: #bfdbfe;
}
@media (max-width: 767px) {
    [data-theme="dark"] .aura-user-nav-item {
        border-color: #334155;
        background: #0f172a;
    }
    [data-theme="dark"] .aura-user-nav-item.active,
    [data-theme="dark"] .aura-user-nav-item[aria-current="page"] {
        border-color: #3b82f6;
        background: #1e3a8a;
    }
}
[data-theme="dark"] .aura-user-nav-badge {
    background: #0f172a;
    color: #cbd5e1;
}
[data-theme="dark"] .aura-user-announcement-bar {
    background: linear-gradient(90deg, rgba(239, 68, 68, .12), rgba(37, 99, 235, .1), #1e293b);
    border-color: #334155;
    box-shadow: none;
}
[data-theme="dark"] .aura-user-announcement-text {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-user-announcement-more {
    background: rgba(239, 68, 68, .14);
}
[data-theme="dark"] .aura-user-nav-item.is-danger {
    color: #f87171;
}
[data-theme="dark"] .aura-user-nav-item.is-danger:hover {
    background: #2a1216;
}
[data-theme="dark"] #aura-user-sidebar,
[data-theme="dark"] #aura-user-main {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .aura-member-expiry {
    background: #052e1a;
    border-color: #14532d;
}
[data-theme="dark"] .aura-member-expiry-title,
[data-theme="dark"] .aura-member-expiry-date {
    color: #86efac;
}
[data-theme="dark"] .aura-member-expiry-badge {
    background: #14532d;
    color: #bbf7d0;
}
[data-theme="dark"] .aura-member-tip {
    background: #2a2108;
    border-color: #713f12;
}
[data-theme="dark"] .aura-member-tip p {
    color: #facc15;
}
[data-theme="dark"] .aura-member-benefits thead tr,
[data-theme="dark"] .aura-member-benefits tbody tr {
    border-color: #334155;
}
[data-theme="dark"] .aura-member-benefits th {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-member-benefits th:first-child,
[data-theme="dark"] .aura-member-benefits td:first-child,
[data-theme="dark"] .aura-member-benefits td {
    color: #94a3b8;
}
[data-theme="dark"] .aura-member-benefits .is-current {
    color: #bfdbfe;
}
[data-theme="dark"] .aura-user-panel-title,
[data-theme="dark"] .aura-recharge-tier-title,
[data-theme="dark"] .aura-custom-recharge-title,
[data-theme="dark"] .aura-security-row-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-user-panel-title,
[data-theme="dark"] .aura-security-row {
    border-color: #334155;
}
[data-theme="dark"] .aura-recharge-tier,
[data-theme="dark"] .aura-custom-recharge {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-security-card-item,
[data-theme="dark"] .aura-security-social-card {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-profile-referral-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(124, 58, 237, .14));
    border-color: rgba(96, 165, 250, .22);
}
[data-theme="dark"] .aura-profile-referral-card h4 {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-referral-program-card,
[data-theme="dark"] .aura-referral-modal-dialog {
    background: #111827;
    border-color: #334155;
}
[data-theme="dark"] .aura-referral-program-head h4,
[data-theme="dark"] .aura-referral-detail-box h5,
[data-theme="dark"] .aura-referral-modal-head h4 {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-referral-program-head p,
[data-theme="dark"] .aura-referral-info-row > span,
[data-theme="dark"] .aura-referral-detail-box p,
[data-theme="dark"] .aura-referral-qr-notice,
[data-theme="dark"] .aura-referral-qr-current {
    color: #94a3b8;
}
[data-theme="dark"] .aura-referral-section-title,
[data-theme="dark"] .aura-referral-modal-head,
[data-theme="dark"] .aura-referral-modal-actions {
    border-color: #334155;
}
[data-theme="dark"] .aura-referral-section-title span {
    color: #2dd4bf;
}
[data-theme="dark"] .aura-referral-link-tools input,
[data-theme="dark"] .aura-referral-chip,
[data-theme="dark"] .aura-referral-code,
[data-theme="dark"] .aura-referral-modal-notice,
[data-theme="dark"] .aura-referral-qr-preview-box {
    background: #0f172a;
}
[data-theme="dark"] .aura-referral-modal-notice p,
[data-theme="dark"] .aura-referral-withdraw-summary span,
[data-theme="dark"] .aura-referral-withdraw-summary strong {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-referral-withdraw-summary {
    border-color: #334155;
}
[data-theme="dark"] .aura-referral-withdraw-summary div {
    border-color: #334155;
}
[data-theme="dark"] .aura-referral-poster-card {
    background: #111827;
}
[data-theme="dark"] .aura-referral-poster-content h4,
[data-theme="dark"] .aura-referral-poster-footer span {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-referral-poster-content div p,
[data-theme="dark"] .aura-referral-poster-footer small {
    color: #94a3b8;
}
[data-theme="dark"] .aura-referral-poster-footer {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-profile-referral-stats span,
[data-theme="dark"] .aura-profile-referral-copy code {
    background: rgba(15, 23, 42, .78);
}
[data-theme="dark"] .aura-profile-referral-copy label {
    color: #94a3b8;
}
[data-theme="dark"] .aura-profile-referral-panel {
    background: rgba(15, 23, 42, .72);
    border-color: #334155;
}
[data-theme="dark"] .aura-profile-referral-panel-head h5,
[data-theme="dark"] .aura-profile-referral-row strong {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-profile-referral-row {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-profile-referral-row p,
[data-theme="dark"] .aura-profile-referral-empty {
    color: #94a3b8;
}
[data-theme="dark"] .aura-security-panel-desc,
[data-theme="dark"] .aura-security-card-desc,
[data-theme="dark"] .aura-security-social-sub,
[data-theme="dark"] .aura-security-modal-step-desc,
[data-theme="dark"] .aura-security-row-desc {
    color: #94a3b8;
}
[data-theme="dark"] .aura-security-card-title,
[data-theme="dark"] .aura-security-social-title,
[data-theme="dark"] .aura-security-modal-step-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-security-modal-head {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #3b82f6 100%);
}
[data-theme="dark"] .aura-security-modal-card {
    background: #0f172a;
}
[data-theme="dark"] .aura-security-modal-body {
    background: #0f172a;
}
[data-theme="dark"] .aura-recharge-tier:hover {
    background: #111c2f;
    border-color: #3b82f6;
}
[data-theme="dark"] .aura-field {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .aura-field-label,
[data-theme="dark"] .aura-form-msg {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-profile-avatar {
    border-color: #334155;
}
[data-theme="dark"] .aura-upload-btn {
    background: #0f172a;
    color: #cbd5e1;
}
[data-theme="dark"] .aura-upload-btn:hover {
    background: #111c2f;
}
[data-theme="dark"] .aura-user-table thead tr,
[data-theme="dark"] .aura-notice-item,
[data-theme="dark"] .aura-user-pill {
    background: #0f172a;
}
[data-theme="dark"] .aura-user-table thead tr,
[data-theme="dark"] .aura-user-table tbody tr,
[data-theme="dark"] .aura-order-item,
[data-theme="dark"] .aura-info-box,
[data-theme="dark"] .aura-record-box,
[data-theme="dark"] .aura-notice-item {
    border-color: #334155;
}
[data-theme="dark"] .aura-user-table-title,
[data-theme="dark"] .aura-order-title,
[data-theme="dark"] .aura-notice-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-user-table td,
[data-theme="dark"] .aura-rule-list,
[data-theme="dark"] .aura-notice-content {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-user-table-muted,
[data-theme="dark"] .aura-order-no,
[data-theme="dark"] .aura-info-title,
[data-theme="dark"] .aura-record-title,
[data-theme="dark"] .aura-notice-time,
[data-theme="dark"] .aura-user-empty {
    color: #94a3b8;
}
[data-theme="dark"] .aura-notice-item.is-unread {
    background: #10213f;
    border-color: #1d4ed8;
}
[data-theme="dark"] .aura-notice-item.is-unread .aura-notice-title,
[data-theme="dark"] .aura-user-table .is-today-text {
    color: #bfdbfe;
}
[data-theme="dark"] .aura-user-table tr.is-today {
    background: rgba(59,130,246,0.12);
}
[data-theme="dark"] .aura-vip-compare {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .aura-vip-compare-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-vip-compare-table {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-vip-compare-table thead tr,
[data-theme="dark"] .aura-vip-compare-table tbody tr {
    border-color: #334155;
}
[data-theme="dark"] .aura-vip-compare-label,
[data-theme="dark"] .aura-vip-compare-table th {
    color: #94a3b8;
}
[data-theme="dark"] .aura-vip-compare-highlight {
    background: rgba(113,63,18,0.35);
    color: #fbbf24;
}
[data-theme="dark"] .aura-vip-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-vip-subtitle,
[data-theme="dark"] .aura-vip-empty-title,
[data-theme="dark"] .aura-vip-empty-sub {
    color: #94a3b8;
}
[data-theme="dark"] .aura-vip-empty {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .aura-pay-qr-overlay {
    background: rgba(15,23,42,0.88);
}
[data-theme="dark"] .aura-security-row-desc,
[data-theme="dark"] .aura-help-text,
[data-theme="dark"] .aura-input-prefix {
    color: #94a3b8;
}
[data-theme="dark"] .aura-pay-loading-icon {
    background: #1e3a5f;
}
[data-theme="dark"] .aura-btn-muted {
    color: #cbd5e1;
    border-color: #334155;
}
[data-theme="dark"] .aura-dl-check-card { background: #1e293b; }
[data-theme="dark"] .aura-dl-link-item { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .aura-dl-ad-slot { background: #0f172a; border-color: #334155; }
[data-theme="dark"] #aura-hot-search-dropdown { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .aura-hot-search-item:hover { background: #334155; }
[data-theme="dark"] .aura-search-shortcut { background: #334155; border-color: #475569; color: #94a3b8; }
[data-theme="dark"] .aura-primary-menu .sub-menu { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .aura-primary-menu .sub-menu a { color: #cbd5e1; }
[data-theme="dark"] .aura-primary-menu .sub-menu a:hover { background: #334155; color: #93c5fd; }
[data-theme="dark"] .aura-user-dropdown-trigger:hover { background: #334155; }
[data-theme="dark"] .aura-user-dropdown-menu { background: #1e293b; border-color: #334155; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
[data-theme="dark"] .aura-user-card-avatar { border-color: #334155; background: #0f172a; }
[data-theme="dark"] .aura-user-card-name { color: #e2e8f0; }
[data-theme="dark"] .aura-user-card-main p,
[data-theme="dark"] .aura-user-card-assets span { color: #94a3b8; }
[data-theme="dark"] .aura-header-username { color: #e2e8f0; }
[data-theme="dark"] .aura-user-card-vip { background: rgba(37, 99, 235, .14); border-color: #334155; color: #93c5fd; }
[data-theme="dark"] .aura-user-card-vip.is-vip { background: rgba(180, 83, 9, .16); border-color: rgba(251, 191, 36, .28); color: #fbbf24; }
[data-theme="dark"] .aura-user-card-vip em { background: rgba(15, 23, 42, .72); }
[data-theme="dark"] .aura-user-card-bell,
[data-theme="dark"] .aura-user-card-assets a { background: #0f172a; }
[data-theme="dark"] .aura-user-card-actions { border-top-color: #334155; }
[data-theme="dark"] .aura-user-dropdown-link i { background: #0f172a; }
[data-theme="dark"] .shadow-xs { box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
[data-theme="dark"] .shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.aura-theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; color: #64748b;
    font-size: 14px;
}
.aura-theme-toggle:hover { background: #e2e8f0; color: #2563eb; }
[data-theme="dark"] .aura-theme-toggle { background: #334155; border-color: #475569; color: #cbd5e1; }

/* Software cards and resource widgets. */
[data-theme="dark"] .aura-software-card {
    border-color: #334155;
    background: #1e293b;
}
[data-theme="dark"] .aura-software-card:hover,
[data-theme="dark"] .aura-software-card:focus-visible {
    border-color: #60a5fa;
    background: #1e293b;
    box-shadow: 0 18px 30px rgba(37,99,235,0.18);
}
[data-theme="dark"] .aura-software-card-title {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-software-card:hover .aura-software-card-title {
    color: #93c5fd;
}
[data-theme="dark"] .aura-software-card:hover .aura-software-card-title span,
[data-theme="dark"] .aura-software-card:focus-visible .aura-software-card-title span {
    color: rgba(255,255,255,0.78);
}
[data-theme="dark"] .aura-software-tags span {
    background: #0f172a;
    color: #cbd5e1;
}
[data-theme="dark"] .aura-software-card-sub,
[data-theme="dark"] .aura-software-meta,
[data-theme="dark"] .aura-software-card-desc,
[data-theme="dark"] .aura-software-card-size {
    color: #cbd5e1;
}
[data-theme="dark"] .aura-software-card-divider {
    background: #334155;
}
[data-theme="dark"] .aura-software-card-download {
    background: #1e3a8a;
    color: #dbeafe;
}
[data-theme="dark"] .aura-software-card:hover .aura-software-card-download,
[data-theme="dark"] .aura-software-card:focus-visible .aura-software-card-download {
    background: #2563eb;
    color: #fff;
}
[data-theme="dark"] .aura-software-icon {
    background: linear-gradient(135deg,#334155,#1e293b);
    border-color: #334155;
}
[data-theme="dark"] .aura-widget-soft-title,
[data-theme="dark"] .aura-widget-soft-rank-body strong,
[data-theme="dark"] .aura-widget-promo-body strong {
    color: #e2e8f0;
}
[data-theme="dark"] .aura-widget-soft-desc,
[data-theme="dark"] .aura-widget-soft-meta,
[data-theme="dark"] .aura-widget-soft-rank-body span,
[data-theme="dark"] .aura-widget-promo-body span {
    color: #94a3b8;
}
[data-theme="dark"] .aura-widget-soft-item,
[data-theme="dark"] .aura-widget-soft-rank {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-widget-soft-item:hover,
[data-theme="dark"] .aura-widget-soft-rank:hover {
    background: #111827;
    border-color: #a855f7;
}
[data-theme="dark"] .aura-widget-soft-thumb,
[data-theme="dark"] .aura-widget-promo-thumb {
    background: linear-gradient(135deg, #312e81, #1e293b);
    color: #c4b5fd;
}
[data-theme="dark"] .aura-widget-image-card,
[data-theme="dark"] .aura-widget-promo-card {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .aura-widget-image-card:hover,
[data-theme="dark"] .aura-widget-promo-card:hover {
    border-color: #a855f7;
}
[data-theme="dark"] .aura-software-card:hover .aura-software-icon,
[data-theme="dark"] .aura-software-card:focus-visible .aura-software-icon {
    background: #1e3a8a;
}
