:root {
  color-scheme: light;
  --ink: #171513;
  --muted: #706c64;
  --line: #d8d2c8;
  --paper: #f8f4ea;
  --panel: #f1eadf;
  --red: #8b352d;
  --gold: #b88442;
  --green: #4c675f;
  --shadow: 0 18px 60px rgba(68, 56, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 21, 19, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 21, 19, 0.01) 1px, transparent 1px),
    radial-gradient(circle at 68% 38%, rgba(184, 132, 66, 0.055), transparent 34%),
    #f8f4ea;
  background-size: 10px 10px, 16px 16px, auto, auto;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(248, 244, 234, 0.9);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid rgba(248, 244, 234, 0.9);
  border-radius: 999px;
  background: rgba(112, 108, 100, 0.46);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 53, 45, 0.58);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  width: min(1840px, calc(100vw - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 36px;
}

.home-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.site-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a,
.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px;
  border: 1px solid rgba(23, 21, 19, 0.2);
  background: rgba(248, 244, 234, 0.48);
}

.language-switch button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  color: rgba(23, 21, 19, 0.58);
  border: 0;
}

.language-switch button.is-active {
  color: var(--ink);
  background: rgba(23, 21, 19, 0.08);
}

.language-switch button:hover {
  color: var(--ink);
}

.view {
  display: none;
  min-height: calc(100vh - 150px);
}

.view.active {
  display: block;
}

.form-view.active {
  width: min(1040px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding-top: clamp(48px, 7vh, 92px);
}

.hero-view.active {
  display: grid;
  position: relative;
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 70px;
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  left: 31%;
  top: 49%;
  border: 1px solid rgba(23, 21, 19, 0.045);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: min(980px, 68vw);
  height: min(980px, 68vw);
}

.orbit-b {
  width: min(1180px, 82vw);
  height: min(1180px, 82vw);
  border-width: 2px;
}

.orbit-c {
  width: min(1380px, 96vw);
  height: min(1380px, 96vw);
}

.star-line {
  position: absolute;
  right: 9%;
  top: 31%;
  width: min(680px, 46vw);
  height: 360px;
  opacity: 0.32;
}

.star-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 0 19%, rgba(120, 116, 106, 0.18) 19.4% 19.9%, transparent 20.2% 39%, rgba(120, 116, 106, 0.16) 39.4% 39.9%, transparent 40.2% 62%, rgba(120, 116, 106, 0.14) 62.4% 62.9%, transparent 63.2%),
    linear-gradient(28deg, transparent 0 43%, rgba(120, 116, 106, 0.14) 43.4% 43.9%, transparent 44.2%);
}

.star-line i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(130, 126, 116, 0.15);
}

.star-line i:nth-child(1) { left: 3%; top: 62%; }
.star-line i:nth-child(2) { left: 28%; top: 47%; }
.star-line i:nth-child(3) { left: 48%; top: 28%; }
.star-line i:nth-child(4) { left: 70%; top: 37%; }
.star-line i:nth-child(5) { left: 91%; top: 12%; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(112px, 11vw, 210px);
  line-height: 0.94;
  font-family: "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0;
}

html[lang="en"] h1 {
  font-family: Georgia, "Times New Roman", serif;
}

h2 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
}

.subtitle {
  width: min(690px, 100%);
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 22px;
  line-height: 2.1;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  border-radius: 0;
  padding: 0 30px;
  font-weight: 500;
}

.primary-btn {
  color: var(--ink);
  border: 1px solid rgba(23, 21, 19, 0.28);
  background: transparent;
  box-shadow: none;
}

.compass-btn {
  position: relative;
  width: min(420px, 36vw);
  min-width: 330px;
  aspect-ratio: 1;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
  overflow: visible;
}

.compass-btn::before,
.compass-btn::after {
  content: none;
}

.compass-btn:focus {
  outline: none;
}

.compass-btn:focus-visible .xiantian-pan {
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 0.5rem rgba(139, 53, 45, 0.28));
}

.xiantian-pan {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 24px 54px rgba(23, 21, 19, 0.1));
}

.pan-rotor {
  transform-origin: 210px 210px;
}

.compass-btn:hover::after {
  animation-play-state: paused;
}

.compass-btn:hover .compass-caption {
  color: #fffaf4;
  border-color: rgba(23, 21, 19, 0.9);
  background: rgba(23, 21, 19, 0.92);
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 244, 0.08),
    0 14px 32px rgba(23, 21, 19, 0.18);
}

.pan-ring {
  fill: rgba(250, 247, 239, 0.9);
  stroke: rgba(23, 21, 19, 0.72);
  stroke-width: 1.8;
}

.pan-ring.mid {
  fill: rgba(248, 244, 234, 0.28);
  stroke-width: 1.35;
}

.pan-ring.inner {
  fill: rgba(250, 247, 239, 0.78);
  stroke: rgba(23, 21, 19, 0.68);
  stroke-width: 1.45;
}

.sector-lines line {
  stroke: rgba(23, 21, 19, 0.35);
  stroke-width: 0.9;
}

.sector-lines line.trigram-cut {
  stroke: rgba(23, 21, 19, 0.58);
  stroke-width: 1.25;
}

.mountain-labels text,
.trigram-labels text {
  dominant-baseline: middle;
  text-anchor: middle;
  fill: rgba(23, 21, 19, 0.88);
  font-family: "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
  letter-spacing: 0;
}

.mountain-labels text {
  font-size: 20px;
  font-weight: 600;
}

.trigram-labels text {
  fill: rgba(139, 53, 45, 0.74);
  font-size: 21px;
  font-weight: 700;
}

.trigram-glyphs rect {
  fill: rgba(16, 15, 13, 0.88);
}

.taiji {
  opacity: 0;
}

