:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef3f9;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(134, 152, 190, 0.18);
  --line-strong: rgba(92, 121, 177, 0.22);
  --text: #182338;
  --muted: #697892;
  --blue: #4e7cff;
  --blue-soft: #edf3ff;
  --green: #21b57a;
  --green-soft: #ebfbf4;
  --purple: #7c68ee;
  --purple-soft: #f1efff;
  --danger: #d9485f;
  --danger-soft: #fff0f3;
  --shadow: 0 22px 60px rgba(29, 54, 98, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(78, 124, 255, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(33, 181, 122, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.activate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.page-tools {
  width: min(1180px, 100%);
  margin-bottom: 16px;
}

.page-tools-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(29, 54, 98, 0.05);
}

.page-tools-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.page-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activate-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.hero-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 36px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 124, 255, 0.1), transparent 68%);
  pointer-events: none;
}

.form-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card-strong);
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.activate-badge {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5f85ff, #6faeff);
  color: white;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(78, 124, 255, 0.18);
}

.eyebrow {
  display: inline-block;
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-copy h1,
.panel-headline h2,
.result-header h2 {
  margin: 0;
  line-height: 1.15;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 48px);
  max-width: 11ch;
}

.hero-copy p,
.panel-headline p,
.hero-feature p,
.result-header p,
.meta-item span,
label span,
.tips-row {
  color: var(--muted);
}

.hero-copy p {
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.8;
  font-size: 15px;
}

.hero-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px solid rgba(134, 152, 190, 0.12);
}

.hero-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.hero-feature p {
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
}

.feature-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
}

.feature-blue { background: var(--blue); }
.feature-green { background: var(--green); }
.feature-purple { background: var(--purple); }

.hero-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.meta-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(134, 152, 190, 0.14);
  background: #fbfcff;
}

.meta-item span {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.meta-item strong {
  display: block;
  line-height: 1.6;
  word-break: break-all;
}

.panel-headline p {
  margin: 10px 0 0;
  line-height: 1.75;
}

.activate-form {
  display: grid;
  gap: 16px;
}

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

input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(134, 152, 190, 0.18);
  background: #f9fbff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus {
  border-color: rgba(78, 124, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(78, 124, 255, 0.1);
  transform: translateY(-1px);
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.primary-action,
.secondary-action {
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.compact-link {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, #4f7dff, #6b9cff);
  box-shadow: 0 16px 28px rgba(78, 124, 255, 0.16);
}

.secondary-action {
  color: var(--text);
  background: white;
  border: 1px solid var(--line-strong);
}

.tips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.result-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fafcff;
}

.result-strong {
  padding: 22px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.result-header p {
  margin: 8px 0 0;
}

.result-badge {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, #4f7dff, #6b9cff);
}

.result-list {
  margin: 18px 0 0;
}

.result-list div + div {
  margin-top: 14px;
}

.result-list dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.result-list dd {
  margin: 0;
  word-break: break-all;
  line-height: 1.7;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.action-row {
  margin-top: 18px;
}

.muted { color: var(--muted); }
.success-card, .success-hint { border-color: rgba(33, 181, 122, 0.18); background: var(--green-soft); }
.used-hint { border-color: rgba(78, 124, 255, 0.18); background: var(--blue-soft); }
.error-card { border-color: rgba(217, 72, 95, 0.18); background: var(--danger-soft); color: var(--danger); }
.hidden { display: none; }

.docs-shell {
  min-height: 100vh;
  padding: 36px 28px 48px;
  background:
    radial-gradient(circle at top left, rgba(78, 124, 255, 0.11), transparent 28%),
    radial-gradient(circle at top right, rgba(33, 181, 122, 0.08), transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, #edf3fb 100%);
}

.docs-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.docs-hero {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(134, 152, 190, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.docs-hero h1,
.docs-card h2 {
  margin: 0;
}

.docs-hero p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

.docs-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(78, 124, 255, 0.12);
  background: rgba(78, 124, 255, 0.08);
  color: #2e4d89;
  font-size: 13px;
  font-weight: 700;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.docs-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(134, 152, 190, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.wide-docs-card {
  grid-column: 1 / -1;
}

.docs-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(78, 124, 255, 0.16), rgba(95, 143, 255, 0.08));
  color: #2a4f98;
  font-weight: 800;
}

.docs-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.docs-card ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.docs-paragraph {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

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

.docs-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mini-card,
.note-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(134, 152, 190, 0.14);
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.mini-card h3,
.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #20304f;
}

.note-card {
  margin-top: 16px;
}

.note-card strong {
  display: block;
  margin-bottom: 8px;
  color: #20304f;
}

.note-card p,
.note-card ul,
.note-card ol,
.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.soft-note {
  background: linear-gradient(180deg, rgba(78, 124, 255, 0.08), rgba(78, 124, 255, 0.03));
}

.code-block {
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff, #f3f7fd);
  border: 1px solid rgba(134, 152, 190, 0.14);
  overflow: auto;
}

.code-block code {
  font-family: "Cascadia Mono", Consolas, monospace;
  color: var(--text);
  line-height: 1.8;
}

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

.config-panel {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(134, 152, 190, 0.14);
  background: rgba(250, 252, 255, 0.95);
}

.config-panel .section-title {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .activate-layout {
    grid-template-columns: 1fr;
  }

  .page-tools-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-footer {
    grid-template-columns: 1fr;
  }

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

  .docs-split-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .activate-shell {
    padding: 16px;
  }

  .hero-panel,
  .form-panel {
    padding: 24px;
    border-radius: 24px;
  }

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

  .tips-row {
    flex-direction: column;
    gap: 8px;
  }

  .docs-shell {
    padding: 18px 14px 28px;
  }

  .docs-hero,
  .docs-card {
    padding: 22px;
    border-radius: 22px;
  }
}
