/* 填写页 — 顶栏步骤 + 玻璃分区表单（克制圆角） */
html.fill-page { font-size: 15px; }

.fill-sticky-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 75, 255, 0.08);
}

.fill-head-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px 22px;
}

.fill-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.fill-head-title .kicker {
  margin: 0;
  font-size: 0.72rem;
}

.fill-head-heading {
  margin: 4px 0 0;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.fill-head-progress {
  flex-shrink: 0;
  min-width: 200px;
  max-width: 300px;
}

.fill-head-progress .progress-wrap {
  margin: 0;
}

.fill-page .progress-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(91, 75, 255, 0.1);
}

.fill-page .progress-fill {
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(91, 75, 255, 0.2);
}

.fill-head-progress .progress-label {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* 四步导航 — 分块卡片，与下方留空 */
.fill-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: none;
  background: transparent;
}

.fill-step-tab {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 75, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fill-step-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(91, 75, 255, 0.22);
}

.fill-step-tab.active {
  background: #fff;
  border-color: rgba(91, 75, 255, 0.28);
  box-shadow: 0 4px 16px rgba(91, 75, 255, 0.1);
}

.fill-step-tab.done:not(.active) {
  background: rgba(255, 255, 255, 0.7);
}

.fill-step-tab.done:not(.active) .fill-step-num {
  color: rgba(13, 148, 136, 0.85);
}

.fill-step-num {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(91, 75, 255, 0.45);
  line-height: 1.5;
}

.fill-step-tab.active .fill-step-num {
  color: var(--grad-a);
}

.fill-step-body strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.fill-step-body em {
  display: block;
  margin-top: 2px;
  font-size: 0.67rem;
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* 主内容 — 无大白框，分区卡片 */
.fill-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.fill-main {
  min-width: 0;
}

.form-section {
  scroll-margin-top: 160px;
}

.fill-page .quick-fill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
  margin-bottom: 14px;
}

.fill-page .quick-fill-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.fill-section-title {
  margin: 0 0 16px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.fill-page .section-card {
  margin-bottom: 14px;
  padding: 22px 24px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 28px rgba(26, 22, 54, 0.05);
  animation: none;
}

.fill-page .section-card:last-of-type {
  margin-bottom: 0;
}

.fill-page .core-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91, 75, 255, 0.07), rgba(232, 83, 154, 0.05));
  border: 1px solid rgba(91, 75, 255, 0.12);
}

.fill-page .core-banner-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.fill-page .step-intro {
  margin: -4px 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid rgba(91, 75, 255, 0.3);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.fill-page .choice-group {
  margin-bottom: 20px;
}

.fill-page .choice-group.highlight {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.fill-page .choice-group.highlight legend {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.fill-page .core-context-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.fill-page .core-row--meta {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.fill-page .core-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fill-page .choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fill-page .choice-chip {
  display: inline-flex;
  cursor: pointer;
}

.fill-page .choice-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fill-page .choice-chip span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(91, 75, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  transition: background 0.12s, border-color 0.12s;
}

.fill-page .choice-chip:has(input:checked) span {
  border-color: var(--grad-a);
  background: rgba(91, 75, 255, 0.08);
  color: var(--grad-a);
  font-weight: 600;
}

.fill-page .field-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(91, 75, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.fill-page .field-select:focus {
  outline: none;
  border-color: var(--grad-a);
  box-shadow: 0 0 0 3px rgba(91, 75, 255, 0.1);
}

.fill-page .choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fill-page .choice-card {
  padding: 8px 14px;
  border: 1px solid rgba(91, 75, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transform: none;
}

.fill-page .choice-card:has(input:checked) {
  border-color: var(--grad-a);
  background: rgba(91, 75, 255, 0.08);
  box-shadow: none;
}

.fill-page .number-input {
  border-radius: 10px;
  border-width: 1.5px;
  font-size: 1.3rem;
  padding: 12px 14px;
  background: #fff;
}

.fill-page .other-input,
.fill-page .scale-option {
  border-radius: 8px;
}

.fill-page .tier-picker {
  margin: 18px 0 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.fill-page .tier-picker h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.fill-page .tier-card {
  border-radius: 10px;
}

.fill-page .tier-card.active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(91, 75, 255, 0.1), rgba(232, 83, 154, 0.08));
  box-shadow: 0 4px 14px rgba(91, 75, 255, 0.12);
}

.fill-page .confirm-disclaimer {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(91, 75, 255, 0.08);
  font-size: 0.8rem;
}

.fill-actions {
  margin-top: 18px;
  padding: 0 4px;
  display: flex;
  justify-content: flex-end;
}

.fill-actions .btn-lg {
  min-width: 240px;
  border-radius: 999px;
}

.confirm-all-btn {
  max-width: 440px;
  border-radius: 999px;
}

.fill-page .doc-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 24px 28px;
  text-align: center;
}

@media (min-width: 900px) {
  .fill-page .core-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fill-head-inner,
  .fill-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fill-head-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .fill-head-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .fill-head-title {
    display: none;
  }

  .fill-head-progress {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .fill-head-progress .progress-label {
    margin-top: 4px;
    text-align: left;
    font-size: 0.72rem;
  }

  .fill-page .progress-bar {
    height: 5px;
  }

  .fill-step-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fill-step-nav::-webkit-scrollbar {
    display: none;
  }

  .fill-step-tab {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
  }

  .fill-step-body em {
    display: none;
  }

  .fill-step-body strong {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .fill-step-num {
    font-size: 0.65rem;
  }

  .fill-step-tab.active {
    box-shadow: none;
  }

  .form-section {
    scroll-margin-top: 108px;
  }

  .fill-layout {
    padding-top: 8px;
  }

  .fill-page .quick-fill-bar {
    display: none;
  }

  .fill-page .section-card {
    padding: 16px 14px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .fill-section-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 0.94rem;
  }

  .fill-page .core-row--meta {
    grid-template-columns: 1fr;
  }

  .fill-page .core-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .fill-step-tab {
    padding: 6px 10px;
  }

  .fill-page .core-metrics-grid {
    grid-template-columns: 1fr;
  }
}
