/* 全站夜间模式 + 苹果风：高对比度、精致留白与层次 */

/* ---------- 夜间模式基础 ---------- */
body.theme-dark {
    background: #000 !important;
    color: #f5f5f7 !important;
}
body.theme-dark a {
    color: #2997ff;
}
body.theme-dark a:visited {
    color: #b388eb;
}

/* ---------- 首页/书城 ---------- */
body.theme-dark .header-bg {
    background: linear-gradient(180deg, #1c1c1e 0%, #000 100%) !important;
}
body.theme-dark .section-title {
    color: #f5f5f7 !important;
    font-weight: 600;
}
body.theme-dark .book-card {
    background: #1c1c1e !important;
    color: #f5f5f7 !important;
    border: 1px solid #2c2c2e;
    box-shadow: none;
}
body.theme-dark .book-desc {
    color: #a1a1a6 !important;
}
body.theme-dark .daily-quote,
body.theme-dark #daily-quote {
    background: #1c1c1e !important;
    border-left-color: #B8860B !important;
    color: #f5f5f7 !important;
}

/* ---------- 个人中心 ---------- */
body.theme-dark .nav-bar {
    background: #000 !important;
    border-bottom: 1px solid #2c2c2e;
    box-shadow: none;
}
body.theme-dark .nav-title {
    color: #f5f5f7 !important;
}
body.theme-dark .nav-back {
    color: #2997ff !important;
}
body.theme-dark .container {
    background: #000;
}
body.theme-dark .card {
    background: #1c1c1e !important;
    color: #f5f5f7 !important;
    border: 1px solid #2c2c2e;
    box-shadow: none;
    border-radius: 16px;
}
body.theme-dark .card h3 {
    color: #f5f5f7 !important;
    border-bottom-color: #2c2c2e !important;
}
body.theme-dark label {
    color: #a1a1a6 !important;
}
body.theme-dark .switch-row {
    color: #f5f5f7 !important;
}
body.theme-dark .switch-group {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #f5f5f7 !important;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #636366;
}
body.theme-dark .wallet-card {
    background: linear-gradient(135deg, #3d3420 0%, #5c4a1f 100%) !important;
    border: 1px solid rgba(212,175,48,0.3);
    color: #f5f5f7 !important;
}
body.theme-dark .wallet-amount {
    color: #fff !important;
}
body.theme-dark .btn-withdraw {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
body.theme-dark .invite-box {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
}
body.theme-dark .invite-link {
    background: #2c2c2e;
    color: #a1a1a6;
}
body.theme-dark .vip-card {
    background: #1c1c1e !important;
    border-color: #2c2c2e !important;
}
body.theme-dark .vip-card h3 {
    color: #F4D068 !important;
}
body.theme-dark .vip-card p,
body.theme-dark .vip-card ul {
    color: #e5e5ea !important;
}
body.theme-dark .btn-save {
    background: #2997ff;
    color: #000;
}
body.theme-dark .pay-mask {
    background: rgba(0,0,0,0.8);
}
body.theme-dark .pay-modal {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e;
    color: #f5f5f7 !important;
}
body.theme-dark .pay-modal h3 {
    color: #f5f5f7 !important;
}
body.theme-dark .pay-amount {
    color: #F4D068 !important;
}
body.theme-dark .pay-method .label {
    color: #a1a1a6 !important;
}
body.theme-dark .pay-close {
    color: #a1a1a6 !important;
}
body.theme-dark .shelf-tab {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #a1a1a6 !important;
}
body.theme-dark .shelf-tab.active {
    background: #B8860B !important;
    border-color: #B8860B !important;
    color: #fff !important;
}
body.theme-dark .shelf-item {
    color: #f5f5f7 !important;
    border-bottom-color: #2c2c2e !important;
}
body.theme-dark .shelf-item .meta {
    color: #a1a1a6 !important;
}
body.theme-dark .heatmap-days:not(.active) {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #a1a1a6 !important;
}
body.theme-dark .upload-box {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
}
body.theme-dark #profile-checkin-msg,
body.theme-dark #profile-points + * {
    color: #a1a1a6 !important;
}
body.theme-dark #profile-points {
    color: #F4D068 !important;
}
body.theme-dark #stat-today,
body.theme-dark #stat-total,
body.theme-dark #stat-streak {
    color: #f5f5f7 !important;
}
body.theme-dark #stat-goal-text {
    color: #a1a1a6 !important;
}

