:root {
  --paper: #f4f1eb;
  --paper-deep: #e9e4da;
  --surface: #fffdf9;
  --ink: #1f2724;
  --muted: #69706b;
  --faint: #9da39e;
  --line: rgba(31, 39, 36, 0.15);
  --line-strong: rgba(31, 39, 36, 0.28);
  --deep: #263d36;
  --deep-2: #172a25;
  --signal: #dc6944;
  --signal-dark: #bd4f2f;
  --signal-soft: #f2cbbd;
  --success: #367e5d;
  --warning: #9c6917;
  --danger: #a13f38;
  --white: #fffdf9;
  --shell: min(680px, calc(100% - 48px));
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 8px 12px; color: var(--white); background: var(--deep-2); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(244, 241, 235, 0.96); }
.header-inner { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-weight: 800; }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; width: 26px; height: 26px; gap: 3px; padding: 5px; overflow: hidden; background: var(--deep); }
.brand-mark::before { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; background: var(--signal); content: ""; }
.brand-mark span { display: block; width: 5px; background: var(--paper); }
.brand-mark span:first-child { height: 10px; }
.brand-mark span:last-child { height: 16px; }
.brand-name { font-size: 17px; }
.top-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
.top-nav a:hover { color: var(--ink); }
.help-link { color: var(--deep); font-weight: 700; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-block: 58px 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; line-height: 1.4; }
.eyebrow > span { width: 7px; height: 7px; background: var(--signal); }
.intro h1 { margin: 0; color: var(--deep-2); font-size: 48px; line-height: 1.16; }
.intro-copy { max-width: 680px; margin: 15px 0 0; color: var(--muted); font-size: 15px; }
.connection-badge { display: flex; align-items: center; gap: 12px; min-width: 150px; padding: 13px 15px; border: 1px solid var(--line); background: var(--surface); }
.connection-badge span:last-child, .connection-badge small, .connection-badge strong { display: block; }
.connection-badge small { color: var(--faint); font-family: ui-monospace, Consolas, monospace; font-size: 9px; letter-spacing: 0.12em; }
.connection-badge strong { color: var(--deep); font-size: 13px; }
.connection-dot { width: 8px; height: 8px; background: #6db47f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(109, 180, 127, 0.14); }

.workspace { margin-block: 32px; border: 1px solid var(--line-strong); background: var(--surface); }
.tool-surface { min-width: 0; padding: 28px 32px 32px; }
.mode-tabs { display: flex; gap: 4px; padding: 4px; width: 100%; background: var(--paper-deep); }
.mode-tab { flex: 1; min-width: 0; min-height: 40px; padding: 8px 16px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.mode-tab.is-active { color: var(--white); background: var(--deep); }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.workflow-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 0 15px; color: var(--faint); font-size: 12px; }
.workflow-steps li::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.workflow-steps span { font-family: ui-monospace, Consolas, monospace; font-size: 10px; }
.workflow-steps strong { font-size: 12px; }
.workflow-steps li.is-current, .workflow-steps li.is-complete { color: var(--deep); }
.workflow-steps li.is-current::after { background: var(--signal); }
.workflow-steps li.is-complete::after { background: var(--deep); }

.form-step { padding-top: 28px; }
.step-heading { max-width: 610px; }
.step-kicker, .context-label { margin: 0 0 8px; color: var(--signal); font-family: ui-monospace, Consolas, monospace; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.step-heading h2 { margin: 0; color: var(--deep-2); font-size: 24px; line-height: 1.25; }
.step-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
form { margin-top: 22px; }
.field-label { display: block; margin-bottom: 8px; color: var(--deep-2); font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); background: var(--white); transition: border-color 150ms ease, box-shadow 150ms ease; }
input { min-height: 50px; padding: 10px 14px; }
textarea { min-height: 164px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a8ada8; }
input:hover, textarea:hover { border-color: var(--deep); }
input:focus, textarea:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 3px rgba(220, 105, 68, 0.13); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.field-hint, .session-meta { margin: 8px 0 0; color: var(--faint); font-size: 11px; }
.session-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 11px 20px; border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 800; line-height: 1.2; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.62; }
.button-primary { color: var(--white); background: var(--signal); }
.button-primary:hover:not(:disabled) { background: var(--signal-dark); }
.button-secondary { border-color: var(--line-strong); background: transparent; }
.button-secondary:hover:not(:disabled) { border-color: var(--deep); background: var(--paper); }
.button.is-loading::before { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; content: ""; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-button { padding: 0; border: 0; color: var(--signal-dark); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.form-alert { margin: 15px 0 0; padding: 11px 13px; border-left: 3px solid var(--danger); color: var(--danger); background: rgba(161, 63, 56, 0.07); font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.verified-line { display: flex; align-items: center; gap: 12px; margin: -12px 0 34px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.verified-line > span:nth-child(2) { min-width: 0; flex: 1; }
.verified-line small, .verified-line strong { display: block; }
.verified-line small { color: var(--success); font-size: 10px; font-weight: 700; }
.verified-line strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.verified-icon { display: grid; place-items: center; width: 28px; height: 28px; color: var(--white); background: var(--success); font-size: 13px; font-weight: 800; }
.consent-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; margin-top: 18px; padding: 15px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; font-size: 12px; }
.consent-row input { width: 16px; min-height: 0; height: 16px; margin: 2px 0 0; accent-color: var(--signal); }
.consent-row a { color: var(--signal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.result-step { min-height: 430px; }
.result-status { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.result-symbol { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--white); background: var(--signal); }
.result-symbol::after { width: 15px; height: 15px; border: 2px solid var(--white); border-right-color: transparent; border-radius: 50%; animation: spin 850ms linear infinite; content: ""; }
.result-status[data-status="success"] .result-symbol { background: var(--success); }
.result-status[data-status="success"] .result-symbol::after { width: auto; height: auto; border: 0; animation: none; content: "✓"; font-weight: 900; }
.result-status[data-status="failed"] .result-symbol, .result-status[data-status="review"] .result-symbol { background: var(--danger); }
.result-status[data-status="failed"] .result-symbol::after { width: auto; height: auto; border: 0; animation: none; content: "×"; font-size: 22px; }
.result-status[data-status="review"] .result-symbol { background: var(--warning); }
.result-status[data-status="review"] .result-symbol::after { width: auto; height: auto; border: 0; animation: none; content: "!"; font-weight: 900; }
.result-status h2 { margin: 0; color: var(--deep-2); font-size: 28px; }
.result-status p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-line small, .order-line strong { display: block; }
.order-line small { color: var(--faint); font-size: 10px; }
.order-line strong { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.icon-text-button { padding: 6px 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.progress-list { margin: 22px 0 0; padding: 0; list-style: none; }
.progress-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 10px 0; color: var(--muted); font-size: 12px; }
.progress-list li::before { width: 8px; height: 8px; margin-top: 5px; border: 2px solid var(--faint); border-radius: 50%; content: ""; }
.progress-list li.is-complete::before { border-color: var(--success); background: var(--success); }
.progress-list li.is-active::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 4px rgba(220, 105, 68, 0.12); }
.progress-list li small { color: var(--faint); }
.timeout-notice { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--warning); color: #76531b; background: rgba(156, 105, 23, 0.08); font-size: 12px; }
.result-actions { justify-content: flex-start; }

.query-heading { margin-top: 28px; }
.query-fields { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: end; gap: 12px; }
.query-or { display: grid; place-items: center; height: 50px; color: var(--faint); font-size: 11px; }
.query-submit { margin-top: 20px; }
.query-result { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.query-result-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.query-result-head span { min-width: 0; }
.query-result-head small, .query-result-head strong { display: block; }
.query-result-head small { color: var(--faint); font-size: 10px; }
.query-result-head strong { overflow: hidden; color: var(--deep-2); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.query-result > p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.context-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 38px 30px; color: var(--white); background: var(--deep); }
.context-label { color: var(--signal-soft); }
.context-panel h2 { margin: 0; font-size: 25px; line-height: 1.3; }
.route-diagram { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 5px; margin-top: 28px; }
.route-diagram > span { min-width: 0; padding: 12px 9px; border: 1px solid rgba(255, 253, 249, 0.2); font-size: 10px; text-align: center; overflow-wrap: anywhere; }
.route-diagram small { display: block; margin-bottom: 4px; color: var(--signal-soft); font-family: ui-monospace, Consolas, monospace; font-size: 8px; }
.route-diagram i { color: var(--signal-soft); font-style: normal; text-align: center; }
.security-list { margin: 0; padding: 0; list-style: none; }
.security-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 15px 0; border-bottom: 1px solid rgba(255, 253, 249, 0.12); }
.security-list li > span { color: #8dce91; font-size: 12px; }
.security-list p { margin: 0; }
.security-list strong, .security-list small { display: block; }
.security-list strong { font-size: 12px; }
.security-list small { margin-top: 3px; color: rgba(255, 253, 249, 0.52); font-size: 10px; line-height: 1.5; }
.product-box, .support-box { padding-top: 16px; border-top: 1px solid rgba(255, 253, 249, 0.16); }
.product-box span, .support-box span { display: block; color: rgba(255, 253, 249, 0.48); font-size: 10px; }
.product-box strong, .support-box strong { display: block; margin-top: 4px; font-size: 12px; }
.product-box strong { color: var(--signal-soft); }

.service-strip { margin-top: 56px; color: var(--white); background: var(--deep-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 25px; }
.service-grid p { display: grid; grid-template-columns: 28px minmax(0, 1fr); margin: 0; }
.service-grid p > span { grid-row: 1 / 3; color: var(--signal-soft); font-family: ui-monospace, Consolas, monospace; font-size: 10px; }
.service-grid strong, .service-grid small { display: block; }
.service-grid strong { font-size: 12px; }
.service-grid small { color: rgba(255, 253, 249, 0.5); font-size: 10px; }

.faq-section { padding-block: 90px; }
.faq-heading { display: grid; grid-template-columns: 1fr 0.65fr; align-items: end; gap: 60px; }
.faq-heading h2 { margin: 0; color: var(--deep-2); font-size: 38px; line-height: 1.25; }
.faq-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.faq-list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 0; cursor: pointer; color: var(--deep-2); font-size: 14px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--signal); font-size: 21px; font-weight: 400; transition: transform 150ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 790px; margin: -3px 48px 22px 0; color: var(--muted); font-size: 13px; }

.site-footer { color: var(--white); background: var(--deep-2); }
.footer-main { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); gap: 48px; padding-block: 48px; }
.site-footer .brand { color: var(--white); }
.footer-brand p { margin: 15px 0 0; color: rgba(255, 253, 249, 0.48); font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-links span { margin-bottom: 4px; color: var(--signal-soft); font-family: ui-monospace, Consolas, monospace; font-size: 9px; letter-spacing: 0.12em; }
.footer-links a, .footer-links small { color: rgba(255, 253, 249, 0.68); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid rgba(255, 253, 249, 0.12); color: rgba(255, 253, 249, 0.4); font-size: 10px; }
.legal-panels { padding-block: 18px 46px; }
.legal-panels details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-panels summary { color: var(--muted); cursor: pointer; font-size: 11px; }
.legal-panels p { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 880px) {
  :root { --shell: min(100% - 36px, 680px); }
  .top-nav a:not(.help-link) { display: none; }
  .intro { align-items: flex-start; flex-direction: column; gap: 22px; padding-block: 48px 30px; }
  .intro h1 { font-size: 42px; }
  .context-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .security-list { grid-row: span 2; }
  .product-box, .support-box { align-self: end; }
  .faq-heading { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { min-height: 64px; }
  .workspace { margin-block: 20px; }
  .brand-name { font-size: 15px; }
  .help-link { font-size: 11px; }
  .intro { padding-block: 38px 24px; }
  .intro h1 { font-size: 34px; }
  .intro-copy { font-size: 13px; }
  .connection-badge { width: 100%; }
  .tool-surface { padding: 20px 18px 24px; }
  .mode-tabs { width: 100%; }
  .mode-tab { min-width: 0; flex: 1; }
  .workflow-steps { margin-top: 22px; }
  .workflow-steps li { align-items: flex-start; flex-direction: column; gap: 2px; }
  .workflow-steps strong { font-size: 10px; }
  .form-step { padding-top: 24px; }
  .step-heading h2 { font-size: 23px; }
  .input-action { grid-template-columns: 1fr; }
  .input-action .button { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .query-fields { grid-template-columns: 1fr; }
  .query-or { height: 22px; }
  .query-submit { width: 100%; }
  .query-result-head { grid-template-columns: 1fr; }
  .context-panel { display: flex; padding: 30px 22px; }
  .service-grid { grid-template-columns: 1fr; gap: 17px; }
  .faq-section { padding-block: 66px; }
  .faq-heading h2 { font-size: 30px; }
  .faq-list { margin-top: 32px; }
  .faq-list summary { font-size: 13px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