.compass-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(23, 21, 19, 0.62);
  border-radius: 50%;
  color: rgba(23, 21, 19, 0.92);
  background: rgba(248, 244, 234, 0.96);
  box-shadow:
    inset 0 0 0 7px rgba(139, 53, 45, 0.045),
    0 10px 28px rgba(23, 21, 19, 0.12);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

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

.hero-panel {
  position: relative;
  z-index: 2;
  display: block;
  padding-top: 170px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(20px, 5vw, 120px);
}

.hero-index {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 260px;
  color: #7d7a72;
  font-size: 13px;
  letter-spacing: 0;
}

.hero-index span {
  width: 76px;
  height: 1px;
  background: #585650;
}

.hero-rules {
  width: min(650px, 100%);
  margin-bottom: 28px;
  border-top: 1px solid rgba(23, 21, 19, 0.16);
}

.hero-rules p {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 28px;
  margin: 0;
  min-height: 92px;
  border-bottom: 1px solid rgba(23, 21, 19, 0.13);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-rules b {
  color: var(--red);
  font-family: "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
  font-size: 30px;
  font-weight: 400;
}

/* Home composition reset: keep the landing view balanced on desktop. */
.app-shell {
  padding-bottom: 28px;
}

.view {
  min-height: calc(100vh - 118px);
}

.hero-view.active {
  grid-template-columns: minmax(520px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(60px, 6vw, 120px);
  min-height: calc(100vh - 120px);
}

.hero-copy {
  align-self: center;
  padding-left: clamp(12px, 3vw, 64px);
  transform: translateY(18px);
}

.hero-index {
  margin-bottom: clamp(132px, 17vh, 210px);
}

.hero-panel {
  display: flex;
  min-height: 560px;
  padding-top: 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

h1 {
  font-size: clamp(116px, 9.2vw, 176px);
  line-height: 0.98;
}

.subtitle {
  width: min(520px, 100%);
  margin-bottom: 42px;
}

.compass-btn {
  width: min(360px, 28vw);
  min-width: 300px;
}

.compass-caption {
  bottom: -34px;
}

.orbit {
  left: 34%;
  top: 51%;
  border-color: rgba(23, 21, 19, 0.032);
}

.star-line {
  right: 7%;
  top: 34%;
  opacity: 0.22;
}

.chart-wheel {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(169, 48, 42, 0.28);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.chart-wheel::before,
.chart-wheel::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid rgba(70, 103, 91, 0.22);
  border-radius: 50%;
}

.chart-wheel::after {
  inset: 112px;
  border-color: rgba(197, 138, 55, 0.28);
}

.chart-wheel i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 360px;
  background: rgba(169, 48, 42, 0.16);
  transform-origin: center;
}

.chart-wheel i:nth-child(1) {
  transform: translate(-50%, -50%) rotate(0deg);
}

.chart-wheel i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chart-wheel i:nth-child(3) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.chart-wheel i:nth-child(4) {
  transform: translate(-50%, -50%) rotate(135deg);
}

.seal {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 92px;
  font-weight: 800;
  background: rgba(255, 250, 243, 0.72);
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.page-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.form-view .page-header .eyebrow {
  margin-bottom: 8px;
}

.form-view .page-header h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.08;
}

.info-form,
.loading-card,
.report-paper {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow);
}

.info-form {
  padding: 28px;
}

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

.field,
.birth-place-field {
  display: grid;
  gap: 8px;
}

.field span,
.birth-place-field > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.birth-place-field input,
.birth-place-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf8;
}

.birth-date-picker {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr;
  gap: 10px;
}

.birth-date-picker select {
  min-width: 0;
}

.birth-place-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.place-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(70, 103, 91, 0.22);
  border-radius: 8px;
  background: rgba(250, 247, 239, 0.72);
}

.place-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.place-tabs label:has(input:checked) {
  color: var(--paper);
  background: var(--green);
}

.place-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mainland-place-picker {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.overseas-place-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.overseas-place-picker[hidden] {
  display: none;
}

.mainland-place-picker[hidden],
.overseas-place-picker[hidden] {
  display: none !important;
}

.overseas-place-picker .ghost-btn {
  min-height: 46px;
  padding-inline: 16px;
  white-space: nowrap;
}

.inline-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.check,
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.tier-box {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(70, 103, 91, 0.22);
  border-radius: 8px;
  background: rgba(250, 247, 239, 0.72);
  color: var(--ink);
}

.tier-heading strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.tier-options {
  display: grid;
  gap: 10px;
}

.tier-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto) 22px auto;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: 6px;
  background: rgba(248, 244, 234, 0.66);
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.tier-option:has(input:checked) {
  border-color: rgba(139, 53, 45, 0.42);
  background: rgba(139, 53, 45, 0.055);
}

