/* ============================================================
   ZPhotos — Light Theme (supports dark mode via [data-theme="dark"])
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --site-color: #c0392b;
  --site-accent: #e74c3c;
  --bg-root: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-elevated: #fafafa;
  --bg-hover: #f0f0f0;
  --bg-navbar: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-tertiary: #8c8c8c;
  --text-quaternary: #b0b0b0;
  --border-default: #e5e5e5;
  --border-light: #f0f0f0;
  --border-accent: #d5d5d5;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.1);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-root: #0f1117;
  --bg-surface: #1a1d27;
  --bg-elevated: #222639;
  --bg-hover: #252840;
  --bg-navbar: #161922;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-quaternary: #475569;
  --border-default: #2d3148;
  --border-light: #252840;
  --border-accent: #3d4260;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,.4);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.5);
}

/* Dark mode — global element overrides */
[data-theme="dark"] .site-header { background: #161922; border-color: #2d3148; }
[data-theme="dark"] .site-footer { background: #111520; border-color: #2d3148; }
[data-theme="dark"] .footer-desc { color: #64748b; }
[data-theme="dark"] .footer-links a { color: #7c8aa0; }
[data-theme="dark"] .footer-links a:hover { color: var(--site-accent); }
[data-theme="dark"] .footer-icp a { color: #555; }
[data-theme="dark"] .auth-wrap { background: var(--bg-surface); border-color: var(--border-default); color: var(--text-primary); }
[data-theme="dark"] .auth-wrap h2 { color: var(--text-primary); }
[data-theme="dark"] .auth-wrap input { background: var(--bg-root); border-color: var(--border-default); color: var(--text-primary); }
[data-theme="dark"] .auth-wrap input:focus { border-color: var(--site-color); }
[data-theme="dark"] .auth-link { color: var(--text-tertiary); }
[data-theme="dark"] .auth-link a { color: var(--site-accent); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, rgba(99,102,241,.08), #0b0f19 50%, #0a1628 100%) !important; }
[data-theme="dark"] .hero-content h1 { color: #e2e8f0; }
[data-theme="dark"] .hero-search input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #e2e8f0; }
[data-theme="dark"] .hero-search button { background: var(--site-color); color: #fff; }
[data-theme="dark"] .hero-subtitle { color: rgba(255,255,255,.55); }
[data-theme="dark"] .online-sidebar { background: #161922; border-color: #2d3148; }
[data-theme="dark"] .online-sidebar-header { border-color: #2d3148; }
[data-theme="dark"] .online-dot { background: #4ade80; }
[data-theme="dark"] .online-item:hover { background: #1e2130; }
[data-theme="dark"] .online-name { color: #e2e8f0; }
[data-theme="dark"] .lb-tab { color: #94a3b8 !important; }
[data-theme="dark"] .lb-tab.active { color: var(--site-accent) !important; }
[data-theme="dark"] .lb-tabs { border-color: #2d3148 !important; }
[data-theme="dark"] .lb-tab.active { border-color: var(--site-accent) !important; }
[data-theme="dark"] .dash-online-header { border-color: #2d3148; }
[data-theme="dark"] .dash-online-count { background: #0d2818; color: #4ade80; }
[data-theme="dark"] .online-item:hover { background: #1e2130; }
[data-theme="dark"] .dash-online-title { color: #e2e8f0; }
[data-theme="dark"] .dash-stat-label { color: #64748b; }
[data-theme="dark"] .dash-stat-num { color: #e2e8f0; }
[data-theme="dark"] .dash-stat-desc { color: #475569; }
[data-theme="dark"] .section-title { color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .section-link { color: var(--site-accent); }
[data-theme="dark"] .section-head { border-color: #2d3148; }
[data-theme="dark"] .empty-state { color: #64748b; }
[data-theme="dark"] .empty-state p { color: #94a3b8; }
[data-theme="dark"] .hero-captions { color: #e2e8f0; }
[data-theme="dark"] .hero-caption-title { color: #e2e8f0; }
[data-theme="dark"] .hero-caption-info { color: #94a3b8; }
[data-theme="dark"] .hero-caption-link { color: var(--site-accent); }

/* ----- Reset & Base ----- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:15px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{
  font-family:var(--font-sans);
  background:var(--bg-root);
  color:var(--text-primary);
  line-height:1.7;
  min-height:100vh;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
::selection{background:rgba(192,57,43,.15);color:var(--text-primary)}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#aaa}

/* ============================================================
   HEADER — .site-header
   ============================================================ */
.site-header {
  background: var(--bg-navbar, #fff);
  border-bottom: 1px solid var(--border-default);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Georgia', 'Palatino', 'Book Antiqua', serif;
  font-weight: 800; font-size: 1.45rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.logo-z { color: var(--site-color); font-family: 'Georgia', 'Palatino', 'Book Antiqua', serif; font-weight: 800; }
.logo-text { font-size: .82rem; color: var(--text-secondary); font-family: var(--font-sans); }

/* Sub-site selector */
.site-selector {
  display: flex; gap: 4px; margin-left: 8px;
  flex-shrink: 0;
}
.site-switch-btn {
  padding: 4px 12px; font-size: .74rem; font-weight: 600;
  border-radius: 4px; color: var(--text-tertiary);
  transition: all var(--transition);
}
.site-switch-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.site-switch-btn.active { background: var(--site-color); color: #fff; }

/* Main nav */
.main-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.main-nav > a {
  padding: 7px 14px; font-size: .84rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all var(--transition); white-space: nowrap;
}
.main-nav > a:hover { background: var(--bg-hover); color: var(--text-primary); }
.main-nav > a.active { color: var(--site-color); font-weight: 600; }
.nav-register {
  background: var(--site-color); color: #fff !important;
  border-radius: var(--radius-sm); margin-left: 4px; font-weight: 600;
}
.nav-register:hover { background: var(--site-accent) !important; color: #fff !important; }

/* Nav special links */
/* "More" dropdown */
.nav-more-wrapper { position: relative; }
.nav-more-btn {
  padding: 7px 14px; font-size: .84rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-radius: var(--radius-sm); transition: all var(--transition);
  display: flex; align-items: center; gap: 4px; user-select: none;
}
.nav-more-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-more-arrow { font-size: .6rem; }
.nav-more-dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); min-width: 140px;
  box-shadow: var(--shadow-md); z-index: 1002;
  padding: 4px 0; margin-top: 4px;
}
.nav-more-dropdown.show { display: block; }
.nav-more-dropdown a {
  display: block; padding: 9px 18px; font-size: .82rem; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  white-space: nowrap;
}
.nav-more-dropdown a:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-more-dropdown a.nav-more-admin { color: var(--site-accent); font-weight: 600; }
.nav-more-dropdown a.nav-more-reviewer { color: #8b5cf6; }
.nav-more-dropdown a.nav-more-bug { color: #f59e0b; }
.nav-more-dropdown a.nav-more-report { color: #ef4444; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-secondary); border-radius: 1px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile nav */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 999;
}
.mobile-nav-overlay.show { display: block; }
.mobile-nav-panel {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: var(--bg-surface); z-index: 1001;
  padding: 12px 16px 20px;
  overflow-y: auto;
  flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
  display: block; padding: 12px 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-secondary); border-bottom: 1px solid var(--border-light);
}
.mobile-nav-panel a:hover { color: var(--text-primary); }
.nav-admin-m { color: var(--site-accent) !important; font-weight: 600; }
.nav-report-m { color: #e67e22 !important; }
.nav-register-m { color: var(--site-color) !important; font-weight: 600; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.flash {
  padding: 11px 18px; border-radius: var(--radius-sm); margin-bottom: 6px;
  font-size: .82rem; display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s ease; line-height: 1.5;
  border-left: 3px solid transparent;
}
@keyframes slideIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.flash-success { background:#f0fdf4; color:#166534; border-left-color:#22c55e; }
.flash-error { background:#fef2f2; color:#991b1b; border-left-color:#ef4444; }
.flash-warning { background:#fffbeb; color:#92400e; border-left-color:#f59e0b; }
.flash-info { background:#eff6ff; color:#1e40af; border-left-color:#3b82f6; }

/* ============================================================
   FOOTER — 贴底
   ============================================================ */
.site-header { flex-shrink: 0; }
.main-content { flex: 1; width: 100%; }
.site-footer {
  flex-shrink: 0;
  background: #fff; color: var(--text-secondary);
  text-align: center; padding: 40px 24px 32px; font-size: .78rem;
  border-top: 1px solid var(--border-default);
}
.site-footer a { color: var(--text-tertiary); }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-logo {
  color: var(--text-primary); font-weight: 700; font-size: 1.05rem;
  display: block; margin-bottom: 4px; font-family: 'Georgia', 'Palatino', 'Book Antiqua', serif;
  letter-spacing: -.5px;
}
.footer-logo .logo-z { color: var(--site-color); font-family: 'Georgia', 'Palatino', 'Book Antiqua', serif; }
.footer-desc {
  color: var(--text-quaternary); margin-bottom: 20px; display: block; font-size: .8rem;
}
.footer-crosslinks {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.footer-crosslinks-label { font-size: .72rem; color: var(--text-quaternary); letter-spacing: 1px; }
.footer-crosslink {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--bg-elevated); color: var(--text-secondary);
  text-decoration: none; font-size: .78rem; font-weight: 600;
  transition: all .2s; border: 1px solid var(--border-default);
}
.footer-crosslink:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-accent); }
.footer-crosslink-arrow { margin-left: 2px; font-size: .7rem; opacity: .5; transition: transform .2s; }
.footer-crosslink:hover .footer-crosslink-arrow { transform: translateX(3px); opacity: 1; }
.footer-icp { display: block; margin-top: 14px; font-size: .76rem; color: var(--text-quaternary); }
.footer-icp a { color: var(--text-quaternary); transition: color var(--transition); }
.footer-icp a:hover { color: var(--text-tertiary); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-sm { padding: 48px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
  border-bottom: 2px solid var(--border-light); padding-bottom: 14px;
}
.section-head-text { display: flex; flex-direction: column; gap: 4px; }
.section-eyebrow {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 3px;
  color: #999; margin-bottom: 6px;
}
.section-title {
  font-size: 1.6rem; font-weight: 800; color: var(--text-primary); letter-spacing: -1px;
  position: relative;
}
.section-title em { color: var(--site-accent); font-style: normal; }
.section-link {
  font-size: .82rem; color: var(--site-accent); text-decoration: none;
  font-weight: 600; white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ============================================================
   PHOTO GRID & CARDS
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.photo-card {
  background: var(--bg-surface); border-radius: 12px; overflow: hidden;
  cursor: pointer; border: 1px solid var(--border-light);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .6s ease;
  opacity: 0;
  display: block;
  will-change: transform, opacity;
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.photo-card.visible { opacity: 1; will-change: auto; }
.photo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(0,0,0,.1); border-color: var(--border-accent); }

/* Skeleton loading */
.photo-card-skeleton { position: relative; }
.photo-card-skeleton .skel-dots {
  position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  z-index: 3;
  animation: cardOrbit 1.2s linear infinite;
}
.photo-card-skeleton .skel-dots span {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
}
.photo-card-skeleton .skel-dots span:nth-child(1) { background: #6366F1; top: -4px; left: 50%; margin-left: -5px; }
.photo-card-skeleton .skel-dots span:nth-child(2) { background: #EC4899; bottom: -4px; left: 0; }
.photo-card-skeleton .skel-dots span:nth-child(3) { background: #8B5CF6; bottom: -4px; right: 0; }
@keyframes cardOrbit { to { transform: rotate(360deg); } }

.photo-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-elevated, #f0f0f0);
}
.photo-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  will-change: transform;
}
.photo-card:hover .photo-card-img img { transform: scale(1.04); }

.photo-card-serial {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: .65rem; padding: 3px 9px; border-radius: 8px;
  font-weight: 600; backdrop-filter: blur(4px);
}
.photo-card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--site-accent); color: #fff;
  font-size: .6rem; padding: 3px 9px; border-radius: 8px;
  font-weight: 700; letter-spacing: 1px; backdrop-filter: blur(4px);
}
.hot-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--site-accent); color: #fff;
  font-size: .6rem; font-weight: 700; padding: 3px 9px;
  border-radius: 8px; z-index: 2; letter-spacing: 1px;
}
/* 分类标签（左上角） */
.photo-cat-label {
  position: absolute; top: 10px; left: 10px;
  color: #fff;
  font-size: .58rem; font-weight: 700; padding: 3px 9px;
  border-radius: 6px; z-index: 2; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.photo-cat-label { background: var(--site-accent); }
.photo-cat-label.aviation { background: #1a73e8; }

.photo-card-body { padding: 12px 16px; }
.photo-card-title {
  font-size: .85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.photo-card-meta {
  display: flex; gap: 10px; font-size: .72rem; color: var(--text-tertiary);
}
.photo-card-meta span {
  max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.like-count { color: var(--site-color); }
.photo-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--border-light);
}
.photo-card-user { display: flex; align-items: center; gap: 8px; }
.photo-card-user-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: linear-gradient(135deg, #6366F1, #EC4899);
}
.photo-card-user-avatar-placeholder {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.photo-card-user-name {
  font-size: .75rem; color: #555; font-weight: 500;
  max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-card-stats {
  display: flex; gap: 10px; font-size: .72rem; color: #aaa; flex-shrink: 0;
}
.photo-card-stats span { display: inline-flex; align-items: center; gap: 2px; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-section {
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 28px; border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.search-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-bar input[type="text"] {
  flex: 1; min-width: 200px; padding: 10px 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  outline: none; font-size: .86rem; background: var(--bg-elevated); color: var(--text-primary);
  transition: all var(--transition);
}
.search-bar input[type="text"]:focus { border-color: var(--site-accent); }
.search-bar select {
  padding: 10px 14px; border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); background: var(--bg-elevated);
  outline: none; font-size: .86rem; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.search-bar select:focus { border-color: var(--site-accent); }
.search-bar button {
  padding: 10px 24px; background: var(--site-accent); color: #fff;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 500; font-size: .84rem; transition: all var(--transition);
}
.search-bar button:hover { filter: brightness(1.1); }
.category-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tag {
  padding: 4px 14px; border-radius: var(--radius-sm); font-size: .76rem;
  background: var(--bg-elevated); color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  border: 1px solid var(--border-default);
}
.cat-tag:hover { background: var(--bg-hover); color: var(--text-primary); }
.cat-tag.active { background: var(--site-accent); color: #fff; border-color: var(--site-accent); }
.search-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.search-info p { color: var(--text-tertiary); font-size: .82rem; }
.search-info strong { color: var(--text-primary); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: .8rem;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }
.page-btn.active { background: var(--site-accent); color: #fff; border-color: var(--site-accent); }
.page-btn.disabled { opacity: .3; cursor: default; pointer-events: none; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-tertiary); grid-column: 1 / -1; }
.empty-state p { font-size: .95rem; color: var(--text-tertiary); margin-bottom: 6px; }
.empty-state a { color: var(--site-accent); font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; border-radius: var(--radius-sm); font-size: .84rem;
  font-weight: 500; cursor: pointer; border: none; gap: 7px;
  transition: all var(--transition); letter-spacing: .15px;
  background: var(--site-color); color: #fff;
}
.btn:hover { background: var(--site-accent); }
.btn-primary { background: var(--site-accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 2px 12px rgba(0,0,0,.2); filter: brightness(1.08); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-default); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-sm { padding: 5px 14px; font-size: .76rem; border-radius: var(--radius-sm); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
[data-theme="dark"] .btn { background: var(--site-color); color: #fff; }
[data-theme="dark"] .btn-secondary { background: #1e2130; color: #e2e8f0; }
[data-theme="dark"] .btn-secondary:hover { background: #252840; }

/* ============================================================
   UPLOAD FORM
   ============================================================ */
.upload-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 36px 34px; border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.upload-wrap h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.file-drop {
  border: 2px dashed var(--border-accent); border-radius: var(--radius-sm);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--bg-elevated); position: relative;
}
.file-drop:hover { border-color: var(--site-accent); background: rgba(0,0,0,.02); }
.file-drop.drag-over { border-color: var(--site-accent); background: rgba(0,0,0,.04); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-label { font-size: .9rem; color: var(--text-secondary); margin-bottom: 4px; }
.file-drop-label strong { color: var(--site-accent); font-weight: 600; }
.file-drop-hint { font-size: .74rem; color: var(--text-quaternary); }
.form-section {
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  padding: 20px; margin-top: 20px;
}
.form-section-title {
  font-size: .8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .78rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  outline: none; transition: all var(--transition);
  background: var(--bg-surface); color: var(--text-primary); font-size: .86rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--site-accent); background: var(--bg-root);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

/* ============================================================
   AUTH FORMS
   ============================================================ */
.auth-wrap {
  max-width: 420px; margin: 40px auto;
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 40px 36px; border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-wrap h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }
.auth-submit {
  width: 100%; padding: 12px; background: var(--site-accent); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: .9rem;
  font-weight: 600; cursor: pointer; margin-top: 6px;
  transition: all var(--transition);
}
.auth-submit:hover { filter: brightness(1.1); }
.auth-link { text-align: center; margin-top: 20px; font-size: .82rem; color: var(--text-tertiary); }
.auth-link a { color: var(--site-accent); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row button {
  white-space: nowrap; padding: 9px 18px; background: var(--site-accent); color: #fff;
  border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: .8rem; font-weight: 500;
}
.code-row button:disabled { background: var(--border-default); cursor: not-allowed; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--border-default); }
.captcha-row input { flex: 1; text-align: center; letter-spacing: 6px; font-size: 1.1rem; padding: 8px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.preview-item { max-width: 200px; max-height: 200px; border-radius: var(--radius-sm); border: 1px solid var(--border-accent); margin-top: 10px; }

/* ============================================================
   PHOTO DETAIL
   ============================================================ */
.detail-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 28px; }
.detail-photo img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-default); }
.detail-side {
  background: var(--bg-surface); border-radius: var(--radius-sm);
  padding: 24px; border: 1px solid var(--border-default);
  position: sticky; top: 72px; align-self: start;
  box-shadow: var(--shadow-sm);
}
.detail-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.detail-author {
  font-size: .82rem; color: var(--text-tertiary);
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.detail-info-table { width: 100%; font-size: .82rem; }
.detail-info-table tr { border-bottom: 1px solid var(--border-light); }
.detail-info-table tr:last-child { border-bottom: none; }
.detail-info-table td { padding: 8px 0; }
.detail-info-table td:first-child { color: var(--text-tertiary); width: 80px; }
.like-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px 0 0; padding: 11px 20px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border-accent); color: var(--text-secondary);
  font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); width: 100%;
}
.like-btn.liked { background: #ef4444; border-color: #ef4444; color: #fff; }
.like-btn:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.share-btn {
  margin-top: 8px; width: 100%; padding: 9px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  cursor: pointer; font-size: .8rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--bg-hover); }
.badge-ac { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: .68rem; font-weight: 600; background: #f0fdf4; color: #166534; }
.badge-wa { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: .68rem; font-weight: 600; background: #fef2f2; color: #991b1b; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.admin-header h1 { font-size: 1.4rem; font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-surface); border-radius: var(--radius-sm);
  padding: 22px 20px; border: 1px solid var(--border-default);
  text-align: center; transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.stat-card:hover { border-color: var(--border-accent); }
.stat-card .num { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.stat-card .label { font-size: .74rem; color: var(--text-tertiary); margin-top: 6px; }
.admin-table-wrap {
  background: var(--bg-surface); border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border-default); box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th {
  background: var(--bg-elevated); color: var(--text-tertiary);
  padding: 11px 14px; text-align: left; font-size: .72rem; font-weight: 500;
  border-bottom: 1px solid var(--border-default);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-default); }
.admin-table tbody tr:hover { background: var(--bg-hover); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-thumb { width: 68px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-btn {
  padding: 4px 12px; border-radius: var(--radius-sm); font-size: .72rem;
  cursor: pointer; border: 1px solid transparent; transition: all var(--transition);
}
.admin-btn-approve { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.admin-btn-approve:hover { background: #22c55e; color: #fff; }
.admin-btn-reject { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.admin-btn-reject:hover { background: #ef4444; color: #fff; }
.admin-btn-hot { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.admin-btn-hot:hover { background: #f59e0b; color: #fff; }
.admin-btn-delete { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.admin-btn-delete:hover { background: #ef4444; color: #fff; }
.admin-btn-warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.admin-btn-warn:hover { background: #f97316; color: #fff; }

/* ============================================================
   MY PHOTOS
   ============================================================ */
.my-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.my-photo-card {
  background: var(--bg-surface); overflow: hidden;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.my-photo-card:hover { border-color: var(--border-accent); }
.my-photo-card img { width: 100%; height: 160px; object-fit: cover; }
.my-photo-card-body { padding: 12px 14px; }
.my-photo-card-title {
  font-size: .84rem; font-weight: 500; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: .68rem; font-weight: 500; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-approved { background: #f0fdf4; color: #166534; }
.status-rejected { background: #fef2f2; color: #991b1b; }

/* ============================================================
   ROLE BADGE
   ============================================================ */
.role-badge {
  font-size: .58rem; padding: 1px 6px; border-radius: 8px;
  background: #fef3c7; color: #b45309; font-weight: 600; white-space: nowrap;
}
.role-badge.admin { background: #fce7f3; color: #be185d; }

/* ============================================================
   SPLASH / PAGE LOADING
   ============================================================ */
.splash-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 9998;
  align-items: center; justify-content: center; padding: 20px;
}
.splash-overlay.show { display: flex; }
.splash-box {
  background: #fff; border-radius: 16px;
  max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: splashIn .3s ease; margin: 0 12px;
}
@keyframes splashIn { from{opacity:0;transform:translateY(20px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
.splash-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid #f0f0f0; }
.splash-title { font-size: 1.1rem; margin: 0; color: #1a1a2e; }
.splash-close { background: none; border: none; font-size: 1.6rem; color: #999; cursor: pointer; padding: 0; line-height: 1; }
.splash-close:hover { color: #333; }
.splash-body { padding: 20px 24px 24px; font-size: .9rem; line-height: 1.7; color: #444; }
.splash-body h1,.splash-body h2,.splash-body h3 { color: #1a1a2e; margin-top: 16px; margin-bottom: 8px; }
.splash-body hr { border: none; border-top: 1px solid #eee; margin: 14px 0; }
.page-loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.page-loading-overlay.active { opacity: 1; pointer-events: all; }

/* ============================================================
   GLOBAL BUG MODAL
   ============================================================ */
.gm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  z-index: 9998; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.gm-overlay.show { display: flex; }
.gm-modal {
  background: var(--bg-surface); border-radius: var(--radius-lg);
  padding: 28px; max-width: 480px; width: 92%;
  box-shadow: var(--shadow-lg); animation: dropIn .22s ease;
  border: 1px solid var(--border-default);
}
@keyframes dropIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.gm-modal h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font-size: 1rem; font-weight: 600; }
.gm-modal .close-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-tertiary); padding: 4px; }
.gm-modal .close-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.gm-modal textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font-size: .84rem; resize: vertical; background: var(--bg-elevated); color: var(--text-primary);
}
.gm-modal textarea:focus { outline: none; border-color: var(--site-accent); }
.gm-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.gm-btn-submit {
  padding: 8px 20px; background: var(--site-accent); color: #fff;
  border: none; border-radius: var(--radius-sm); font-weight: 500;
  cursor: pointer; font-size: .82rem; transition: all var(--transition);
}
.gm-btn-submit:hover { filter: brightness(1.1); }
.gm-btn-cancel {
  padding: 8px 20px; background: var(--bg-elevated); color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font-weight: 500; cursor: pointer; font-size: .82rem; transition: all var(--transition);
}
.gm-btn-cancel:hover { background: var(--bg-hover); }
.gm-msg { font-size: .78rem; margin-top: 10px; display: none; }

/* ============================================================
   LEADERBOARD TABS (index.html)
   ============================================================ */
.lb-tab.active { color: var(--site-color) !important; border-bottom-color: var(--site-color) !important; }

/* Nav more active */
a.nav-more-active { color: var(--site-accent); font-weight: 600; }

/* ============================================================
   TEAM / ONLINE SIDEBAR
   ============================================================ */
.team-card {
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border-default);
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.team-card:hover { border-color: var(--border-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1100px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

@media(max-width:1000px) {
  .main-nav { display: none; }
  .lang-selector { display: none; }
  .site-selector { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .main-content { padding: 20px 16px 48px; }
  .flash-messages { padding: 0 16px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  /* 手机导航面板增强 */
  .mobile-nav-panel { padding: 8px 0 20px; gap: 0; }
  .mobile-nav-panel a {
    padding: 13px 16px; font-size: .9rem;
    display: flex; align-items: center; gap: 8px;
  }
  .mobile-nav-section {
    padding: 6px 16px 4px; font-size: .68rem; color: #999;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
  }
  .mobile-browse-toggle { cursor: pointer; }
  .mobile-browse-arrow { font-size: .7rem; transition: transform .2s; }
  .mobile-browse-toggle.expanded .mobile-browse-arrow { transform: rotate(180deg); }
  .mobile-browse-sub { padding: 0 16px 4px; }
  .mobile-browse-sub-item {
    display: block; padding: 10px 16px; font-size: .82rem;
    color: #555; text-decoration: none; border-radius: 6px;
    transition: background .15s;
  }
  .mobile-browse-sub-item:hover { background: #f5f5f5; color: #222; }
}

@media(max-width:768px) {
  .main-content { padding: 16px 12px 40px; }
  .flash-messages { padding: 0 12px; }
  .container { padding: 0 12px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-card { border-radius: 8px; }
  .photo-card:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .photo-card-body { padding: 8px 10px 10px; }
  .photo-card-title { font-size: .78rem; -webkit-line-clamp: 1; }
  .photo-card-meta { font-size: .68rem; gap: 4px; }
  .photo-card-meta span { max-width: 80px; }
  .photo-card-footer { flex-direction: column; gap: 6px; align-items: flex-start; }
  .photo-card-user-name { max-width: 60px; }
  .photo-card-stats { font-size: .68rem; gap: 6px; }
  .section-sm { padding: 24px 0; }
  .section-title { font-size: 1.2rem; }
  .section-eyebrow { font-size: .62rem; letter-spacing: 2px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-bar { flex-direction: column; gap: 8px; }
  .search-bar input[type="text"] { min-width: 0; }
  .search-bar select,.search-bar button { width: 100%; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .upload-wrap { padding: 24px 16px; border-radius: var(--radius-sm); }
  .my-photos-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .my-photo-card img { height: 120px; }
  /* 上传页分类选择手机版 */
  .upload-cat-row { flex-direction: column !important; }
  .upload-cat-row label { padding: 14px 16px !important; }
  .upload-cat-row label span { font-size: .88rem !important; }
}

@media(max-width:600px) {
  html { font-size: 14px; }
  .header-inner { padding: 0 12px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-card-body { padding: 6px 8px 8px; }
  .photo-card-title { font-size: .74rem; }
  .photo-card-meta { font-size: .64rem; }
  .photo-card-meta span { max-width: 64px; }
  .photo-card-footer { padding-top: 6px; margin-top: 6px; }
  .photo-card-user-name { font-size: .68rem; max-width: 50px; }
  .photo-card-stats { font-size: .64rem; }
  .section-title { font-size: 1.1rem; }
  .section-eyebrow { font-size: .58rem; }
  .search-section { padding: 14px; }
  .category-tags { gap: 5px; }
  .cat-tag { padding: 4px 10px; font-size: .72rem; }
  .pagination { gap: 4px; }
  .page-btn { padding: 6px 10px; font-size: .74rem; }
  .upload-wrap { padding: 18px 12px; }
  .form-row { flex-direction: column; gap: 0; }
  .detail-side { padding: 16px; }
  .my-photo-card img { height: 120px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-table thead { display: none; }
  .admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display: block; }
  .admin-table tr { background: var(--bg-surface); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 12px; border: 1px solid var(--border-default); }
  .admin-table td { padding: 5px 0; border-bottom: none; }
  .admin-thumb { width: 100%; height: auto; max-height: 200px; }
  .code-row { flex-direction: column; }
  .code-row button { width: 100%; }
  .captcha-row { flex-wrap: wrap; }
  /* 手机版导航面板小屏微调 */
  .mobile-nav-panel a { padding: 12px 14px; font-size: .85rem; }
  .mobile-nav-cat-row { gap: 6px; padding: 6px 14px; }
  .mobile-nav-cat-btn { padding: 10px 8px; font-size: .78rem; }
}

@media(max-width:480px) {
  .container { padding: 0 8px; }
  .section-sm { padding: 18px 0; }
  .photo-grid { gap: 8px; }
  .flash-messages { padding: 0 8px; }
  .main-content { padding: 12px 8px 36px; }
  .mobile-nav-panel a { padding: 11px 12px; font-size: .82rem; }
  .mobile-nav-cat-row { gap: 6px; padding: 6px 12px; }
  .mobile-nav-cat-btn { padding: 8px 6px; font-size: .76rem; }
}

/* ============================================================
   照片分析工具箱 (Analysis Tools Toolbar) - 统一浅色暖棕主题
   ============================================================ */
.at-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 16px;
  background: #faf7f2;
  border: 1px solid #e8dccf;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  font-size: .78rem;
  justify-content: space-between;
}
.at-tools-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.at-tools-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.at-tool-label {
  color: #8c7b6b;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 2px;
}
.at-sep {
  color: #c4b8a8;
  margin: 0 4px;
  user-select: none;
}
.at-btn {
  background: #fff;
  border: 1px solid #e0d4c3;
  color: #5c4f3f;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: .73rem;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
}
.at-btn:hover {
  background: #f5ede0;
  color: #3a2f20;
  border-color: #c8a882;
}
.at-btn.at-active {
  background: #c85c1e;
  color: #fff;
  border-color: #c85c1e;
  font-weight: 700;
}
.at-btn.at-btn-danger.at-active {
  background: #e74c3c;
  border-color: #e74c3c;
}
.at-btn-sm {
  padding: 2px 7px;
  font-size: .7rem;
  font-family: var(--font-mono);
}
/* 审核页审图辅助按钮 —— 更小更低调，不抢分析工具风头 */
.at-btn-review-grid {
  padding: 2px 8px;
  font-size: .66rem;
  background: transparent;
  border: 1px dashed #d4c8b4;
  color: #a89886;
  border-radius: 4px;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.at-btn-review-grid:hover {
  background: #f5ede0;
  color: #5c4f3f;
  border-color: #c8a882;
  border-style: solid;
}
.at-btn-review-grid.at-active {
  background: #8c7b6b;
  color: #fff;
  border-color: #8c7b6b;
  border-style: solid;
  font-weight: 600;
}
.at-color-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f5f0e8;
  border: 1px solid #e8dccf;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 12px;
}
.at-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d4c8b4;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  padding: 0;
}
.at-color-dot:hover {
  transform: scale(1.2);
  border-color: #a88a6e;
}
/* 选色 */
.at-color-dot.at-color-active { border-color: #c85c1e; box-shadow: 0 0 6px rgba(200,92,30,.4); transform: scale(1.15); }

/* 分类标签 */
.at-cat-label {
  color: #a89886 !important;
  font-size: .68rem !important;
  letter-spacing: 0;
  margin-right: 2px !important;
}

/* 分析面板 - 统一浅色 */
#at-analysis-panel {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #faf7f2;
  border: 1px solid #e8dccf;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
#at-panel-canvas {
  display: block;
  margin: 0 auto;
}

/* 上传步骤条 */
.upload-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}
.upload-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #aaa;
  font-weight: 600;
  position: relative;
}
.upload-steps li .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  transition: all .3s;
}
.upload-steps li.active .step-num {
  background: var(--site-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(231,76,60,.35);
}
.upload-steps li.done .step-num {
  background: #27ae60;
  color: #fff;
}
.upload-steps li.active { color: var(--site-accent); }
.upload-steps li.done { color: #27ae60; }
.upload-steps .step-line {
  width: 48px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  transition: background .3s;
}
.upload-steps .step-line.done { background: #27ae60; }
.upload-steps .step-line.active { background: var(--site-accent); }

/* 上传步骤面板 */
.upload-step-panel {
  display: none;
}
.upload-step-panel.active {
  display: block;
}
/* Step 1 预览区域 */
.upload-preview-area {
  position: relative;
  background: #1a1a2e;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.upload-preview-area img {
  max-width: 100%;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}
/* Step 按钮 */
.upload-step-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}
.upload-step-btn {
  padding: 10px 28px;
  border-radius: 8px;
  border: none;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.upload-step-btn-next {
  background: var(--site-accent);
  color: #fff;
}
.upload-step-btn-next:hover { filter: brightness(1.1); }
.upload-step-btn-prev {
  background: #f0f0f0;
  color: #555;
}
.upload-step-btn-prev:hover { background: #e0e0e0; }
.upload-step-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
/* 水印 Step 全屏调整 */
.wm-step-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
}
.wm-step-container img {
  max-width: 100%;
  max-height: 65vh;
  display: block;
}

/* 上传页分栏 */
#upload-analyze-layout { gap: 16px; }
#upload-toolbox-side { flex-shrink: 0; }
#upload-toolbox-side .at-btn { font-size: .7rem; padding: 3px 8px; }
#upload-toolbox-side #at-analysis-panel { margin-top: 8px; }

@media(max-width:768px) {
  #upload-analyze-layout { flex-direction: column !important; }
  #upload-toolbox-side { flex: 1 1 auto !important; width: 100% !important; }
  .at-toolbar { padding: 6px 8px; gap: 3px 6px; }
  .at-btn { padding: 3px 7px; font-size: .68rem; }
  .at-tools-left { gap: 2px; }
  .upload-steps li { font-size: .72rem; }
  .upload-steps .step-line { width: 24px; margin: 0 4px; }
  .upload-step-buttons { justify-content: stretch; }
  .upload-step-btn { flex: 1; text-align: center; }
}

/* ===== 暗色模式全面覆盖 ===== */
[data-theme="dark"] .site-footer { background: #111520 !important; }
[data-theme="dark"] .flash-success { background: #0d2818; color: #4ade80; border-left-color: #22c55e; }
[data-theme="dark"] .flash-error { background: #2d0f0f; color: #f87171; border-left-color: #ef4444; }
[data-theme="dark"] .flash-warning { background: #2d2008; color: #fbbf24; border-left-color: #f59e0b; }
[data-theme="dark"] .flash-info { background: #0f172a; color: #60a5fa; border-left-color: #3b82f6; }
[data-theme="dark"] .cat-tag { background: #1e2130; color: #94a3b8; border-color: #2d3148; }
[data-theme="dark"] .cat-tag.active, [data-theme="dark"] .cat-tag:hover { background: var(--site-color); color: #fff; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select { background: #111827 !important; color: #e2e8f0 !important; border-color: #2d3148 !important; }
[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus, [data-theme="dark"] select:focus { border-color: var(--site-color) !important; }
[data-theme="dark"] input[disabled], [data-theme="dark"] input:disabled { background: #1a1d27 !important; color: #64748b !important; }
[data-theme="dark"] input[readonly], [data-theme="dark"] textarea[readonly] { background: #1a1d27 !important; color: #94a3b8 !important; }
[data-theme="dark"] #icao-airport-hint { background: #0d2818 !important; color: #4ade80 !important; }
[data-theme="dark"] #airline-hint { background: #1a1f30 !important; color: #60a5fa !important; }
[data-theme="dark"] .code-row input { background: #111827; color: #e2e8f0; }
[data-theme="dark"] .code-row button { background: var(--site-color); color: #fff; }
[data-theme="dark"] .code-row button:disabled { background: #2d3148; color: #64748b; }
[data-theme="dark"] .photo-card-user-name { color: #94a3b8 !important; }
[data-theme="dark"] .photo-card-stats { color: #64748b !important; }
[data-theme="dark"] .photo-card-img { background: #1e2130; }
[data-theme="dark"] .my-photo-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .my-photo-card:hover { border-color: var(--site-accent); }
[data-theme="dark"] .my-photo-info h3 { color: #e2e8f0; }
[data-theme="dark"] .my-photo-meta { color: #64748b; }
[data-theme="dark"] .lb-tab { color: #64748b !important; }
[data-theme="dark"] .lb-tab.active { color: var(--site-accent) !important; border-color: var(--site-accent) !important; }
[data-theme="dark"] .lb-tabs { border-color: #2d3148 !important; }
[data-theme="dark"] .lb-table th { color: #64748b; background: #1a1f30; }
[data-theme="dark"] .lb-table td { color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .lb-table tr:hover { background: #1e2130; }
.lb-table-row { transition: background .15s; }
.lb-table-row:hover { background: #f9fafb; }
[data-theme="dark"] .lb-table-row:hover { background: #1e2130; }
[data-theme="dark"] .lb-table a { color: var(--site-accent); }
[data-theme="dark"] .empty-state { color: #64748b; }
[data-theme="dark"] .pagination { color: #94a3b8; }
[data-theme="dark"] .page-btn { background: #1a1d27; border-color: #2d3148; color: #94a3b8; }
[data-theme="dark"] .page-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }
[data-theme="dark"] .page-btn.active { background: var(--site-color); color: #fff; }
[data-theme="dark"] .upload-wrap, [data-theme="dark"] .auth-wrap { background: var(--bg-surface); border-color: var(--border-default); }
[data-theme="dark"] .form-group label { color: #94a3b8; }
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea, [data-theme="dark"] .form-group select { background: #111827; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .form-group input:focus, [data-theme="dark"] .form-group textarea:focus { border-color: var(--site-color); }
[data-theme="dark"] .form-group .help { color: #64748b; }
[data-theme="dark"] .search-bar input { background: #111827; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .search-bar select { background: #111827; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .search-bar button { background: var(--site-color); color: #fff; }
[data-theme="dark"] .online-dot { background: #4ade80; }
[data-theme="dark"] .online-item:hover { background: #1e2130; }
[data-theme="dark"] .online-name { color: #e2e8f0; }
[data-theme="dark"] .online-meta { color: #64748b; }
[data-theme="dark"] .online-count, [data-theme="dark"] .dash-online-count { background: #0d2818; color: #4ade80; }
[data-theme="dark"] .dash-stats { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .dash-online { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .dash-online-header { border-color: #2d3148; }
[data-theme="dark"] .dash-online-title { color: #e2e8f0; }
[data-theme="dark"] .dash-stat-label { color: #64748b; }
[data-theme="dark"] .dash-stat-num { color: #e2e8f0; }
[data-theme="dark"] .dash-stat-desc { color: #475569; }
[data-theme="dark"] .edt-form { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .edt-header h1 { color: #e2e8f0; }
[data-theme="dark"] .edt-header p { color: #94a3b8; }
[data-theme="dark"] .edt-section-title { color: #64748b; border-color: #2d3148; }
[data-theme="dark"] .edt-field label { color: #94a3b8; }
[data-theme="dark"] .edt-field input, [data-theme="dark"] .edt-field select { background: #111827; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .edt-field .hint { color: #64748b; }
[data-theme="dark"] .edt-actions { border-color: #2d3148; }
[data-theme="dark"] .edt-btn-cancel { background: #1e2130; color: #94a3b8; border-color: #2d3148; }
[data-theme="dark"] .edt-btn-cancel:hover { background: #252840; }
[data-theme="dark"] .edt-btn-regen { background: #1e2130; color: var(--site-accent); }
[data-theme="dark"] .edt-btn-regen:hover { background: #252840; }
[data-theme="dark"] .edt-preview img { border-color: #2d3148; }
[data-theme="dark"] .form-page h2 { color: #e2e8f0; }
[data-theme="dark"] .form-page img { border-color: #2d3148 !important; }
[data-theme="dark"] .form-page textarea { background: #111827 !important; color: #e2e8f0 !important; border-color: #2d3148 !important; }

/* ===== 暗色模式 — 内联样式覆盖 ===== */
[data-theme="dark"] a[style*="color:#111827"] { color: #e2e8f0 !important; }
[data-theme="dark"] a[style*="color:#374151"] { color: #e2e8f0 !important; }
[data-theme="dark"] a[style*="color:#1f2937"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#111827"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#374151"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#1f2937"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#9ca3af"] { color: #64748b !important; }
[data-theme="dark"] [style*="color:#6b7280"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="border-bottom:1px solid #f3f4f6"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border-bottom:2px solid #e5e7eb"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border-top:1px solid #e5e7eb"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border:1px solid #e5e7eb"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="background:#f9fafb"] { background: #1e2130 !important; }
[data-theme="dark"] [style*="background:#fff"] { background: #1a1d27 !important; }
[data-theme="dark"] [style*="background:#f5f5f5"] { background: #1a1d27 !important; }

/* ===== 暗色模式 — 通用元素补充 ===== */
[data-theme="dark"] .content-page-body { color: #e2e8f0; }
[data-theme="dark"] .content-page-body h2, [data-theme="dark"] .content-page-body h3 { color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .content-page-body strong { color: #f1f5f9; }
[data-theme="dark"] .content-page-body ul { border-color: #2d3148; }
[data-theme="dark"] .content-page-body a { color: var(--site-accent); }
[data-theme="dark"] .content-page-body p { color: #cbd5e1; }
[data-theme="dark"] .hot-badge { background: #ef4444; }
[data-theme="dark"] .photo-cat-label { color: #94a3b8; }
[data-theme="dark"] .photo-card-body { background: #1a1d27; }
[data-theme="dark"] .photo-card-footer { border-color: #2d3148; }
[data-theme="dark"] .role-badge { background: #2d2008; color: #fbbf24; }
[data-theme="dark"] .role-badge.admin { background: #3b0a2a; color: #f472b6; }

/* ===== 暗色模式 — 照片详情页 ===== */
[data-theme="dark"] .pd-info-panel { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .pd-info-panel h1 { color: #e2e8f0; }
[data-theme="dark"] .pd-info-panel .pd-meta { color: #94a3b8; }
[data-theme="dark"] .pd-info-panel .pd-meta span { color: #94a3b8; }
[data-theme="dark"] .pd-action-bar { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .pd-action-btn { color: #94a3b8; }
[data-theme="dark"] .pd-action-btn:hover { color: #e2e8f0; background: #252840; }
[data-theme="dark"] .comment-box { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .comment-box textarea { background: #0f1117; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .comment-item { border-color: #2d3148; }
[data-theme="dark"] .comment-author { color: #e2e8f0; }
[data-theme="dark"] .comment-text { color: #cbd5e1; }
[data-theme="dark"] .comment-time { color: #64748b; }
[data-theme="dark"] .photo-detail-wrap { color: #e2e8f0; }
[data-theme="dark"] .exif-table td { border-color: #2d3148; color: #e2e8f0; }
[data-theme="dark"] .exif-table th { border-color: #2d3148; color: #94a3b8; }

/* ===== 暗色模式 — 搜索页 ===== */
[data-theme="dark"] .search-filters { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .search-results-count { color: #94a3b8; }

/* ===== 暗色模式 — 团队页 ===== */
[data-theme="dark"] .team-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .team-card:hover { border-color: var(--site-accent); }
[data-theme="dark"] .team-card h3 { color: #e2e8f0; }
[data-theme="dark"] .team-card p { color: #94a3b8; }
[data-theme="dark"] .team-member-item { border-color: #2d3148; }
[data-theme="dark"] .team-member-name { color: #e2e8f0; }

/* ===== 暗色模式 — 情报页 ===== */
[data-theme="dark"] .intel-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .intel-card h3 { color: #e2e8f0; }
[data-theme="dark"] .intel-card p { color: #94a3b8; }
[data-theme="dark"] .intel-detail { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .intel-detail h1 { color: #e2e8f0; }
[data-theme="dark"] .intel-detail p, [data-theme="dark"] .intel-detail td { color: #cbd5e1; border-color: #2d3148; }

/* ===== 暗色模式 — 上传页 ===== */
[data-theme="dark"] .upload-wrap { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .upload-step { background: #0f1117; border-color: #2d3148; }
[data-theme="dark"] .upload-step.active { background: #1a1d27; border-color: var(--site-color); }
[data-theme="dark"] .upload-steps li { color: #94a3b8; }
[data-theme="dark"] .drop-zone { background: #0f1117; border-color: #2d3148; color: #94a3b8; }

/* ===== 暗色模式 — 公告页 ===== */
[data-theme="dark"] .ann-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .ann-card h3 { color: #e2e8f0; }
[data-theme="dark"] .ann-card p { color: #94a3b8; }

/* ===== 暗色模式 — 通用表格 ===== */
[data-theme="dark"] table { border-color: #2d3148; }
[data-theme="dark"] th { background: #1a1f30; color: #94a3b8; border-color: #2d3148; }
[data-theme="dark"] td { border-color: #2d3148; color: #e2e8f0; }
[data-theme="dark"] tr:hover { background: #1e2130; }

/* ===== 暗色模式 — 按钮补充 ===== */
[data-theme="dark"] .btn-secondary { background: #1e2130; color: #e2e8f0; border-color: #2d3148; }
[data-theme="dark"] .btn-secondary:hover { background: #252840; color: #fff; }
[data-theme="dark"] .btn-outline { background: transparent; color: #94a3b8; border-color: #2d3148; }
[data-theme="dark"] .btn-outline:hover { background: #252840; color: #e2e8f0; border-color: #475569; }

/* ===== 暗色模式 — 骨架屏/加载 ===== */
[data-theme="dark"] .photo-card-skeleton { background: #1a1d27; }
[data-theme="dark"] .photo-card-skeleton::after { background: #1a1d27; }
[data-theme="dark"] .page-loading-overlay { background: rgba(15,17,23,.97); }

/* ===== 暗色模式 — 审核员详情 ===== */
[data-theme="dark"] .reviewer-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .reviewer-card h3 { color: #e2e8f0; }

/* ===== 暗色模式 — Bug反馈 ===== */
[data-theme="dark"] .gm-overlay { background: rgba(0,0,0,.7); }
[data-theme="dark"] .gm-modal { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .gm-modal h3 { color: #e2e8f0; }
[data-theme="dark"] .gm-modal p { color: #94a3b8; }
[data-theme="dark"] .gm-btn-submit { background: var(--site-color); color: #fff; }

/* ===== 暗色模式 — 申诉/Bug反馈弹窗 ===== */
[data-theme="dark"] .appeal-modal { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .appeal-modal h3 { color: #e2e8f0; }

/* ===== 暗色模式 — 用户个人主页 ===== */
[data-theme="dark"] .profile-header { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .profile-header h1 { color: #e2e8f0; }
[data-theme="dark"] .profile-header p { color: #94a3b8; }

/* ===== 暗色模式 — 滚动条 ===== */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3d4260; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }
[data-theme="dark"] ::selection { background: rgba(99,102,241,.3); }

/* ===== 暗色模式 — 模态框/弹窗通用 ===== */
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,.7); }
[data-theme="dark"] .modal-content { background: #1a1d27; border-color: #2d3148; color: #e2e8f0; }
[data-theme="dark"] .modal-content h2, [data-theme="dark"] .modal-content h3 { color: #e2e8f0; }

/* ===== 暗色模式 — 标签/徽章 ===== */
[data-theme="dark"] .badge { background: #252840; color: #94a3b8; }
[data-theme="dark"] .tag { background: #252840; color: #94a3b8; }

/* ===== 暗色模式 — 搜索页 ===== */
[data-theme="dark"] .search-info { background: #1a1d27; border-color: #2d3148; color: #94a3b8; }
[data-theme="dark"] .search-info strong { color: #e2e8f0; }
[data-theme="dark"] .search-section { color: #e2e8f0; }
[data-theme="dark"] .category-tags { border-color: #2d3148; }

/* ===== 暗色模式 — 照片详情补充 ===== */
[data-theme="dark"] .pd-wrap { color: #e2e8f0; }
[data-theme="dark"] .pd-info-grid .label { color: #64748b; }
[data-theme="dark"] .pd-info-grid .value { color: #e2e8f0; }
[data-theme="dark"] .pd-section { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .pd-section-title { color: #64748b; border-color: #2d3148; }

/* ===== 暗色模式 — 我的照片页 ===== */
[data-theme="dark"] .my-photo-card { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .my-photo-card:hover { border-color: var(--site-accent); }
[data-theme="dark"] .my-photo-info h3 { color: #e2e8f0; }
[data-theme="dark"] .my-photo-info p { color: #94a3b8; }

/* ===== 暗色模式 — 上传页补充 ===== */
[data-theme="dark"] .upload-wrap h2 { color: #e2e8f0; }
[data-theme="dark"] .upload-wrap p { color: #94a3b8; }
[data-theme="dark"] .drop-zone { background: #0f1117; border-color: #2d3148; color: #94a3b8; }
[data-theme="dark"] .drop-zone.drag-over { border-color: var(--site-color); background: #1a1f30; }

/* ===== 暗色模式 — 审核员申请页 ===== */
[data-theme="dark"] .reviewer-apply-wrap { background: #1a1d27; border-color: #2d3148; }
[data-theme="dark"] .reviewer-apply-wrap h2 { color: #e2e8f0; }

/* ===== 暗色模式 — 公告管理 ===== */
[data-theme="dark"] .ann-content-preview { color: #cbd5e1; }
[data-theme="dark"] .ann-content-preview h1, [data-theme="dark"] .ann-content-preview h2, [data-theme="dark"] .ann-content-preview h3 { color: #e2e8f0; }
[data-theme="dark"] .ann-content-preview p { color: #cbd5e1; }
[data-theme="dark"] .ann-content-preview a { color: var(--site-accent); }
[data-theme="dark"] .ann-content-preview img { border-color: #2d3148; }
[data-theme="dark"] .ann-content-preview ul, [data-theme="dark"] .ann-content-preview ol { border-color: #2d3148; }
[data-theme="dark"] .ann-content-preview li { color: #cbd5e1; }
[data-theme="dark"] .ann-content-preview strong { color: #f1f5f9; }
[data-theme="dark"] .ann-content-preview blockquote { border-color: #2d3148; color: #94a3b8; }

/* ===== 暗色模式 — 联系我们 ===== */
[data-theme="dark"] .contact-wrap { background: #1a1d27; border-color: #2d3148; color: #e2e8f0; }
[data-theme="dark"] .contact-wrap h2 { color: #e2e8f0; }
[data-theme="dark"] .contact-wrap p { color: #94a3b8; }

/* ===== 暗色模式 — 万能内联样式覆盖 ===== */
[data-theme="dark"] [style*="color:#2c3e50"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#888"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="color:#aaa"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="color:#999"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="color:#666"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="color:#555"] { color: #94a3b8 !important; }
[data-theme="dark"] [style*="color:#333"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#444"] { color: #cbd5e1 !important; }
[data-theme="dark"] [style*="color:#222"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="color:#111"] { color: #e2e8f0 !important; }
[data-theme="dark"] [style*="border:1px solid #e0e0e0"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border:1.5px solid #e0e0e0"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border:2px solid #e0e0e0"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border-color:#e0e0e0"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border-color:#ddd"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border:1px solid #ddd"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border-color:#ccc"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="border:1px solid #ccc"] { border-color: #2d3148 !important; }
[data-theme="dark"] [style*="background:var(--bg-root)"] { background: #0f1117 !important; }
[data-theme="dark"] [style*="background:#fafafa"] { background: #1a1d27 !important; }
[data-theme="dark"] [style*="background:#f5f5f5"] { background: #1a1d27 !important; }
[data-theme="dark"] [style*="background-color:#f5f5f5"] { background-color: #1a1d27 !important; }
[data-theme="dark"] [style*="box-shadow:0 4px 12px rgba(0,0,0,.08)"] { box-shadow: 0 4px 12px rgba(0,0,0,.3) !important; }
