/* ==========================================================================
   集装箱竞拍 · 设备激活中心
   深色工业风 / 无外部依赖 / 响应式 / 打印友好
   ========================================================================== */

:root {
  --bg: #070d18;
  --bg-2: #0a1322;
  --panel: rgba(15, 27, 47, 0.72);
  --panel-solid: #0f1b2f;
  --panel-2: #13233c;
  --line: rgba(148, 178, 219, 0.14);
  --line-strong: rgba(148, 178, 219, 0.26);
  --text: #e9effb;
  --text-soft: #c7d4e8;
  --muted: #8fa2bf;
  --muted-2: #6e819e;
  --accent: #ff7a1a;
  --accent-2: #ffb15c;
  --accent-3: #ff5d3a;
  --teal: #38d9c0;
  --teal-soft: rgba(56, 217, 192, 0.12);
  --danger: #ff5d6c;
  --warning: #ffbd5a;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(255, 122, 26, 0.35);
  color: #fff;
}

a {
  color: var(--accent-2);
}

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
  letter-spacing: 0.02em;
}

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

.accent-text {
  color: var(--accent-2);
}

.nowrap {
  white-space: nowrap;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #1a0d02;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   背景
   -------------------------------------------------------------------------- */

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(255, 122, 26, 0.13), transparent 62%),
    radial-gradient(900px 560px at 88% -4%, rgba(56, 217, 192, 0.09), transparent 58%),
    linear-gradient(180deg, #070d18 0%, #08101e 46%, #060b14 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-a {
  top: -190px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 66%);
}

.orb-b {
  top: -140px;
  right: -200px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(56, 217, 192, 0.14), transparent 68%);
}

.orb-c {
  bottom: -260px;
  left: 38%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(87, 125, 255, 0.1), transparent 68%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 219, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 219, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 78%);
}

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */

.page-shell {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.reveal {
  animation: reveal-up 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   品牌 / 页头
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 5;
  padding: 26px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header--compact {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--accent);
  filter: drop-shadow(0 0 16px rgba(255, 122, 26, 0.4));
}

.brand-mark .mark-accent {
  stroke: var(--teal);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-text span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.brand--small .brand-mark {
  width: 34px;
  height: 34px;
}

.brand--small .brand-text strong {
  font-size: 15px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(56, 217, 192, 0.25);
  border-radius: 999px;
  background: rgba(56, 217, 192, 0.07);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill--warn {
  border-color: rgba(255, 189, 90, 0.28);
  background: rgba(255, 189, 90, 0.08);
  color: var(--warning);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(56, 217, 192, 0.12);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(56, 217, 192, 0.1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(56, 217, 192, 0.03);
  }
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 46px 0 8px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 177, 92, 0.24);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.06);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 4.7vw, 62px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #ffd09a 0%, #ff9a3d 42%, #ff6a00 78%, #ff5d3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 540px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 9px;
  background: rgba(255, 122, 26, 0.07);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.step-text {
  display: flex;
  flex-direction: column;
  padding-top: 1px;
}

.step-text strong {
  font-size: 14px;
  font-weight: 650;
}

.step-text span {
  color: var(--muted);
  font-size: 12.5px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 27, 47, 0.55);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
}

.trust-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   激活卡片
   -------------------------------------------------------------------------- */

.activate-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(255, 122, 26, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(19, 35, 60, 0.94), rgba(9, 18, 32, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.activate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--teal) 70%, transparent);
  opacity: 0.9;
}

.activate-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.12), transparent 68%);
  pointer-events: none;
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  border: 1px solid rgba(56, 217, 192, 0.22);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.card-badge .icon {
  width: 13px;
  height: 13px;
}

.activate-form {
  position: relative;
  z-index: 1;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.field .hint {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
}

.input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 12, 23, 0.72);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
  color: #566883;
}

