/* 日光模式（浅色全局 UI） */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f2f2f7;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #ebebf0;
  --bg-input: #f2f2f7;
  --border: #d1d1d6;
  --border-light: #c7c7cc;
  --text-primary: #1c1c1e;
  --text-secondary: #3a3a3c;
  --text-muted: #8e8e93;
  --accent: #1c1c1e;
  --accent-hover: #000000;
  --accent-muted: #636366;
  --accent-bg: rgba(0, 0, 0, 0.05);
  --accent-bg-strong: rgba(0, 0, 0, 0.08);
  --accent-gradient: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
  --accent-on: #ffffff;
  --danger: #d32f2f;
  --danger-bg: rgba(211, 47, 47, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] html,
[data-theme="light"] body {
  background-color: var(--bg-primary);
}

[data-theme="light"] .ripple-grid-bg {
  opacity: 0.35;
}

[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .auth-overlay {
  background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .auth-box input:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .auth-status.ok {
  color: #2e7d32;
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="light"] .context-menu {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}

[data-theme="light"] select.settings-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="light"] .settings-panel {
  background: linear-gradient(165deg, #ffffff 0%, #f5f5f7 100%) !important;
}

[data-theme="light"] .settings-section {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .settings-input {
  background: #f2f2f7 !important;
}

[data-theme="light"] .settings-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .list-view .card {
  background: #ffffff;
  border-color: var(--border);
}

[data-theme="light"] .list-view .card .card-media {
  background: #ebebf0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c7c7cc;
}

.theme-toggle-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-btn.app-nav-theme-btn {
  width: 100%;
  height: 40px;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

body.app-nav-collapsed .app-nav-theme-btn {
  width: 100%;
  padding: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.theme-toggle-btn .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block;
}

.theme-toggle-btn.app-nav-theme-btn svg {
  width: 20px;
  height: 20px;
}
