/* ============ 设计变量 ============ */
:root {
  --ink: #0f211c;
  --ink-soft: #4d615a;
  --ink-mute: #7c8d87;
  --paper: #f4f1e6;
  --paper-deep: #eae5d4;
  --surface: #fffdf6;
  --surface-alt: #faf7ee;

  --forest: #073f36;
  --forest-2: #0b5546;
  --forest-3: #10705c;
  --forest-ink: #e8f2ee;

  --gold: #e5b32f;
  --gold-soft: #fbeec4;
  --gold-ink: #6b4d00;

  --danger: #a83a2a;
  --danger-soft: #fbe9e5;
  --ok: #1c7a5c;

  --line: rgba(7, 63, 54, 0.12);
  --line-strong: rgba(7, 63, 54, 0.24);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 33, 28, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(15, 33, 28, 0.22);
  --shadow-lg: 0 18px 48px -20px rgba(15, 33, 28, 0.4);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

/* 关键：很多组件设了 display，会盖掉 hidden 属性的默认样式 */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

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

/* ============ 页头 ============ */
.hero {
  position: relative;
  padding: 26px 20px 58px;
  background: radial-gradient(120% 140% at 12% 0%, #0d6151 0%, var(--forest) 58%, #04241e 100%);
  color: var(--forest-ink);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 26px solid rgba(229, 179, 47, 0.12);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gold);
  color: #3d2c00;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px -8px rgba(229, 179, 47, 0.8);
}

.brand-text__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 242, 238, 0.62);
  margin-bottom: 3px;
}

.brand-text__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text__tagline {
  font-size: 13px;
  color: rgba(232, 242, 238, 0.76);
  margin-top: 2px;
}

/* ============ 主容器 ============ */
.shell {
  max-width: 760px;
  margin: -42px auto 0;
  padding: 0 16px 140px;
  position: relative;
  z-index: 2;
}

.panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ============ 步骤条 ============ */
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.step__dot {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--paper-deep);
  color: var(--ink-mute);
  transition: background 0.25s, color 0.25s;
}

.step__name {
  font-size: 12.5px;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step__bar {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--paper-deep);
  min-width: 6px;
}

.step.is-done .step__dot {
  background: var(--forest-3);
  color: #fff;
}

.step.is-done .step__name {
  color: var(--ink-soft);
}

.step.is-active .step__dot {
  background: var(--gold);
  color: #3d2c00;
}

.step.is-active .step__name {
  color: var(--ink);
  font-weight: 700;
}

.step.is-done .step__bar {
  background: var(--forest-3);
}

/* ============ 区块标题 ============ */
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.head-block {
  margin-bottom: 20px;
}

.field {
  margin-bottom: 22px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 9px;
}

.field__label small {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-mute);
}

.field__hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 7px;
  line-height: 1.5;
}

.field__error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 7px;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

/* ============ 线材卡片 ============ */
.line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.line-card {
  position: relative;
  text-align: left;
  padding: 13px 13px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  transition: border-color 0.18s, background 0.18s, transform 0.12s, box-shadow 0.18s;
  min-height: 116px;
  display: flex;
  flex-direction: column;
}

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

.line-card:active {
  transform: scale(0.985);
}

.line-card[aria-checked="true"] {
  border-color: var(--forest-3);
  background: #f2f8f4;
  box-shadow: 0 0 0 3px rgba(16, 112, 92, 0.1);
}

.line-card__brand {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-top: 1px;
  letter-spacing: -0.01em;
}

.line-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag--gauge {
  font-family: var(--mono);
  letter-spacing: -0.02em;
}

.line-card__feature {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.45;
}

.line-card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 1px;
}

.swatches {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(15, 33, 28, 0.28);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.line-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest-3);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s, transform 0.18s;
}

.line-card[aria-checked="true"] .line-card__check {
  opacity: 1;
  transform: scale(1);
}

/* 自带线卡片占满一行 */
.line-card--byo {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.line-card--byo .line-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.line-card--byo .line-card__brand,
.line-card--byo .line-card__name,
.line-card--byo .line-card__feature {
  display: block;
}

.line-card--byo .price {
  flex: 0 0 auto;
}

/* 只有一种颜色时不做成可选项，直接当说明展示 */
.color-static {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 6px 0;
}

/* ============ 色板 ============ */
.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  font-size: 12.5px;
  transition: border-color 0.18s, background 0.18s;
}

.color-chip[aria-checked="true"] {
  border-color: var(--forest-3);
  background: #f2f8f4;
  font-weight: 700;
}

.color-chip__dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(15, 33, 28, 0.28);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

/* ============ 通用选项卡（穿线法） ============ */
.option-list {
  display: grid;
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}

.option-card[aria-checked="true"] {
  border-color: var(--forest-3);
  background: #f2f8f4;
}

.option-card__name {
  font-size: 14px;
  font-weight: 600;
}

