:root {
  color-scheme: light;
  --ink: #152622;
  --muted: #71807b;
  --brand: #174d41;
  --brand-soft: #e7f1ed;
  --accent: #e97842;
  --paper: #ffffff;
  --warm: #f6f4ee;
  --line: #e5ebe8;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f3f7f5;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1040px, 100%); margin: auto; padding: 0 24px 64px; }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 11px;
  margin: 0 -24px; padding: 14px 24px; border-bottom: 1px solid rgba(229,235,232,.85);
  background: rgba(255,255,255,.88); backdrop-filter: blur(18px);
}
.brand-mark, .assistant-avatar, .service-icon {
  display: grid; place-items: center; flex: 0 0 auto; font-weight: 800; color: white; background: var(--brand);
}
.brand-mark { width: 40px; height: 40px; border-radius: 13px; }
.topbar > div:nth-child(2) { display: grid; gap: 2px; }
.topbar strong { font-size: 15px; }
.topbar span { color: var(--muted); font-size: 11px; }
.topbar i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #31ae74; }
.ghost-button {
  margin-left: auto; padding: 9px 14px; border: 1px solid #cadbd4; border-radius: 999px;
  color: var(--brand); background: white; font-size: 13px; font-weight: 700;
}
.identity-notice {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 11px 13px;
  border: 1px solid #eadfcf; border-radius: 13px; color: #6e5b43; background: #fffaf3; font-size: 11px;
}
.identity-notice strong { color: #9b572f; white-space: nowrap; }

.hero { padding: 56px 4px 34px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 68px); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero > p:not(.eyebrow) { max-width: 600px; margin: 18px 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-tags, .service-points { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-tags span, .service-points span { padding: 6px 10px; border-radius: 999px; color: var(--brand); background: white; font-size: 11px; font-weight: 700; }

.quick-section { margin-bottom: 18px; }
.section-title, .chat-heading, .chat-heading > div, .copy-row { display: flex; align-items: center; }
.section-title { justify-content: space-between; margin-bottom: 10px; }
.section-title h2 { margin: 0; font-size: 16px; }
.section-title span { color: var(--muted); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick-grid button, .need-grid button {
  min-height: 72px; padding: 13px; border: 1px solid var(--line); border-radius: 16px;
  text-align: left; color: var(--ink); background: var(--paper); transition: .18s ease;
}
.quick-grid button:hover, .need-grid button:hover { border-color: #aacbc0; transform: translateY(-1px); }
.quick-grid strong { display: block; margin-bottom: 5px; font-size: 13px; }
.quick-grid span { color: var(--muted); font-size: 11px; }

.chat-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 45px rgba(24,66,55,.08); }
.chat-heading { justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-heading > div { gap: 10px; }
.assistant-avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 10px; }
.chat-heading strong, .chat-heading small { display: block; }
.chat-heading strong { font-size: 14px; }
.chat-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.chat-heading button { border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.messages { min-height: 360px; max-height: 510px; overflow-y: auto; padding: 20px; background: #fbfcfb; }
.message { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 15px; }
.message.user { justify-content: flex-end; }
.bubble { max-width: min(650px, 84%); padding: 12px 14px; border-radius: 17px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.assistant .bubble { border: 1px solid #eceae3; border-bottom-left-radius: 5px; background: var(--warm); }
.user .bubble { border-bottom-right-radius: 5px; color: white; background: var(--brand); }
.source { display: block; margin-top: 7px; color: #87928e; font-size: 10px; }
.message-action { margin-top: 9px; padding: 7px 10px; border: 1px solid #b8d4c9; border-radius: 999px; color: var(--brand); background: white; font-size: 11px; font-weight: 700; }
.composer { display: flex; align-items: flex-end; gap: 9px; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; max-height: 110px; resize: none; padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: #f8faf9; }
.composer textarea:focus { border-color: #85b5a4; background: white; }
.composer button, .primary-button { border: 0; border-radius: 13px; color: white; background: var(--brand); font-weight: 800; }
.composer button { padding: 12px 17px; }
.disclaimer { margin: 0; padding: 0 16px 12px; color: #919c98; font-size: 9px; text-align: center; }

.service-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  margin-top: 18px; padding: 22px; border: 1px solid #dce8e3; border-radius: 22px; background: #eaf3ef;
}
.service-icon { width: 52px; height: 52px; border-radius: 16px; color: var(--brand); background: white; font-size: 15px; }
.service-card h2 { margin: 0 0 6px; font-size: 18px; }
.service-copy > p:not(.eyebrow) { margin: 0 0 10px; color: #5e746c; font-size: 13px; line-height: 1.6; }
.service-points span { color: var(--brand); background: rgba(255,255,255,.72); }
.primary-button { padding: 11px 15px; }
.primary-button.wide { width: 100%; margin-top: 13px; }

dialog { width: min(500px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15,37,31,.52); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: 26px; }
.dialog-shell h2 { margin: 0 0 7px; font-size: 21px; }
.dialog-shell > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #edf3f0; font-size: 20px; }
.dialog-shell label { display: grid; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 11px; font-weight: 800; }
.copy-row { justify-content: space-between; gap: 10px; padding: 13px; border-radius: 13px; color: var(--ink); background: #edf4f1; }
.copy-row strong { overflow-wrap: anywhere; font-size: 16px; }
.copy-row button { border: 0; color: var(--brand); background: transparent; font-weight: 800; }
.dialog-shell textarea { width: 100%; resize: none; padding: 11px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fafcfb; }
.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.need-grid button { min-height: 62px; }
.soft-note { padding: 11px; border-radius: 11px; background: var(--warm); font-size: 11px; }
.commercial-note { color: #7c6757 !important; font-size: 11px !important; }
.site-footer { margin-top: 20px; padding: 18px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer strong { color: var(--ink); }
.site-footer p { max-width: 750px; margin: 6px 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.site-footer button { padding: 0; border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; }
.site-footer small { color: #909b97; }
.site-footer a { color: var(--brand); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal-shell { position: relative; max-height: min(76vh, 680px); overflow-y: auto; padding: 28px; }
.legal-shell h2 { margin: 0 0 14px; }
.legal-shell h3 { margin: 18px 0 4px; font-size: 14px; }
.legal-shell p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.consent-shell { padding: 28px; text-align: center; }
.consent-shell .assistant-avatar { margin: 0 auto 14px; }
.consent-shell h2 { margin: 0 0 14px; }
.consent-shell ul { margin: 0; padding: 15px 15px 15px 34px; border-radius: 14px; text-align: left; color: var(--muted); background: #f5f8f6; font-size: 12px; line-height: 1.8; }
.text-button { margin-top: 12px; border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 800; }

@media (max-width: 760px) {
  body { background: #f7f9f8; }
  .app-shell { padding: 0 10px 24px; }
  .topbar { margin: 0 -10px; padding: 11px 12px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .hero { padding: 30px 4px 24px; }
  .identity-notice { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: 10px; }
  .hero h1 { font-size: 39px; }
  .hero > p:not(.eyebrow) { margin: 14px 0; font-size: 13px; }
  .hero-tags span:nth-child(3) { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .quick-grid button { min-height: 66px; padding: 11px; border-radius: 14px; }
  .section-title span { display: none; }
  .chat-card { border-radius: 20px; box-shadow: 0 12px 35px rgba(24,66,55,.07); }
  .chat-heading { padding: 13px; }
  .messages { min-height: 420px; max-height: 58vh; padding: 14px 10px; }
  .bubble { max-width: 88%; padding: 11px 12px; font-size: 13px; }
  .composer { position: sticky; bottom: 0; padding: 9px; background: white; }
  .composer textarea { padding: 11px; font-size: 13px; }
  .composer button { padding: 11px 14px; }
  .service-card { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border-radius: 18px; }
  .service-card h2 { font-size: 16px; }
  .service-copy > p:not(.eyebrow) { font-size: 12px; }
  .service-points { display: none; }
  .service-card .primary-button { grid-column: 1 / -1; width: 100%; background: var(--brand); }
  dialog { border-radius: 20px; }
  .dialog-shell { padding: 24px 18px 18px; }
  .need-grid { grid-template-columns: 1fr; }
}