.input:hover {
  border-color: var(--line-strong);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(5, 12, 23, 0.92);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.input--code {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input--device {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.26em;
}

.input--device::placeholder {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.field-hint {
  margin: 7px 2px 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.code-textarea {
  width: 100%;
  height: auto;
  min-height: 220px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 12, 23, 0.72);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.code-textarea::placeholder {
  color: #566883;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.8;
}

.code-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.result-code-textarea {
  min-height: 320px;
  margin-top: 14px;
  font-size: 13px;
}

.input--number {
  max-width: 240px;
  font-family: var(--mono);
  font-size: 18px;
}

.input--select {
  width: auto;
  min-width: 260px;
  max-width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}

.product-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-switcher label {
  color: var(--muted);
  font-size: 12px;
}

.file-input {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 12, 23, 0.45);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.file-input::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(148, 178, 219, 0.08);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

.generate-tip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 189, 90, 0.2);
  border-radius: 11px;
  background: rgba(255, 189, 90, 0.05);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.generate-tip strong {
  color: var(--warning);
  font-size: 12px;
}

.rules-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
}

.rules-list li::marker {
  color: var(--accent-2);
}

.rules-list strong {
  color: var(--text-soft);
}

.rules-list--numbered {
  list-style: decimal;
}

.invalid-list {
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 12px 14px 12px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 12, 23, 0.45);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.invalid-list li {
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9a3d 0%, #ff7a1a 48%, #ff6500 100%);
  color: #1d0d01;
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(255, 106, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border-color: rgba(255, 177, 92, 0.28);
  background: rgba(255, 122, 26, 0.1);
  color: var(--accent-2);
}

.btn-secondary:hover {
  border-color: rgba(255, 177, 92, 0.5);
  background: rgba(255, 122, 26, 0.16);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(15, 27, 47, 0.5);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(148, 178, 219, 0.42);
  background: rgba(19, 35, 60, 0.7);
  color: var(--text);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.activate-form .btn-block {
  margin-top: 4px;
  height: 54px;
  font-size: 15px;
}

.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}

.card-foot .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   提示条
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 93, 108, 0.3);
  border-radius: 12px;
  background: rgba(255, 93, 108, 0.08);
  color: #ffc3c8;
  font-size: 13px;
  line-height: 1.55;
}

.alert .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--danger);
}

.alert-maintenance {
  border-color: rgba(255, 189, 90, 0.3);
  background: rgba(255, 189, 90, 0.08);
  color: #ffe2ab;
}

.alert-maintenance .icon {
  color: var(--warning);
}

.alert-used {
  border-color: rgba(255, 189, 90, 0.3);
  background: rgba(255, 189, 90, 0.08);
  color: #ffe2ab;
}

.alert-used .icon {
  color: var(--warning);
}

.alert-error {
  border-color: rgba(255, 93, 108, 0.3);
  background: rgba(255, 93, 108, 0.08);
  color: #ffc3c8;
}

.alert-error .icon {
  color: var(--danger);
}

.alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   特点
   -------------------------------------------------------------------------- */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 22, 39, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.25);
  background: rgba(15, 27, 47, 0.7);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.07);
  color: var(--accent-2);
}

.feature-icon .icon {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   FAQ / 通用区块
   -------------------------------------------------------------------------- */

.section {
  padding: 74px 0 10px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq {
  display: grid;
  gap: 11px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 22, 39, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(255, 122, 26, 0.24);
  background: rgba(15, 27, 47, 0.7);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s ease, color 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-2);
}

.faq-body {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.faq-contact {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.faq-contact strong {
  color: var(--text);
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 189, 90, 0.18);
  border-radius: 14px;
  background: rgba(255, 189, 90, 0.05);
}

.safety-icon {
  color: var(--warning);
}

.safety-icon .icon {
  width: 18px;
  height: 18px;
}

.safety-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.safety-note strong {
  color: var(--warning);
}

/* --------------------------------------------------------------------------
   软件选择
   -------------------------------------------------------------------------- */

.software-hero {
  padding: 54px 0 26px;
}

.software-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: center;
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 122, 26, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(19, 35, 60, 0.78), rgba(9, 18, 32, 0.88));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 177, 92, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.08);
  color: var(--accent-2);
}

.product-icon .icon {
  width: 22px;
  height: 22px;
}

