:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e3e8ef;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --error: #dc2626;
  --warn: #d97706;
  --info: #2563eb;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }

.topbar {
  background: #111827;
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.admin-entry { color: #d1d5db; font-size: 13px; text-decoration: none; }
.admin-entry:hover { color: #fff; }

.container { flex: 1; padding-top: 32px; padding-bottom: 48px; }

.hero h1 { font-size: 24px; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ============ 公告栏 · 未来感霓虹全息面板 ============ */
.announcement {
  position: relative;
  padding: 16px 20px 15px;
  margin: 0 0 22px;
  border-radius: 14px;
  color: #e6ecff;
  border: 1px solid rgba(99, 102, 241, .55);
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(34, 211, 238, .20) 0%, transparent 50%),
    radial-gradient(140% 180% at 100% 100%, rgba(168, 85, 247, .26) 0%, transparent 55%),
    linear-gradient(135deg, #0a0f24 0%, #111735 55%, #150f2b 100%);
  animation: ann-panel 3s ease-in-out infinite;
  overflow: hidden;
}
/* 顶部渐变光带 */
.announcement::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee 25%, #6366f1 50%, #a855f7 75%, transparent);
}
/* 斜向扫描光（科技感） */
.announcement::after {
  content: "";
  position: absolute;
  top: -60%; bottom: -60%;
  width: 34px;
  left: -20%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-20deg);
  animation: ann-scan 4.5s linear infinite;
}

.announcement-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.announcement-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22d3ee;
  animation: ann-dot 2s ease-in-out infinite;
}
.announcement-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #a5f3fc;
  text-shadow: 0 0 14px rgba(34, 211, 238, .85);
}
.announcement-tag {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, .5);
  border-radius: 999px;
  padding: 2px 9px;
  background: rgba(168, 85, 247, .14);
  text-shadow: 0 0 8px rgba(168, 85, 247, .6);
}

.announcement ul { position: relative; z-index: 1; margin: 0; padding-left: 20px; }
.announcement li { color: #dbe3ff; font-size: 14px; line-height: 1.8; padding: 2px 0; }
.announcement li::marker { color: #22d3ee; }
.announcement a { color: #7dd3fc; text-decoration: none; border-bottom: 1px dashed rgba(125, 211, 252, .5); }

/* 面板呼吸光 */
@keyframes ann-panel {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, .22), 0 0 18px rgba(99, 102, 241, .30), 0 10px 32px rgba(0, 0, 0, .30);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(34, 211, 238, .45), 0 0 32px rgba(99, 102, 241, .50), 0 10px 32px rgba(0, 0, 0, .30);
  }
}
/* 光点呼吸 */
@keyframes ann-dot {
  0%, 100% { box-shadow: 0 0 6px #22d3ee, 0 0 14px rgba(34, 211, 238, .6); opacity: 1; }
  50%      { box-shadow: 0 0 12px #22d3ee, 0 0 26px rgba(168, 85, 247, .75); opacity: .7; }
}
/* 扫描光扫过 */
@keyframes ann-scan {
  0%   { left: -25%; }
  100% { left: 105%; }
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.panel { display: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel.active { display: block; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--primary); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: 6px 14px; font-size: 13px; background: #eef2ff; color: var(--primary); margin-top: 8px; }

.step2 { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }

.hidden { display: none !important; }

.result { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-size: 14px; border: 1px solid transparent; }
.result.success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.result.error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.result.warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.result.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.result-title { font-weight: 700; margin-bottom: 4px; }
.result-detail { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 18px; letter-spacing: 1px; word-break: break-all; }

.footer { background: #111827; color: #9ca3af; text-align: center; font-size: 12px; padding: 16px 0; }
