:root {
  --bg: #f5f5f7;
  --panel: #ffffffcc;
  --panel-strong: #ffffff;
  --accent: #007aff;
  --accent-2: #5e5ce6;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --danger: #ff3b30;
  --shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.06);
}
.theme-dark {
  --bg: #0d0e11;
  --panel: #14161aee;
  --panel-strong: #1a1c21;
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --text: #f5f7fa;
  --muted: #aeb3bb;
  --border: #2a2d33;
  --danger: #ff453a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.25);
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans CJK", Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -250px, #e8e8eb 0%, var(--bg) 60%);
  color: var(--text);
}
.theme-dark body {
  background: radial-gradient(1200px 500px at 50% -250px, #0b0d12 0%, var(--bg) 60%);
}
.mw-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.65);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(210,210,215,0.6);
}
.mw-header-bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}
.mw-brand { display: flex; align-items: baseline; gap: 10px }
.mw-logo {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  font-size: 20px;
}
.mw-subtitle {
  color: var(--muted);
  font-size: 14px;
}
.mw-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
  opacity: 0.85;
}
.mw-nav a:hover { opacity: 1 }
.mw-nav a:active { opacity: 0.9 }
.mw-theme-toggle {
  margin-left: 18px;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.mw-main { max-width: 1120px; margin: 0 auto; padding: 28px 18px }
.mw-footer {
  border-top: 1px solid rgba(210,210,215,0.6);
  margin-top: 44px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(180%) blur(8px);
}
.theme-dark .mw-footer {
  background: rgba(20,22,26,0.6);
  border-top-color: var(--border);
}
.mw-footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.mw-hero {
  background: linear-gradient(180deg, #ffffff, #fafafc);
  border: 1px solid rgba(210,210,215,0.7);
  border-radius: 24px;
  padding: 52px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.theme-dark .mw-hero {
  background: linear-gradient(180deg, #1a1c21, #16181d);
  border-color: var(--border);
}
.mw-hero::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 60%;
  background: radial-gradient(800px 240px at 30% -20%, rgba(94,92,230,0.15) 0%, transparent 60%), radial-gradient(800px 240px at 70% -30%, rgba(0,122,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.mw-hero-title { font-size: 48px; margin: 0 0 10px 0; font-weight: 700; letter-spacing: -0.5px }
.mw-hero-slogan { font-size: 22px; color: var(--muted); margin: 0 0 16px 0 }
.mw-hero-desc { font-size: 16px; color: var(--text); margin: 0 0 24px 0 }
.mw-hero-actions { display: flex; gap: 12px }
.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(210,210,215,0.8);
  background: rgba(255,255,255,0.8);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mw-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.08) }
.mw-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.06) }
.theme-dark .mw-btn {
  background: rgba(26,28,33,0.9);
  border-color: var(--border);
}
.mw-primary {
  background: linear-gradient(180deg, #ffffff, #f1f3f5);
  border: 1px solid rgba(0,122,255,0.3);
  color: #0a0a0a;
}
.theme-dark .mw-primary {
  background: linear-gradient(180deg, #23262c, #1a1c21);
  color: var(--text);
}
.mw-disabled { opacity: 0.5; pointer-events: none }
.mw-section { margin-top: 32px }
.mw-section-title { font-size: 24px; margin: 0 0 18px 0; font-weight: 700; letter-spacing: -0.2px }
.mw-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mw-tile {
  background: var(--panel);
  border: 1px solid rgba(210,210,215,0.7);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mw-tile:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.1) }
.theme-dark .mw-tile { border-color: var(--border) }
.mw-tile-title { font-size: 16px; font-weight: 600 }
.mw-tile-desc { font-size: 14px; color: var(--muted); margin-top: 6px }
.mw-downloads { display: grid; grid-template-columns: 1fr; gap: 12px }
.mw-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-strong);
  border: 1px solid rgba(210,210,215,0.7);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mw-download-item:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.1) }
.theme-dark .mw-download-item { border-color: var(--border) }
.mw-download-meta { display: grid; grid-template-columns: auto auto auto; gap: 12px; align-items: center }
.mw-download-platform { font-weight: 600 }
.mw-download-name { color: var(--muted) }
.mw-download-size { color: var(--muted) }
.mw-admin-top { display: flex; align-items: center; justify-content: space-between }
.mw-admin-actions { display: flex; gap: 10px }
.mw-form { display: grid; gap: 12px }
.mw-field { display: grid; gap: 6px }
.mw-field input, .mw-field textarea, .mw-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.mw-field textarea { height: auto; padding: 10px 12px; line-height: 1.6 }
.theme-dark .mw-field input, .theme-dark .mw-field textarea, .theme-dark .mw-field select {
  background: #1a1c21;
  border-color: var(--border);
  box-shadow: none;
}
.mw-actions { display: flex; gap: 10px }
.mw-list { display: grid; gap: 10px }
.mw-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-strong);
  border: 1px solid rgba(210,210,215,0.7);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.mw-list-title { font-weight: 600 }
.mw-list-sub { color: var(--muted); font-size: 12px; margin-top: 4px }
.mw-list-actions { display: flex; gap: 8px }
.mw-danger {
  background: var(--danger);
  color: white;
  border: none;
  box-shadow: 0 3px 10px rgba(255,59,48,0.35);
}
.mw-alert {
  background: rgba(0,122,255,0.1);
  border: 1px solid rgba(0,122,255,0.25);
  color: #0a0a0a;
  padding: 10px 12px;
  border-radius: 12px;
}
.theme-dark .mw-alert {
  background: rgba(10,132,255,0.12);
  border-color: rgba(10,132,255,0.35);
  color: var(--text);
}
.mw-empty { color: var(--muted); padding: 20px 0; text-align: center }
@media (max-width: 900px) {
  .mw-tiles { grid-template-columns: 1fr 1fr }
}
@media (max-width: 600px) {
  .mw-tiles { grid-template-columns: 1fr }
  .mw-download-meta { grid-template-columns: 1fr }
  .mw-hero-title { font-size: 36px }
  .mw-hero-slogan { font-size: 18px }
}
