:root { font-size: 16px; }
:root { --ipa-accent-ink: color-mix(in srgb, var(--brand-deep) 75%, var(--ink)); --ipa-primary: color-mix(in srgb, var(--brand-deep) 78%, black); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font: var(--font-16) / 1.6 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--paper-solid); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.ip-header { min-height: 74px; padding: 13px clamp(20px,4vw,70px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper-solid); }
.ip-brand { text-decoration: none; font-weight: 800; font-size: var(--font-20); letter-spacing: .04em; }
.ip-brand span { display: block; color: var(--brand); font-size: var(--font-12); letter-spacing: .18em; }
.ip-header-link { text-decoration: none; font-size: var(--font-14); color: var(--ipa-accent-ink); font-weight: 700; }
.ip-header-link:hover { text-decoration: underline; }
.ip-shell { max-width: 1160px; margin: 0 auto; padding: clamp(28px,5vw,70px) clamp(18px,4vw,42px) 82px; }
.ip-eyebrow,.ip-card-kicker,.ip-stage-label { color: var(--ipa-accent-ink); font-weight: 800; letter-spacing: .06em; }
.ip-landing h1 { font-size: clamp(32px,4.2vw,50px); line-height: 1.28; letter-spacing: -.025em; margin: 18px 0 22px; max-width: 780px; }
.ip-landing h1 span { color: var(--ipa-accent-ink); }
.ip-lead { max-width: 760px; color: var(--muted); font-size: clamp(17px,1.8vw,21px); line-height: 1.75; margin-bottom: 40px; }
.ip-landing-grid { display: grid; grid-template-columns: minmax(280px,410px) minmax(0,1fr); gap: 22px; }
.ip-start-card,.ip-path-card,.ip-panel { border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: 0 20px 60px rgba(0,0,0,.045); }
.ip-start-card,.ip-path-card { padding: clamp(24px,3vw,36px); }
.ip-start-card label { display: block; font-size: var(--font-18); font-weight: 750; margin-bottom: 14px; }
.ip-start-card select,.ip-contact select,.ip-contact input:not([type=checkbox]) { width: 100%; min-height: 52px; padding: 11px 15px; color: var(--ink); background: var(--paper-solid); border: 1px solid var(--line); border-radius: 13px; font-size: var(--font-16); }
.ip-start-card select:focus-visible,.ip-contact input:focus-visible,.ip-button:focus-visible,.ip-option:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ip-button { min-height: 48px; border-radius: 13px; padding: 11px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid var(--line); text-decoration: none; font-size: var(--font-16); font-weight: 750; transition: transform .18s, box-shadow .18s, background .18s; }
.ip-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.ip-button-primary { color: white; background: var(--ipa-primary); border-color: var(--ipa-primary); }
.ip-button-secondary { color: var(--ipa-accent-ink); background: var(--paper-solid); }
.ip-button-text { border: 0; background: transparent; color: var(--muted); }
.ip-start-card .ip-button { width: 100%; margin-top: 16px; }
.ip-fine { color: var(--muted); font-size: var(--font-14); line-height: 1.65; }
.ip-stage-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; padding: 0; margin: 22px 0 0; list-style: none; }
.ip-stage-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--paper-solid); font-size: var(--font-14); }
.ip-stage-list span { color: var(--ipa-accent-ink); font-weight: 850; margin-right: 8px; }
.ip-panel { max-width: 850px; margin: 0 auto; padding: clamp(24px,4vw,54px); }
.ip-quiz-top { display: flex; justify-content: space-between; gap: 16px; font-weight: 750; }
.ip-progress { display:block; width:100%; height:8px; border:0; border-radius:99px; margin:16px 0 40px; background:var(--line); overflow:hidden; appearance:none; }
.ip-progress::-webkit-progress-bar { background:var(--line); border-radius:99px; }
.ip-progress::-webkit-progress-value { background:var(--brand); border-radius:99px; }
.ip-progress::-moz-progress-bar { background:var(--brand); border-radius:99px; }
.ip-panel h2 { font-size: clamp(25px,3.2vw,36px); line-height: 1.38; margin: 10px 0 28px; }
.ip-options { display: grid; gap: 13px; }
.ip-other-industry { width: 100%; min-height: 52px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--paper-solid); }
.ip-option { text-align: left; color: var(--ink); background: var(--paper-solid); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-height: 64px; line-height: 1.55; display: flex; align-items: flex-start; gap: 15px; transition: border-color .18s, transform .18s, background .18s; }
.ip-option.selected { border-color: var(--brand); transform: translateY(-2px); }
/* 触摸设备禁用 hover 效果：微信内核 tap 后 hover 粘滞会落到下一题同位置的选项上，
   看起来像「默认选中了上一题的选项」。选中态只由 .selected 表达。 */
