:root {
  --navy: #172438;
  --ink: #222d3f;
  --muted: #6d7788;
  --line: #e1e5eb;
  --paper: #f6f5f1;
  --orange: #e87236;
  --blue: #345fa8;
  --white: #fff;
  --shadow: 0 26px 72px rgba(27, 40, 60, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.page-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.tool-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(225,229,235,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.tool-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.tool-brand img { width: 42px; height: 42px; object-fit: contain; }
.tool-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.tool-nav nav { display: flex; align-items: center; gap: 25px; color: #505b6c; font-size: 14px; font-weight: 650; }
.nav-login { padding: 10px 16px; border-radius: 9px; background: var(--orange); color: #fff; }
.hero { overflow: hidden; padding: 70px 0 125px; background: radial-gradient(circle at 78% 20%, rgba(232,114,54,.2), transparent 27%), linear-gradient(123deg, #172438 0%, #263b59 58%, #385478 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.eyebrow { color: #ef915f; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.hero h1 { margin: 14px 0 17px; color: #fff; font-size: clamp(44px, 6vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.8; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.86); font-size: 12px; }
.hero-board { position: relative; min-height: 250px; padding: 31px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.07); }
.hero-board .bubble { position: absolute; padding: 12px 16px; border-radius: 13px 13px 13px 4px; background: #fff; color: #364359; box-shadow: 0 12px 28px rgba(8,18,32,.16); font-size: 12px; }
.bubble-a { top: 28px; left: 28px; }
.bubble-b { top: 86px; right: 25px; }
.bubble-c { top: 144px; left: 53px; }
.hero-board > div { position: absolute; right: 30px; bottom: 22px; text-align: right; }
.hero-board strong, .hero-board small { display: block; }
.hero-board strong { color: #f09b6d; font-size: 46px; line-height: 1; }
.hero-board small { margin-top: 4px; color: rgba(255,255,255,.6); }
.workspace { position: relative; z-index: 2; margin-top: -70px; padding-bottom: 90px; }
.workspace-grid { display: grid; grid-template-columns: minmax(480px, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.selector-card, .result-card { border: 1px solid rgba(225,229,235,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.selector-card { padding: 31px; }
.card-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; }
.card-title > span { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #fff0e8; color: var(--orange); font-weight: 800; }
.card-title h2, .card-title p { margin: 0; }
.card-title h2 { margin-bottom: 5px; font-size: 24px; }
.card-title p { color: var(--muted); font-size: 12px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 11px; color: #3d485a; font-size: 13px; font-weight: 800; }
legend em { color: #c9384b; font-style: normal; }
.choice-grid { display: grid; gap: 9px; }
.industry-grid, .scenario-grid { grid-template-columns: repeat(3, 1fr); }
.platform-grid { grid-template-columns: repeat(4, 1fr); }
.choice-grid label { display: block; cursor: pointer; }
.choice-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-grid label span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; padding: 8px 6px; border: 1px solid #d6dbe3; border-radius: 9px; background: #fff; color: #566173; font-size: 13px; font-weight: 650; transition: .15s ease; }
.choice-grid label span i { color: #929aa7; }
.choice-grid input:checked + span { border-color: var(--orange); background: #fff2eb; color: #c95521; box-shadow: 0 0 0 2px rgba(232,114,54,.08); }
.choice-grid input:checked + span i { color: var(--orange); }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(52,95,168,.2); outline-offset: 2px; }
.optional-fields { margin: 4px 0 20px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; }
.optional-fields summary { padding: 14px 15px; cursor: pointer; color: #4a5567; font-size: 13px; font-weight: 750; }
.optional-fields summary small { margin-left: 5px; color: #929aa7; font-weight: 500; }
.optional-body { display: grid; gap: 14px; padding: 2px 15px 15px; }
.optional-body label { position: relative; display: block; }
.optional-body label > span { display: block; margin-bottom: 7px; color: #566173; font-size: 12px; font-weight: 700; }
.optional-body input, .optional-body textarea { width: 100%; border: 1px solid #ccd2db; border-radius: 9px; outline: 0; background: #fff; }
.optional-body input { height: 43px; padding: 0 12px; }
.optional-body textarea { min-height: 105px; padding: 11px 12px 24px; line-height: 1.65; resize: vertical; }
.optional-body input:focus, .optional-body textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,114,54,.1); }
.optional-body label > small { position: absolute; right: 10px; bottom: 7px; color: #a1a8b3; font-size: 10px; }
.generate-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 53px; padding: 0 20px; border: 0; border-radius: 11px; cursor: pointer; background: linear-gradient(135deg, var(--orange), #f08d59); color: #fff; font-weight: 780; box-shadow: 0 11px 25px rgba(232,114,54,.23); }
.generate-button:hover { filter: brightness(1.03); transform: translateY(-1px); }
.generate-button:disabled { cursor: wait; opacity: .62; transform: none; }
.privacy-note { margin: 12px 0 0; color: #939ba8; font-size: 11px; line-height: 1.6; text-align: center; }
.privacy-note i { margin-right: 5px; color: #24866c; }
.form-error { margin-bottom: 14px; padding: 12px 14px; border-radius: 9px; background: #fff0f2; color: #aa3040; font-size: 13px; line-height: 1.6; }
.result-card { min-height: 663px; padding: 31px; }
.result-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 599px; text-align: center; }
.preview-stack { display: grid; gap: 8px; width: min(285px, 100%); margin: 0 auto 28px; }
.preview-stack span { padding: 13px 17px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; background: #fff; color: #657082; font-size: 12px; text-align: left; box-shadow: 0 7px 22px rgba(37,48,67,.06); }
.preview-stack span:nth-child(2) { margin-inline: 14px -14px; border-left-color: var(--blue); }
.preview-stack span:nth-child(3) { margin-inline: -14px 14px; border-left-color: #24866c; }
.preview-stack span:nth-child(4) { border-left-color: #74559d; }
.result-placeholder h2 { margin: 0 0 9px; font-size: 23px; }
.result-placeholder > p { max-width: 420px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.selected-summary { width: min(350px, 100%); margin: 0 auto; padding: 14px 16px; border-radius: 11px; background: var(--paper); text-align: left; }
.selected-summary strong, .selected-summary span { display: block; }
.selected-summary strong { margin-bottom: 4px; color: #89919d; font-size: 10px; text-transform: uppercase; }
.selected-summary span { color: #3f4b5e; font-size: 13px; font-weight: 750; }
.result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.result-heading h2 { margin: 6px 0 0; font-size: 22px; }
.result-heading button, .script-head button { border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; color: #5e697b; font-weight: 700; }
.result-heading button { padding: 9px 12px; font-size: 11px; }
.script-results { display: grid; gap: 12px; }
.script-item { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.script-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 14px 0 0 14px; background: var(--accent); }
.script-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.script-head > div > span { float: left; margin: 1px 9px 0 0; color: var(--accent); font-size: 10px; font-weight: 900; }
.script-head h3 { margin: 0; font-size: 14px; }
.script-head small { display: block; margin: 4px 0 0 28px; color: var(--muted); font-size: 10px; }
.script-head button { flex: 0 0 auto; padding: 6px 9px; font-size: 10px; }
.script-item p { margin: 0; color: #4a5568; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.conversion-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; padding: 17px 18px; border-radius: 13px; background: var(--navy); color: #fff; }
.conversion-card strong, .conversion-card span { display: block; }
.conversion-card strong { margin-bottom: 4px; font-size: 14px; }
.conversion-card span { color: rgba(255,255,255,.67); font-size: 11px; line-height: 1.5; }
.conversion-card a { flex: 0 0 auto; padding: 10px 12px; border-radius: 8px; background: var(--orange); font-size: 11px; font-weight: 750; }
.custom-link { display: block; margin-top: 12px; color: var(--blue); font-size: 12px; font-weight: 750; text-align: center; }
.value-section { padding: 82px 0; background: var(--paper); }
.section-title { margin-bottom: 29px; text-align: center; }
.section-title h2 { margin: 9px 0 0; font-size: 32px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.value-grid article { padding: 27px; border: 1px solid #e1ded6; border-radius: 16px; background: rgba(255,255,255,.8); }
.value-grid i { color: var(--orange); font-size: 22px; }
.value-grid h3 { margin: 21px 0 8px; font-size: 17px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.success-toast { position: fixed; right: 23px; bottom: 23px; z-index: 50; padding: 14px 17px; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 12px; }
footer { padding: 27px 0; background: var(--navy); color: #aeb6c2; font-size: 11px; }
footer .page-container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 980px) {
  .hero-inner, .workspace-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 30px; }
  .hero-board { width: min(550px, 100%); }
  .result-card { min-height: 0; }
  .result-placeholder { min-height: 470px; }
}
@media (max-width: 690px) {
  .page-container { width: min(100% - 28px, 1180px); }
  .nav-inner { height: 64px; }
  .tool-brand img { width: 36px; height: 36px; }
  .tool-brand small { display: none; }
  .tool-nav nav > a:not(.nav-login) { display: none; }
  .nav-login { padding: 9px 12px; }
  .hero { padding: 51px 0 103px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 16px; }
  .hero-board { min-height: 235px; }
  .workspace { margin-top: -55px; padding-bottom: 65px; }
  .selector-card, .result-card { padding: 21px 17px; border-radius: 17px; }
  .industry-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .result-placeholder { min-height: 410px; }
  .result-heading, .conversion-card { align-items: flex-start; flex-direction: column; }
  .conversion-card a { width: 100%; text-align: center; }
  .value-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 27px; }
  footer .page-container { flex-direction: column; }
}