.tier-name,
.tier-price {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.tier-desc {
  display: block;
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.tier-price {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.tier-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1.5px solid rgba(23, 21, 19, 0.46);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px var(--paper);
}

.tier-option input:checked {
  border-color: var(--red);
  background: var(--red);
}

.tier-option.is-disabled {
  color: rgba(112, 108, 100, 0.8);
  cursor: not-allowed;
}

.tier-option.is-disabled input {
  border-color: rgba(112, 108, 100, 0.42);
  background: rgba(112, 108, 100, 0.22);
  box-shadow: inset 0 0 0 4px rgba(248, 244, 234, 0.8);
}

.tier-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.tier-name .tier-status {
  display: inline-block;
  margin-left: 10px;
}

.form-actions,
.toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.loading-view.active {
  display: grid;
  place-items: center;
}

.loading-card {
  width: min(720px, 100%);
  padding: 34px;
}

.progress-track {
  height: 12px;
  margin: 26px 0 14px;
  border-radius: 999px;
  background: #eaded2;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  transition: width 1.8s ease;
}

.loading-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.loading-step {
  margin: 0;
  color: var(--muted);
}

.loading-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

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

.step-pill {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.76);
}

.step-pill.done {
  color: var(--green);
  border-color: rgba(70, 103, 91, 0.32);
}

.report-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.report-toolbar h2 {
  margin-bottom: 0;
}

.upgrade-btn {
  min-height: 46px;
  border: 1px solid rgba(139, 53, 45, 0.42);
  border-radius: 0;
  padding: 0 22px;
  color: #fffaf4;
  background: var(--red);
}

.upgrade-btn:hover {
  background: #171513;
  border-color: #171513;
}

.report-paper {
  padding: 34px;
}

.report-cover {
  padding: 30px;
  border-radius: 8px;
  color: #fffaf4;
  background: linear-gradient(135deg, var(--red), #744236 58%, var(--green));
}

.report-cover .eyebrow {
  color: #ffe0b3;
}

.report-cover h3 {
  margin: 0 0 12px;
  font-size: 44px;
}

.report-cover p {
  margin: 0;
}

.report-visual-summary {
  margin-top: 24px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(216, 210, 200, 0.85);
  border-bottom: 1px solid rgba(216, 210, 200, 0.85);
}

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

.summary-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.summary-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.summary-overview {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 210, 200, 0.84);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(246, 238, 227, 0.56)),
    var(--paper);
}

.summary-overview span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.summary-overview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.summary-overview p {
  margin: 0;
  color: #3a312d;
  font-size: 15px;
  line-height: 1.75;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: 16px;
  margin-bottom: 16px;
}

.radar-panel,
.metric-panel {
  border: 1px solid rgba(216, 210, 200, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(246, 238, 227, 0.62)),
    var(--paper);
}

.radar-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 252px;
  padding: 18px;
}

.radar-frame {
  position: relative;
  width: 230px;
  aspect-ratio: 1;
}

.radar-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-chart line {
  stroke: rgba(112, 108, 100, 0.22);
  stroke-width: 0.7;
}

.radar-grid {
  fill: none;
  stroke: rgba(112, 108, 100, 0.22);
  stroke-width: 0.8;
}

.radar-grid-mid {
  stroke-dasharray: 2 3;
}

.radar-fill {
  fill: rgba(139, 53, 45, 0.24);
  stroke: var(--red);
  stroke-width: 1.4;
}

.radar-chart circle {
  fill: var(--paper);
  stroke: var(--red);
  stroke-width: 1.2;
}

.radar-svg-label {
  color: var(--green);
  fill: var(--green);
  font-size: 5.2px;
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
}

.radar-panel p {
  margin: 0;
  color: #4b433d;
  font-size: 15px;
  line-height: 1.75;
}

.metric-panel {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 252px;
  padding: 20px;
}

.metric-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.metric-label span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.metric-label strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.metric-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(112, 108, 100, 0.14);
}

.metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.summary-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid rgba(216, 210, 200, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(246, 238, 227, 0.55)),
    var(--paper);
}

.summary-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
  opacity: calc(0.5 + var(--step) * 0.1);
}

.summary-index {
  align-self: start;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(139, 53, 45, 0.22);
  border-radius: 50%;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 250, 243, 0.72);
}

.summary-copy {
  min-width: 0;
}

.summary-copy span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.summary-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.summary-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
}

.summary-meter i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(112, 108, 100, 0.18);
}

.summary-meter i.is-active {
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.summary-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4b433d;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.report-content {
  display: grid;
  gap: 18px;
  padding: 22px 0 30px;
}

.register-dialog,
.purchase-dialog,
.email-dialog {
  width: min(460px, calc(100vw - 40px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

#registerPromptDialog,
#standardPurchaseDialog,
#emailDeliveryDialog {
  border: 0;
  padding: 0;
  background: transparent;
}

#registerPromptDialog::backdrop,
#standardPurchaseDialog::backdrop,
#emailDeliveryDialog::backdrop {
  background: rgba(23, 21, 19, 0.28);
}

.register-dialog h2,
.purchase-dialog h2,
.email-dialog h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.register-dialog p,
.purchase-dialog p,
.email-dialog p {
  color: var(--muted);
  line-height: 1.8;
}

.register-dialog footer,
.purchase-dialog footer,
.email-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.register-dialog button,
.purchase-dialog button,
.email-dialog button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

.register-dialog #registerNowBtn {
  color: #fffaf4;
  border-color: var(--red);
  background: var(--red);
}

.purchase-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.7);
}

.purchase-card strong,
.purchase-card span {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.purchase-card p {
  margin: 8px 0 0;
}

.purchase-card p:empty {
  display: none;
}

.purchase-card span {
  white-space: nowrap;
  color: var(--red);
}

.purchase-note {
  margin: 14px 0 0;
  font-size: 14px;
}

.purchase-dialog #confirmStandardPurchaseBtn {
  color: #fffaf4;
  border-color: var(--red);
  background: var(--red);
}

.email-dialog .field {
  margin-top: 18px;
}

.email-dialog input {
  width: 100%;
}

.email-dialog-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 14px;
}

.email-dialog #saveDeliveryEmailBtn {
  color: #fffaf4;
  border-color: var(--red);
  background: var(--red);
}

.report-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(216, 210, 200, 0.92);
  scroll-margin-top: 24px;
}

.report-section-overview {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 16px;
}

.report-section-overview .report-section-main {
  padding: 22px 24px;
  border: 1px solid rgba(216, 210, 200, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(246, 238, 227, 0.5)),
    var(--paper);
}

.report-section-index {
  position: sticky;
  top: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(139, 53, 45, 0.2);
  border-radius: 50%;
  color: rgba(139, 53, 45, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 250, 243, 0.74);
}

.report-section-main {
  min-width: 0;
}

.report-section h4 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.report-section h4::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, rgba(139, 53, 45, 0.32), transparent);
}

.report-section p,
.report-section li {
  color: #3a312d;
  font-size: 16px;
  line-height: 1.82;
}