@media (hover: hover) { .ip-option:hover { border-color: var(--brand); transform: translateY(-2px); } }
.ip-option.selected { background: var(--paper); box-shadow: inset 4px 0 var(--brand); }
.ip-option b { flex: 0 0 28px; color: var(--ipa-accent-ink); }
.ip-quiz-actions { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ip-save-status { color: var(--muted); font-size: var(--font-14); }
.ip-report-lead { font-size: var(--font-18); color: var(--muted); max-width: 680px; }
.ip-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.ip-report-grid article,.ip-full-report { background: var(--paper-solid); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
.ip-report h3 { margin: 0 0 12px; font-size: var(--font-18); }
.ip-report ul { margin: 0; padding-left: 23px; }
.ip-report li { margin: 8px 0; }
.ip-report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.ip-consult-value { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 18px; padding: 21px 24px; background: var(--paper-solid); }
.ip-consult-value h3 { margin: 0 0 8px; }
.ip-consult-value p { margin: 0; line-height: 1.75; color: var(--muted); }
.ip-history { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.ip-history h2 { margin: 0 0 4px; font-size: var(--font-20); }
.ip-history p { margin: 0 0 16px; color: var(--muted); }
.ip-history-list { display: grid; gap: 10px; }
.ip-history-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-solid); text-decoration: none; }
.ip-history-link:hover { border-color: var(--brand); }
.ip-dialog { width: min(92vw, 560px); border: 1px solid var(--line); border-radius: 20px; padding: 28px; color: var(--ink); background: var(--paper-solid); box-shadow: 0 24px 70px rgba(0,0,0,.14); }
.ip-dialog::backdrop { background: rgba(0,0,0,.45); }
.ip-dialog h2 { margin: 0 0 12px; font-size: var(--font-20); }
.ip-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.ip-notice,.ip-status { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 13px 17px; background: var(--paper-solid); margin-bottom: 22px; }
.ip-status.error { border-left-color: #b64848; }
.ip-contact { position: relative; }
.ip-close { position: absolute; right: 22px; top: 20px; background: var(--paper-solid); border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 28px; }
.ip-contact form { display: grid; gap: 18px; margin: 24px 0; }
.ip-contact label { display: grid; gap: 8px; font-weight: 700; }
.ip-contact .ip-consent { display: flex; align-items: flex-start; font-weight: 400; font-size: var(--font-14); }
.ip-consent input { width: 20px; height: 20px; margin: 3px 7px 0 0; accent-color: var(--brand-deep); }
.ip-footer { border-top: 1px solid var(--line); padding: 26px; color: var(--muted); text-align: center; font-size: var(--font-14); }
@media (max-width: 760px) {
  .ip-header { min-height: 64px; }
  .ip-header-link { font-size: var(--font-14); }
  .ip-shell { padding-top: 28px; }
  .ip-landing-grid,.ip-report-grid { grid-template-columns: 1fr; }
  .ip-stage-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ip-panel { border-radius: 20px; }
  .ip-progress { margin-bottom: 28px; }
  .ip-report-actions .ip-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ip-button,.ip-option { transition: none; } }

.ip-contact textarea { display:block; width:100%; min-height:120px; padding:12px 15px; font:inherit; color:var(--ink); background:var(--paper-solid); border:1px solid var(--line); border-radius:13px; resize:vertical; }
#ip-supplement-hint { display:block; margin-top:6px; }
.ip-report-grid .ip-priority-card { border:2px solid var(--brand); background:color-mix(in srgb,var(--brand) 6%,var(--paper-solid)); }
#ip-priority-steps { padding-left:24px; }
#ip-priority-steps li { margin:8px 0; }
#ip-secondary { color:var(--muted); font-size:14px; }
#ip-application-fields { border:1px solid var(--line); border-radius:16px; padding:20px; display:grid; gap:16px; min-width:0; }
#ip-application-fields[hidden] { display:none; }
#ip-application-fields legend { font-size:14px; color:var(--muted); padding:0 6px; }
#ip-offer-content { display:grid; gap:16px; margin:24px 0; }
#ip-offer-content p { white-space:pre-line; }
#ip-offer .ip-consent { display:flex; gap:8px; font-size:14px; align-items:flex-start; }
.ip-button:disabled { opacity:.65; transform:none; box-shadow:none; cursor:default; }

.ip-product-fields h3{font-size:16px;margin:0 0 8px}
.ip-product-entry{border:1px solid var(--line);border-radius:12px;padding:16px;display:grid;gap:12px;margin-bottom:12px;background:var(--paper)}
.ip-product-entry label{margin:0}
.ip-product-entry .ip-product-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ip-product-remove{border:0;background:transparent;color:var(--muted);font:inherit;min-height:44px;cursor:pointer;text-decoration:underline}
.ip-product-remove:focus-visible,.ip-contact select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