.product-card h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.product-card > p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.product-card__stats {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

.product-card__stats strong {
  display: block;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.product-slug {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
  opacity: 0.7;
}

.software-note {
  margin-top: 28px;
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .software-hero {
    padding-top: 36px;
  }
}

/* --------------------------------------------------------------------------
   结果页
   -------------------------------------------------------------------------- */

.result-wrap {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 80px;
}

.result-card {
  padding: 46px 40px 38px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(56, 217, 192, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(19, 35, 60, 0.94), rgba(8, 16, 29, 0.97));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border: 1px solid rgba(56, 217, 192, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 217, 192, 0.28), rgba(56, 217, 192, 0.06));
  color: var(--teal);
  box-shadow: 0 0 0 10px rgba(56, 217, 192, 0.04), 0 18px 40px rgba(56, 217, 192, 0.18);
  animation: success-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.success-mark .icon {
  width: 38px;
  height: 38px;
  stroke-width: 2.2;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-kicker {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.result-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.result-lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.code-panel {
  margin: 28px 0 24px;
  padding: 26px 20px 24px;
  border: 1px dashed rgba(255, 177, 92, 0.32);
  border-radius: 18px;
  background: rgba(5, 12, 23, 0.55);
}

.code-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.activation-code {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(38px, 7.2vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-shadow: 0 0 26px rgba(255, 177, 92, 0.28);
}

.btn-copy {
  margin-top: 18px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: rgba(9, 18, 32, 0.92);
}

.meta-label {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.meta-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.1em;
}

.meta-value--small {
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.result-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 189, 90, 0.22);
  border-radius: 12px;
  background: rgba(255, 189, 90, 0.06);
  color: #ffe2ab;
  font-size: 12.5px;
  line-height: 1.65;
  text-align: left;
}

.result-warning .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--warning);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.result-foot {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   错误页
   -------------------------------------------------------------------------- */

.error-card {
  position: relative;
  padding: 56px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(19, 35, 60, 0.94), rgba(9, 18, 32, 0.97));
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  position: absolute;
  top: 18px;
  right: 26px;
  color: rgba(148, 178, 219, 0.12);
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.error-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 189, 90, 0.28);
  border-radius: 18px;
  background: rgba(255, 189, 90, 0.08);
  color: var(--warning);
}

.error-icon .icon {
  width: 30px;
  height: 30px;
}

.error-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 750;
}

.error-card p {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Flash
   -------------------------------------------------------------------------- */

.flash-stack {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 18px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(19, 35, 60, 0.92);
  color: var(--text-soft);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.flash + .flash {
  margin-top: 8px;
}

.flash-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.flash-success {
  border-color: rgba(56, 217, 192, 0.3);
  background: rgba(56, 217, 192, 0.08);
  color: #b8fff2;
}

.flash-success .flash-dot {
  background: var(--teal);
}

.flash-error {
  border-color: rgba(255, 93, 108, 0.3);
  background: rgba(255, 93, 108, 0.08);
  color: #ffc3c8;
}

.flash-error .flash-dot {
  background: var(--danger);
}

.flash-info .flash-dot {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.6);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 24px 0;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-mark {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.5);
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   管理后台
   -------------------------------------------------------------------------- */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  padding: 12px 0;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.admin-nav__link .icon {
  width: 15px;
  height: 15px;
}

.admin-nav__link:hover {
  background: rgba(148, 178, 219, 0.06);
  color: var(--text);
}

.admin-nav__link.is-active {
  background: rgba(255, 122, 26, 0.09);
  color: var(--accent-2);
}

.admin-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-user .icon {
  width: 14px;
  height: 14px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.admin-main {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.admin-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding: 34px 0 70px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.admin-page-head h1 {
  margin: 5px 0 5px;
  font-size: 31px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.admin-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.batch-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 27, 47, 0.6);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.batch-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 35, 60, 0.7), rgba(10, 20, 35, 0.72));
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.1), transparent 68%);
  pointer-events: none;
}

.stat-card--used::after {
  background: radial-gradient(circle, rgba(56, 217, 192, 0.12), transparent 68%);
}

.stat-card--left::after {
  background: radial-gradient(circle, rgba(255, 177, 92, 0.1), transparent 68%);
}

.stat-card--today::after {
  background: radial-gradient(circle, rgba(87, 125, 255, 0.12), transparent 68%);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(148, 178, 219, 0.05);
  color: var(--accent-2);
}

