/* ============================================================
   zaixianwget -- soft bubble-gradient theme (light)
   palette: mist background + sky/indigo gradient + soft ink text
   ============================================================ */

:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5FB;
  --line: #E4EAF4;
  --line-strong: #D3DCEA;
  --text: #16233A;
  --muted: #5B6B82;
  --faint: #93A2B8;
  --brand-a: #38BDF8;
  --brand-b: #6366F1;
  --brand-grad: linear-gradient(120deg, #38BDF8 0%, #6366F1 100%);
  --accent: #4F7DF3;
  --accent-soft: rgba(79, 125, 243, 0.10);
  --amber: #B45309;
  --amber-bg: #FFF4DC;
  --red: #D9534F;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL QingKe HuangYou", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --shadow-lg: 0 24px 60px rgba(30, 60, 120, 0.14);
  --shadow-md: 0 10px 30px rgba(30, 60, 120, 0.10);
  --shadow-sm: 0 4px 14px rgba(30, 60, 120, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(99, 102, 241, 0.22);
}

/* ---------- floating gradient bubbles ---------- */

.bg-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-bubbles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
}

.bg-bubbles .b1 {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 32% 32%, #7DD3FC 0%, rgba(125, 211, 252, 0) 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.bg-bubbles .b2 {
  width: 560px;
  height: 560px;
  top: 12%;
  right: -180px;
  background: radial-gradient(circle at 60% 40%, #C4B5FD 0%, rgba(196, 181, 253, 0) 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}

.bg-bubbles .b3 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: 18%;
  background: radial-gradient(circle at 45% 45%, #93C5FD 0%, rgba(147, 197, 253, 0) 70%);
  animation: drift3 29s ease-in-out infinite alternate;
}

.bg-bubbles .b4 {
  width: 300px;
  height: 300px;
  bottom: 8%;
  right: 14%;
  background: radial-gradient(circle at 50% 50%, #FBCFE8 0%, rgba(251, 207, 232, 0) 70%);
  animation: drift1 24s ease-in-out infinite alternate-reverse;
}

.bg-bubbles .b5 {
  width: 220px;
  height: 220px;
  top: 34%;
  left: 40%;
  background: radial-gradient(circle at 50% 50%, #99F6E4 0%, rgba(153, 246, 228, 0) 70%);
  animation: drift3 36s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-70px, 50px) scale(0.95); }
}

@keyframes drift3 {
  from { transform: translate(0, 0) scale(0.96); }
  to   { transform: translate(40px, -50px) scale(1.1); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand-grad);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.32);
}

.site-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

/* 自定义 Logo 图片（站点设置） */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- 后台独立子页面布局 ---------- */
.admin-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.admin-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 96px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.admin-nav-link {
  display: block;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
  background: rgba(79, 125, 243, 0.08);
  color: var(--accent);
}

.admin-nav-link.active {
  background: var(--brand-grad);
  color: #FFFFFF;
  font-weight: 600;
}

.admin-content {
  flex: 0 0 920px;
  width: 920px;
  min-width: 0;
  padding-top: 8px;
}

.admin-content .panel {
  width: 100%;
}

/* ---------- 后台统一表单：各子页面宽度一致 ---------- */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.grow {
  flex: 1 1 260px;
}

.field.half {
  flex: 1 1 200px;
}

.field.small {
  flex: 0 0 96px;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* 后台表单内禁用旧 .field 的 margin，避免行内对齐偏移 */
.admin-form .field {
  margin-bottom: 0;
}

.admin-form + .panel-title {
  margin-top: 22px;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  background: #FFFFFF;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-form input.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.admin-form textarea {
  min-height: 64px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.12);
}

.admin-form .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-form .form-hint {
  font-size: 12px;
  color: var(--faint);
}

/* 概览统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.stat-card .stat-num {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.stat-card.stat-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card.stat-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }
  .admin-content {
    flex: 1 1 auto;
    width: auto;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.site-name .cursor {
  color: var(--accent);
  animation: blink 1.2s steps(1) infinite;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.status-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  animation: blink 1.6s steps(1) infinite;
}

/* ---------- layout ---------- */

main {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-bottom: 44px;
  animation: fadeUp 0.6s ease both;
}

.hero-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1.2;
  letter-spacing: 2px;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.hero::before {
  content: "WGET";
  position: absolute;
  right: -8px;
  top: -36px;
  z-index: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 180px);
  letter-spacing: 8px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(22, 35, 58, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ---------- terminal window (soft bubble card) ---------- */

.terminal {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 0.6s ease 0.12s both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.12);
}

.t-dot:nth-child(1) { background: #FC8B8B; }
.t-dot:nth-child(2) { background: #FFD68A; }
.t-dot:nth-child(3) { background: #8CE8B0; }

.t-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  padding: 24px 24px 28px;
}

/* command line */

.cmdline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cmdline:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.prompt {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
  white-space: nowrap;
}

#website {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  caret-color: var(--accent);
}

#website::placeholder {
  color: var(--faint);
}

.btn-run {
  flex-shrink: 0;
  padding: 10px 26px;
  border: none;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-run:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.4);
  filter: brightness(1.04);
}

.btn-run:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-run:disabled {
  background: var(--line);
  color: var(--faint);
  cursor: not-allowed;
  box-shadow: none;
}

/* inline validation alert */

.alert-line {
  display: none;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #FDEEEE;
  color: var(--red);
  font-size: 13px;
}