.option-card__note {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.option-card__price {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.option-card[aria-checked="true"] .option-card__price {
  color: var(--forest-3);
  font-weight: 700;
}

/* ============ 分段控件 ============ */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--paper-deep);
}

.segment {
  flex: 1 1 0;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.segment[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ============ 磅数 ============ */
.tension-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
}

.tension-readout {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.tension-readout__value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.tension-readout__value em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 4px;
  letter-spacing: 0;
}

.tension-readout__zone {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--forest-3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.zone-hint {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: -2px;
}

.stepper-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.stepper-btn:hover:not(:disabled) {
  border-color: var(--forest-3);
  color: var(--forest-3);
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper-btn--sm {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 18px;
}

/* 错磅：横线单行控制 */
.stagger-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
}

.stagger-row__label {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mute);
  width: 34px;
}

.stagger-row__value {
  flex: 1 1 auto;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stagger-row__value em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 3px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin-top: 12px;
  background: transparent;
}

.slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--forest-3) var(--fill, 50%), var(--paper-deep) var(--fill, 50%));
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--forest-3);
  box-shadow: var(--shadow-md);
  cursor: grab;
}

.slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--paper-deep);
}

.slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--forest-3);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--forest-3);
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  margin-top: -2px;
}

/* ============ 开关 ============ */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
}

.switch-row__text strong {
  display: block;
  font-size: 14px;
}

.switch-row__text span {
  font-size: 11.5px;
  color: var(--ink-mute);
}

.switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  vertical-align: middle;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--paper-deep);
  transition: background 0.2s;
  position: relative;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.switch input:checked + .switch__track {
  background: var(--forest-3);
}

.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}

/* ============ 表单输入 ============ */
.input,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  font-size: 15px;
  transition: border-color 0.18s, background 0.18s;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--forest-3);
  background: var(--surface);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-mute);
}

/* ============ 摘要 ============ */
.summary {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.summary__row:last-child {
  border-bottom: 0;
}

.summary__row dt {
  color: var(--ink-mute);
  flex: 0 0 auto;
}

.summary__row dd {
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.price-panel {
  margin-top: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--forest-2), var(--forest));
  color: var(--forest-ink);
  padding: 18px 18px 16px;
}

.price-panel h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 242, 238, 0.6);
  font-weight: 600;
  margin-bottom: 12px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 5px 0;
  color: rgba(232, 242, 238, 0.9);
}

.price-line span:last-child {
  font-variant-numeric: tabular-nums;
}

.price-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(232, 242, 238, 0.18);
}

.price-total span {
  font-size: 13px;
  color: rgba(232, 242, 238, 0.75);
}

.price-total strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ============ 底部操作栏 ============ */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px -18px rgba(15, 33, 28, 0.5);
}

.actionbar__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.actionbar__total {
  flex: 1 1 auto;
  min-width: 0;
}

.actionbar__total span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

.actionbar__total strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.12s, filter 0.18s, background 0.18s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(7, 63, 54, 0.9);
}

.btn--primary:hover {
  filter: brightness(1.12);
}

.btn--gold {
  background: var(--gold);
  color: #3d2c00;
  box-shadow: 0 10px 22px -12px rgba(229, 179, 47, 0.9);
}

.btn--gold:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.text-btn {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ 提示条 ============ */
.notice {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border: 1px solid rgba(229, 179, 47, 0.4);
}

.notice--danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(168, 58, 42, 0.28);
}

.notice--ok {
  background: #e8f5ee;
  color: var(--ok);
  border-color: rgba(28, 122, 92, 0.28);
}

/* ============ 订单文本 ============ */
.text-block {
  width: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  padding: 13px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  resize: vertical;
}

.collapse {
  margin-top: 14px;
}

.collapse > summary {
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}

.collapse > summary::-webkit-details-marker {
  display: none;
}

.collapse > summary::before {
  content: "▸ ";
  color: var(--ink-mute);
}

.collapse[open] > summary::before {
  content: "▾ ";
}

/* ============ 成功态 ============ */
.done-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e8f5ee;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 14px;
}

.done-head {
  text-align: center;
  margin-bottom: 22px;
}

.done-head h2 {
  font-size: 21px;
  font-weight: 800;
}

.done-head p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 5px;
}

.code-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--paper-deep);
  margin-top: 8px;
}

/* ============ 页脚 ============ */
.foot-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-mute);
  padding: 26px 0 10px;
  line-height: 1.7;
}

.rules-list {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
}

.rules-list li::before {
  content: "· ";
  color: var(--forest-3);
  font-weight: 700;
}

/* ============ 大屏 ============ */
@media (min-width: 620px) {
  .line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .panel {
    padding: 28px 30px 32px;
  }

  .hero {
    padding: 34px 24px 62px;
  }

  .brand-text__name {
    font-size: 24px;
  }
}

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

  .tension-readout__value {
    font-size: 32px;
  }

  .stepper-btn {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

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

.panel > .view {
  animation: fadeUp 0.28s ease both;
}