.stat-icon .icon {
  width: 17px;
  height: 17px;
}

.stat-card--used .stat-icon {
  color: var(--teal);
}

.stat-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}

.stat-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-hint {
  color: var(--muted-2);
  font-size: 10.5px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 18px;
}

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

.codes-grid > .panel {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 35, 60, 0.7), rgba(10, 20, 35, 0.72));
}

.summary-label {
  color: var(--muted);
  font-size: 11px;
}

.summary-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.summary-hint {
  color: var(--muted-2);
  font-size: 10px;
}

.summary-card--total {
  border-color: rgba(56, 217, 192, 0.24);
  background: linear-gradient(180deg, rgba(56, 217, 192, 0.08), rgba(10, 20, 35, 0.72));
}

.summary-card--total .summary-value {
  color: var(--teal);
}

.added-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-stack > .panel {
  margin-bottom: 0;
}

.status-list {
  display: grid;
  gap: 2px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 178, 219, 0.07);
  font-size: 11.5px;
}

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

.status-row span {
  color: var(--muted);
}

.status-row strong {
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.status-row .is-ok {
  color: var(--teal);
}

.status-row .is-bad {
  color: var(--danger);
}

.status-row .is-warn {
  color: var(--warning);
}

.status-row .is-muted {
  color: var(--muted-2);
  font-family: var(--mono);
  font-weight: 500;
}

.panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 53, 0.72), rgba(9, 18, 32, 0.72));
}

.admin-grid > .panel {
  margin-bottom: 0;
}

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

.panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.panel-sub {
  margin: 3px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
}

.panel-meta {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(148, 178, 219, 0.05);
  color: var(--muted);
}

.panel-icon .icon {
  width: 16px;
  height: 16px;
}

.panel-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}

.panel-link {
  color: var(--accent-2);
  font-size: 11.5px;
  text-decoration: none;
  white-space: nowrap;
}

.panel-link:hover {
  text-decoration: underline;
}

.percent-badge {
  padding: 4px 9px;
  border: 1px solid rgba(56, 217, 192, 0.22);
  border-radius: 7px;
  background: rgba(56, 217, 192, 0.08);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 178, 219, 0.09);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--teal));
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.35);
  transition: width 0.5s ease;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 8px;
}

.chart-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 168px;
  padding-top: 8px;
}

.chart-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
  min-width: 0;
}

.chart-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chart-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: 0 2px;
}

.chart-bar {
  display: block;
  width: 100%;
  max-width: 30px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 154, 61, 0.95), rgba(255, 106, 0, 0.35));
  transform-origin: bottom;
  animation: chart-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.chart-col:nth-child(even) .chart-bar {
  background: linear-gradient(180deg, rgba(56, 217, 192, 0.8), rgba(56, 217, 192, 0.22));
}

@keyframes chart-grow {
  from {
    transform: scaleY(0.05);
    opacity: 0.4;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.chart-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form .field {
  margin-bottom: 0;
}

.stack-form .btn {
  margin-top: 2px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.export-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 16, 29, 0.45);
}

.export-box h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.export-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.export-box .field {
  margin: 4px 0 0;
}

.export-box .btn {
  margin-top: auto;
}

.export-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(148, 178, 219, 0.04);
  color: var(--muted);
  font-size: 11.5px;
}

.export-stat strong {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 13px;
}

.security-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.security-line .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--teal);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.security-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 16, 29, 0.4);
}

.security-item strong {
  display: block;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}

.security-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

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

.data-table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 178, 219, 0.075);
  color: var(--text-soft);
  vertical-align: middle;
}

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

.data-table tbody tr:hover td {
  background: rgba(148, 178, 219, 0.035);
}

