:root {
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --text: #111111;
  --muted: #62666f;
  --line: #d9dbe1;
  --accent: #002fa7;
  --next: #e4002b;
  --accent-ink: #ffffff;
  --accent-soft: #dfe8ff;
  --silver: #edf0f5;
  --glass: rgba(255, 255, 255, 0.72);
  --gold: #9b7b3f;
  --danger: #b42318;
  --success: #067647;
  --radius: 8px;
  --shadow: 0 30px 80px rgba(18, 28, 45, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%, transparent 25%),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 1px), var(--line) calc(75% - 1px), var(--line) 75%, transparent 75%),
    var(--surface);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.3;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.top-links a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.top-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.top-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.console-link {
  color: var(--accent);
}

main {
  width: 100%;
  margin: 0 auto;
}

.auth-stage {
  --mx: 50%;
  --my: 48%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 248, 0.72) 46%, rgba(237, 240, 245, 0.94)),
    var(--surface);
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  background:
    linear-gradient(104deg, transparent 0 28%, rgba(0, 47, 167, 0.08) 36%, transparent 50%),
    linear-gradient(74deg, transparent 0 50%, rgba(155, 123, 63, 0.08) 58%, transparent 70%),
    radial-gradient(circle at var(--mx) var(--my), rgba(0, 47, 167, 0.12), transparent 28%);
  transition: background-position 420ms ease;
}

.auth-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.52) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 82%);
  pointer-events: none;
}

.auth-visual,
.auth-panel {
  position: relative;
  min-width: 0;
}

.auth-visual {
  display: grid;
  align-content: space-between;
  gap: clamp(28px, 5vh, 54px);
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 8vh, 92px) clamp(48px, 7vw, 128px) clamp(42px, 7vh, 76px);
  border-right: 1px solid var(--line);
}

.auth-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-ring,
.ambient-line,
.ambient-panel {
  position: absolute;
  display: block;
}

.ambient-ring {
  border: 1px solid rgba(0, 47, 167, 0.18);
  border-radius: 50%;
  animation: orbitBreathe 10s ease-in-out infinite;
}

.ring-one {
  width: min(42vw, 740px);
  height: min(42vw, 740px);
  right: -8vw;
  top: 2vh;
}

.ring-two {
  width: min(22vw, 390px);
  height: min(22vw, 390px);
  right: 9vw;
  top: 20vh;
  border-color: rgba(155, 123, 63, 0.16);
  animation-delay: -4s;
}

.ambient-line {
  height: 1px;
  width: 62%;
  background: linear-gradient(90deg, transparent, rgba(0, 47, 167, 0.42), transparent);
  transform: rotate(-19deg);
  animation: lineDrift 8s ease-in-out infinite;
}

.line-one {
  left: -10%;
  top: 28%;
}

.line-two {
  left: 18%;
  bottom: 22%;
  background: linear-gradient(90deg, transparent, rgba(155, 123, 63, 0.35), transparent);
  animation-delay: -3s;
}

.ambient-panel {
  width: 210px;
  height: 120px;
  border: 1px solid rgba(0, 47, 167, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12));
  transform: skewX(-14deg) rotate(-12deg);
}

.panel-one {
  left: 36px;
  bottom: 148px;
}

