/* ============================================================
   旧梦工坊 · 深色主题补丁（给还停留在白底的老页面用）
   加载顺序：放在各页面自己的 <style> 之后即可覆盖
   ============================================================ */

/* ---------- 底色 / 文字 ---------- */
html, body {
    background: #08090c !important;
    color: #e8e8e8 !important;
}
body {
    background-image:
        radial-gradient(circle at 50% 0%, rgba(155,28,28,.22), transparent 55%),
        radial-gradient(circle at 85% 100%, rgba(240,192,64,.07), transparent 50%) !important;
    background-attachment: fixed !important;
}

/* ---------- 顶部导航 ---------- */
.main-nav { background: rgba(12,14,19,.96) !important; border-bottom: 1px solid #2a2d33 !important; box-shadow: 0 2px 16px rgba(0,0,0,.55) !important; }
.main-nav-container { background: transparent !important; }
.nav-logo a, .nav-logo { color: #ff3838 !important; text-shadow: 0 0 14px rgba(255,56,56,.4) !important; }
.nav-menu { background: #0c0e13 !important; }
.nav-menu a { color: #cfd4dd !important; }
.nav-menu a:hover { color: #f0c040 !important; }
.menu-toggle { color: #f0c040 !important; }
.nav-right, .user-info { color: #cfd4dd !important; }
.user-info a { color: #f0c040 !important; }

/* ---------- 卡片 / 容器 ---------- */
main { background: transparent !important; }
.container, .section, .patch-content, .patch-header,
.exchange-form, .related-item, .info-item,
.platform-modal-content, .copy-modal-content {
    background: rgba(18,21,28,.92) !important;
    border-color: #2a2d33 !important;
    color: #e8e8e8 !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.5) !important;
}
.patch-content, .section, .container, .exchange-form { border-radius: 16px !important; }
.related-list { background: transparent !important; }
.related-item { background: rgba(18,21,28,.92) !important; border: 1px solid #2a2d33 !important; }
.patch-img-container { background: #0b0d11 !important; border-radius: 12px !important; }
.task-btn, .modal-btn.secondary {
    background: #2a2d33 !important; color: #cfd4dd !important; border: 1px solid #3a3d45 !important;
}
.task-btn.completed { background: #16251a !important; color: #2ecc71 !important; border-color: #1f9d55 !important; }

/* ---------- 标题 ---------- */
.title, .section h3, .exchange-title, .patch-title, .related-title,
.platform-modal-title, .copy-modal-title {
    color: #f0c040 !important;
}
.patch-title { text-shadow: 0 0 18px rgba(240,192,64,.25) !important; }

/* ---------- 文字 ---------- */
.patch-meta, .patch-meta span, .info-item, .info-item span, .tip, .related-meta,
.patch-desc, .score-info, footer, .footer-content {
    color: #b0b6c0 !important;
}
.patch-meta .vip, .vip-tag { background: linear-gradient(135deg,#b8860b,#f0c040) !important; color: #1a1a1a !important; border: none !important; }
.patch-meta .score, .score-tag { background: #1e2a3a !important; color: #7fb2ff !important; border: 1px solid #2f4a72 !important; }

/* ---------- 表单 ---------- */
input[type=text], input[type=password], input[type=number], input[type=search],
input[type=email], select, textarea, .input-box {
    background: #0e1015 !important;
    color: #f5f5f5 !important;
    border: 1px solid #33363d !important;
    border-radius: 10px !important;
}
input::placeholder, textarea::placeholder { color: #5c626d !important; }
input:focus, select:focus, textarea:focus { outline: none !important; border-color: #ff3838 !important; box-shadow: 0 0 0 3px rgba(255,56,56,.14) !important; }
.form-group label, label { color: #b9bdc7 !important; }

/* ---------- 按钮 ---------- */
.download-btn, .exchange-btn, .btn-exchange, .btn-vip, .platform-btn, .copy-btn {
    background: linear-gradient(135deg,#9b1c1c,#ff3838) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(255,56,56,.32) !important;
}
.btn-buy { background: linear-gradient(135deg,#b8860b,#f0c040) !important; color: #1a1a1a !important; border: none !important; }
.btn-logout, .cancel-platform-btn, .copy-close, .copy-ok { background: #2a2d33 !important; color: #cfd4dd !important; border: 1px solid #3a3d45 !important; }
.android-btn { background: linear-gradient(135deg,#1f9d55,#2ecc71) !important; color: #fff !important; border: none !important; }
.ios-btn { background: linear-gradient(135deg,#2b6cff,#7fb2ff) !important; color: #fff !important; border: none !important; }
.tool-btn { background: #1b1e25 !important; color: #cfd4dd !important; border: 1px solid #2f333b !important; }
.tool-btn:hover { border-color: #ff3838 !important; color: #ff6b6b !important; }
.feedback-link, .related-item a { color: #7fb2ff !important; }

/* ---------- 相关补丁 ---------- */
.related-item { border-radius: 12px !important; }
.related-name { color: #e8e8e8 !important; }
.related-item:hover { border-color: #ff3838 !important; }

/* ---------- 弹层 ---------- */
.zoom-modal, .modal, .platform-modal, .copy-modal { background: rgba(0,0,0,.86) !important; }