/* ---------- 书籍详情页 ---------- */
body.theme-dark .header {
    background: linear-gradient(180deg, #1c1c1e 0%, #000 100%) !important;
}
body.theme-dark .back {
    color: #2997ff !important;
}
body.theme-dark .header .meta,
body.theme-dark .header .meta a {
    color: #a1a1a6 !important;
}
body.theme-dark .card {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e;
    color: #f5f5f7 !important;
}
body.theme-dark .card h3 {
    color: #f5f5f7 !important;
    border-bottom-color: #2c2c2e !important;
}
body.theme-dark .summary {
    color: #e5e5ea !important;
}
body.theme-dark .toc-item {
    color: #f5f5f7 !important;
    border-bottom-color: #2c2c2e !important;
}
body.theme-dark .toc-item .ch-num {
    color: #636366 !important;
}
body.theme-dark .compare-table th,
body.theme-dark .compare-table td {
    border-color: #2c2c2e !important;
    color: #f5f5f7 !important;
}
body.theme-dark .compare-table th {
    background: #2c2c2e !important;
    color: #a1a1a6 !important;
}
body.theme-dark .compare-table .col-vip {
    background: rgba(184,134,11,0.15) !important;
}
body.theme-dark .vip-tip {
    background: #2c2c2e !important;
    color: #a1a1a6 !important;
}
body.theme-dark .btn-secondary {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
    border: 1px solid #3a3a3c;
}
body.theme-dark .shelf-btn {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #a1a1a6 !important;
}
body.theme-dark .shelf-btn.active {
    background: #B8860B !important;
    color: #fff !important;
}
body.theme-dark #reviews-summary,
body.theme-dark .pay-method .label {
    color: #a1a1a6 !important;
}

/* ---------- 登录 / 忘记密码 ---------- */
body.theme-dark form {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e;
    color: #f5f5f7 !important;
}
body.theme-dark h2 {
    color: #f5f5f7 !important;
}
body.theme-dark .error {
    color: #ff6961 !important;
}
body.theme-dark .link-box {
    background: #2c2c2e !important;
    color: #a1a1a6 !important;
}
body.theme-dark .link-box a {
    color: #2997ff !important;
}

/* ---------- 管理后台 ---------- */
body.theme-dark .admin-wrap,
body.theme-dark .admin-page {
    background: #000 !important;
    color: #f5f5f7 !important;
}
body.theme-dark .admin-card {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e !important;
    color: #f5f5f7 !important;
}
body.theme-dark .admin-card h1,
body.theme-dark .admin-card h2 {
    color: #f5f5f7 !important;
    border-bottom-color: #2c2c2e !important;
}
body.theme-dark .admin-card table th,
body.theme-dark .admin-card table td {
    border-color: #2c2c2e !important;
    color: #f5f5f7 !important;
}
body.theme-dark .admin-card table th {
    background: #2c2c2e !important;
    color: #a1a1a6 !important;
}
body.theme-dark .admin-card input,
body.theme-dark .admin-card textarea,
body.theme-dark .admin-card select {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
    color: #f5f5f7 !important;
}
body.theme-dark .admin-card label {
    color: #a1a1a6 !important;
}
body.theme-dark .admin-card button[type="submit"],
body.theme-dark .admin-card .btn-primary {
    background: #0071e3 !important;
    color: #fff !important;
}
body.theme-dark .admin-stat {
    background: #1c1c1e !important;
    border: 1px solid #2c2c2e !important;
    color: #f5f5f7 !important;
}
body.theme-dark .admin-stat > div:first-child {
    color: #a1a1a6 !important;
}
body.theme-dark .tag.ok { background: #34c759; }
body.theme-dark .tag { background: #ff6961; }
body.theme-dark .btn-off {
    background: #2c2c2e !important;
    color: #ff6961 !important;
    border: 1px solid #3a3a3c;
}
body.theme-dark a[href] {
    color: #2997ff !important;
}
