:root {
  --navy: #172235;
  --ink: #20293a;
  --muted: #697386;
  --line: #e2e5eb;
  --paper: #f6f4ef;
  --orange: #ea7338;
  --orange-dark: #ce5721;
  --green: #1c8c6c;
  --blue: #3c68bd;
  --white: #fff;
  --shadow: 0 28px 80px rgba(31, 40, 56, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.tool-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.tool-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(226,229,235,.85); background: rgba(255,255,255,.95); 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: 28px; color: #4f5969; font-size: 14px; font-weight: 650; }
.nav-login { padding: 10px 16px; border-radius: 9px; background: var(--orange); color: #fff; }
.tool-hero { overflow: hidden; padding: 72px 0 126px; background: radial-gradient(circle at 73% 30%, rgba(245,137,81,.2), transparent 30%), linear-gradient(125deg, #182236 0%, #253650 56%, #354863 100%); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tool-hero h1 { margin: 15px 0 18px; color: #fff; font-size: clamp(42px, 6.5vw, 72px); line-height: 1.03; letter-spacing: -.06em; }
.tool-hero h1 em { color: #f09a69; font-style: normal; }
.tool-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.8; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-badges span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); font-size: 12px; }
.hero-proof { position: relative; padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 23px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.proof-mark { display: grid; place-items: center; position: absolute; top: 25px; right: 25px; width: 48px; height: 48px; border-radius: 15px; background: rgba(234,115,56,.2); color: #f0a079; font-size: 22px; }
.hero-proof > strong { display: block; font-size: 70px; line-height: 1; letter-spacing: -.06em; }
.hero-proof > span { color: rgba(255,255,255,.68); font-size: 13px; }
.hero-proof ul { margin: 25px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.13); list-style: none; }
.hero-proof li { margin: 11px 0; color: rgba(255,255,255,.83); font-size: 13px; }
.hero-proof li::before { content: "✓"; margin-right: 9px; color: #69d2b1; font-weight: 800; }
.generator-section { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 92px; }
.generator-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(440px, 1.17fr); gap: 24px; align-items: start; }
.input-card, .result-panel { border: 1px solid rgba(226,229,235,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.input-card { padding: 32px; }
.card-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 27px; }
.step { 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-heading h2, .card-heading p { margin: 0; }
.card-heading h2 { margin-bottom: 6px; font-size: 24px; }
.card-heading p { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: block; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #414b5d; font-size: 13px; font-weight: 700; }
.field > span em { margin-left: 4px; margin-right: auto; color: #c9384b; font-style: normal; }
.field > span small { color: #98a0ad; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #ccd2dc; border-radius: 10px; outline: 0; background: #fff; color: var(--ink); }
.field input, .field select { height: 47px; padding: 0 13px; }
.field textarea { min-height: 190px; padding: 14px; line-height: 1.75; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,115,56,.11); }
.field input::placeholder, .field textarea::placeholder { color: #a0a7b2; }
.generate-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 11px; cursor: pointer; background: linear-gradient(135deg, var(--orange), #f28d56); color: #fff; font-weight: 750; box-shadow: 0 11px 25px rgba(234,115,56,.23); transition: transform .16s, filter .16s; }
.generate-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.generate-button:disabled { cursor: wait; opacity: .6; transform: none; }
.privacy-note { margin: 13px 0 0; color: #9299a5; font-size: 11px; line-height: 1.6; text-align: center; }
.privacy-note i { margin-right: 5px; color: var(--green); }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 9px; background: #fff0f2; color: #a72e3d; font-size: 13px; line-height: 1.6; }
.result-panel { min-height: 644px; padding: 32px; }
.result-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 578px; text-align: center; }
.result-orbit { position: relative; width: 162px; height: 162px; margin: 0 auto 25px; border: 1px dashed #d3d8e1; border-radius: 50%; }
.result-orbit i { display: grid; place-items: center; position: absolute; inset: 45px; border-radius: 22px; background: #fff0e8; color: var(--orange); font-size: 30px; }
.result-orbit span { display: grid; place-items: center; position: absolute; width: 37px; height: 37px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.result-orbit span:nth-child(1) { top: -5px; left: 62px; background: var(--orange); }
.result-orbit span:nth-child(2) { right: 1px; bottom: 19px; background: var(--blue); }
.result-orbit span:nth-child(3) { bottom: 19px; left: 1px; background: var(--green); }
.result-placeholder h2 { margin: 0 0 10px; font-size: 23px; }
.result-placeholder > p { max-width: 400px; margin: 0 auto 25px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.quota-box { width: min(310px, 100%); margin: 0 auto; padding: 15px 17px; border-radius: 13px; background: var(--paper); text-align: left; }
.quota-box span, .quota-box small { display: block; color: var(--muted); font-size: 11px; }
.quota-box strong { float: right; margin-top: -18px; color: var(--orange); font-size: 32px; }
.quota-box small { margin-top: 5px; }
.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: 23px; }
.remaining-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff0e8; color: var(--orange-dark); font-size: 11px; font-weight: 750; }
.reply-cards { display: grid; gap: 12px; }
.reply-card { position: relative; padding: 19px 18px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reply-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 14px 0 0 14px; background: var(--tone); }
.reply-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tone-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.tone-name span small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.tone-name i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: color-mix(in srgb, var(--tone) 12%, white); color: var(--tone); }
.copy-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; background: #fff; color: #647084; font-size: 11px; font-weight: 700; }
.reply-card p { margin: 0; color: #4a5568; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.human-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px 18px; border-radius: 13px; background: #1e2b40; color: #fff; }
.human-cta strong, .human-cta span { display: block; }
.human-cta strong { margin-bottom: 4px; font-size: 14px; }
.human-cta span { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.5; }
.human-actions { display: flex; align-items: center; gap: 8px; }
.human-actions a { padding: 9px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.human-cta button, .dialog-actions button { flex: 0 0 auto; padding: 10px 13px; border: 0; border-radius: 8px; cursor: pointer; background: var(--orange); color: #fff; font-size: 12px; font-weight: 750; }
.method-section { padding: 84px 0; background: var(--paper); }
.section-heading { margin-bottom: 32px; text-align: center; }
.section-heading h2 { margin: 10px 0 9px; font-size: 34px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.method-grid article { padding: 27px; border: 1px solid #e3e0d8; border-radius: 16px; background: rgba(255,255,255,.78); }
.method-grid article > span { color: var(--orange); font-size: 12px; font-weight: 800; }
.method-grid h3 { margin: 24px 0 8px; font-size: 18px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
dialog { width: min(760px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 34px 100px rgba(19,27,42,.34); }
dialog::backdrop { background: rgba(17,24,37,.62); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; padding: 25px 27px 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 7px 0 5px; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-heading > button { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: #fff; color: #697386; font-size: 21px; }
.unlock-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding: 24px 27px 27px; }
.unlock-layout h3 { margin: 0 0 18px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 5px 0 18px; color: #5d6879; font-size: 12px; line-height: 1.6; }
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--orange); }
.wechat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-radius: 15px; background: var(--paper); text-align: center; }
.wechat-card img { width: 150px; height: 150px; margin-bottom: 13px; border-radius: 8px; object-fit: cover; }
.wechat-card strong { margin-bottom: 5px; }
.wechat-card span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 27px; border-top: 1px solid var(--line); background: #fafafa; color: var(--muted); font-size: 12px; }
.success-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(420px, calc(100% - 40px)); padding: 15px 18px; border-radius: 11px; background: #172235; color: #fff; box-shadow: var(--shadow); line-height: 1.6; }
footer { padding: 27px 0; background: #172235; color: #a9b1be; font-size: 11px; }
footer .tool-container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 980px) {
  .hero-grid, .generator-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-proof { width: min(500px, 100%); }
  .result-panel { min-height: 0; }
  .result-placeholder { min-height: 460px; }
}
@media (max-width: 640px) {
  .tool-container { width: min(100% - 28px, 1160px); }
  .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; }
  .tool-hero { padding: 51px 0 104px; }
  .tool-hero h1 { font-size: 43px; }
  .tool-hero p { font-size: 16px; }
  .generator-section { margin-top: -56px; padding-bottom: 66px; }
  .input-card, .result-panel { padding: 21px 17px; border-radius: 17px; }
  .form-grid, .method-grid, .unlock-layout { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .result-placeholder { min-height: 400px; }
  .result-heading, .human-cta { align-items: flex-start; flex-direction: column; }
  .human-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .human-actions a, .human-cta button { width: 100%; text-align: center; }
  .section-heading h2 { font-size: 28px; }
  .dialog-heading { padding: 22px 19px 16px; }
  .unlock-layout { padding: 21px 19px; }
  .dialog-actions { align-items: flex-start; flex-direction: column; padding: 15px 19px; }
  .dialog-actions button { width: 100%; }
  footer .tool-container { flex-direction: column; }
}