.panel-two {
  right: 54px;
  bottom: 60px;
  width: 130px;
  height: 82px;
  border-color: rgba(155, 123, 63, 0.14);
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: min(860px, 78%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: clamp(20px, 3vh, 34px);
  font-size: clamp(58px, 8.2vw, 136px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-visual-copy > p:last-child,
.auth-card-copy,
.section-title p,
.panel-heading p,
.journey-card p,
.metric-card p,
.download-box p,
.release-spec-grid p,
.release-detail-grid p,
.form-note {
  color: var(--muted);
  line-height: 1.75;
}

.auth-visual-copy > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(16px, 1.1vw, 20px);
}

.journey-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(100%, 980px);
  max-width: none;
  border: 1px solid rgba(217, 219, 225, 0.88);
  background: rgba(217, 219, 225, 0.92);
  box-shadow: 0 18px 50px rgba(18, 28, 45, 0.08);
}

.journey-card {
  min-height: clamp(118px, 14vh, 172px);
  padding: clamp(16px, 2.2vw, 26px);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.journey-card.active,
.auth-stage[data-focus-field="account"] .journey-card[data-step-card="account"],
.auth-stage[data-focus-field="code"] .journey-card[data-step-card="code"],
.auth-stage[data-focus-field="client"] .journey-card[data-step-card="client"],
.auth-stage[data-focus-field="activate"] .journey-card[data-step-card="activate"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 47, 167, 0.18);
  transform: translateY(-2px);
}

.journey-card span {
  display: block;
  margin-bottom: clamp(10px, 1.5vh, 16px);
  color: var(--accent);
  font-size: clamp(28px, 2.7vw, 44px);
  line-height: 1;
  font-weight: 800;
}

.journey-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(16px, 1.1vw, 20px);
}

.journey-card p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.55;
}

.auth-panel {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vh, 92px) clamp(44px, 5vw, 88px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(237, 240, 245, 0.56)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
}

.account-layout {
  width: min(1320px, calc(100% - 40px));
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.section-title {
  min-height: 430px;
  padding: 54px 48px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.section-title h2,
.account-header h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-title p:last-child {
  max-width: 520px;
  margin-bottom: 0;
}

.auth-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(32px, 3.4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), #8ea8ff, transparent);
  animation: cardLineBreathe 3.6s ease-in-out infinite;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

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

.auth-card-head h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.auth-status-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(6, 118, 71, 0.12);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.auth-card-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  font-size: 14px;
}

.tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid rgba(217, 219, 225, 0.9);
  border-radius: var(--radius);
  background: rgba(247, 247, 248, 0.86);
  overflow: hidden;
}

.tabs::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: calc(var(--radius) - 3px);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(18, 28, 45, 0.12);
  transition: transform 260ms ease;
}

.auth-card[data-mode="register"] .tabs::before {
  transform: translateX(100%);
}

.tab-button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button.active {
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  animation: formEnter 260ms ease both;
}

.auth-form.hidden,
.hidden {
  display: none !important;
}

label {
  position: relative;
  display: grid;
  gap: 8px;
}

label span {
  font-size: 13px;
  font-weight: 700;
}

.registration-binding-note {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(204, 209, 218, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 47, 167, 0.1), inset 0 -2px 0 var(--accent);
  transform: translateY(-1px);
}

.register-code-field {
  display: grid;
  gap: 8px;
}

.register-code-field > span {
  font-size: 13px;
  font-weight: 700;
}

.register-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: stretch;
  gap: 0;
}

.register-code-row input {
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(241, 246, 255, 0.96);
}

.register-code-row .button {
  min-height: 54px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: none;
  white-space: nowrap;
}

.register-code-row .button:hover {
  transform: none;
}

.password-field input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 9px;
  min-width: 54px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.password-toggle:hover {
  background: rgba(0, 47, 167, 0.08);
  transform: translateY(-1px);
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 47, 167, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, #002fa7, #0b43c8 62%, #153fb0);
  color: var(--accent-ink);
  box-shadow: 0 16px 36px rgba(0, 47, 167, 0.32);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.74);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 47, 167, 0.16);
}