/* announcement */

.notice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--amber-bg);
  border-radius: 16px;
  color: var(--amber);
  font-size: 13px;
}

.notice-tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--amber);
  font-weight: 700;
}

/* terminal output */

.terminal-output {
  margin-top: 20px;
  padding: 18px 20px;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease infinite;
}

#nFilesP {
  margin: 6px 0;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
}

#nFiles {
  color: var(--accent);
  font-weight: 700;
}

#log {
  margin: 0;
  max-width: 100%;
  word-break: break-all;
  white-space: pre-wrap;
  text-align: left;
  line-height: 1.8;
}

#log h5 {
  margin: 4px 0;
  color: var(--amber);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

#log code {
  color: #3E5E9E;
  background: transparent;
  padding: 0;
  font-family: var(--mono);
  font-size: 12.5px;
}

.btn-zip {
  margin-top: 14px;
  padding: 11px 26px;
  border: none;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-zip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.38);
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 1;
  padding: 34px 24px 96px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
}

.friend-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.friend-links li {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.friend-links a {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.15s ease;
}

.friend-links a:hover {
  color: var(--accent);
}

.footer-meta {
  text-align: center;
}

.footer-meta p {
  margin: 6px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-credits a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  transition: color 0.15s ease;
}

.footer-credits a:hover {
  color: var(--accent);
}

.footer-meta .disclaimer {
  color: #B0737A;
  font-size: 12.5px;
}

/* ---------- modals (bootstrap 3 light override) ---------- */

.modal-content {
  background: var(--surface);
  border: none;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  border-color: var(--line);
}

.modal-title {
  font-family: var(--display);
  letter-spacing: 2px;
  font-size: 20px;
}

.modal-body {
  color: var(--muted);
  font-size: 14px;
}

.modal-body .red-text {
  color: #B0737A;
}

.modal-header .close {
  color: var(--faint);
  opacity: 1;
  text-shadow: none;
}

.modal-header .close:hover {
  color: var(--text);
}

.modal-backdrop.in {
  opacity: 0.4;
}

#disclaimerModal .btn-primary {
  background: var(--brand-grad);
  border: none;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 22px;
}

/* ---------- header nav & inner pages ---------- */

.nav-link-btn {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

/* 导航栏用户头像 */
.nav-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -5px;
  margin-right: 6px;
}

/* 用户中心身份行 */
.account-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.account-username {
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}

/* 后台用户列表头像与昵称 */
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -6px;
  margin-right: 6px;
}

.user-nickname {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--faint);
}

.nav-link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-link-btn-solid {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
}

.nav-link-btn-solid:hover {
  color: #fff;
  opacity: 0.9;
}

.page-wrap {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.page-title em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
}

.flash {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.flash-error {
  background: #FDECEC;
  color: #B3261E;
  border: 1px solid #F5C6C4;
}

.flash-success {
  background: #E8F6EE;
  color: #1E7A46;
  border: 1px solid #BFE5CE;
}

/* stats row */

.stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.stat-card {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.stat-value .stat-unit {
  font-size: 13px;
  color: var(--faint);
  font-weight: 400;
  margin-left: 4px;
}

/* forms */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface-2);
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: var(--accent);
}

.btn-primary-soft {
  display: inline-block;
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 14px;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary-soft:hover {
  opacity: 0.9;
}

.btn-primary-soft:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost-danger {
  color: var(--red);
}

.btn-ghost-danger:hover {
  color: var(--red);
  border-color: var(--red);
}

/* token display */

.token-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.token-line code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  word-break: break-all;
}

/* 用户中心 API 调用说明 */

.api-line {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.8;
}

.api-line code,
.api-doc-inline {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  word-break: break-all;
}

.api-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 10px;
}

.api-doc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 12px;
}

/* tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  word-break: break-all;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
}

.tag-ok {
  background: #E8F6EE;
  color: #1E7A46;
}

.tag-fail {
  background: #FDECEC;
  color: #B3261E;
}

.tag-muted {
  background: var(--surface-2);
  color: var(--muted);
}

/* inline balance form in admin table */

.balance-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.balance-form input {
  width: 76px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--mono);
}

.balance-form input[name="note"] {
  width: 110px;
  font-family: var(--sans);
}

/* auth card */

.auth-card {
  max-width: 400px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 36px 34px;
}

.auth-card h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 6px;
}

.auth-card .auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

/* ads zone */

.ads-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.ad-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ad-item a {
  display: block;
  text-decoration: none;
}

.ad-img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-text {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--muted);
}

.ad-item a:hover .ad-text {
  color: var(--accent);
}

/* ---------- animations ---------- */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .status-chip {
    display: none;
  }

  main {
    padding: 40px 16px 32px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero::before {
    display: none;
  }

  .terminal-body {
    padding: 18px 16px 22px;
  }

  .cmdline {
    flex-wrap: wrap;
    border-radius: 22px;
  }

  #website {
    flex-basis: 100%;
    order: 3;
    padding: 10px 4px 4px;
  }

  .btn-run {
    margin-left: auto;
  }

  .t-title {
    display: none;
  }

  .terminal-bar::after {
    content: "bash -- wget";
    margin-left: 10px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
  }

  .bg-bubbles span {
    filter: blur(60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-bubbles span,
  .site-name .cursor,
  .status-chip .dot,
  .dot-pulse {
    animation: none;
  }
}
