/* 萌主题 dark.css — 深色变量覆盖 */
[data-theme="dark"] {
  --c-bg:        #0f1a24;
  --c-surface:   rgba(22,32,46,var(--surface-alpha));
  --c-surface-s: rgba(28,40,56,var(--surface-alpha));
  --c-surface-rgb: 22,32,46;
  --c-border:    rgba(255,255,255,0.09);
  --c-text:      #e0ecf5;
  --c-text-2:    #90a8b8;
  --c-text-3:    #5c7080;
}

[data-theme="dark"] body { background: var(--c-bg); }
[data-theme="dark"] .moe-bg::after { background: rgba(10,18,28,0.6); }

[data-theme="dark"] .moe-form-input,
[data-theme="dark"] .moe-search-bar input {
  background: rgba(255,255,255,0.05);
  color: var(--c-text);
}

[data-theme="dark"] .moe-article__content code { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .moe-tag-link { background: rgba(94,179,217,0.18); }
[data-theme="dark"] .moe-card { background: var(--c-surface); }
[data-theme="dark"] .moe-captcha-option { border-color: var(--c-border); }
[data-theme="dark"] .moe-spoiler__content { background: rgba(255,255,255,0.04); }

[data-theme="dark"] .wp-block-code,
[data-theme="dark"] pre,
[data-theme="dark"] .moe-article__content pre { background: #0a131f; color: #d6e6f2; border-color: rgba(94,179,217,0.2); }

/* 深色模式：标签/分类 badge 提亮 */
[data-theme="dark"] .moe-tag-link { background: rgba(94,179,217,0.18); color: #8ecfea; border-color: rgba(94,179,217,0.3); }
[data-theme="dark"] .moe-tag-link:hover { background: var(--c-primary); color: #fff; }
[data-theme="dark"] .moe-meta-cat { background: rgba(94,179,217,0.18); color: #8ecfea; border-color: rgba(94,179,217,0.35); }
[data-theme="dark"] .moe-meta-cat:hover { background: var(--c-primary); color: #fff; }

/* 深色模式：卡片骨架屏 shimmer */
[data-theme="dark"] .moe-card__thumb-wrap { background: linear-gradient(110deg, rgba(255,255,255,0.04) 20%, rgba(94,179,217,0.1) 40%, rgba(255,255,255,0.04) 60%); background-size: 200% 100%; }

/* v1.0.2 深色补充 */
[data-theme="dark"] .moe-filter-btn { background: var(--c-surface); }
[data-theme="dark"] .moe-pagination .page-numbers { background: var(--c-surface); color: var(--c-text-2); }
[data-theme="dark"] .moe-pagination .current { background: var(--c-primary); color: #fff; }
[data-theme="dark"] .moe-article { background: var(--c-surface); }
[data-theme="dark"] .moe-comments { background: var(--c-surface); }
[data-theme="dark"] .moe-share-popup { background: var(--c-surface-s); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: rgba(255,255,255,0.06); color: var(--c-text); border-color: var(--c-border);
}
[data-theme="dark"] .moe-collapse { background: rgba(255,255,255,0.04); }

/* v1.0.9 深色补充 */
[data-theme="dark"] .moe-rating-modal__inner,
[data-theme="dark"] .moe-rating-dist-popup { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .moe-modal-star { color: var(--c-text-3); }
[data-theme="dark"] .moe-modal-star.active,
[data-theme="dark"] .moe-modal-star.hover { color: #f5a623; }
[data-theme="dark"] .moe-visual-rating { background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(245,166,35,0.03)); border-color: rgba(245,166,35,0.12); }
[data-theme="dark"] .moe-vstar--empty polygon { stroke: #444; }
/* 深色模式：互动按钮气泡 */
[data-theme="dark"] .moe-action-btn {
  background: linear-gradient(180deg, rgba(94,179,217,0.08) 0%, rgba(94,179,217,0.03) 100%);
  border-color: rgba(94,179,217,0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] .moe-action-btn:hover {
  background: linear-gradient(180deg, rgba(94,179,217,0.15) 0%, rgba(94,179,217,0.08) 100%);
  box-shadow: 0 5px 14px rgba(94,179,217,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
[data-theme="dark"] .moe-action-btn.active {
  background: linear-gradient(180deg, rgba(94,179,217,0.22) 0%, rgba(94,179,217,0.12) 100%);
  box-shadow: 0 3px 10px rgba(94,179,217,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
[data-theme="dark"] .moe-fav-btn.active {
  background: linear-gradient(180deg, rgba(224,92,92,0.2) 0%, rgba(224,92,92,0.08) 100%);
  box-shadow: 0 3px 10px rgba(224,92,92,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