.button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.auth-link-button {
  width: fit-content;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-link-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recovery-link {
  margin-top: -8px;
}

.inline-message {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 22px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 219, 225, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.inline-message:empty {
  display: none;
}

.inline-message.success {
  border-color: rgba(6, 118, 71, 0.24);
  background: rgba(6, 118, 71, 0.07);
  color: var(--success);
}

.inline-message.error {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
}

.inline-message.info {
  border-color: rgba(0, 47, 167, 0.22);
  background: rgba(0, 47, 167, 0.07);
  color: var(--accent);
}

.inline-message-title {
  margin: 0 0 6px;
  font-weight: 900;
}

.inline-message-body {
  margin: 0;
}

.inline-message-steps {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.auth-assurance {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
}

.auth-assurance span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

@keyframes cardLineBreathe {
  0%, 100% {
    opacity: 0.42;
    transform: translateX(-18%);
  }
  50% {
    opacity: 1;
    transform: translateX(18%);
  }
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(6, 118, 71, 0.12);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(6, 118, 71, 0.04);
  }
}

@keyframes orbitBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.48;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.78;
  }
}

@keyframes lineDrift {
  0%, 100% {
    transform: translateX(-18px) rotate(-19deg);
    opacity: 0.38;
  }
  50% {
    transform: translateX(24px) rotate(-19deg);
    opacity: 0.82;
  }
}

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

.account-layout {
  padding-bottom: 48px;
  background: var(--surface);
}

.account-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, auto);
  gap: 28px;
  align-items: start;
  padding: 34px 40px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 47, 167, 0.055), transparent 42%),
    var(--surface);
}

.account-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.account-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.identity-chip strong {
  margin-left: 6px;
  color: var(--text);
  font-weight: 800;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 520px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric-card {
  min-height: 132px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.metric-card:nth-child(even) {
  background: var(--surface-soft);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.metric-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.status-grid.compact {
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}

.status-grid.compact .metric-card {
  min-height: 140px;
  padding: 22px;
}

.status-grid.compact .metric-card span {
  margin-bottom: 18px;
}

.role-workspace {
  border-bottom: 1px solid var(--line);
}

.license-flow-panel {
  padding: 34px 40px 32px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 47, 167, 0.045), transparent 38%),
    var(--surface);
}

.license-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.license-step {
  position: relative;
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.license-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.license-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

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

.license-step.done span,
.license-step.current span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.license-step.done::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--success);
}

.license-step.current {
  box-shadow: inset 0 0 0 2px var(--next);
}

.license-step.current::after {
  content: "下一步";
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--next);
  font-size: 12px;
  font-weight: 800;
}

.license-step.current span {
  border-color: var(--next);
  background: var(--next);
}

.delivery-actions-panel {
  padding: 34px 40px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.delivery-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.delivery-action-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 230px;
  padding: 22px;
  background: var(--surface);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.delivery-action-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--line);
}

.delivery-action-card:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(0, 47, 167, 0.18);
  transform: translateY(-1px);
}

.delivery-action-card.is-ready::before {
  background: var(--success);
}

.delivery-action-card.is-current::before {
  background: var(--next);
}

.delivery-action-card.is-pending::before {
  background: var(--accent);
  opacity: 0.32;
}

.action-index {
  color: var(--accent);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 0.9;
  font-weight: 900;
}

.delivery-action-card h4 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.1;
}

