﻿:root {
  --bg: #070b16;
  --bg-2: #0b1224;
  --panel: #101a30;
  --panel-2: #14203a;
  --line: #223052;
  --text: #e9eefb;
  --muted: #93a2c4;
  --brand: #ffb64d;
  --brand-2: #4dd0ff;
  --ok: #45d483;
  --warn: #f7c948;
  --danger: #ff7373;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(77, 208, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(255, 182, 77, 0.12), transparent 55%),
    var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.82);
  border-bottom: 1px solid rgba(34, 48, 82, 0.75);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand:hover {
  text-decoration: none;
}

.brand-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.brand-bars i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.brand-bars i:nth-child(1) { height: 40%; }
.brand-bars i:nth-child(2) { height: 85%; }
.brand-bars i:nth-child(3) { height: 60%; }
.brand-bars i:nth-child(4) { height: 100%; }
.brand-bars i:nth-child(5) { height: 55%; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 6px 10px;
  cursor: pointer;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  background: linear-gradient(135deg, var(--brand), #ff8a3d);
  color: #1b1205;
  box-shadow: 0 10px 26px rgba(255, 152, 61, 0.25);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.cyan {
  background: linear-gradient(135deg, #6ad7ff, #2f9cff);
  color: #04121f;
  box-shadow: 0 10px 26px rgba(47, 156, 255, 0.25);
}

.btn.sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 9px;
  box-shadow: none;
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* 首屏 */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(255, 182, 77, 0.35);
  background: rgba(255, 182, 77, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
}

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.14;
  margin: 18px 0 16px;
  letter-spacing: -0.5px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note b {
  color: var(--ok);
}

/* 主界面实拍 */
.hero-shot {
  margin: 0;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  background: #0a1121;
}

.hero-shot figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* 统计 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 0;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(16, 26, 48, 0.7);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.stat b {
  display: block;
  font-size: 24px;
  color: var(--brand);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* 区块 */
section.block {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.9), rgba(13, 21, 38, 0.9));
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(77, 208, 255, 0.12);
  color: var(--brand-2);
  font-size: 18px;
}

.icon.amber {
  background: rgba(255, 182, 77, 0.12);
  color: var(--brand);
}

/* 步骤 */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 26, 48, 0.65);
  padding: 22px 20px 20px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 182, 77, 0.22);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 提示条 */
.alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: rgba(20, 32, 58, 0.85);
}

.alert.success {
  border-color: rgba(69, 212, 131, 0.4);
  background: rgba(69, 212, 131, 0.1);
  color: #b8f5d1;
}

.alert.error {
  border-color: rgba(255, 115, 115, 0.45);
  background: rgba(255, 115, 115, 0.1);
  color: #ffc9c9;
}

.alert.info {
  border-color: rgba(77, 208, 255, 0.4);
  background: rgba(77, 208, 255, 0.08);
  color: #c8efff;
}

/* 表格 */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: rgba(13, 21, 38, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 48, 82, 0.7);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
  border-bottom: none;
}

td.wrap-cell {
  white-space: normal;
  min-width: 260px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.badge.ok {
  color: #b8f5d1;
  border-color: rgba(69, 212, 131, 0.45);
  background: rgba(69, 212, 131, 0.1);
}

.badge.warn {
  color: #ffe9a8;
  border-color: rgba(247, 201, 72, 0.45);
  background: rgba(247, 201, 72, 0.1);
}

.badge.danger {
  color: #ffc9c9;
  border-color: rgba(255, 115, 115, 0.45);
  background: rgba(255, 115, 115, 0.1);
}

.badge.cyan {
  color: #c8efff;
  border-color: rgba(77, 208, 255, 0.45);
  background: rgba(77, 208, 255, 0.1);
}

code,
.mono {
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

.key {
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 1px;
  color: var(--brand);
  font-weight: 600;
}

/* 表单 */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, 0.85);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(77, 208, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(77, 208, 255, 0.12);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field .hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 授权卡 */
.license-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.95), rgba(11, 18, 36, 0.95));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.license-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.license-card .key {
  font-size: 17px;
}

.license-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.license-meta b {
  color: var(--text);
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  background: rgba(8, 13, 26, 0.6);
  display: block;
}

.choice input {
  margin-right: 8px;
}

.choice b {
  display: block;
  margin: 6px 0 3px;
}

.choice span {
  color: var(--muted);
  font-size: 13px;
}

.choice:has(input:checked) {
  border-color: rgba(255, 182, 77, 0.75);
  background: rgba(255, 182, 77, 0.08);
}

/* 登录 / 注册 */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 21, 38, 0.92);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 460px;
  width: 100%;
  justify-self: end;
}

.auth-card h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

.auth-card .sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.auth-side h2 {
  font-size: 30px;
  margin: 0 0 12px;
}

.auth-side p {
  color: var(--muted);
  margin: 0 0 20px;
}

.auth-side ul {
  color: var(--muted);
  padding-left: 20px;
  font-size: 14.5px;
}

.auth-side li {
  margin-bottom: 8px;
}

.auth-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

/* 页面头 */
.page-head {
  padding: 52px 0 30px;
}

.page-head h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 0 0 10px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

/* 更新日志 */
.log-item {
  border-left: 2px solid rgba(255, 182, 77, 0.4);
  padding: 0 0 26px 22px;
  position: relative;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 182, 77, 0.15);
}

.log-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.log-item .time {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.log-item pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* 管理端 */
.admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-tabs a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
}

.admin-tabs a:hover,
.admin-tabs a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.inline-form {
  display: inline;
}

.copy-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(77, 208, 255, 0.5);
}

.hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

/* 页脚 */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.7);
  padding: 34px 0 26px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

footer h4 {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 14px;
}

/* 仅页脚导航列使用块级链接，页脚底部的公司外链保持行内 */
.footer-grid a {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom a.company-link {
  display: inline;
  color: var(--text);
  margin: 0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}

.footer-bottom a.company-link:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid rgba(34, 48, 82, 0.6);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

@media (max-width: 980px) {
  .hero,
  .auth {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .auth-card {
    justify-self: stretch;
    max-width: none;
  }
  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(9, 14, 27, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-user {
    margin-left: auto;
  }
  .hero {
    padding: 42px 0 30px;
  }
  .grid-3,
  .grid-2,
  .steps,
  .stat-row,
  .form-row,
  .choice-grid,
  .license-meta {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 560px;
  }
}
