.design-wrap { background: #fff; padding: 40px 0 70px; }
.design-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.design-card { border: 1px solid #ececec; border-radius: 12px; padding: 20px; background: #fff; }
.design-title { font-size: 28px; line-height: 1.3; margin-bottom: 8px; }
.design-desc { color: #666; margin-bottom: 20px; }
.section-title { font-size: 18px; margin: 0 0 12px; }
.section-legend {
  font-size: 13px;
  color: #868e96;
  line-height: 1.55;
  margin: -4px 0 14px;
  max-width: 42em;
}
/* 必填：星号（与整站 rem 无关，用 px；赭色与主色绿搭配，比大红更克制） */
.req-mark {
  display: inline-block;
  margin-left: 3px;
  color: #b35900;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  vertical-align: super;
  position: relative;
  top: -0.08em;
}
.req-mark--legend {
  margin: 0 2px 0 1px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: baseline;
  top: 0;
  color: #b35900;
}
.sep { border: 0; border-top: 1px solid #eee; margin: 14px 0; }
.form-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: center; margin-bottom: 10px; }
.form-row label { color: #333; }
.field-optional {
  font-size: 12px;
  font-weight: 400;
  color: #adb5bd;
}
.form-row input, .form-row select { height: 38px; border: 1px solid #dcdcdc; border-radius: 6px; padding: 0 10px; }
.unit { color: #666; min-width: 54px; text-align: right; }
.actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn { height: 38px; padding: 0 16px; border-radius: 6px; border: 1px solid #058951; background: #058951; color: #fff; cursor: pointer; }
.btn-ghost { background: #fff; color: #058951; }
.result-item { display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding: 9px 0; font-size: 14px; }
.result-item strong { color: #111; }
.warn { margin-top: 14px; color: #d9480f; line-height: 1.7; }
.hint { margin-top: 14px; color: #666; font-size: 13px; line-height: 1.7; white-space: pre-line; }

/* 计算完成轻提示（固定 px，避免随 html rem 缩放） */
.calc-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  max-width: min(380px, calc(100vw - 28px));
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  color: #0f5132;
  background: #d3f3e4;
  border: 1px solid rgba(5, 137, 81, 0.38);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.calc-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .calc-toast {
    transition: opacity 0.12s ease, visibility 0.12s ease;
  }
  .calc-toast.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .design-grid { grid-template-columns: 1fr; }
}

/* —— 必填项提示弹窗 —— */
body.wsd-modal-open { overflow: hidden; }

.wsd-modal-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.wsd-modal-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wsd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wsd-modal-panel {
  /* 全站 html 使用极小 rem 基准，此处必须用 px，勿用 rem，否则正文字号≈1px 不可见 */
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  width: min(400px, 100%);
  max-height: min(85vh, 520px);
  overflow: auto;
  margin: auto;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid rgba(5, 137, 81, 0.12);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 48px -12px rgba(15, 23, 42, 0.22),
    0 12px 24px -8px rgba(5, 137, 81, 0.08);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.wsd-modal-root.is-open .wsd-modal-panel {
  transform: translateY(0) scale(1);
}

.wsd-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(5, 137, 81, 0.14), rgba(5, 137, 81, 0.06));
  color: #058951;
}

.wsd-modal-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wsd-modal-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
  color: #475569;
}

.wsd-modal-actions {
  display: flex;
  justify-content: center;
}

.wsd-modal-btn {
  min-width: 140px;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #06a35f 0%, #058951 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 137, 81, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wsd-modal-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(5, 137, 81, 0.4);
}

.wsd-modal-btn:focus-visible {
  outline: 2px solid #058951;
  outline-offset: 3px;
}

.wsd-modal-btn:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .wsd-modal-root,
  .wsd-modal-panel {
    transition: none;
  }
  .wsd-modal-root.is-open .wsd-modal-panel {
    transform: none;
  }
}