.delivery-action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.delivery-action-card > strong {
  display: block;
  min-height: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.delivery-action-card.is-current > strong {
  color: var(--next);
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  border-bottom: 1px solid var(--line);
}

.role-panel {
  padding: 42px 48px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.role-panel:last-child {
  border-right: 0;
  background: var(--surface-soft);
}

.role-panel.wide {
  min-width: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.work-panel {
  padding: 42px 48px;
  border-right: 1px solid var(--line);
}

.records-panel {
  padding: 42px 48px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.records-panel:nth-child(2) {
  border-right: 0;
  background: var(--surface-soft);
}

.admin-device-panel {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-device-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-device-card {
  align-content: start;
}

.admin-device-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.admin-device-main strong,
.admin-device-main small {
  display: block;
}

.admin-device-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.admin-device-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.compact-action {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.device-change-list {
  margin-top: 18px;
}

.device-change-card {
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.05), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.request-reason {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.work-panel:last-child {
  border-right: 0;
}

.help-center-panel {
  padding: 42px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.help-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.help-center-grid article {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.help-center-grid article:nth-child(even) {
  background: var(--surface);
}

.help-center-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(0, 47, 167, 0.24);
  background: rgba(0, 47, 167, 0.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.help-center-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.help-center-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feedback-panel {
  padding: 42px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.feedback-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-top: 24px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

.feedback-upload-row,
.feedback-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-upload-row span {
  color: var(--muted);
  font-size: 13px;
}

.feedback-submit-row {
  justify-content: space-between;
}

.feedback-submit-row .inline-message {
  flex: 1 1 260px;
  margin: 0;
}

.feedback-preview-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-preview-item {
  position: relative;
  width: 108px;
  height: 78px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-soft);
}

.feedback-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-preview-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.panel-heading h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.1;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.download-box > div {
  min-width: 0;
}

.download-primary-copy {
  flex: 1 1 auto;
}

.download-action-area {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 220px;
}

.download-action-area small {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: right;
}

.download-action-button {
  min-width: 190px;
}

.release-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 0 9px;
  border: 1px solid rgba(0, 47, 167, 0.28);
  background: rgba(0, 47, 167, 0.07);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.release-state.ready {
  border-color: rgba(6, 118, 71, 0.28);
  background: rgba(6, 118, 71, 0.08);
  color: var(--success);
}

.release-state.pending {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.06);
  color: var(--danger);
}

.release-state.checking {
  border-color: rgba(0, 47, 167, 0.22);
  background: rgba(0, 47, 167, 0.06);
  color: var(--accent);
}

.release-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.release-spec-grid article,
.release-detail-grid article {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
}

.release-spec-grid article {
  min-height: 156px;
  padding: 18px;
}

.release-spec-grid article:nth-child(even),
.release-detail-grid article:nth-child(even) {
  background: var(--surface-soft);
}

.release-spec-grid span,
.release-detail-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.release-spec-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.release-spec-grid p,
.release-detail-grid p {
  margin: 0;
  font-size: 13px;
}

.release-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.release-detail-grid article {
  min-height: 174px;
  padding: 20px;
}

.release-detail-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-detail-grid li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.release-detail-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.release-flow-card {
  grid-column: 1 / -1;
  min-height: auto !important;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.plan-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 430px;
  padding: 26px;
  background: var(--surface);
  overflow: hidden;
}

.plan-card.featured {
  background:
    linear-gradient(145deg, rgba(0, 47, 167, 0.07), rgba(255, 255, 255, 0.96) 42%, rgba(237, 240, 245, 0.92)),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(0, 47, 167, 0.26);
}

.plan-card.current {
  box-shadow: inset 0 0 0 2px rgba(0, 47, 167, 0.28);
}

.plan-card.current::after {
  content: "当前套餐";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 47, 167, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.plan-card.featured.current::after {
  top: 52px;
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8ea8ff, transparent);
}

.plan-topline {
  display: grid;
  gap: 8px;
}

.plan-topline span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-topline strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: 0;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.plan-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.plan-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--accent);
}

.plan-card.free li::before {
  background: var(--line);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.purchase-result-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.purchase-result-strip article {
  min-height: 146px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.07), rgba(255, 255, 255, 0) 42%),
    var(--surface);
}

.purchase-result-strip article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(6, 118, 71, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--surface);
}

.purchase-result-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.purchase-result-strip strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.purchase-result-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pay-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option.active {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px rgba(0, 47, 167, 0.28);
}

.pay-option strong,
.pay-option small {
  display: block;
}

.pay-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pay-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.18)),
    var(--accent);
}

.pay-icon.wechat {
  background:
    radial-gradient(circle at 34% 38%, rgba(255, 255, 255, 0.92) 0 16%, transparent 17%),
    radial-gradient(circle at 62% 58%, rgba(255, 255, 255, 0.75) 0 13%, transparent 14%),
    linear-gradient(135deg, #05a357, #0f7c43);
}

.pay-icon.alipay {
  background:
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.9) 19% 25%, transparent 26%),
    linear-gradient(0deg, transparent 56%, rgba(255, 255, 255, 0.82) 57% 63%, transparent 64%),
    linear-gradient(135deg, #1677ff, #0057c8);
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 47, 167, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.08), rgba(255, 255, 255, 0.94) 46%, rgba(247, 247, 248, 0.92)),
    var(--surface);
}

