:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: #eff6ff;
  --ok: #16a34a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(14, 165, 233, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-text { font-weight: 700; letter-spacing: 0.02em; }

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 2px 8px;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  backdrop-filter: blur(8px);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: end;
  padding: 26px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.hero-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card-head { display: flex; align-items: center; justify-content: space-between; }

.mini-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.stats div {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.stats dt { font-size: 11px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.hero-note { margin: 0; font-size: 11px; color: var(--muted); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.section-note { margin: 0; font-size: 12px; color: var(--muted); }

.tenant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.tenant-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.tenant-card-alt { border-color: #dbeafe; }

.tenant-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.tenant-kicker { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
h3 { margin: 4px 0 2px; font-size: 24px; letter-spacing: -0.03em; }
.tenant-sub { margin: 0; font-size: 12px; color: var(--muted); }

.tenant-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.tenant-tag-strong { color: var(--accent); border-color: #bfdbfe; background: var(--accent-soft); }

.link-row { display: grid; gap: 8px; margin: 16px 0; }

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.link-card:hover { border-color: #bfdbfe; background: var(--accent-soft); }
.link-label { font-size: 12px; font-weight: 650; }
.link-tail { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.link-host { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; }
.link-cta { flex: none; color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap; }

/* `D9-S2c` 大陆直连：备用入口，域名打不开时用；与端口同生共死（试点结束一起撤）。 */
.mainland-card {
  margin: 14px 0 0;
  padding: 12px 13px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb, #fffdf7);
}

.mainland-head { display: flex; align-items: center; gap: 8px; }

.mainland-title { font-size: 12px; font-weight: 750; color: #92400e; }

.mainland-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mainland-note { margin: 6px 0 0; font-size: 11px; color: #78716c; }

.mainland-links { display: grid; gap: 6px; margin-top: 8px; }

.mainland-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mainland-link:hover { border-color: #f59e0b; background: #fffbeb; }
.mainland-label { display: block; font-size: 11px; font-weight: 650; color: #78350f; }
.mainland-link code { display: block; margin-top: 1px; font-size: 10px; color: #92400e; }
.mainland-cred { margin: 8px 0 0; font-size: 11px; color: #78716c; }
.mainland-cred a { color: #b45309; text-decoration: underline; text-underline-offset: 2px; }
.mainland-warn { margin: 6px 0 0; font-size: 10px; line-height: 1.5; color: #a8a29e; }
.mainland-none { margin: 10px 0 0; font-size: 11px; color: #a8a29e; }

.account-list { border-top: 1px solid var(--line); padding-top: 10px; }

.account-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef2f7;
}

.account-row:last-child { border-bottom: 0; }

.role {
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  border-radius: 999px;
  padding: 3px 4px;
  white-space: nowrap;
}

.role-admin { color: #7c3aed; background: #f5f3ff; }
.role-buyer { color: #0369a1; background: #e0f2fe; }
.role-agent { color: #b45309; background: #fef3c7; }
.role-host { color: #be123c; background: #ffe4e6; }

code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

code.pw { color: var(--muted); }

.copy {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.copy:hover { border-color: #bfdbfe; color: var(--accent); }
.copy.done { color: var(--ok); border-color: #bbf7d0; }
.copy-user { color: #475569; }

.role-card {
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.role-card + .role-card { margin-top: 8px; }

.role-card-title { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.role-card p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.cred { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cred code { overflow: hidden; text-overflow: ellipsis; }
.cred-pw { justify-content: flex-start; }

.guide { padding: 46px 0 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.guide-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
}

.step { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.guide-card h4 { margin: 6px 0 4px; font-size: 14px; }
.guide-card p { margin: 0; font-size: 12px; color: var(--muted); }
.guide-card code { background: #f1f5f9; border-radius: 5px; padding: 1px 5px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 0 6px;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-bottom: 34px; }
  .tenant-grid, .guide-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 6px; }
  .tenant-grid { gap: 14px; }
}

@media (max-width: 520px) {
  .page { width: min(100% - 24px, 1120px); padding-top: 16px; }
  .topbar { padding-bottom: 20px; }
  .env-pill { display: none; }
  h1 { font-size: 38px; }
  .tenant-card { padding: 16px; }
  .link-card { align-items: start; flex-direction: column; gap: 2px; }
  .link-host { text-align: left; }
  .account-row { grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .cred { gap: 3px; }
  .cred .copy { padding: 0 3px; }
  .link-tail { justify-content: flex-start; flex-wrap: wrap; gap: 4px 8px; }
  .mainland-link { align-items: flex-start; }
  .mainland-link .link-cta { margin-left: auto; }
  .footer { flex-direction: column; gap: 4px; }
  .copy { font-size: 9px; }
}