.report-section p {
  margin: 0;
}

.report-section p + p {
  margin-top: 10px;
}

.section-lede {
  margin: 0 0 18px !important;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  color: #2d2824 !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.72 !important;
  background: rgba(246, 238, 227, 0.62);
}

.section-body {
  display: grid;
  gap: 12px;
}

.section-paragraph {
  max-width: 74ch;
}

.section-paragraph.is-first {
  color: #2f2925;
}

.report-reading-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 2px 0 12px;
}

.reading-brief {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 238, 227, 0.58)),
    var(--paper);
}

.reading-brief span,
.action-block span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reading-brief strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.reading-brief p {
  margin: 0;
  color: #4b433d;
  font-size: 15px;
  line-height: 1.75;
}

.reading-brief.is-action {
  border-color: rgba(83, 95, 82, 0.28);
}

.reading-toc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(216, 210, 200, 0.82);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 250, 243, 0.7);
}

.toc-link span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.toc-link strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-block {
  max-width: 78ch;
  margin: 4px 0;
  padding: 16px 18px 18px;
  border: 1px solid rgba(83, 95, 82, 0.24);
  border-radius: 8px;
  background: rgba(246, 238, 227, 0.45);
}

.action-block ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.action-block li {
  padding-left: 4px;
}

.action-block li::marker {
  color: var(--red);
  font-weight: 700;
}

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

.mini-reading {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 238, 227, 0.58);
}

.mini-reading strong {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
}

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

.mini-reading p + p {
  margin-top: 8px;
}