.payment-panel.hidden {
  display: none;
}

.coin-wallet-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(228, 0, 43, 0.08), transparent 34%),
    var(--surface);
}

.coin-wallet-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.coin-wallet-main span,
.coin-recharge-heading .kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.coin-wallet-main strong {
  color: var(--accent);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
  font-weight: 900;
}

.coin-wallet-main p,
.coin-recharge-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.coin-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.coin-wallet-panel .inline-message {
  grid-column: 1 / -1;
}

.coin-recharge-block {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.06), rgba(255, 255, 255, 0) 34%),
    #fbfcff;
}

.coin-recharge-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.coin-recharge-heading h4 {
  margin: 3px 0 7px;
  font-size: 24px;
  line-height: 1.1;
}

.coin-recharge-balance {
  min-width: 184px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid rgba(0, 47, 167, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.08), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.82);
}

.coin-recharge-balance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coin-recharge-balance strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.coin-recharge-balance .button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 58px;
  min-height: 40px;
  padding: 0 12px;
}

.coin-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.coin-package-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(18, 28, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92)),
    var(--surface);
  box-shadow: 0 14px 36px rgba(18, 28, 45, 0.08);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.coin-package-card:nth-child(1)::before {
  background: #002fa7;
}

.coin-package-card:nth-child(2)::before {
  background: #067647;
}

.coin-package-card:nth-child(3)::before {
  background: var(--next);
}

.coin-package-card:nth-child(4)::before {
  background: var(--gold);
}

.coin-package-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  height: auto;
  background: var(--accent);
}

.coin-package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(18, 28, 45, 0.13);
}

.coin-package-card.featured {
  border-color: rgba(228, 0, 43, 0.3);
  background:
    linear-gradient(135deg, rgba(228, 0, 43, 0.08), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 248, 0.94));
  box-shadow: 0 20px 48px rgba(228, 0, 43, 0.16);
}

.coin-package-card.featured::before {
  background: var(--next);
}

.coin-package-badge {
  position: absolute;
  top: 13px;
  right: 12px;
  min-height: 24px;
  padding: 0 9px;
  background: var(--next);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 24px;
}

.coin-package-top {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 18px 12px 14px;
  border: 1px solid rgba(18, 28, 45, 0.08);
  background: rgba(0, 47, 167, 0.06);
  align-content: end;
}

.coin-package-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coin-package-top strong {
  color: var(--accent);
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 0.86;
  font-weight: 900;
}

.coin-package-top strong small {
  margin-right: 3px;
  font-size: 20px;
  line-height: 1;
  vertical-align: 16px;
}

.coin-package-card.featured .coin-package-top strong {
  color: var(--next);
}

.coin-package-card.featured .coin-package-top {
  border-color: rgba(228, 0, 43, 0.16);
  background: rgba(228, 0, 43, 0.07);
}

.coin-package-card:nth-child(2) .coin-package-top strong {
  color: var(--success);
}

.coin-package-card:nth-child(2) .coin-package-top {
  background: rgba(6, 118, 71, 0.07);
}

.coin-package-card:nth-child(4) .coin-package-top strong {
  color: var(--gold);
}

.coin-package-card:nth-child(4) .coin-package-top {
  background: rgba(202, 138, 4, 0.08);
}