.muted-code {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.audit-detail {
  max-width: 460px;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 178, 219, 0.05);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge .icon {
  width: 12px;
  height: 12px;
}

.badge-used {
  border-color: rgba(255, 189, 90, 0.25);
  background: rgba(255, 189, 90, 0.08);
  color: var(--warning);
}

.badge-ok {
  border-color: rgba(56, 217, 192, 0.25);
  background: rgba(56, 217, 192, 0.08);
  color: var(--teal);
}

.badge-bad {
  border-color: rgba(255, 93, 108, 0.25);
  background: rgba(255, 93, 108, 0.08);
  color: var(--danger);
}

.badge-neutral {
  color: var(--muted);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: rgba(8, 16, 29, 0.3);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(148, 178, 219, 0.04);
  color: var(--muted-2);
}

.empty-icon .icon {
  width: 22px;
  height: 22px;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.code-hero {
  margin: 4px 0 20px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 177, 92, 0.3);
  border-radius: 13px;
  background: rgba(5, 12, 23, 0.5);
  color: var(--accent-2);
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  background: rgba(9, 18, 32, 0.92);
}

.detail-item span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.detail-item strong {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   登录页
   -------------------------------------------------------------------------- */

.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 210px);
  padding: 20px 0 70px;
}

.auth-wrap {
  width: min(440px, calc(100% - 48px));
}

.auth-card {
  padding: 34px 32px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(255, 122, 26, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(19, 35, 60, 0.94), rgba(8, 16, 29, 0.97));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 15px;
  background: rgba(255, 122, 26, 0.08);
  color: var(--accent-2);
}

.auth-icon .icon {
  width: 24px;
  height: 24px;
}

.auth-card h1 {
  margin: 6px 0 6px;
  font-size: 26px;
  font-weight: 780;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-form {
  text-align: left;
}

.auth-form .btn {
  margin-top: 8px;
}

.auth-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: left;
}

.auth-foot .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero {
    padding-top: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero__copy {
    max-width: 680px;
  }

  .activate-card {
    width: min(600px, 100%);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .codes-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .feature-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .feature h3 {
    margin-top: 2px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-header__inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 0;
  }

  .admin-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-header__right {
    margin-left: auto;
  }

  .admin-page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 20px 0;
  }

  .status-pill {
    display: none;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero__lead {
    font-size: 14px;
  }

  .activate-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .card-head {
    flex-wrap: wrap;
  }

  .section {
    padding-top: 56px;
  }

  .result-wrap {
    width: calc(100% - 32px);
    padding-top: 10px;
  }

  .result-card {
    padding: 34px 20px 28px;
    border-radius: 20px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }

  .export-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-shell {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .panel {
    padding: 18px;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-value {
    font-size: 25px;
  }

  .chart {
    gap: 4px;
  }

  .chart-bar-wrap {
    height: 96px;
  }

  .chart-label {
    font-size: 8.5px;
  }

  .auth-wrap {
    width: calc(100% - 32px);
  }

  .auth-card {
    padding: 28px 20px 24px;
  }

  .flash-stack {
    width: calc(100% - 32px);
  }
}

@media (max-width: 520px) {
  .brand-text span {
    display: none;
  }

  .header-link {
    font-size: 12px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .admin-user {
    display: none;
  }

  .admin-header__inner {
    width: calc(100% - 32px);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 560px;
  }

  .code-hero {
    font-size: 18px;
    padding: 14px;
  }

  .site-footer__meta {
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   减少动态效果 / 打印
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .page-backdrop,
  .site-header,
  .site-footer,
  .result-actions,
  .result-foot,
  .flash-stack,
  .skip-link {
    display: none !important;
  }

  .result-wrap {
    width: 100%;
    padding: 0;
  }

  .result-card {
    padding: 0;
    border: 0;
    background: #fff !important;
    box-shadow: none;
    color: #111;
  }

  .success-mark {
    width: 64px;
    height: 64px;
    border-color: #0a8f7d;
    background: #e7faf6;
    color: #0a8f7d;
    box-shadow: none;
  }

  .result-kicker {
    color: #0a8f7d;
  }

  .result-lead,
  .result-foot,
  .meta-label,
  .result-warning {
    color: #444 !important;
  }

  .code-panel {
    border: 1px solid #bbb;
    background: #f7f7f7;
  }

  .activation-code {
    color: #111;
    text-shadow: none;
  }

  .meta-grid {
    border-color: #ccc;
    background: #ccc;
  }

  .meta-item {
    background: #fff;
  }

  .meta-value,
  .meta-value--small {
    color: #111;
  }

  .result-warning {
    border-color: #d9b26a;
    background: #fffaf0;
  }
}
