:root {
  --bg: #f0f4f8;
  --card: #fff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #059669;
  --blue: #2563eb;
  --accent: #4f46e5;
  --accent-2: #0ea5e9;
  --amber: #d97706;
  --red: #dc2626;
  --ink: #0f172a;
  --soft-blue: #eef2ff;
  --soft-green: #ecfdf5;
  --soft-rose: #fff1f2;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 12px 40px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(79, 70, 229, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc 0, var(--bg) 320px, var(--bg) 100%);
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}
.site-topbar-inner {
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.site-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}
.site-logo-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.site-logo-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.site-version-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--soft-blue);
  border: 1px solid #c7d2fe;
  padding: 4px 10px;
  border-radius: 999px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(228,231,236,.74);
  backdrop-filter: blur(18px);
}
.site-brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.site-brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #2563eb 78%, #0e9f6e);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.site-nav button {
  border: 0;
  background: transparent;
  color: #4b5565;
  padding: 9px 12px;
  border-radius: 999px;
}
.site-nav button:hover,
.site-nav button.active {
  background: #eef4ff;
  color: var(--blue);
}
.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.site-main {
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 96px;
}
.view[hidden] { display: none !important; }
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-danger {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.pill.off { background: var(--red); }
.pill.preview { background: var(--amber); }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-green { background: linear-gradient(135deg, #0e9f6e, #10b981); box-shadow: 0 10px 22px rgba(14,159,110,.22); }
.btn-blue { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 10px 22px rgba(37,99,235,.18); }
.btn-yellow { background: var(--amber); }
.btn-red { background: var(--red); }
.btn-gray { background: #fff; color: #344054; border: 1px solid #d0d5dd; }
.btn-sm { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.icon-btn { width: 30px; padding: 0; }
.hero-site {
  position: relative;
  min-height: 628px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 36px;
  padding: 72px 56px;
  overflow: hidden;
  border: 1px solid rgba(228,231,236,.86);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(16,24,40,.10);
}
.hero-site::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,.58) 64%, rgba(255,255,255,.18) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0;
}
.eyebrow {
  display: inline-flex;
  padding: 6px 11px;
  background: rgba(233,251,244,.88);
  color: #087d50;
  border: 1px solid #b7ebd3;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.hero-copy h1 {
  margin: 20px 0 16px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 760px;
}
.hero-copy p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475467;
}
.trust-row span {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(228,231,236,.94);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.hero-console {
  position: relative;
  z-index: 2;
  align-self: center;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16,24,40,.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.console-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(228,231,236,.82);
}
.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}
.console-top span:nth-child(2) { background: #fbbf24; }
.console-top span:nth-child(3) { background: #34d399; }
.console-top strong {
  margin-left: auto;
  color: #344054;
  font-size: 13px;
}
.console-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.console-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(228,231,236,.86);
  border-radius: 12px;
  background: rgba(255,255,255,.74);
}
.console-row small {
  color: var(--muted);
}
.console-row b {
  color: var(--ink);
}
.console-row em {
  font-style: normal;
  color: #7c2d12;
  background: #fff7ed;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}
.console-row em.ok {
  color: #087d50;
  background: #e8fff4;
}
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(248,250,252,.78);
  border-top: 1px solid rgba(228,231,236,.82);
}
.console-footer span {
  color: var(--muted);
  font-size: 13px;
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 628px;
  object-fit: cover;
  object-position: 62% center;
  display: block;
  filter: saturate(1.04);
}
.section-head {
  margin: 8px 0 18px;
}
.section-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.compact-head {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: end;
}
.choice-band, .service-band, .workflow-band, .assurance-band {
  padding: 34px 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.choice-card {
  min-height: 180px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.choice-card:hover {
  transform: translateY(-3px);
  border-color: #b7c8ff;
  box-shadow: 0 18px 42px rgba(16,24,40,.10);
}
.choice-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  margin-bottom: 26px;
  font-weight: 800;
}
.choice-card:nth-child(2) span { background: var(--blue); }
.choice-card:nth-child(3) span { background: var(--green); }
.choice-card strong,
.choice-card small {
  display: block;
}
.choice-card strong {
  font-size: 19px;
  margin-bottom: 8px;
}
.choice-card small {
  color: var(--muted);
}
.service-band {
  border-top: 1px solid rgba(228,231,236,.76);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  min-height: 176px;
  text-align: left;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: #b9cef8;
  box-shadow: 0 14px 34px rgba(24,39,75,.09);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 22px;
}
.service-card strong, .service-card small {
  display: block;
}
.service-card strong {
  font-size: 17px;
  margin-bottom: 7px;
}
.service-card small {
  color: var(--muted);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.workflow-steps div {
  background: #111827;
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  min-height: 120px;
}
.workflow-steps b, .workflow-steps span {
  display: block;
}
.workflow-steps b {
  font-size: 16px;
  margin-bottom: 8px;
}
.workflow-steps span {
  color: #c7d2e1;
  font-size: 13px;
}
.workflow-steps div:nth-child(2) { background: #154c79; }
.workflow-steps div:nth-child(3) { background: #175f50; }
.workflow-steps div:nth-child(4) { background: #4c3b8f; }
.assurance-band {
  display: grid;
  grid-template-columns: minmax(320px, .84fr) minmax(420px, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 10px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16,24,40,.07);
}
.assurance-band h2 {
  margin: 16px 0 12px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}
.assurance-band p {
  margin: 0;
  color: var(--muted);
}
.assurance-list {
  display: grid;
  gap: 12px;
}
.assurance-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}
.assurance-list b,
.assurance-list span {
  display: block;
}
.assurance-list b {
  margin-bottom: 5px;
  color: var(--ink);
}
.assurance-list span {
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16,24,40,.05);
}
.card-hd {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-hd h2 { margin: 0; font-size: 16px; }
.card-bd { padding: 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag-ok { background: #e8fff4; color: #087d50; }
.tag-warn { background: #fff7e6; color: #a16207; }
.tag-off { background: #ffecec; color: #b42318; }
.station-grid {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  gap: 14px;
}
.purpose-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.purpose-card {
  min-height: 94px;
  text-align: left;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.purpose-card.active {
  border-color: #8fb4ff;
  box-shadow: 0 0 0 3px rgba(40,104,216,.12);
}
.purpose-card strong,
.purpose-card small {
  display: block;
}
.purpose-card strong {
  font-size: 17px;
  margin-bottom: 6px;
}
.purpose-card small {
  color: var(--muted);
}
.form-grid { max-width: 760px; }
.station-form .row,
.form-grid .row,
.modal-bd .row {
  display: grid;
  grid-template-columns: 106px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
label { color: #475467; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #8fb4ff;
  box-shadow: 0 0 0 3px rgba(40,104,216,.12);
}
textarea { min-height: 92px; resize: vertical; }
.export-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.muted, .hint { color: var(--muted); font-size: 13px; }
.check-stack { display: grid; gap: 7px; }
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-weight: 400;
}
.check-line input { width: auto; min-height: auto; margin: 0; }
.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.segmented button {
  border: 0;
  min-height: 38px;
  background: transparent;
  color: #344054;
  font-weight: 700;
}
.segmented button.active {
  background: var(--blue);
  color: #fff;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.tool-recommend {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #c7d7fe;
  background: #f5f8ff;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}
.tool-recommend strong,
.tool-recommend small {
  display: block;
}
.tool-recommend small {
  color: var(--muted);
  grid-column: 1;
}
.tool-recommend .btn {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.personal-next {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #c7d7fe;
  background: #f5f8ff;
  border-radius: 9px;
}
.personal-next strong,
.personal-next span {
  display: block;
}
.personal-next span {
  color: var(--muted);
  margin-top: 3px;
}
.timeline { display: grid; gap: 10px; margin-top: 12px; }
.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.timeline-item > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--amber);
}
.timeline-item.ok > span { background: var(--green); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); }
.order-no {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
}
.download-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}
.suite-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.suite-card strong, .suite-card small { display: block; }
.suite-card small { color: var(--muted); margin-top: 3px; }
.advanced-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}
.advanced-box summary {
  cursor: pointer;
  color: #475467;
  font-weight: 700;
}
.advanced-box .form-grid { margin-top: 14px; }
.export-result, .inspect-result {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.export-meta { margin: 0 0 12px; padding-left: 18px; }
.export-meta li { margin: 4px 0; }
.download-links { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.admin-stats strong { display: block; font-size: 26px; line-height: 1; }
.admin-stats span { display: block; color: var(--muted); margin-top: 7px; }
.report-summary { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.report-range-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.report-range-btn.active { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.report-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.report-custom-range label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.report-custom-range input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}
.report-group-bars { display: grid; gap: 10px; }
.report-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 48px;
  gap: 10px;
  align-items: center;
}
.report-bar-label { font-size: 13px; font-weight: 600; }
.report-bar-track {
  height: 10px;
  background: #eef2ff;
  border-radius: 999px;
  overflow: hidden;
}
.report-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: 999px;
}
.report-bar-value { text-align: right; font-size: 14px; }
.report-source-list { display: grid; gap: 8px; }
.report-source-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.report-table th, .report-table td { white-space: nowrap; }
.report-source-cell {
  max-width: 220px;
  white-space: normal;
  font-size: 12px;
  color: var(--muted);
}
.report-api-sample {
  margin: 12px 0 0;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}
.api-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.api-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}
.api-step > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
}
.api-step strong, .api-step small { display: block; }
.api-step small { color: var(--muted); margin-top: 3px; }
.api-paste-grid { display: grid; gap: 12px; }
.api-paste-field textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}
.api-paste-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.api-parse-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 13px;
}
.api-parse-preview > div { margin-top: 4px; color: var(--muted); }
.api-advanced { margin-top: 12px; }
.api-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.api-advanced-grid label { display: grid; gap: 4px; font-size: 13px; }
.api-advanced-grid input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.api-token-card { margin-top: 14px; border-color: #bfdbfe; }
.api-token-card .card-hd { background: #f8fbff; }
.api-token-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.api-token-field { grid-column: 1 / -1; }
.api-token-grid label { display: grid; gap: 4px; font-size: 13px; }
.api-token-grid input, .api-token-grid select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.api-token-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.api-token-result.ok { background: #ecfdf5; border: 1px solid #86efac; color: #166534; }
.api-token-result.fail { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.api-copy-row { display: flex; gap: 8px; }
.api-copy-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #f8fafc;
}
.api-url-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.rule-list { display: grid; gap: 10px; }
.rule-list > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #fbfcff;
}
.rule-list strong, .rule-list small { display: block; }
.rule-list small { color: var(--muted); margin-top: 3px; }
.table-wrap { overflow: auto; }
.table-wrap td .btn { position: relative; z-index: 1; pointer-events: auto; }
.table-wrap td:last-child { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-top: 1px solid #edf0f5; text-align: left; }
th { border-bottom: 1px solid #edf0f5; color: #475467; font-weight: 700; }
tr:hover td { background: #fbfcff; }
.toolbar {
  padding: 12px;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.redeem-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.redeem-generate,
.redeem-import-actions,
.redeem-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.redeem-generate label,
.redeem-import-actions label,
.redeem-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475467;
}
.redeem-generate input,
.redeem-generate select,
.redeem-import-actions input,
.redeem-import-actions select,
.redeem-filter select {
  min-width: 88px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.redeem-generate input[type="number"] { width: 72px; min-width: 72px; }
.redeem-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.redeem-import-panel {
  border: 1px dashed #c7d2e3;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfcff;
}
.redeem-import-panel textarea {
  width: 100%;
  min-height: 120px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
}
.redeem-code-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.source-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.source-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #4b5565;
}
.source-form-grid input,
.source-form-grid select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.source-form-grid .check-line {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.source-upload-btn {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.source-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.udid-embed-card { overflow: hidden; }
.udid-embed-hd { justify-content: space-between; }
.udid-embed-links { display: flex; gap: 8px; align-items: center; }
.udid-embed-bd { padding: 0; }
.udid-wrap-embed {
  max-width: none;
  padding: 0;
}
.inspect-summary { list-style: none; margin: 0 0 14px; padding: 0; }
.inspect-summary li {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 7px;
  font-size: 13px;
}
.inspect-summary li.ok { background: #e8fff4; color: #087d50; }
.inspect-summary li.warn { background: #fff7e6; color: #a16207; }
.inspect-summary li.error { background: #ffecec; color: #b42318; }
.inspect-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inspect-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.inspect-panel h4 { margin: 0 0 8px; }
.inspect-panel dl { margin: 0; }
.inspect-panel dt { color: var(--muted); float: left; clear: left; width: 88px; }
.inspect-panel dd { margin: 0 0 4px 92px; word-break: break-all; }
.log {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.log h3 { margin: 0 0 8px; font-size: 14px; }
.log pre {
  margin: 0;
  white-space: pre-wrap;
  color: #475467;
  font-size: 12px;
  min-height: 48px;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.46);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15,23,42,.24);
}
.modal-hd {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.modal-hd h3 { margin: 0; font-size: 18px; }
.modal-hd button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
}
.modal-bd { padding: 18px; }
.modal-ft {
  padding: 0 18px 18px;
  display: flex;
  gap: 8px;
}
.modal-wide { width: min(560px, calc(100vw - 32px)); }
.account-login-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}
.account-login-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}
.account-login-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.modal-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.row-stack { align-items: flex-start !important; }
.row-stack textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.p8-file-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.modal-login-tip {
  margin: 10px 0 0 82px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.modal-login-tip[data-kind="error"] { color: #dd4b39; }
.modal-login-tip[data-kind="ok"] { color: #16855a; }
.modal-login-tip[data-kind="busy"] { color: #856404; }
.verify-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 0 82px;
}
.portal-hero {
  position: relative;
  min-height: calc(100vh - 128px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.62);
  background: #0f172a;
  box-shadow: 0 34px 90px rgba(15,23,42,.22);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(26px, 4vw, 46px);
}

.mobile-page {
  min-height: calc(100vh - 128px);
  display: grid;
  place-items: start center;
  padding: 22px 0 44px;
}
.phone-panel {
  width: min(450px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #edf0f5;
  box-shadow: 0 18px 50px rgba(16,24,40,.09);
  overflow: hidden;
}
.phone-hd {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 18px 20px 8px;
}
.phone-hd h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
}
.phone-hd p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.phone-back {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 28px;
  line-height: 1;
}
.phone-form {
  padding: 14px 20px 22px;
}
.bundle-id-editor {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.bundle-prefix {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  font-size: 12px;
  color: #9ecbff;
  background: rgba(255,255,255,.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58%;
  flex-shrink: 0;
}
.bundle-readonly {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  border-radius: 10px;
}
.bundle-id-editor input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.sign-section-card {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sign-section-card:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.sign-section-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
}
.cert-only-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}
.phone-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.phone-field > span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.phone-field input,
.phone-field select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  box-shadow: none;
}
.phone-input-action input {
  border-radius: 12px 0 0 12px;
}
.phone-input-action button {
  border: 0;
  border-radius: 0 12px 12px 0;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: none;
}
.phone-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(16,24,40,.05);
}
.phone-segment button {
  border: 0;
  background: #fff;
  color: #111827;
  font-weight: 900;
}
.phone-segment button.active {
  background: #f40612;
  color: #fff;
}
.phone-check,
.phone-notice {
  margin: 12px 20px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft-blue);
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 13px;
  line-height: 1.5;
}
.phone-primary,
.phone-secondary {
  width: 100%;
  min-height: 54px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 16px;
}
.phone-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}
.phone-link-btn {
  text-decoration: none;
  display: grid;
  place-items: center;
}
.package-download-panel {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.package-download-panel .hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.sign-cert-panel-wrap {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.sign-cert-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fbfcff;
}
.sign-import-steps {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  font-size: 12px;
  line-height: 1.6;
}
.sign-import-steps code {
  font-size: 11px;
  word-break: break-all;
}
.phone-source-hint code {
  font-size: 11px;
  word-break: break-all;
}
.phone-frame {
  margin-top: 16px;
  height: 460px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow: hidden;
}
.phone-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.phone-secondary {
  margin-top: 16px;
  border: 1px solid #f40612;
  color: #f40612;
  background: #fff;
}
.phone-tip {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.phone-tip[data-kind="ok"] { color: #087d50; }
.phone-tip[data-kind="warn"] { color: #a16207; }
.phone-tip[data-kind="error"] { color: #dd4b39; }
.phone-tip[data-kind="busy"] { color: #2e7de1; }
.phone-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.phone-links button {
  min-height: 42px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}
.sign-shell {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.sign-hero-card,
.sign-step-card,
.sign-form-card,
.sign-more-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.sign-form-card {
  padding: 0;
  overflow: hidden;
}
.sign-card-head {
  padding: 22px 20px 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.06));
  border-bottom: 1px solid var(--line);
}
.sign-card-head h1 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink);
}
.sign-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sign-form-section {
  padding: 18px 20px 4px;
}
.sign-section-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sign-advanced-body {
  padding: 0 0 4px;
}
.sign-more-card {
  padding: 16px 18px 18px;
}
.sign-more-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sign-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sign-more-grid button {
  min-height: 72px;
  display: grid;
  gap: 6px;
  place-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.sign-more-icon {
  font-size: 22px;
  line-height: 1;
}
.bundle-id-editor-light {
  border: 1px solid var(--line);
  background: #f8fafc;
}
.bundle-id-editor-light .bundle-prefix {
  color: #475569;
  background: #eef2ff;
}
.sign-hero-card {
  padding: 28px 22px 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.sign-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 116px;
  background: linear-gradient(135deg, rgba(244,6,18,.12), rgba(46,125,225,.14));
}
.sign-app-icon {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
  border-radius: 22px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #f40612, #2e7de1);
  box-shadow: 0 16px 32px rgba(46,125,225,.24);
}
.sign-hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}
.sign-hero-card p {
  position: relative;
  z-index: 1;
  margin: 8px 0 18px;
  color: var(--muted);
}
.sign-install-main {
  display: block;
  width: calc(100% - 40px);
  margin: 8px 20px 16px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}
.sign-step-card {
  padding: 20px;
}
.sign-advanced-box {
  margin: 0 20px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}
.sign-advanced-box .phone-field {
  margin-left: 14px;
  margin-right: 14px;
}
.sign-advanced-box .phone-secondary {
  width: calc(100% - 28px);
  margin-left: 14px;
  margin-right: 14px;
}
.sign-advanced-box > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #334155;
  list-style: none;
}
.sign-advanced-box > summary::-webkit-details-marker { display: none; }
.sign-advanced-box[open] > summary {
  border-bottom: 1px solid var(--line);
}
.sign-advanced-box .field-hint {
  margin-left: 14px;
  margin-right: 14px;
}
.sign-advanced-box .phone-field:last-of-type { margin-bottom: 14px; }
.sign-form-card .phone-tip,
.sign-form-card .phone-text-guide {
  margin-left: 20px;
  margin-right: 20px;
}
.cert-only-fold { margin-top: 0; }
.sign-query-results {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.sign-query-card {
  border: 1px solid #edf0f5;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.sign-query-card strong { display: block; margin-bottom: 4px; }
.sign-query-card small { color: var(--muted); }
.sign-query-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.phone-hd-plain { padding-left: 0; }
.phone-hd-plain .phone-back { display: none; }
.sign-install-main.phone-link-btn {
  display: block;
  text-align: center;
  line-height: 52px;
  text-decoration: none;
}
.sign-step-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--ink);
}
.sign-steps {
  display: grid;
  gap: 10px;
}
.sign-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 800;
}
.sign-steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f40612, #2e7de1);
}
.sign-more-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.sign-advanced-box {
  margin: 0 20px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}
.sign-advanced-box > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #334155;
  list-style: none;
}
.sign-advanced-box > summary::-webkit-details-marker { display: none; }
.sign-advanced-box[open] > summary {
  border-bottom: 1px solid var(--line);
}
.sign-advanced-box .phone-field,
.sign-advanced-box .field-hint,
.sign-advanced-box .phone-secondary {
  margin-left: 14px;
  margin-right: 14px;
}
.sign-advanced-box .phone-field:last-of-type { margin-bottom: 14px; }
.cert-only-fold { margin-top: 0; }
.sign-more-card button {
  min-height: 46px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font-weight: 900;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  width: min(520px, calc(100% - 24px));
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 6px;
  min-height: 48px;
}
.bottom-nav button.active,
.bottom-nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(7,12,24,.92) 0%, rgba(15,23,42,.78) 42%, rgba(15,23,42,.34) 72%, rgba(15,23,42,.12) 100%),
    radial-gradient(circle at 18% 16%, rgba(20,184,166,.24), transparent 34%),
    radial-gradient(circle at 74% 78%, rgba(59,130,246,.24), transparent 36%);
}
.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.14));
}
.portal-hero .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0f172a;
}
.portal-hero .hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(1.08) contrast(1.02);
  opacity: .78;
}
.portal-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 760px;
}
.portal-copy .eyebrow {
  background: rgba(255,255,255,.12);
  color: #b7f7dd;
  border-color: rgba(183,247,221,.28);
  backdrop-filter: blur(12px);
}
.portal-copy h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(52px, 8vw, 112px);
  line-height: .95;
  letter-spacing: 0;
}
.portal-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 2vw, 22px);
}
.portal-entry-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.portal-entry {
  position: relative;
  min-height: 194px;
  text-align: left;
  padding: 20px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 44px rgba(2,6,23,.20);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.portal-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(16,185,129,.28), rgba(59,130,246,.16));
  transition: opacity .22s ease;
}
.portal-entry:hover {
  transform: translateY(-6px);
  border-color: rgba(183,247,221,.48);
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 24px 64px rgba(2,6,23,.32);
}
.portal-entry:hover::before {
  opacity: 1;
}
.portal-entry strong,
.portal-entry small,
.portal-entry .entry-code {
  position: relative;
  z-index: 1;
  display: block;
}
.entry-code {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #b7f7dd;
  font-weight: 800;
}
.portal-entry strong {
  font-size: clamp(18px, 1.6vw, 24px);
  margin-bottom: 8px;
}
.portal-entry small {
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.portal-hero {
  width: min(450px, 100%);
  min-height: 850px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  grid-template-rows: auto 1fr;
  align-content: start;
}
.portal-hero::before {
  background:
    linear-gradient(180deg, rgba(7,12,24,.88) 0%, rgba(15,23,42,.72) 48%, rgba(15,23,42,.44) 100%),
    radial-gradient(circle at 20% 12%, rgba(20,184,166,.28), transparent 36%),
    radial-gradient(circle at 84% 72%, rgba(59,130,246,.28), transparent 38%);
}
.portal-copy {
  align-self: start;
  padding-top: 18px;
}
.portal-copy h1 {
  font-size: 46px;
  line-height: 1;
}
.portal-copy p {
  font-size: 15px;
}
.portal-entry-grid {
  grid-template-columns: 1fr;
  align-self: end;
}
.portal-entry {
  min-height: 116px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
}
.portal-entry .entry-code {
  margin-bottom: 0;
}
.portal-entry strong {
  margin-bottom: 4px;
}
.portal-ambient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.portal-ambient span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 26px rgba(103,232,249,.9);
  animation: float-dot 7s ease-in-out infinite;
}
.portal-ambient span:nth-child(1) { left: 12%; top: 24%; }
.portal-ambient span:nth-child(2) { left: 54%; top: 17%; animation-delay: -2s; background: #86efac; }
.portal-ambient span:nth-child(3) { right: 12%; bottom: 26%; animation-delay: -4s; background: #93c5fd; }
@keyframes float-dot {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .6; }
  50% { transform: translate3d(14px,-22px,0) scale(1.35); opacity: 1; }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .site-nav { justify-content: flex-start; flex-wrap: wrap; }
  .site-actions { flex-wrap: wrap; }
  .hero-site,
  .station-grid,
  .inspect-details,
  .admin-stats,
  .workflow-steps,
  .service-grid,
  .choice-grid,
  .assurance-band,
  .compact-head {
    grid-template-columns: 1fr;
  }
  .purpose-tabs, .input-action, .tool-recommend {
    grid-template-columns: 1fr;
  }
  .tool-recommend .btn {
    grid-row: auto;
    grid-column: auto;
  }
  .hero-site {
    min-height: auto;
    padding: 34px 0 260px;
    align-items: start;
    gap: 20px;
  }
  .hero-site::before {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 60%, rgba(255,255,255,.38) 100%);
  }
  .hero-copy { padding: 0 20px; }
  .hero-console { margin: 0 20px; }
  .hero-visual, .hero-visual img { min-height: 100%; }
  .choice-card, .service-card { min-height: 148px; }
  .assurance-band {
    padding: 22px;
  }
  .form-grid .row, .station-form .row, .modal-bd .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-main {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }
  .site-actions .pill,
  .site-actions #verPill {
    display: none;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-actions .btn,
  .console-footer .btn,
  .export-actions .btn {
    width: 100%;
  }
  .console-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .console-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .purpose-tabs,
  .segmented {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .portal-hero {
    min-height: 850px;
  }
  .portal-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-hero {
    border-radius: 20px;
    padding: 24px;
  }
  .portal-copy h1 {
    font-size: 52px;
  }
  .portal-entry-grid {
    grid-template-columns: 1fr;
  }
  .portal-entry {
    min-height: 142px;
  }
  .entry-code {
    margin-bottom: 22px;
  }
  .mobile-page {
    padding: 10px 0 24px;
  }
  .phone-panel {
    border-radius: 16px;
  }
  .phone-input-action {
    grid-template-columns: 1fr 98px;
  }
  .phone-links {
    grid-template-columns: 1fr;
  }
}

.phone-text-guide {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #f9fafb;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
}
.phone-text-guide-muted {
  background: #fff;
  color: #667085;
}
.contact-page {
  gap: 16px;
}
.contact-disclaimer {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #f9fafb;
  color: #344054;
  font-size: 13px;
  line-height: 1.75;
}
.contact-qq-card {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 42%);
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.contact-qq-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-qq-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(18,183,245,.28);
}
.contact-qq-avatar .qq-logo-img,
.qq-float .qq-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contact-qq-avatar {
  background: #fff;
  padding: 4px;
}
.contact-qq-meta {
  display: grid;
  gap: 4px;
}
.contact-qq-label {
  font-size: 12px;
  font-weight: 800;
  color: #667085;
}
.contact-qq-meta strong {
  font-size: 28px;
  letter-spacing: .06em;
  color: #101828;
  line-height: 1.1;
}
.contact-qq-tip {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  line-height: 1.65;
}
.contact-qq-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-action {
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.contact-action-copy {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}
.contact-action-open {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #12b7f5, #0099ff);
  box-shadow: 0 8px 22px rgba(18,183,245,.28);
}
.qq-float {
  position: fixed;
  right: max(14px, calc(50% - 250px));
  bottom: calc(14px + 66px + 14px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 10px 28px rgba(18,183,245,.38);
  cursor: pointer;
}
.qq-float-icon {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.qq-float:hover {
  filter: brightness(1.05);
  transform: scale(1.04);
}
@media (max-width: 640px) {
  .qq-float,
  .qq-float-icon {
    width: 48px;
    height: 48px;
  }
  .qq-float {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + 66px + env(safe-area-inset-bottom, 0px));
  }
  .contact-qq-meta strong {
    font-size: 24px;
  }
}

/* ── Mobile-first layout (phones) ── */
@media (max-width: 480px) {
  .site-main {
    width: 100%;
    margin: 0;
    padding: 12px 14px calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-page {
    min-height: calc(100dvh - 120px - env(safe-area-inset-bottom, 0px));
    width: 100%;
    padding: 4px 0 20px;
    place-items: stretch center;
  }
  .sign-shell {
    width: 100%;
    gap: 12px;
  }
  .phone-panel,
  .sign-form-card,
  .sign-more-card {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.07);
  }
  .sign-form-card,
  .sign-more-card {
    padding: 18px 16px;
  }
  .phone-hd {
    padding: 16px 16px 6px;
  }
  .phone-hd h2 {
    font-size: 20px;
  }
  .phone-form {
    padding: 12px 16px 20px;
  }
  .phone-field input,
  .phone-field select {
    min-height: 48px;
    width: 100%;
  }
  .phone-input-action {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .phone-input-action input {
    border-radius: 12px;
  }
  .phone-input-action button {
    border-radius: 12px;
    min-height: 48px;
    font-size: 15px;
  }
  .phone-segment {
    min-height: 48px;
  }
  .phone-segment button {
    font-size: 13px;
    padding: 10px 6px;
  }
  .phone-primary,
  .phone-secondary {
    min-height: 52px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .phone-text-guide {
    font-size: 13px;
    padding: 12px 14px;
  }
  .sign-more-card button {
    min-height: 48px;
    font-size: 15px;
  }
  .bottom-nav {
    width: calc(100% - 20px);
    max-width: 460px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    gap: 2px;
  }
  .bottom-nav button {
    font-size: 11px;
    padding: 8px 2px;
    line-height: 1.25;
    min-height: 44px;
  }
  .contact-qq-actions {
    grid-template-columns: 1fr;
  }
  .contact-action {
    min-height: 50px;
    font-size: 15px;
  }
  .advanced-box summary {
    font-size: 14px;
    padding: 10px 0;
  }
}

@media (max-width: 360px) {
  .bottom-nav button {
    font-size: 10px;
    letter-spacing: -0.02em;
  }
  .phone-segment button {
    font-size: 12px;
  }
}

/* —— 管理后台：左菜单 + 右侧内容 —— */
body.admin-mode {
  padding-bottom: 0;
  background: #eef1f6;
}
body.admin-mode .bottom-nav,
body.admin-mode .qq-float {
  display: none !important;
}
body.admin-mode .site-main {
  max-width: none;
  padding: 0;
}
body.admin-mode #offlineAlert {
  margin: 12px 16px 0;
  border-radius: 10px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 20px);
}
.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}
.admin-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand strong {
  display: block;
  font-size: 17px;
  color: #fff;
}
.admin-brand small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}
.admin-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.admin-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 11px 20px;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.admin-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.admin-nav-item.active {
  color: #fff;
  background: rgba(37,99,235,.22);
  box-shadow: inset 3px 0 0 #3b82f6;
}
.admin-sidebar-foot {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.admin-back-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
}
.admin-back-link:hover { color: #cbd5e1; }
.admin-main {
  padding: 24px 28px 40px;
  overflow: auto;
  min-width: 0;
}
.admin-page-head {
  margin-bottom: 18px;
}
.admin-page-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink);
}
.admin-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.admin-page .card {
  margin-bottom: 0;
}
.admin-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-filter-row label {
  min-width: 72px;
  color: #475467;
  font-weight: 600;
}
.admin-filter-row select {
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.group-add-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.group-add-row input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-log-panel {
  margin-top: 16px;
}
.admin-log-hd {
  font-size: 13px;
  font-weight: 700;
  color: #475467;
  margin-bottom: 8px;
}
.admin-log-box {
  margin: 0;
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow: auto;
}
.pool-group-select {
  min-width: 88px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
  }
  .admin-nav-item {
    width: auto;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
  }
  .admin-nav-item.active {
    box-shadow: none;
    background: rgba(37,99,235,.35);
  }
  .admin-main {
    padding: 16px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
