/**
 * AIGCjpg 深色模式：發布 / 資產 / API / 關於 / SKILL 頁
 *
 * 僅改色調，不改佈局。以 !important 覆蓋各頁內聯與頁面級淺色樣式。
 */

/* ============================================================
   一、發布作品頁（dashboard/publish_content.php）
   ============================================================ */

[data-theme="dark"] body.publish-page,
[data-theme="dark"] .publish-container {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .publish-header,
[data-theme="dark"] .publish-form {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .publish-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .publish-subtitle,
[data-theme="dark"] .publish-title span {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .publish-title [style*="background: #f8f9ff"],
[data-theme="dark"] .publish-title [style*="background:#f8f9ff"] {
    background: rgba(91, 107, 255, 0.14) !important;
    border-color: rgba(91, 107, 255, 0.28) !important;
    color: #7a8aff !important;
}

[data-theme="dark"] .form-label {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .simple-editor {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder,
[data-theme="dark"] .simple-editor::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .form-select option {
    background: #26262f !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .editor-container {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .editor-toolbar {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .toolbar-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.78) !important;
}

[data-theme="dark"] .toolbar-btn:hover,
[data-theme="dark"] .toolbar-btn.active {
    background: #5b6bff !important;
    color: #fff !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] .image-upload {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .image-upload:hover,
[data-theme="dark"] .image-upload:focus {
    background: rgba(91, 107, 255, 0.1) !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] .upload-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .upload-hint {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] body.publish-page .sidebar-card,
[data-theme="dark"] body.publish-page .tags-selection-area,
[data-theme="dark"] body.publish-page #imagePreview {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] body.publish-page .card-title,
[data-theme="dark"] body.profile-page .card-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .tag-item {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .tag-item:hover,
[data-theme="dark"] .tag-item.selected {
    background: #5b6bff !important;
    color: #fff !important;
}

[data-theme="dark"] .price-option {
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .price-option:hover {
    background: rgba(91, 107, 255, 0.1) !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] .submit-section {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .import-section {
    background: rgba(74, 222, 128, 0.08) !important;
    border-color: rgba(74, 222, 128, 0.22) !important;
}

[data-theme="dark"] .btn-outline {
    background: transparent !important;
    color: #7a8aff !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] .btn-outline:hover {
    background: #5b6bff !important;
    color: #fff !important;
}

[data-theme="dark"] .download-file-upload,
[data-theme="dark"] .publish-page [style*="background: #fafbfc"],
[data-theme="dark"] .publish-page [style*="background:#fafbfc"],
[data-theme="dark"] .publish-page [style*="background: #f8f9ff"],
[data-theme="dark"] .publish-page [style*="background:#f8f9ff"],
[data-theme="dark"] .publish-page [style*="background: #e8f4fd"],
[data-theme="dark"] .publish-page [style*="background:#e8f4fd"] {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .publish-page [style*="color: #333"],
[data-theme="dark"] .publish-page [style*="color:#333"] {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .publish-page [style*="color: #666"],
[data-theme="dark"] .publish-page [style*="color:#666"],
[data-theme="dark"] .publish-page [style*="color: #999"],
[data-theme="dark"] .publish-page [style*="color:#999"],
[data-theme="dark"] .publish-page [style*="color: #31708f"],
[data-theme="dark"] .publish-page [style*="color:#31708f"] {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .publish-page [style*="border: 1px dashed #e1e5e9"],
[data-theme="dark"] .publish-page [style*="border: 2px dashed #e1e5e9"],
[data-theme="dark"] .publish-page [style*="border: 2px solid #e1e5e9"] {
    border-color: rgba(255, 255, 255, 0.12) !important;
}


/* ============================================================
   二、我的資產（my_assets.php）
   ============================================================ */

[data-theme="dark"] body.ma-page {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .ma-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .ma-title .ma-title-sub {
    color: rgba(255, 255, 255, 0.42) !important;
}

[data-theme="dark"] .ma-upload-btn,
[data-theme="dark"] .ma-refresh-btn {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .ma-upload-btn:hover,
[data-theme="dark"] .ma-refresh-btn:hover {
    border-color: #5b6bff !important;
    color: #7a8aff !important;
    background: rgba(91, 107, 255, 0.1) !important;
}

[data-theme="dark"] .ma-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .ma-tab {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .ma-tab:hover {
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .ma-tab.is-active {
    color: #7a8aff !important;
    background: rgba(91, 107, 255, 0.16) !important;
}

[data-theme="dark"] .ma-card {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .ma-card:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .ma-card-thumb {
    background: #1e1e28 !important;
}

[data-theme="dark"] .ma-card-prompt {
    color: rgba(255, 255, 255, 0.78) !important;
}

[data-theme="dark"] .ma-card-foot {
    color: rgba(255, 255, 255, 0.42) !important;
}

[data-theme="dark"] .ma-card-source {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] .ma-empty,
[data-theme="dark"] .ma-need-login {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] .ma-empty .ma-empty-title,
[data-theme="dark"] .ma-need-login .ml-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .ma-empty .ma-empty-desc,
[data-theme="dark"] .ma-need-login .ml-desc {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .ma-empty .ma-cta {
    background: transparent !important;
    color: #7a8aff !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] .ma-empty .ma-cta:hover {
    background: #3444fe !important;
    color: #fff !important;
}

[data-theme="dark"] .ma-loading {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .ma-loading .ma-spin {
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-top-color: #5b6bff !important;
}

[data-theme="dark"] .ma-skeleton {
    background: #26262f !important;
}

[data-theme="dark"] .ma-skeleton-thumb,
[data-theme="dark"] .ma-skeleton-line {
    background: linear-gradient(90deg, #2a2a34 25%, #34343f 50%, #2a2a34 75%) !important;
    background-size: 200% 100% !important;
}


/* ============================================================
   三、API Key / 用量頁（dashboard/api_keys_content.php、api_usage_content.php）
   ============================================================ */

[data-theme="dark"] body.api-keys-page,
[data-theme="dark"] body.api-usage-page {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .page-title,
[data-theme="dark"] .card h3 {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .card {
    background: #26262f !important;
    color: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .create-section input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .create-section input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .key-table th,
[data-theme="dark"] .key-table td,
[data-theme="dark"] .log-table th,
[data-theme="dark"] .log-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .key-table th,
[data-theme="dark"] .log-table th {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .key-prefix {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .eye-toggle {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .eye-toggle:hover {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .new-key-alert {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .new-key-alert .key-value {
    background: #1a1a22 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .empty-state {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .stat-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .pagination button {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .pagination button.active {
    background: #3444fe !important;
    color: #fff !important;
    border-color: #3444fe !important;
}


/* ============================================================
   四、關於頁（about.php）
   ============================================================ */

[data-theme="dark"] body.about-page-body,
[data-theme="dark"] .about-page {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .about-hero-title,
[data-theme="dark"] .pain-points-title,
[data-theme="dark"] .features-title,
[data-theme="dark"] .comparison-title,
[data-theme="dark"] .cta-title,
[data-theme="dark"] .contact-title,
[data-theme="dark"] .feature-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .about-hero-desc,
[data-theme="dark"] .feature-desc,
[data-theme="dark"] .cta-desc,
[data-theme="dark"] .promotion-content,
[data-theme="dark"] .pain-point-text {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] .about-page .stat-card,
[data-theme="dark"] .pain-points,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .promotion-section,
[data-theme="dark"] .contact-item {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .pain-point-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .pain-point-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

[data-theme="dark"] .pain-point-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .feature-icon {
    background: rgba(91, 107, 255, 0.14) !important;
}

[data-theme="dark"] .comparison-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .comparison-card.traditional {
    background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .comparison-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .comparison-card.traditional h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .traditional .comparison-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .comparison-item {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .traditional .item-value {
    color: rgba(255, 255, 255, 0.78) !important;
}

[data-theme="dark"] .cta-section,
[data-theme="dark"] .contact-section {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .benefit-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .benefit-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .contact-value {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .contact-label,
[data-theme="dark"] .promotion-deadline,
[data-theme="dark"] .about-page .stat-label {
    color: rgba(255, 255, 255, 0.42) !important;
}


/* ============================================================
   五、SKILL 文檔頁（skill_docs.php）
   ============================================================ */

[data-theme="dark"] body.skill-docs-page {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .skill-docs-page .section h2,
[data-theme="dark"] .skill-docs-page h2,
[data-theme="dark"] .skill-docs-page h4,
[data-theme="dark"] .skill-docs-page p,
[data-theme="dark"] .skill-docs-page li,
[data-theme="dark"] .skill-docs-page strong {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .flow-section,
[data-theme="dark"] .toc,
[data-theme="dark"] .skill-card {
    background: #26262f !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .skill-card .desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .flow-step {
    background: rgba(91, 107, 255, 0.08) !important;
    border-color: rgba(91, 107, 255, 0.22) !important;
}

[data-theme="dark"] .flow-step:hover {
    border-color: #5b6bff !important;
    box-shadow: 0 6px 18px rgba(91, 107, 255, 0.2) !important;
}

[data-theme="dark"] .flow-step .step-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .flow-step .step-desc {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .flow-detail-list li {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .flow-detail-list li code,
[data-theme="dark"] .skill-docs-page code {
    background: rgba(91, 107, 255, 0.16) !important;
    color: #7a8aff !important;
}

[data-theme="dark"] .auth-box {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .step-box {
    background: rgba(74, 222, 128, 0.08) !important;
    border-color: rgba(74, 222, 128, 0.22) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .error-table th,
[data-theme="dark"] .params-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .error-table td,
[data-theme="dark"] .params-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .skill-docs-page .section[style*="background:linear-gradient"],
[data-theme="dark"] .skill-docs-page .section[style*="background: linear-gradient"] {
    background: rgba(91, 107, 255, 0.1) !important;
    border-color: rgba(91, 107, 255, 0.22) !important;
}

[data-theme="dark"] .skill-docs-page [style*="background:#fff"],
[data-theme="dark"] .skill-docs-page [style*="background: #fff"],
[data-theme="dark"] .skill-docs-page [style*="background:#ffffff"],
[data-theme="dark"] .skill-docs-page [style*="background: #ffffff"] {
    background: #26262f !important;
}

[data-theme="dark"] .skill-docs-page [style*="background:#f8f9fa"],
[data-theme="dark"] .skill-docs-page [style*="background: #f8f9fa"] {
    background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .skill-docs-page [style*="color:#666"],
[data-theme="dark"] .skill-docs-page [style*="color: #666"],
[data-theme="dark"] .skill-docs-page [style*="color:#444"],
[data-theme="dark"] .skill-docs-page [style*="color: #444"],
[data-theme="dark"] .skill-docs-page [style*="color:#888"],
[data-theme="dark"] .skill-docs-page [style*="color: #888"] {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .skill-docs-page a {
    color: #7a8aff !important;
}


/* ============================================================
   六、用戶後台殼層（dashboard/index.php）
   ============================================================ */

[data-theme="dark"] body.dashboard-shell,
[data-theme="dark"] .dashboard-layout {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .dashboard-layout .sidebar {
    background: #1e1e26 !important;
    border-right-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .dashboard-layout .sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .dashboard-layout .sidebar-header h2 {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .dashboard-layout .sidebar-header p {
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .dashboard-layout .nav-item {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] .dashboard-layout .nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .dashboard-layout .nav-item.active {
    background: rgba(91, 107, 255, 0.12) !important;
    color: #7a8aff !important;
}

[data-theme="dark"] .dashboard-layout .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .dashboard-layout .back-link {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .dashboard-layout .back-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .dashboard-layout .stats-header {
    background: #1e1e26 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .dashboard-layout .stat-card {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .dashboard-layout .stat-title {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .dashboard-layout .stat-value {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .dashboard-layout .stat-change.positive {
    background: rgba(74, 222, 128, 0.14) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .dashboard-layout .stat-change.negative {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #f87171 !important;
}

[data-theme="dark"] .dashboard-layout .content-area,
[data-theme="dark"] .dashboard-layout .content-frame {
    background: #1a1a22 !important;
}

[data-theme="dark"] .dashboard-layout .user-role-info,
[data-theme="dark"] .dashboard-layout [style*="background: #f0f1f5"],
[data-theme="dark"] .dashboard-layout [style*="background:#f0f1f5"] {
    background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .dashboard-layout .user-role-info [style*="color: #333"],
[data-theme="dark"] .dashboard-layout .user-role-info [style*="color:#333"] {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* dashboard/profile_content.php：头像区用户名等（内联 #222 / 白底卡片） */
[data-theme="dark"] .profile-container .profile-section {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .profile-container .username,
[data-theme="dark"] .profile-container .section-title {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .profile-container .join-date,
[data-theme="dark"] .profile-container .form-label {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] .profile-container .page-header h1,
[data-theme="dark"] .profile-container .page-header p {
    color: #fff !important;
}


/* ============================================================
   七、我的发布 / 个人主页（profile.php）
   ============================================================ */

[data-theme="dark"] body.profile-page {
    background: #1a1a22 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] body.profile-page .container {
    background: transparent !important;
}

/* 主内容区卡片（避免全局 .main-content 仅改底色、白边框仍在） */
[data-theme="dark"] body.profile-page .profile-body > .main-content {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] body.profile-page .profile-body .sidebar-card {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] body.profile-page .info-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] body.profile-page .info-text,
[data-theme="dark"] body.profile-page .info-item a {
    color: rgba(255, 255, 255, 0.72) !important;
}

[data-theme="dark"] body.profile-page .social-link {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] body.profile-page .social-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

/* 作品 Tab 与底部分割线 */
[data-theme="dark"] body.profile-page .content-tabs {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] body.profile-page .tab-item {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom-color: transparent !important;
}

[data-theme="dark"] body.profile-page .tab-item:hover {
    color: rgba(255, 255, 255, 0.88) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] body.profile-page .tab-item.active {
    color: #7a8aff !important;
    border-bottom-color: #5b6bff !important;
    background: rgba(91, 107, 255, 0.12) !important;
}

/* 分类筛选 TAB 标签 */
[data-theme="dark"] body.profile-page .category-filter {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] body.profile-page .filter-title {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] body.profile-page .filter-tag {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] body.profile-page .filter-tag:hover {
    border-color: #5b6bff !important;
    color: #7a8aff !important;
    background: rgba(91, 107, 255, 0.1) !important;
}

[data-theme="dark"] body.profile-page .filter-tag.active {
    background: rgba(91, 107, 255, 0.2) !important;
    border-color: #5b6bff !important;
    color: #7a8aff !important;
}

[data-theme="dark"] body.profile-page .works-stats,
[data-theme="dark"] body.profile-page #works-stats {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] body.profile-page .works-stats [style*="color: #667eea"],
[data-theme="dark"] body.profile-page .works-stats [style*="color:#667eea"] {
    color: #7a8aff !important;
}

[data-theme="dark"] body.profile-page .works-stats [style*="color: #666"],
[data-theme="dark"] body.profile-page .works-stats [style*="color:#666"],
[data-theme="dark"] body.profile-page .works-stats span[style*="font-weight: 600"] {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] body.profile-page .work-item {
    background: #2c2c36 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] body.profile-page .work-item:hover {
    border-color: rgba(91, 107, 255, 0.35) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] body.profile-page .work-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] body.profile-page .work-meta,
[data-theme="dark"] body.profile-page .work-date,
[data-theme="dark"] body.profile-page .empty-state,
[data-theme="dark"] body.profile-page .page-ellipsis {
    color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] body.profile-page .page-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] body.profile-page .page-btn:hover {
    background: rgba(91, 107, 255, 0.12) !important;
    border-color: #5b6bff !important;
}

[data-theme="dark"] body.profile-page .page-btn.active {
    background: #3444fe !important;
    border-color: #3444fe !important;
    color: #fff !important;
}

[data-theme="dark"] body.profile-page .activity-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: #5b6bff !important;
}

[data-theme="dark"] body.profile-page .activity-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] body.profile-page .activity-time {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* 编辑资料弹窗 */
[data-theme="dark"] body.profile-page .edit-modal-content {
    background: #26262f !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] body.profile-page .edit-modal-actions {
    background: rgba(255, 255, 255, 0.03) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] body.profile-page .edit-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] body.profile-page .privacy-checkbox {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="dark"] body.profile-page .privacy-checkbox:hover {
    color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] body.profile-page [style*="background: #f8f9fa"],
[data-theme="dark"] body.profile-page [style*="background:#f8f9fa"],
[data-theme="dark"] body.profile-page [style*="background: #fafafa"],
[data-theme="dark"] body.profile-page [style*="background:#fafafa"] {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] body.profile-page [style*="border: 2px solid #e1e5e9"],
[data-theme="dark"] body.profile-page [style*="border:2px solid #e1e5e9"],
[data-theme="dark"] body.profile-page [style*="border: 1px solid #e5e7eb"],
[data-theme="dark"] body.profile-page [style*="border:1px solid #e5e7eb"] {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] body.profile-page [style*="color: #333"],
[data-theme="dark"] body.profile-page [style*="color:#333"] {
    color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] body.profile-page [style*="color: #666"],
[data-theme="dark"] body.profile-page [style*="color:#666"] {
    color: rgba(255, 255, 255, 0.55) !important;
}
