* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #ecfeff 100%);
  color: #0f172a;
}
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 40px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148,163,184,.14);
  position: sticky;
  top: 0;
  z-index: 10;
}
.glass-topbar {
  box-shadow: 0 12px 40px rgba(15,23,42,.05);
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #111827, #475569);
  box-shadow: 0 12px 24px rgba(15,23,42,.16);
}
.topbar h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.topbar p { margin: 0; color: #64748b; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(226,232,240,.8);
  color: #334155;
  font-weight: 700;
}
.page { max-width: 1280px; margin: 0 auto; padding: 28px; }
.page-shell { padding-top: 26px; }
.auth-shell { min-height: calc(100vh - 140px); display: grid; place-items: center; position: relative; }
.auth-card, .panel, .stat-card, .info-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(226,232,240,.78);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
  backdrop-filter: blur(20px);
}
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card.wide { width: min(820px, 100%); }
.auth-card h2, .panel h2 { margin-top: 0; }
.form-grid { display: grid; gap: 16px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 8px; font-weight: 600; color: #334155; }
input, select, button {
  font: inherit;
  border-radius: 14px;
}
input, select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(203,213,225,.9);
  background: rgba(255,255,255,.95);
  transition: all .25s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17,24,39,.18);
}
.btn-light { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.btn-dark { background: #0f172a; color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.full { grid-column: 1 / -1; }
.hero-grid, .admin-grid, .info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.hero-grid:not(.admin-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floating-grid { align-items: stretch; }
.stat-card, .info-card { padding: 22px; }
.stat-card span { display: block; color: rgba(255,255,255,.78); margin-bottom: 10px; }
.stat-card strong { font-size: 30px; letter-spacing: -.02em; }
.stat-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.72); }
.gradient-card {
  color: #fff;
  border: none;
  box-shadow: 0 20px 40px rgba(15,23,42,.14);
}
.dark-card { background: linear-gradient(135deg, #0f172a, #1e293b); }
.blue-card { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.soft-blue-card { background: linear-gradient(135deg, #0f766e, #06b6d4); }
.soft-dark-card { background: linear-gradient(135deg, #374151, #111827); }
.info-card h3 { margin-top: 0; margin-bottom: 12px; }
.info-card p { margin: 6px 0; color: #475569; }
.soft-card {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.6);
}
.elevated-card {
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
}
.dashboard-grid { margin-bottom: 24px; }
.panel { padding: 24px; margin-bottom: 24px; }
.premium-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.66);
}
.panel-header { margin-bottom: 18px; }
.panel-header.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-header p { margin: 8px 0 0; color: #64748b; }
.form-desc { margin-top: -4px; margin-bottom: 18px; color: #475569; }
.filter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-form input { min-width: 260px; }
.modern-filter-form input,
.modern-filter-form select {
  height: 44px;
  border-radius: 14px;
}
.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}
.alert.error { background: #fee2e2; color: #b91c1c; }
.alert.success { background: #dcfce7; color: #15803d; }
.table-wrap { overflow: auto; }
.modern-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.8);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: rgba(255,255,255,.92);
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
th { background: #f8fafc; color: #334155; }
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 700;
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.chart-panel .chart-box {
  position: relative;
  height: 360px;
  width: 100%;
}
.empty { text-align: center; color: #94a3b8; }
.tips { margin-top: 18px; color: #475569; line-height: 1.8; }

.apple-login-shell,
.apple-register-shell {
  overflow: hidden;
  padding-top: 16px;
}
.apple-login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.apple-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: .85;
}
.orb-one {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(191,219,254,.45), rgba(147,197,253,.12));
  top: 6%;
  left: 10%;
}
.orb-two {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.9), rgba(196,181,253,.42), rgba(129,140,248,.14));
  bottom: 4%;
  right: 8%;
}
.orb-three {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.92), rgba(186,230,253,.36), rgba(34,211,238,.12));
  top: 52%;
  left: 48%;
}
.apple-login-card,
.apple-register-card {
  width: min(520px, 100%);
  padding: 40px 34px 28px;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 24px 80px rgba(15,23,42,.12);
}
.apple-register-card { width: min(860px, 100%); }
.apple-login-head {
  text-align: center;
  margin-bottom: 26px;
}
.apple-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(226,232,240,.9);
}
.apple-login-head h2 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -.03em;
}
.apple-login-head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}
.apple-form label,
.register-form label {
  font-weight: 600;
  color: #1e293b;
}
.apple-form input,
.register-form input,
.register-form select {
  min-height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
}
.apple-login-btn {
  margin-top: 6px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #000000);
}
.apple-login-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #64748b;
  font-size: 14px;
}
.register-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .hero-grid, .admin-grid, .two-col, .info-grid, .register-tips-grid { grid-template-columns: 1fr; }
  .topbar, .topbar-actions, .panel-header.between { align-items: flex-start; flex-direction: column; }
  .page { padding: 18px; }
  .filter-form input { min-width: 100%; }
  .apple-login-card, .apple-register-card { padding: 30px 22px 24px; }
  .apple-login-head h2 { font-size: 30px; }
}
