:root {
  color-scheme: light;
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #10213d;
  --muted: #66758d;
  --curve: #17386d;
  --accent: #d92d2d;
  --panel: #ffffff;
  --line: #dbe4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), transparent 42%),
    #edf3f8;
  color: var(--ink);
}

button,
input { font: inherit; }

.page-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.demo-card {
  overflow: hidden;
  border: 1px solid #d6e0ec;
  border-radius: 28px;
  background: var(--panel);
  box-shadow:
    0 24px 70px rgba(24, 46, 78, 0.12),
    0 2px 8px rgba(24, 46, 78, 0.04);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 7px;
  color: #64748c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.status-panel {
  flex: 0 0 auto;
  min-width: 270px;
  padding: 18px 22px 19px;
  border: 1px solid #cfdaea;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff 0%, #edf3fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.status-label {
  display: block;
  margin-bottom: 7px;
  color: #66758d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-panel strong {
  display: block;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.stage-wrap {
  width: 100%;
  background: #fff;
}

#stage {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
}

.curve {
  fill: none;
  stroke: var(--curve);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-hit-area {
  fill: transparent;
  pointer-events: all;
  cursor: ns-resize;
}

.slider-title {
  fill: #435774;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.slider-caption {
  fill: #52647f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.slider-track {
  stroke: #aebed3;
  stroke-width: 7;
  stroke-linecap: round;
}

.slider-track-hit {
  stroke: transparent;
  stroke-width: 46;
  cursor: ns-resize;
}

.slider-handle {
  cursor: ns-resize;
  outline: none;
  filter:
    drop-shadow(0 7px 10px rgba(18, 38, 69, 0.22))
    drop-shadow(0 2px 3px rgba(18, 38, 69, 0.14));
}

.slider-handle:focus-visible .slider-handle-core {
  stroke: #10213d;
  stroke-width: 3;
}

.slider-handle-core {
  fill: #ef5a4f;
  stroke: none;
}

.barrier-marker circle { fill: var(--accent); }

.barrier-marker line {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.barrier-label {
  fill: var(--accent);
  font-family: "Outfit", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ball {
  transform-box: fill-box;
  transform-origin: center;
}

.earth-image { image-rendering: auto; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 28px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.primary-button,
.secondary-button {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.primary-button {
  border: 1px solid #17386d;
  background: linear-gradient(145deg, #204782 0%, #17386d 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 56, 109, 0.24);
}

.secondary-button {
  border: 1px solid #c7d3e3;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(31, 52, 82, 0.06);
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); }

.primary-button:hover { box-shadow: 0 14px 30px rgba(23, 56, 109, 0.29); }

.secondary-button:hover {
  border-color: #9fb0c7;
  background: #f8fbff;
}

.primary-button:active,
.secondary-button:active { transform: translateY(0); }

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(52, 101, 173, 0.25);
  outline-offset: 3px;
}

.debug-toggle,
.readout { display: none !important; }

@media (max-width: 900px) {
  .page-shell { padding: 14px; }

  .demo-header {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .status-panel {
    width: 100%;
    min-width: 0;
  }

  .controls { padding: 18px; }
}

@media (max-width: 620px) {
  h1 { font-size: 28px; }

  .primary-button,
  .secondary-button {
    flex: 1 1 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: 17px;
  }
}


/* PHASE_AXES_STYLE_START */
.phase-axis-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.95;
}

.phase-axis-tick {
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.95;
}

.phase-axis-current {
  stroke: #7f91af;
}

.phase-axis-future {
  stroke: #d08a3f;
}

.phase-axis-label {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phase-axis-label-current {
  fill: #667895;
}

.phase-axis-label-future {
  fill: #b06d26;
}
/* PHASE_AXES_STYLE_END */

/* NO_OUTER_CANVAS_2_START */

html,
body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body > :first-child {
  max-width: none !important;
  margin: 0 !important;
}

:root {
  background: transparent !important;
}

/* NO_OUTER_CANVAS_2_END */

/* TIPPING_CARD_SHADOW_REMOVAL_START */

.demo-card {
  box-shadow: none !important;
}

.page-shell {
  padding-bottom: 0 !important;
}

html,
body {
  background: transparent !important;
}

/* TIPPING_CARD_SHADOW_REMOVAL_END */

/* EXACT_HEADER_AND_BOTTOM_FIX_START */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow-x: hidden !important;
  overflow-y: hidden !important;

  background: transparent !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.page-shell {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  /*
    原来顶部有 24px，占用了 iframe 的有效高度。
    移除顶部空白，同时保留 6px 给底部圆角边界。
  */
  padding: 0 0 6px !important;

  overflow: visible !important;
}

.demo-card {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  box-shadow: none !important;
}

.demo-header {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    360px !important;

  align-items: start !important;
  justify-content: normal !important;

  column-gap: 34px !important;
}

.demo-header > div:first-child {
  width: 100% !important;
  min-width: 0 !important;
}

.demo-header h1 {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  line-height: 1.04 !important;
}

.demo-title-line {
  display: block !important;
  width: 100% !important;

  white-space: nowrap !important;
}

.status-panel {
  box-sizing: border-box !important;

  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;

  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;

  margin: 0 !important;
  padding: 16px 20px 17px !important;

  overflow: hidden !important;
}

.status-panel strong,
#statusText {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;

  font-size: 18px !important;
  line-height: 1.18 !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

@media (max-width: 1050px) {
  .demo-header {
    grid-template-columns:
      minmax(0, 1fr)
      330px !important;

    column-gap: 26px !important;
  }

  .status-panel {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
  }

  .status-panel strong,
  #statusText {
    font-size: 17px !important;
  }
}

@media (max-width: 760px) {
  .demo-header {
    grid-template-columns: 1fr !important;
    row-gap: 18px !important;
  }

  .demo-title-line {
    white-space: normal !important;
  }

  .status-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* EXACT_HEADER_AND_BOTTOM_FIX_END */

