/* 亮色 / 高对比度主题（暗色为默认） */

/* ---------------- 亮色 ---------------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #FAFEFF;
  --bg-deep: #F2F6F8;
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;
  --surface-3: #E9EEF1;
  --border: #D9D9D9;
  --border-soft: #E8E8E8;
  --text: #2B2D31;
  --text-2: #595959;
  --text-3: #8C8C8C;
  --link: #1E7FA0;
  --link-hover: #23527C;
  --green: #71B82C;
  --green-hover: #63A525;
  --green-soft: rgba(113, 184, 44, .12);
  --danger: #D9534F;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] .hero-script {
  background: linear-gradient(100deg, #0F6E8C 0%, #1E9BBE 55%, #49AFD0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(30, 127, 160, .18));
}
html[data-theme="light"] .hero-brush {
  color: #1F2933;
  filter: drop-shadow(0 4px 10px rgba(16, 24, 40, .08));
}
html[data-theme="light"] .hero-underline {
  background: linear-gradient(90deg, transparent, rgba(30, 127, 160, .75) 30%, rgba(113, 184, 44, .7) 70%, transparent);
}
html[data-theme="light"] .software-card { background: #FFFFFF; border-color: #E3E7EA; }
html[data-theme="light"] .software-card:hover { border-color: rgba(30, 127, 160, .45); box-shadow: 0 16px 30px rgba(16, 24, 40, .12); }
html[data-theme="light"] .author-card:hover { border-color: #C7CDD1; background: #F7FAFB; }
html[data-theme="light"] .detail-author-chip {
  background: #EAF6FA;
  border-color: #BFDDE7;
  color: #1E7FA0;
}
html[data-theme="light"] .detail-version-new { border-color: #B7D9A1; color: #4F8A1E; }
html[data-theme="light"] .grade-SSS,
html[data-theme="light"] .grade-SS,
html[data-theme="light"] .grade-S { color: #C98A00; }
html[data-theme="light"] .grade-A { color: #4F8A1E; }
html[data-theme="light"] .detail-error { color: #B23B3B; }
html[data-theme="light"] .card-ver-badge { background: rgba(255, 255, 255, .88); color: #595959; border-color: #D9D9D9; }
html[data-theme="light"] ::selection { background: #CFEBD8; color: #2B2D31; }

/* 顶栏 */
html[data-theme="light"] .zl-header { background: #FAFEFF; color: #2B2D31; }
html[data-theme="light"] .navigation-icon { color: #595959; }
html[data-theme="light"] .navigation-icon:hover { background: #F0F3F5; color: #2B2D31; }
html[data-theme="light"] .navigation-search-line input {
  background: #F4F7F9;
  border-color: #D9D9D9;
  color: #2B2D31;
}
html[data-theme="light"] .color-schema-switcher { border-color: #D9D9D9; }
html[data-theme="light"] .color-schema-switcher > [class^="zlibicon-"],
html[data-theme="light"] .color-schema-switcher .glass-svg { color: #8C8C8C; }
html[data-theme="light"] .navbar-menu-flex,
html[data-theme="light"] .navbar-menu__bg { background: #FFFFFF; }
html[data-theme="light"] .category-title { color: #8C8C8C; }
html[data-theme="light"] .category-list a { color: #2B2D31; }
html[data-theme="light"] .category-list a i.orange-color { background: #FEF0D7; color: #FC8034; }
html[data-theme="light"] .category-list a i.blue-color { background: #E6F7FF; color: #5591CD; }
html[data-theme="light"] .category-list a i.gray-color { background: #F2F9FC; color: #9599AD; }
html[data-theme="light"] .category-list .sep { background: #D9D9D9; }
html[data-theme="light"] .navbar-menu-antiscam { color: #2B2D31; }
html[data-theme="light"] .navbar-menu-antiscam .sep { background: #D9D9D9; }
html[data-theme="light"] .navbar-menu__logo { color: #2B2D31; }
html[data-theme="light"] .navbar-menu__close { border-color: #D9D9D9; color: #595959; }
html[data-theme="light"] .notifications-board,
html[data-theme="light"] .user-card-mini { background: #FFFFFF; border-color: #D9D9D9; }
html[data-theme="light"] .notifications-board a,
html[data-theme="light"] .user-card-mini a,
html[data-theme="light"] .user-card-mini .user-admin-slot a { color: #2B2D31; }
html[data-theme="light"] .notifications-board a:hover,
html[data-theme="light"] .user-card-mini a:hover { background: #F0F3F5; }
html[data-theme="light"] .notifications-board__title { border-color: #E8E8E8; }

@media (max-width: 1190px) {
  html[data-theme="light"] .category-title { background: #F2F6F8; }
  html[data-theme="light"] .navbar-menu { background: #FFFFFF; }
}

/* ---------------- 高对比度 ---------------- */
html[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #0B0C0E;
  --bg-deep: #000000;
  --surface: #121316;
  --surface-2: #1A1C20;
  --surface-3: #26282C;
  --border: #6A6D72;
  --border-soft: #3A3D42;
  --text: #FFFFFF;
  --text-2: #E6E6E6;
  --text-3: #C0C0C0;
  --link: #6CC4E0;
  --link-hover: #9ADCF0;
  --green: #8FD94A;
  --green-hover: #A4EA5F;
  --green-soft: rgba(143, 217, 74, .16);
  --danger: #FF6B6B;
}
html[data-theme="contrast"] .zl-header { background: #000000; }
html[data-theme="contrast"] .navbar-menu-flex,
html[data-theme="contrast"] .navbar-menu__bg { background: #121316; }
html[data-theme="contrast"] .navigation-icon { color: #C0C0C0; }
html[data-theme="contrast"] .navigation-icon:hover { color: #FFFFFF; background: #1A1C20; }
html[data-theme="contrast"] .category-list a { color: #FFFFFF; }
html[data-theme="contrast"] .category-title { color: #C0C0C0; }