.mini-reading em {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100vw - 28px, 760px);
    padding: 24px 0;
  }

  .home-header {
    align-items: flex-start;
  }

  .brand-mark {
    gap: 12px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .form-view.active {
    padding-top: 34px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .form-view .page-header h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-view.active {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 60px;
  }

  h1 {
    font-size: clamp(76px, 25vw, 128px);
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    padding-left: 0;
    transform: none;
  }

  .hero-index {
    margin-bottom: 72px;
  }

  .hero-panel {
    align-items: flex-start;
    min-height: auto;
    padding-top: 0;
  }

  .compass-btn {
    width: min(330px, 86vw);
    min-width: 0;
  }

  .hero-rules p {
    grid-template-columns: 42px 1fr;
    gap: 16px;
    min-height: 82px;
  }

  .star-line {
    right: -20%;
    width: 92vw;
  }

  .orbit {
    left: 55%;
    top: 35%;
  }

  .form-grid,
  .step-grid,
  .mini-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .birth-date-picker {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .report-toolbar,
  .tier-box {
    align-items: stretch;
  }

  .report-paper {
    padding: 20px;
  }

  .report-cover {
    padding: 22px;
  }

  .report-cover h3 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .report-chart-grid {
    grid-template-columns: 1fr;
  }

  .radar-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .radar-frame {
    width: min(210px, 70vw);
  }

  .metric-panel {
    min-height: 0;
  }

  .summary-item {
    min-height: 0;
  }

  .report-reading-guide {
    grid-template-columns: 1fr;
  }

  .reading-brief {
    min-height: 0;
  }

  .reading-toc {
    grid-template-columns: 1fr;
  }

  .toc-link {
    border-radius: 8px;
  }

  .report-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .report-section-index {
    position: static;
    width: 38px;
    font-size: 20px;
  }

  .report-section h4 {
    font-size: 23px;
  }

  .section-lede {
    padding: 13px 14px;
    font-size: 16px !important;
  }

  .report-section p,
  .report-section li {
    font-size: 15px;
    line-height: 1.82;
  }

  .tier-option {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tier-option input {
    justify-self: start;
  }

  .tier-status {
    white-space: normal;
  }

  .toolbar-actions,
  .form-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .mainland-place-picker,
  .overseas-place-picker {
    grid-template-columns: 1fr;
  }

  .place-tabs {
    width: 100%;
  }

  .place-tabs label {
    flex: 1 1 0;
    padding-inline: 8px;
  }
}

/* Final desktop landing layout. */
@media (min-width: 861px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    width: calc(100vw - 112px);
    max-width: 1840px;
    padding-top: 42px;
  }

  .home-header {
    height: 54px;
  }

  .hero-view.active {
    display: grid;
    grid-template-columns: minmax(520px, 47%) minmax(560px, 53%);
    min-height: calc(100vh - 112px);
    gap: 0;
    align-items: start;
    overflow: visible;
  }

  .hero-copy {
    display: block;
    align-self: start;
    padding: clamp(96px, 10.5vh, 126px) 0 0 clamp(92px, 8.6vw, 170px);
    transform: none;
  }

  .hero-index {
    margin: 0 0 clamp(72px, 10vh, 120px);
    font-size: 13px;
  }

  .hero-index span {
    width: 86px;
  }

  .hero-copy h1 {
    font-size: clamp(106px, 7.15vw, 150px);
    line-height: 1;
  }

  html[lang="en"] .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(72px, 4.8vw, 102px);
    line-height: 1.02;
  }

  .hero-copy .subtitle {
    width: min(500px, 100%);
    margin: clamp(28px, 3.6vh, 44px) 0 0;
    color: rgba(55, 53, 49, 0.72);
    font-size: clamp(18px, 1.12vw, 22px);
    line-height: 1.95;
  }

  html[lang="en"] .hero-copy .subtitle {
    max-width: 620px;
    line-height: 1.75;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    justify-items: start;
    align-items: flex-start;
    align-self: start;
    min-height: auto;
    padding: clamp(98px, 12.5vh, 142px) 0 0 clamp(0px, 2.3vw, 42px);
  }

  .hero-panel::after {
    content: "";
    position: absolute;
    left: clamp(-32px, -2vw, -16px);
    top: clamp(92px, 13vh, 145px);
    width: clamp(540px, 35vw, 700px);
    aspect-ratio: 1;
    border: 1px solid rgba(23, 21, 19, 0.055);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero-panel::before {
    content: none;
  }

  .hero-panel .subtitle {
    display: none;
  }

  .compass-btn {
    width: clamp(560px, 36.5vw, 710px);
    min-width: 560px;
    margin: 0;
    order: 1;
  }

  .compass-btn::before {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(23, 21, 19, 0.09);
    border-radius: 50%;
    transform: rotate(8deg);
    pointer-events: none;
  }

  .compass-btn::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(139, 53, 45, 0.12);
    border-radius: 50%;
    animation: slowSpin 28s linear infinite;
    pointer-events: none;
  }

  .compass-caption {
    top: 50%;
  }

  .orbit {
    left: 32%;
    top: 50%;
    border-color: rgba(23, 21, 19, 0.026);
  }

  .orbit-a {
    width: min(900px, 64vw);
    height: min(900px, 64vw);
  }

  .orbit-b {
    width: min(1120px, 79vw);
    height: min(1120px, 79vw);
  }

  .orbit-c {
    width: min(1340px, 94vw);
    height: min(1340px, 94vw);
  }

  .star-line {
    right: 0%;
    top: 28%;
    width: min(720px, 52vw);
    opacity: 0.1;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .hero-copy {
    padding-top: 90px;
  }

  .hero-index {
    margin-bottom: 58px;
  }

  .hero-copy h1 {
    font-size: clamp(92px, 7vw, 124px);
  }

  .hero-copy .subtitle {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.75;
  }

  .hero-panel {
    padding-top: 74px;
  }

  .compass-btn {
    width: 430px;
    min-width: 430px;
    margin-top: 10px;
  }
}

/* Official cyber homepage theme */
body {
  color: #eef8ff;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 71, 186, 0.22), transparent 34%),
    radial-gradient(circle at 62% 42%, rgba(30, 225, 231, 0.14), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(244, 201, 70, 0.12), transparent 34%),
    linear-gradient(135deg, #070b11 0%, #0b1118 42%, #110c17 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 86%);
}

.app-shell {
  width: min(1560px, calc(100vw - 40px));
  padding: 20px 0 68px;
}

.home-header {
  position: relative;
  z-index: 20;
  min-height: 56px;
  margin: 0;
  color: #eef8ff;
}

.brand-mark {
  gap: 12px;
  color: #f3fbff;
  text-decoration: none;
}

.brand-logo {
  display: none;
}

.brand-mark strong {
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(30, 225, 231, 0.28);
}

.site-nav {
  gap: 12px;
}

.language-switch {
  padding: 4px;
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 14px;
  background: rgba(5, 10, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.language-switch button,
.site-nav a {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: rgba(235, 249, 255, 0.78);
  background: transparent;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switch button.is-active,
.language-switch button:hover,
.site-nav a:hover {
  color: #f8fdff;
  border-color: rgba(255, 79, 195, 0.34);
  background: rgba(255, 79, 195, 0.12);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-color: rgba(135, 231, 235, 0.18);
  background: rgba(5, 10, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-view.active {
  min-height: calc(100dvh - 96px);
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 110px);
  padding: clamp(54px, 7vw, 96px) 0 34px;
  overflow: visible;
}

.hero-ornament,
.hero-index {
  display: none;
}

.hero-copy {
  max-width: 740px;
  padding: 0;
}

.hero-copy h1 {
  display: grid;
  gap: 4px;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 0.84;
  text-wrap: balance;
}

.hero-title-main,
.hero-title-sub {
  display: block;
  font-size: clamp(82px, 11vw, 176px);
  font-weight: 950;
  letter-spacing: 0;
}

.hero-title-main {
  color: #f2fbff;
  text-shadow:
    0 0 24px rgba(30, 225, 231, 0.18),
    0 16px 42px rgba(0, 0, 0, 0.42);
}

.hero-title-sub {
  color: rgba(16, 24, 34, 0.36);
  -webkit-text-stroke: 1.4px rgba(184, 244, 250, 0.68);
  text-shadow: 0 0 32px rgba(255, 79, 195, 0.16);
}

.hero-copy .subtitle {
  position: relative;
  max-width: 620px;
  margin-top: 34px;
  padding-left: 22px;
  color: rgba(225, 241, 248, 0.78);
  font-size: clamp(20px, 1.75vw, 30px);
  line-height: 1.72;
}

.hero-copy .subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  bottom: 0.34em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(#22f0ef, #ff55c6);
  box-shadow: 0 0 18px rgba(255, 85, 198, 0.4);
}

.hero-panel {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 0;
}

.compass-btn {
  width: min(610px, 44vw);
  min-width: min(460px, 86vw);
  margin: 0;
  border: 0;
  background: transparent;
  filter:
    drop-shadow(0 0 32px rgba(30, 225, 231, 0.14))
    drop-shadow(0 26px 68px rgba(0, 0, 0, 0.42));
}

.compass-btn::before,
.compass-btn::after {
  content: none;
}

.xiantian-pan {
  overflow: visible;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 79, 195, 0.16), transparent 22%),
    radial-gradient(circle at 35% 28%, rgba(30, 225, 231, 0.18), transparent 31%),
    rgba(6, 12, 19, 0.74);
}

.pan-ring {
  fill: rgba(8, 15, 24, 0.78);
  stroke: rgba(255, 79, 195, 0.56);
  stroke-width: 1.25;
}

.pan-ring.mid {
  fill: rgba(255, 79, 195, 0.045);
  stroke: rgba(30, 225, 231, 0.32);
}

.pan-ring.inner {
  fill: rgba(30, 225, 231, 0.052);
  stroke: rgba(255, 79, 195, 0.44);
}

.sector-lines line {
  stroke: rgba(255, 79, 195, 0.34);
  stroke-width: 1;
}

.sector-lines line.trigram-cut {
  stroke: rgba(30, 225, 231, 0.48);
  stroke-width: 1.18;
}

.mountain-labels text {
  fill: rgba(222, 241, 248, 0.36);
  font-size: 14px;
  font-weight: 600;
}

.trigram-labels text {
  fill: rgba(244, 253, 255, 0.82);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(30, 225, 231, 0.4);
}

.trigram-glyphs rect {
  fill: rgba(236, 250, 255, 0.88);
  filter: drop-shadow(0 0 8px rgba(30, 225, 231, 0.32));
}

.taiji {
  opacity: 0;
}

.compass-caption {
  top: 50%;
  left: 50%;
  bottom: auto;
  width: min(132px, 24vw);
  height: min(132px, 24vw);
  min-width: 112px;
  min-height: 112px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #160513;
  background:
    radial-gradient(circle at 31% 28%, rgba(230, 255, 255, 0.98), transparent 28%),
    linear-gradient(135deg, #9ff4ff 0%, #d37cf8 45%, #ff52bb 68%, #ffd45c 100%);
  box-shadow:
    inset 0 1px 14px rgba(255, 255, 255, 0.46),
    0 0 28px rgba(255, 79, 195, 0.32);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
}

.compass-btn:hover .compass-caption {
  color: #10020c;
  border-color: rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 28% 24%, #f2ffff, transparent 30%),
    linear-gradient(135deg, #9ff4ff 0%, #e56dff 44%, #ff48bc 68%, #ffe15f 100%);
  box-shadow:
    inset 0 1px 16px rgba(255, 255, 255, 0.5),
    0 0 44px rgba(255, 79, 195, 0.42);
}

.compass-btn:active .compass-caption {
  transform: translate(-50%, -50%) scale(0.98);
}

.form-view.active {
  width: min(1180px, 100%);
  padding: clamp(56px, 7vw, 92px) 0 96px;
  color: #edf8ff;
}

.form-view .page-header {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.form-view .page-header .eyebrow {
  color: #ff82d5;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.form-view .page-header h2 {
  margin: 0 0 12px;
  color: #f5fbff;
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.form-view .page-header p {
  max-width: 760px;
  color: rgba(224, 240, 248, 0.72);
  font-size: 18px;
  line-height: 1.8;
}

.info-form,
.form-view .loading-card {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(6, 10, 17, 0.72);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.form-grid {
  gap: 16px;
}

.field,
.birth-place-field {
  gap: 9px;
}

.field span,
.birth-place-field > span {
  color: rgba(255, 200, 238, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.birth-place-field input,
.birth-place-field select {
  min-height: 54px;
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 14px;
  color: #eef8ff;
  background: rgba(255, 255, 255, 0.058);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field input::placeholder,
.birth-place-field input::placeholder {
  color: rgba(224, 240, 248, 0.42);
}

.field input:focus,
.field select:focus,
.birth-place-field input:focus,
.birth-place-field select:focus {
  border-color: rgba(255, 79, 195, 0.68);
  box-shadow:
    0 0 0 3px rgba(255, 79, 195, 0.14),
    0 0 22px rgba(30, 225, 231, 0.1);
  outline: none;
}

.field select,
.birth-place-field select {
  color-scheme: dark;
}

.field select option,
.birth-place-field select option,
.field select optgroup,
.birth-place-field select optgroup {
  color: #edf8ff;
  background: #111923;
}

.field select option:checked,
.birth-place-field select option:checked {
  color: #edf8ff;
  background: #273447;
}

.field select option:hover,
.birth-place-field select option:hover,
.field select option:focus,
.birth-place-field select option:focus {
  color: #ffffff;
  background: #203143;
}

.field select option:disabled,
.birth-place-field select option:disabled {
  color: rgba(224, 240, 248, 0.46);
}

.inline-input,
.birth-date-picker,
.mainland-place-picker {
  gap: 10px;
}

.inline-input .check {
  min-height: 54px;
  border: 1px solid rgba(135, 231, 235, 0.16);
  border-radius: 14px;
  color: rgba(232, 247, 255, 0.76);
  background: rgba(255, 255, 255, 0.052);
}

.inline-input .check input {
  accent-color: #ff4fc3;
}

.place-tabs {
  padding: 5px;
  border-color: rgba(135, 231, 235, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.052);
}

.place-tabs label {
  min-height: 36px;
  color: rgba(232, 247, 255, 0.7);
  border-radius: 11px;
}

.place-tabs label:has(input:checked) {
  color: #130413;
  background: linear-gradient(135deg, #86f2ff, #ff71cf);
}

.overseas-place-picker .ghost-btn,
.form-actions .ghost-btn,
.toolbar-actions .ghost-btn {
  color: rgba(237, 249, 255, 0.82);
  border: 1px solid rgba(135, 231, 235, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.052);
}

.tier-box {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(135, 231, 235, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.042);
}

.tier-heading strong {
  color: #f3fbff;
}

.tier-option {
  min-height: 70px;
  border: 1px solid rgba(135, 231, 235, 0.14);
  border-radius: 16px;
  color: rgba(232, 247, 255, 0.74);
  background: rgba(5, 10, 17, 0.58);
}

.tier-option:has(input:checked) {
  border-color: rgba(255, 79, 195, 0.6);
  background:
    linear-gradient(135deg, rgba(255, 79, 195, 0.13), rgba(30, 225, 231, 0.08)),
    rgba(5, 10, 17, 0.72);
}

.tier-name {
  color: #f7fcff;
}

.tier-desc {
  color: rgba(224, 240, 248, 0.56);
}

.tier-price {
  color: #ffdd6d;
  font-variant-numeric: tabular-nums;
}

.tier-option input {
  border-color: rgba(135, 231, 235, 0.4);
  background: rgba(5, 10, 17, 0.6);
}

.tier-option input:checked {
  border-color: #ff4fc3;
  background: #ff4fc3;
  box-shadow: inset 0 0 0 5px rgba(5, 10, 17, 0.86);
}

.tier-option.is-disabled {
  color: rgba(179, 194, 203, 0.44);
  background: rgba(255, 255, 255, 0.028);
}

.tier-option.is-disabled input {
  border-color: rgba(179, 194, 203, 0.22);
  background: rgba(179, 194, 203, 0.12);
  box-shadow: none;
}

.form-actions {
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.form-actions .primary-btn,
.loading-actions .primary-btn,
.toolbar-actions .primary-btn,
.upgrade-btn {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #140514;
  background: linear-gradient(135deg, #9ff4ff 0%, #ff5dc7 62%, #ffe060 100%);
  box-shadow: 0 16px 34px rgba(255, 79, 195, 0.18);
}

.form-actions .primary-btn:hover,
.loading-actions .primary-btn:hover,
.toolbar-actions .primary-btn:hover,
.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(255, 79, 195, 0.24);
}

.loading-view.active {
  color: #edf8ff;
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 28px, 760px);
  }

  .home-header {
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-view.active {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

  .hero-copy h1 {
    gap: 0;
  }

  .hero-title-main,
  .hero-title-sub {
    font-size: clamp(76px, 22vw, 136px);
  }

  .hero-panel {
    min-height: auto;
  }

  .compass-btn {
    width: min(520px, 92vw);
    min-width: 0;
  }

  .form-view.active {
    padding-top: 42px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 20px);
    padding-top: 14px;
  }

  .home-header {
    gap: 16px;
  }

  .brand-mark strong {
    font-size: 22px;
  }

  .language-switch button {
    min-width: 34px;
    padding-inline: 9px;
  }

  .site-nav a {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero-title-main,
  .hero-title-sub {
    font-size: clamp(64px, 24vw, 108px);
  }

  .hero-copy .subtitle {
    margin-top: 24px;
    font-size: 18px;
  }

  .form-grid,
  .birth-date-picker,
  .mainland-place-picker,
  .tier-option {
    grid-template-columns: 1fr;
  }

  .tier-option {
    gap: 10px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Official cyber report theme */
.report-view.active {
  width: min(1500px, 100%);
  color: #edf8ff;
  padding-bottom: 90px;
}

.report-toolbar {
  position: relative;
  z-index: 5;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 24px 0 28px;
}

.toolbar-actions {
  margin-top: 0;
  align-items: center;
  flex-wrap: wrap;
}

.upgrade-btn,
.toolbar-actions .primary-btn,
.toolbar-actions .ghost-btn,
.report-toolbar .ghost-btn {
  min-height: 50px;
  border-radius: 16px;
  padding: 0 24px;
  color: rgba(238, 248, 255, 0.86);
  border: 1px solid rgba(135, 231, 235, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.upgrade-btn,
.toolbar-actions .primary-btn {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, #9ff4ff 0%, #ff65c9 62%, #ffe060 100%);
  box-shadow: 0 16px 36px rgba(255, 79, 195, 0.2);
}

.upgrade-btn:hover,
.toolbar-actions .primary-btn:hover,
.toolbar-actions .ghost-btn:hover,
.report-toolbar .ghost-btn:hover {
  color: #f8fdff;
  border-color: rgba(255, 79, 195, 0.42);
  background: rgba(255, 79, 195, 0.12);
  transform: translateY(-1px);
}

.upgrade-btn:hover,
.toolbar-actions .primary-btn:hover {
  color: #130413;
  border-color: transparent;
  background: linear-gradient(135deg, #b8f8ff 0%, #ff74d1 58%, #ffe57c 100%);
  box-shadow: 0 22px 44px rgba(255, 79, 195, 0.26);
}

.report-paper {
  position: relative;
  padding: clamp(22px, 3.2vw, 42px);
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 24px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 79, 195, 0.17), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
    rgba(6, 10, 17, 0.78);
  box-shadow:
    0 36px 92px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.report-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), transparent 84%);
}

.report-paper > * {
  position: relative;
  z-index: 1;
}

.report-cover {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  color: #f4fbff;
  background:
    radial-gradient(circle at 18% 28%, rgba(30, 225, 231, 0.24), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(255, 79, 195, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(10, 18, 28, 0.92), rgba(34, 15, 37, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 58px rgba(0, 0, 0, 0.26);
}

.report-cover .eyebrow,
.summary-head span,
.summary-overview span,
.reading-brief span,
.action-block span,
.summary-copy span {
  color: #ff91dc;
}

.report-cover h3 {
  max-width: 980px;
  margin: 0 0 14px;
  color: #f8fdff;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

.report-cover p {
  color: rgba(224, 240, 248, 0.78);
}

.report-visual-summary {
  margin-top: 28px;
  padding: 24px 0 8px;
  border-top: 1px solid rgba(135, 231, 235, 0.16);
  border-bottom: 1px solid rgba(135, 231, 235, 0.12);
}

.summary-head {
  margin-bottom: 18px;
}

.summary-overview,
.radar-panel,
.metric-panel,
.summary-item,
.reading-brief,
.report-section-overview .report-section-main {
  border: 1px solid rgba(135, 231, 235, 0.16);
  border-radius: 18px;
  color: #edf8ff;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(7, 13, 21, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.summary-overview strong,
.summary-copy strong,
.reading-brief strong,
.report-section h4,
.metric-label span {
  color: #f7fcff;
}

.summary-overview p,
.summary-copy p,
.reading-brief p,
.radar-panel p,
.report-section p,
.report-section li,
.section-paragraph.is-first {
  color: rgba(224, 240, 248, 0.76);
}

.report-chart-grid {
  grid-template-columns: minmax(420px, 0.95fr) minmax(360px, 1.05fr);
}

.radar-panel {
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  min-height: 300px;
  padding: 22px;
}

.radar-frame {
  width: min(320px, 100%);
}

.radar-chart line {
  stroke: rgba(135, 231, 235, 0.2);
}

.radar-grid {
  stroke: rgba(135, 231, 235, 0.24);
}

.radar-fill {
  fill: rgba(255, 79, 195, 0.22);
  stroke: #ff63c7;
  stroke-width: 1.4;
}

.radar-chart circle {
  fill: #0b1420;
  stroke: #9ff4ff;
}

.radar-svg-label {
  fill: #dffcff;
  font-size: 4.7px;
  font-weight: 800;
}

.metric-label strong {
  color: #ff82d5;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.metric-track {
  background: rgba(255, 255, 255, 0.1);
}

.metric-track i,
.summary-meter i.is-active {
  background: linear-gradient(90deg, #9ff4ff, #ff65c9, #ffe060);
}

.summary-grid {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
}

.summary-item {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 164px;
}

.summary-item::before {
  width: 3px;
  background: linear-gradient(#22f0ef, #ff55c6);
  opacity: 0.9;
}

.summary-index,
.report-section-index {
  color: #ff93db;
  border-color: rgba(255, 79, 195, 0.34);
  background: rgba(255, 79, 195, 0.08);
}

.summary-meter i {
  background: rgba(255, 255, 255, 0.12);
}

.report-content {
  gap: 20px;
}

.report-section {
  border-bottom: 1px solid rgba(135, 231, 235, 0.12);
}

.report-section h4::after {
  background: linear-gradient(90deg, rgba(255, 79, 195, 0.38), transparent);
}

.section-lede {
  border-left-color: #ff65c9;
  color: #f1fbff !important;
  background: rgba(255, 79, 195, 0.08);
}

.toc-link {
  color: rgba(237, 249, 255, 0.78);
  border-color: rgba(135, 231, 235, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.toc-link:hover {
  color: #ffffff;
  border-color: rgba(255, 79, 195, 0.34);
  background: rgba(255, 79, 195, 0.1);
}

#standardPurchaseDialog::backdrop,
#registerPromptDialog::backdrop,
#emailDeliveryDialog::backdrop {
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 79, 195, 0.24), transparent 34%),
    rgba(3, 6, 11, 0.72);
  backdrop-filter: blur(10px);
}

.purchase-dialog,
.register-dialog,
.email-dialog {
  width: min(640px, calc(100vw - 34px));
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 22px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 79, 195, 0.18), transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(6, 10, 17, 0.92);
  box-shadow:
    0 32px 84px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.purchase-dialog .eyebrow,
.register-dialog .eyebrow,
.email-dialog .eyebrow {
  color: #ff91dc;
}

.purchase-dialog h2,
.register-dialog h2,
.email-dialog h2 {
  color: #f7fcff;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.purchase-dialog p,
.register-dialog p,
.email-dialog p {
  color: rgba(224, 240, 248, 0.72);
}

.purchase-card {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(135, 231, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.purchase-card strong,
.purchase-card span {
  color: #f8fdff;
}

.purchase-card span {
  color: #ffe16d;
  font-size: 24px;
  font-weight: 900;
}

.purchase-dialog button,
.register-dialog button,
.email-dialog button {
  min-height: 48px;
  border-radius: 14px;
  color: rgba(237, 249, 255, 0.82);
  border: 1px solid rgba(135, 231, 235, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.purchase-dialog #confirmStandardPurchaseBtn,
.register-dialog #registerNowBtn,
.email-dialog #saveDeliveryEmailBtn {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, #9ff4ff 0%, #ff65c9 62%, #ffe060 100%);
}

.purchase-dialog button:hover,
.register-dialog button:hover,
.email-dialog button:hover {
  color: #ffffff;
  border-color: rgba(255, 79, 195, 0.42);
  background: rgba(255, 79, 195, 0.12);
}

.purchase-dialog #confirmStandardPurchaseBtn:hover,
.register-dialog #registerNowBtn:hover,
.email-dialog #saveDeliveryEmailBtn:hover {
  color: #140514;
  border-color: transparent;
  background: linear-gradient(135deg, #b8f8ff 0%, #ff74d1 58%, #ffe57c 100%);
}

@media (max-width: 1180px) {
  .report-chart-grid,
  .radar-panel {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* Official cyber loading state */
.loading-view.active {
  width: min(1180px, 100%);
  min-height: calc(100dvh - 120px);
  display: grid;
  place-items: center;
  color: #edf8ff;
}

.loading-card {
  width: min(960px, 100%);
  padding: clamp(30px, 4.5vw, 54px);
  border: 1px solid rgba(135, 231, 235, 0.18);
  border-radius: 24px;
  color: #edf8ff;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 79, 195, 0.18), transparent 34%),
    radial-gradient(circle at 24% 78%, rgba(30, 225, 231, 0.14), transparent 32%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026)),
    rgba(6, 10, 17, 0.84);
  box-shadow:
    0 36px 92px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.loading-card .eyebrow {
  color: #ff91dc;
  font-weight: 900;
}

.loading-card h2 {
  margin: 10px 0 18px;
  color: #f7fcff;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(30, 225, 231, 0.12);
}

.loading-note,
.loading-step {
  color: rgba(224, 240, 248, 0.76);
}

.progress-track {
  height: 13px;
  margin: 34px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #9ff4ff, #ff65c9, #ffe060);
  box-shadow: 0 0 24px rgba(255, 79, 195, 0.22);
}

.loading-actions {
  align-items: center;
  margin-top: 30px;
}

.loading-actions .ghost-btn {
  min-height: 50px;
  border-radius: 14px;
  color: rgba(237, 249, 255, 0.82);
  border: 1px solid rgba(135, 231, 235, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.loading-actions .ghost-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 79, 195, 0.42);
  background: rgba(255, 79, 195, 0.12);
}
