/* 品牌配色层：独立于四屏布局和地图交互，可集中调节。 */
:root {
  --paper: #fcfcfa;
  --surface: #f3f5f6;
  --white: #ffffff;
  --ink: #1c1c18;
  --muted: #626b71;
  --line: #e0e5e8;
  --green: #436653;
  --sage: #7a9e89;
  --mint: #e1f2e7;
  --blue: #4c829d;
  --apricot: #f7d9b4;
  --corner-mint: 197 237 218;
  --corner-blue: 191 229 249;
  --ai-ink: #285c77;
  --shadow: 0 12px 35px #2636420c;
}

body { background: #f7f9fb; }
.header { background: #ffffffed; border-bottom-color: #e5e9eb; }
.brand { letter-spacing: .035em; }
.brand small { letter-spacing: .1em; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
h1 { font-size: clamp(36px, 3.35vw, 56px); }
h2 { font-size: clamp(32px, 3vw, 46px); }
.serif-accent { font-family: inherit; color: inherit; font-weight: inherit; }
.eyebrow { color: #56665e; letter-spacing: .09em; }
.intro-description, .section-description { color: #566168; }
.status-tag { background: #edf2f4; color: #56636d; }
.tune-button { background: #fff; border-color: #dce4e3; }
.button { border-radius: 12px; }
.primary { box-shadow: 0 5px 15px #43665314; }
.secondary { background: #fff; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #4085aa; }

/* 角部渐变集中在 AI 卡片，地图区保持干净底色。 */
.map-scene { background: #fffefb; }
.scene-glow {
  display: none;
  background: none;
}
.intro-copy .eyebrow { color: #436653; }
.intro-actions > .quiet-link {
  padding: 14px 19px;
  border-radius: 12px;
  background: #dbf1fc;
  color: #285c77;
  font-weight: 500;
}
.stat-block strong { color: #3d464b; }
.stat-icon { background: #ffead0; color: #94602e; }
.map-label { color: #4e6268; }
.map-float { background: #fffffff0; border: 1px solid #e4eae8; transform: none; }
.case-heading h2 { font-size: clamp(30px, 2.8vw, 44px); }
.featured-case { background: #fff; border-color: #dce5e7; box-shadow: 0 16px 45px #273e4b10; }
.featured-case h3 { font-weight: 600; }
.featured-case .case-meta { color: #65747b; }
.case-picker button { background: #fff; border-color: #dbe3e6; color: #53616a; }
.case-picker button[aria-pressed=true] { color: #fff; }

/* AI 使用蓝色识别；卡片右上浅绿、左下浅蓝，复现参考的局部亮色关系。 */
.ai-preview {
  background: #f2f6fa;
  border-top: 1px solid #e6edf1;
  border-bottom: 1px solid #e6edf1;
}
.ai-preview .narrow {
  max-width: 900px;
  padding: 44px 54px;
  border: 1px solid #e0e8e8;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(var(--corner-mint) / .9), transparent 43%),
    radial-gradient(ellipse at 0% 100%, rgb(var(--corner-blue) / .9), transparent 43%),
    #fcfcfa;
  box-shadow: 0 16px 50px #2c46540a;
}
.ai-decoration { display: none; }
.ai-preview h2 { font-size: clamp(32px, 3vw, 46px); }
.ai-preview .eyebrow { color: var(--ai-ink); }
.ai-symbol { background: #c7eafb; color: #285c77; border-radius: 16px; transform: none; box-shadow: none; }
.ai-preview .entry-form { border-color: #c5dce7; border-radius: 16px; box-shadow: 0 8px 26px #285c7709; }
.entry-form textarea::placeholder { color: #76838b; }
.ai-preview .entry-form:focus-within, .chat-main .entry-form:focus-within { border-color: #5795b1; box-shadow: 0 0 0 4px #88c9e51e; }
.ai-preview .primary, .chat-main .primary { background: var(--ai-ink); box-shadow: none; }
.ai-preview .primary:hover, .chat-main .primary:hover { background: #214d64; }
.ai-preview .quick-prompts button, .chat-main .quick-prompts button { background: #ffffffd9; border-color: #c7dce7; color: #315b70; }
.ai-preview .quick-prompts button:hover, .chat-main .quick-prompts button:hover { background: #e2f3fc; }

/* 机构主体为白色，各类服务用绿、蓝、杏色区分。 */
.institutions { background: #fff; }
.location-bar { background: #f5f7f9; border: 1px solid #e2e7eb; border-radius: 12px; padding: 17px 22px; }
.service-card { border-color: #e0e6e9; border-radius: 14px; border-top: 3px solid #9acdb0; box-shadow: 0 4px 16px #26364204; }
.service-card:nth-child(2) { border-top-color: #89c8e8; }
.service-card:nth-child(3) { border-top-color: #e9bd83; }
.service-symbol { background: #d6f0e1; border-radius: 12px; color: #3b6b50; }
.service-card:nth-child(2) .service-symbol { background: #c7eafb; color: #285c77; }
.service-card:nth-child(3) .service-symbol { background: #ffe2b9; color: #8b602c; }
.service-card h3 { color: #22282b; font-weight: 600; }
.service-card .service-meta { color: #6b757b; }
.service-card .quiet-link { color: #3b5d6e; }
.institution-bottom {
  padding: 25px 28px;
  border: 1px solid #e3e9e6;
  border-radius: 16px;
  background: #f5f7f9;
}
.institution-bottom p { color: #4f626c; font-size: 12px; line-height: 1.9; max-width: 65%; }
.institution-bottom .button { flex-shrink: 0; border-radius: 30px; }

/* 独立页面和开发工作台沿用同一套用色分工。 */
.workshop { background: #edf1f4; border-top-color: #e0e6eb; }
.workshop h2 { font-size: 30px; }
.swatch-grid { grid-template-columns: repeat(4, 1fr); }
.swatch, .type-sample, .demo-card { background: #fff; border-color: #dfe6ea; }
.type-sample { border: 1px solid #dfe6ea; }
.type-sample h3 { font-weight: 600; }
.subpage { background: #f5f7fa; }
.subpage h1 { font-weight: 650; }
.chat-sidebar {
  background:
    radial-gradient(ellipse at 100% 0%, rgb(var(--corner-mint) / .75), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgb(var(--corner-blue) / .8), transparent 60%), #fff;
  border-color: #dce6e9;
}
.chat-main { border-color: #dce6eb; box-shadow: 0 8px 35px #273e4b06; }
.chat-bubble { background: #f0f3f6; }
.chat-bubble.user { background: #dff0fa; color: #214c65; }
.chat-main .entry-form { border-color: #cddfe8; }
.filter-bar { border-color: #dce5eb; box-shadow: 0 8px 30px #273e4b05; }
.filter-bar input, .filter-bar select { background: #fff; border-color: #dce3e8; }
.dialog-close { background: #fffffff2; }
.case-dialog { background: #fff; }
footer { background: #253238; border-top: 1px solid #1d2b30; }
footer .brand, footer .brand-name { color: #fff; }
footer .brand-mark { color: #b9ddc7; }
footer .brand small, footer p, footer > div { color: #c3cdd1; }
footer a:hover { color: #fff; }

@media(max-width:1050px) {
  .case-heading h2 { font-size: 34px; }
  .ai-preview .narrow { padding: 38px; }
}
/* 常见笔记本屏幕中，咨询卡片和输入操作尽量完整落在一屏。 */
@media(min-width:701px) and (max-height:900px) {
  .ai-preview { padding-top: 100px; padding-bottom: 30px; }
  .ai-preview .narrow { padding: 28px 44px; }
  .ai-symbol { width: 48px; height: 48px; margin-bottom: 14px; }
  .ai-symbol svg { width: 25px; height: 25px; }
  .ai-preview .eyebrow { margin-bottom: 12px; }
  .ai-preview h2 { font-size: 36px; line-height: 1.35; margin-bottom: 16px; }
  .ai-preview .section-description { font-size: 14px; margin-bottom: 16px; }
  .ai-preview .entry-form { margin-top: 22px; padding: 18px; }
  .ai-preview .entry-form textarea { min-height: 65px; }
  .ai-preview .input-footer { margin-top: 10px; }
  .ai-preview .quick-prompts { margin: 14px 0; }
  .ai-preview .fine-print { margin-bottom: 0; }
}
@media(max-width:700px) {
  h1 { font-size: 30px; line-height: 1.45; }
  h2, .ai-preview h2, .case-heading h2 { font-size: 29px; line-height: 1.45; }
  .intro-actions > .quiet-link { padding: 10px 13px; border-radius: 10px; }
  .map-float { padding: 8px 10px; }
  .ai-preview { padding: 95px 5% 55px; }
  .ai-preview .narrow { padding: 29px 18px; border-radius: 18px; }
  .ai-preview .section-description { font-size: 12px; line-height: 1.9; }
  .ai-preview .entry-form { padding: 15px 13px; }
  .ai-preview .input-footer { flex-wrap: wrap; justify-content: flex-end; }
  .ai-preview .input-footer > span { margin-right: auto; max-width: 52%; }
  .ai-preview .quick-prompts { margin: 18px 0; }
  .location-bar { padding: 14px; }
  .institution-bottom { padding: 20px; align-items: flex-start; }
  .institution-bottom p { max-width: 100%; font-size: 11px; }
  .workshop h2 { font-size: 23px; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-main .input-footer { flex-wrap: wrap; }
}