.coin-package-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.coin-package-total {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.coin-package-meta .bonus {
  color: var(--next);
  font-weight: 800;
}

.coin-buy-button {
  align-self: end;
  width: 100%;
  border: 0;
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(18, 28, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.coin-package-card:nth-child(1) .coin-buy-button {
  background: linear-gradient(135deg, #002fa7, #0b43c8 58%, #1f5be5);
}

.coin-package-card:nth-child(2) .coin-buy-button {
  background: linear-gradient(135deg, #067647, #0d8f57 58%, #19a96b);
}

.coin-package-card:nth-child(3) .coin-buy-button {
  background: linear-gradient(135deg, #c4002a, #e4002b 54%, #ff4f00);
  box-shadow:
    0 18px 40px rgba(228, 0, 43, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.coin-package-card:nth-child(4) .coin-buy-button {
  background: linear-gradient(135deg, #75581e, #9b7b3f 56%, #c99a3c);
}

.coin-buy-button:hover {
  box-shadow:
    0 20px 42px rgba(18, 28, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.coin-package-card .coin-buy-button:disabled {
  background: linear-gradient(135deg, #8b94a5, #697386);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.payment-copy {
  display: grid;
  gap: 6px;
}

.payment-copy strong {
  font-size: 22px;
}

.payment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.payment-copy .payment-warning {
  padding: 8px 10px;
  border: 1px solid rgba(255, 184, 0, 0.38);
  background: rgba(255, 184, 0, 0.1);
  color: #7a4f00;
  font-weight: 700;
}

.pay-status {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(0, 47, 167, 0.24);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.payment-qr {
  display: grid;
  place-items: center;
  width: 138px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 8px, transparent 8px 15px) 0 0 / 23px 23px,
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 8px, transparent 8px 15px) 0 0 / 23px 23px,
    #fff;
  color: #000;
  text-align: center;
}

.payment-qr.status-only {
  background:
    radial-gradient(circle at 35% 25%, rgba(0, 47, 167, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 241, 255, 0.9));
  color: var(--ink);
}

.payment-qr span,
.payment-qr small {
  padding: 3px 6px;
  background: #fff;
}

.payment-qr span {
  font-weight: 900;
  font-size: 12px;
}

.payment-qr small {
  color: var(--muted);
  font-size: 11px;
}

.payment-actions {
  display: grid;
  gap: 10px;
  min-width: 132px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.order-code-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.agent-code-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.agent-code-strip strong {
  display: block;
  margin-bottom: 6px;
}

.agent-code-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.download-box strong {
  display: block;
  margin-bottom: 6px;
}

.download-box p {
  margin-bottom: 0;
  font-size: 14px;
}

.delivery-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.delivery-info article {
  min-height: 168px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.delivery-info article:nth-child(2),
.delivery-info article:nth-child(3) {
  background: var(--surface-soft);
}

.delivery-info span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.delivery-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.delivery-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.client-steps {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: client-step;
}

.client-steps li {
  counter-increment: client-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.client-steps li::before {
  content: counter(client-step, decimal-leading-zero);
  color: var(--accent);
  font-weight: 800;
}

.record-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.record-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.record-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-card strong {
  display: block;
  font-size: 18px;
}

.record-card small,
.record-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.record-table {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(3, minmax(90px, 0.7fr));
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 13px;
}

.record-row.header {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.code-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-weight: 800;
  letter-spacing: 0;
}

.copy-code {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.empty-state {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  line-height: 1.7;
}

.device-section {
  padding: 42px 48px 0;
}

.device-change-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.device-change-guide article {
  min-height: 122px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.device-change-guide article:nth-child(2) {
  background: var(--surface-soft);
}

.device-change-guide span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.device-change-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.device-support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(0, 47, 167, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 47, 167, 0.06), rgba(255, 255, 255, 0.94) 54%),
    var(--surface);
}

.device-support-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.device-support-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.device-list {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border: 1px solid var(--line);
}

.device-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(88px, 0.48fr) minmax(138px, 0.7fr) minmax(96px, 0.48fr) minmax(150px, 0.82fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
}

.device-row.header {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.device-row.empty {
  display: block;
  color: var(--muted);
}

.device-name strong,
.device-name small {
  display: block;
}

.device-name small {
  margin-top: 5px;
  color: var(--muted);
}

.device-code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-bound-time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pill.active {
  border-color: var(--success);
  color: var(--success);
}

.pill.warning {
  border-color: rgba(0, 47, 167, 0.42);
  color: var(--accent);
}

.pill.disabled {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 960px) {
  .topbar,
  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 18px 22px;
  }

  .top-links {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  main {
    width: 100%;
  }

  .auth-stage,
  .work-grid,
  .records-grid,
  .role-grid,
  .delivery-action-grid {
    grid-template-columns: 1fr;
  }

  .license-flow {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-panel {
    grid-template-columns: 1fr;
  }

  .coin-wallet-panel {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }

  .coin-wallet-actions,
  .coin-recharge-heading {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .coin-recharge-balance {
    width: 100%;
  }

  .coin-wallet-actions {
    justify-content: flex-start;
  }

  .coin-package-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-qr {
    width: min(180px, 100%);
  }

  .auth-stage {
    min-height: auto;
  }

  .auth-visual {
    min-height: 560px;
    padding: 48px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-visual-copy {
    max-width: 100%;
  }

  .auth-panel {
    padding: 32px 20px 44px;
    min-height: auto;
  }

  .auth-card {
    width: 100%;
  }

  .journey-cards {
    grid-template-columns: 1fr 1fr;
  }

  .work-panel {
    border-right: 0;
  }

  .account-header,
  .license-flow-panel,
  .delivery-actions-panel,
  .work-panel,
  .records-panel,
  .help-center-panel,
  .device-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .account-header {
    display: flex;
  }

  .account-actions {
    justify-content: flex-start;
  }

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

  .status-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .metric-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .work-panel {
    border-bottom: 1px solid var(--line);
  }

  .role-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-panel:last-child {
    border-bottom: 0;
  }

  .work-panel:last-child {
    border-bottom: 0;
  }

  .records-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .records-panel:last-child {
    border-bottom: 0;
  }

  .device-row,
  .device-change-guide,
  .help-center-grid,
  .device-row.header,
  .record-row,
  .record-row.header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    min-height: auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .top-links {
    padding-bottom: 4px;
  }

  .auth-visual {
    min-height: auto;
    padding: 28px 20px 20px;
  }

  .auth-panel {
    grid-row: 1;
    padding: 20px 10px 20px;
    border-bottom: 1px solid var(--line);
  }

  .auth-card {
    padding: 22px 18px;
    box-shadow: 0 18px 48px rgba(18, 28, 45, 0.12);
  }

  .auth-card-head {
    gap: 12px;
  }

  .password-field input {
    padding-right: 58px;
  }

  .password-toggle {
    min-width: 46px;
    right: 6px;
    font-size: 11px;
  }

  .journey-cards,
  .auth-assurance {
    grid-template-columns: 1fr;
  }

  .auth-visual-copy p:last-child {
    max-height: 5.2em;
    overflow: hidden;
  }

  .journey-card {
    min-height: 104px;
  }

  .ambient-ring {
    opacity: 0.28;
  }

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

  .status-grid.compact {
    grid-template-columns: 1fr;
  }

  .license-flow {
    grid-template-columns: 1fr;
  }

  .delivery-action-grid,
  .device-change-guide,
  .help-center-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .metric-card:first-child {
    border-top: 0;
  }

  .download-box {
    align-items: stretch;
    flex-direction: column;
  }

  .download-action-area {
    justify-items: stretch;
    min-width: 0;
  }

  .download-action-area small {
    max-width: none;
    text-align: left;
  }

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

  .plan-cards {
    grid-template-columns: 1fr;
  }

  .delivery-info {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .purchase-result-strip {
    grid-template-columns: 1fr;
  }

  .coin-package-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .agent-code-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .device-support-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .download-box .button {
    width: 100%;
  }

  .download-action-button {
    min-width: 0;
  }
}

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