:root {
  --ink: #12232c;
  --muted: #6f7f87;
  --line: rgba(20, 56, 69, 0.1);
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #0e7b76;
  --accent-dark: #075b58;
  --soft: #edf4f2;
  --shadow: 0 24px 70px rgba(23, 55, 66, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% -4%, rgba(144, 206, 191, 0.23), transparent 28rem),
    radial-gradient(circle at 94% 9%, rgba(158, 195, 221, 0.22), transparent 30rem),
    #f2f5f3;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.page-shell { min-height: 100vh; }
.topbar {
  height: 78px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(26, 61, 71, 0.08);
  background: rgba(247, 249, 248, 0.74);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { color: var(--ink); border: 0; background: transparent; padding: 0; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 11px; width: max-content; text-align: left; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: var(--ink); }
.brand-mark svg { width: 22px; fill: none; stroke: #f9fcfa; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-size: 14px; letter-spacing: 0.16em; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 0.18em; }

.nav-links { display: flex; gap: 34px; align-self: stretch; }
.nav-links button { display: grid; place-items: center; border: 0; padding: 0 2px; color: #708087; background: transparent; cursor: pointer; font-size: 13px; position: relative; }
.nav-links button.active, .nav-links button:hover { color: var(--ink); }
.nav-links button.active::after { content: ""; position: absolute; height: 2px; width: 20px; bottom: 16px; border-radius: 4px; background: var(--accent); }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.online { font-size: 11px; color: var(--muted); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.online i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #58b58a; box-shadow: 0 0 0 4px rgba(88,181,138,.12); }
.icon-button, .avatar { border: 0; cursor: pointer; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.72); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #d8e6e1; color: #31534e; font-weight: 700; font-size: 11px; }

main { width: min(1450px, calc(100% - clamp(28px, 6vw, 100px))); margin: 0 auto; padding: 60px 0 80px; }
.site-footer { width:min(1450px,calc(100% - clamp(28px,6vw,100px)));margin:0 auto;padding:22px 0 30px;border-top:1px solid rgba(20,56,69,.1);display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;color:#7a898f;font-size:12px;text-align:center; }
.site-footer a { color:#64767d;text-decoration:none; }
.site-footer a:hover { color:var(--accent);text-decoration:underline; }
.app-view { display: none; }
.app-view.active { display: block; animation: viewIn .35s cubic-bezier(.2,.7,.3,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 35px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.intro h1 { margin: 0; font-size: clamp(34px, 4.3vw, 68px); line-height: 1.08; letter-spacing: -0.055em; font-weight: 580; }
.intro h1 span { color: #7b8c91; }
.intro-copy { width: min(425px, 35vw); margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.9; }

.home-showcase { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(30px, 5vw, 70px); overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.93), rgba(230,240,236,.88)); }
.home-copy { position: relative; z-index: 2; max-width: 520px; }
.home-badge { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: rgba(14,123,118,.1); color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.home-copy h2 { margin: 22px 0 14px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.05em; font-weight: 580; }
.home-copy > p { margin: 0; max-width: 430px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.home-actions { display: flex; gap: 10px; margin-top: 28px; }
.secondary-button { border: 1px solid rgba(18,35,44,.15); border-radius: 13px; background: rgba(255,255,255,.65); padding: 11px 16px; cursor: pointer; font-size: 12px; }
.secondary-button:hover { background: #fff; }
.home-visual { position: relative; min-height: 300px; display: grid; place-items: center; }
.visual-core { width: 176px; height: 176px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #3ea49a, #0d5b5b 72%); box-shadow: 0 32px 80px rgba(10,95,91,.3); }
.visual-core span { font-size: 53px; line-height: 1; letter-spacing: -.06em; }.visual-core small { margin-top: 9px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .1em; }
.visual-orbit { position: absolute; border: 1px solid rgba(15,111,104,.18); border-radius: 50%; }
.orbit-one { width: 255px; height: 255px; }.orbit-two { width: 340px; height: 340px; border-style: dashed; animation: orbit 28s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 3; padding: 11px 14px; border: 1px solid rgba(20,55,67,.1); border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 16px 38px rgba(29,65,72,.12); color: #4d6764; font-size: 10px; backdrop-filter: blur(10px); }
.place-card { left: 5%; top: 22%; }.ai-card { right: 5%; bottom: 23%; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.home-feature { min-height: 190px; padding: 24px; text-align: left; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.75); cursor: pointer; transition: .22s; }
.home-feature:hover { transform: translateY(-3px); border-color: rgba(14,123,118,.25); box-shadow: 0 18px 42px rgba(28,62,70,.08); }
.feature-number { color: var(--accent); font-size: 9px; letter-spacing: .14em; }.home-feature h3 { margin: 24px 0 8px; font-size: 18px; }.home-feature p { min-height: 42px; margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.75; }.home-feature b { color: #4c6f6a; font-size: 10px; font-weight: 600; }
.muted-feature { cursor: default; opacity: .66; }.muted-feature:hover { transform: none; box-shadow: none; border-color: var(--line); }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 10px; }.page-heading h1 { margin: 0; font-size: clamp(35px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; font-weight: 580; }.page-heading > p { width: min(410px, 38vw); margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.glass-panel { border: 1px solid rgba(20, 55, 67, .09); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(16px); border-radius: 26px; overflow: hidden; }
.map-panel { padding: 22px; }
.map-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 2px 18px; }
.location-summary { display: flex; align-items: center; gap: 13px; }
.location-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #158f88, #086763); box-shadow: 0 9px 22px rgba(10, 108, 102, .24); }
.location-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.location-summary .label { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-bottom: 3px; }
.location-summary h2 { font-size: 18px; margin: 0; font-weight: 620; letter-spacing: -.02em; }
.location-summary p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.primary-button { border: 0; border-radius: 13px; color: #fff; background: var(--ink); padding: 11px 15px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-1px); background: var(--accent-dark); }
.primary-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.map-canvas { height: min(62vh, 650px); min-height: 500px; position: relative; overflow: hidden; border-radius: 20px; background: #e7ece5; isolation: isolate; }
.map-art { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.75,.3,1); }
.map-labels text { fill: #7d8c82; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.map-labels .road-name { font-size: 9px; fill: #a1aca4; letter-spacing: .08em; }
.poi circle { fill: #fff; stroke: #5b8f84; stroke-width: 2; }
.poi path { fill: none; stroke: #477a71; stroke-width: 1.5; }
.poi text { fill: #4b635d; font-size: 12px; font-weight: 600; }
.poi.muted { opacity: .78; }
.current-pin { cursor: pointer; transition: transform .35s ease; }
.current-pin .pulse { fill: rgba(14,123,118,.13); animation: pulse 2.2s infinite; }
.current-pin .pin-ring { fill: #fff; }
.current-pin .pin-core { fill: #0e7b76; stroke: #b7e3d9; stroke-width: 4; }
.pin-card rect { fill: rgba(21, 41, 48, .92); }
.pin-card text { fill: #fff; font-size: 11px; font-weight: 700; }
.pin-card text.tiny { fill: #b9c7c8; font-size: 9px; font-weight: 400; }
@keyframes pulse { 0%,100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.22); opacity: .18; } }

.map-search { position: absolute; z-index: 3; top: 16px; left: 16px; width: min(335px, calc(100% - 110px)); height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(25,63,74,.1); border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 10px 28px rgba(34,65,73,.12); backdrop-filter: blur(12px); }
.map-search svg { width: 17px; fill: none; stroke: #6f7e82; stroke-width: 1.7; }
.map-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); }
.map-search kbd { border: 0; background: #edf1ef; color: #87928e; border-radius: 6px; padding: 3px 6px; font-family: inherit; font-size: 9px; }
.map-tools { position: absolute; z-index: 3; top: 16px; right: 16px; display: grid; gap: 1px; overflow: hidden; border-radius: 13px; box-shadow: 0 10px 28px rgba(34,65,73,.1); }
.map-tools button { width: 40px; height: 39px; border: 0; background: rgba(255,255,255,.94); cursor: pointer; font-size: 18px; }
.map-tools button:hover { background: #edf5f2; }
.map-tools svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-legend { position: absolute; z-index: 3; left: 16px; bottom: 15px; display: flex; gap: 14px; border-radius: 11px; background: rgba(255,255,255,.88); padding: 8px 11px; color: #6e7b78; font-size: 9px; backdrop-filter: blur(10px); }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.dot.current { background: var(--accent); box-shadow: 0 0 0 3px rgba(14,123,118,.13); }
.dot.place { background: #d1a466; }

.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick-card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; text-align: left; align-items: center; cursor: pointer; transition: .2s; }
.quick-card:hover, .quick-card.active { border-color: rgba(14,123,118,.24); background: #f4f9f7; transform: translateY(-1px); }
.quick-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; font-size: 16px; }
.quick-icon.warm { background: #f6ead9; color: #9d6f31; }.quick-icon.blue { background: #e0edf2; color: #47798b; }.quick-icon.green { background: #e2f0e8; color: #448061; }
.quick-card strong, .quick-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-card strong { font-size: 11px; margin-bottom: 4px; }.quick-card small { color: var(--muted); font-size: 9px; }.quick-card b { color: #9aa6a3; font-weight: 400; }

.assistant-page-grid { display: grid; grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr); gap: 18px; min-height: 680px; }
.assistant-context { padding: 28px; }
.context-label { display: block; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .16em; }.assistant-context h2 { margin: 16px 0 7px; font-size: 22px; }.assistant-context > p { margin: 0; color: var(--muted); font-size: 11px; }
.context-map { height: 235px; margin: 25px 0; position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(145deg, #e7eee8, #dce8e5); }
.context-map::before, .context-map::after { content: ""; position: absolute; background: rgba(255,255,255,.9); }.context-map::before { width: 130%; height: 12px; left: -15%; top: 48%; transform: rotate(-18deg); }.context-map::after { width: 12px; height: 130%; left: 48%; top: -15%; transform: rotate(22deg); }
.mini-road { position: absolute; height: 5px; width: 120%; left: -10%; background: rgba(167,187,179,.55); z-index: 1; }.road-a { top: 30%; transform: rotate(12deg); }.road-b { top: 72%; transform: rotate(-8deg); }.context-map i { position: absolute; z-index: 2; width: 20px; height: 20px; left: 51%; top: 45%; border: 6px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 18px rgba(14,123,118,.28); }
.assistant-context h3 { margin: 0 0 12px; font-size: 12px; }.assistant-context > button { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); color: #56706d; cursor: pointer; font-size: 10px; }.assistant-context > button:hover { background: #edf6f3; border-color: rgba(14,123,118,.22); }
.assistant-panel { display: flex; flex-direction: column; min-height: 680px; }
.assistant-head { height: 82px; flex: 0 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.assistant-title { display: flex; align-items: center; gap: 11px; }
.assistant-title h2 { font-size: 15px; margin: 0; }.assistant-title p { color: var(--muted); font-size: 9px; margin: 5px 0 0; }.assistant-title p span { display: inline-block; width: 6px; height: 6px; background: #57af86; border-radius: 50%; }
.ai-orb { width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(145deg, #16363c, #0c6f6b); box-shadow: 0 9px 22px rgba(11,81,79,.22); }
.ai-orb i { width: 4px; border-radius: 5px; background: #d7f2e9; animation: voice 1.2s ease-in-out infinite; }.ai-orb i:nth-child(1) { height: 9px; }.ai-orb i:nth-child(2) { height: 17px; animation-delay: -.3s; }.ai-orb i:nth-child(3) { height: 12px; animation-delay: -.6s; }
@keyframes voice { 50% { transform: scaleY(.55); opacity: .7; } }
.icon-button.subtle { background: transparent; color: #8b9897; }

.chat-body { flex: 1; min-height: 0; padding: 19px 18px 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d4dfdb transparent; }
.date-divider { display: flex; align-items: center; gap: 8px; margin: 2px 0 20px; color: #97a39f; font-size: 8px; }
.date-divider::before, .date-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.message { display: flex; gap: 9px; margin: 0 0 14px; align-items: flex-start; }
.message.user-message { justify-content: flex-end; }
.message-avatar { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #e6f5f0; background: #1a5855; font-size: 8px; font-weight: 700; }
.bubble { max-width: 84%; border-radius: 5px 15px 15px 15px; padding: 12px 13px 9px; color: #4d6064; background: #f0f4f2; font-size: 11px; line-height: 1.7; }
.bubble p { margin: 0 0 7px; }.bubble p:last-of-type { margin-bottom: 3px; }
.message-time { color: #9aa7a5; font-size: 8px; }
.user-message .bubble { color: #fff; background: #145e5b; border-radius: 15px 5px 15px 15px; }
.user-message .message-time { color: rgba(255,255,255,.6); }
.typing .bubble { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #829490; animation: dots 1s infinite; }.typing i:nth-child(2) { animation-delay: .15s; }.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .5; } }
.suggestions { display: grid; gap: 7px; margin-left: 37px; }
.suggestions button { width: fit-content; max-width: 100%; border: 1px solid rgba(15,94,89,.14); border-radius: 999px; padding: 8px 11px; color: #4d6c67; background: #fff; font-size: 9px; cursor: pointer; }
.suggestions button:hover { background: #eef7f4; }

.composer { flex: 0 0 auto; padding: 12px 16px 15px; border-top: 1px solid var(--line); }
.composer-box { padding: 10px 10px 8px 12px; border: 1px solid rgba(26,62,72,.13); border-radius: 16px; background: #fbfcfb; box-shadow: inset 0 1px 0 #fff; }
.composer textarea { display: block; width: 100%; min-height: 34px; max-height: 96px; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; line-height: 1.6; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; }
.composer-actions > div { display: flex; gap: 3px; }
.composer-actions button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #85928f; cursor: pointer; }
.composer-actions button:hover { background: #edf3f1; }
.composer-actions svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.composer-actions .send-button { color: #fff; background: var(--ink); }
.composer-actions .send-button:hover { background: var(--accent-dark); }
.composer > p { margin: 8px 0 0; text-align: center; color: #a2adaa; font-size: 8px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 12px; background: rgba(18,35,44,.94); color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 14px 35px rgba(20,40,47,.22); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .assistant-page-grid { grid-template-columns: 1fr; }
  .assistant-context { display: none; }
  .assistant-panel { min-height: 620px; }
  .intro-copy { width: 42vw; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 16px; grid-template-columns: 1fr auto; }
  body { padding-bottom: 78px; }
  .online, .icon-button:not(.subtle) { display: none; }
  .nav-links { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 10px; height: 58px; display: flex; justify-content: space-around; gap: 0; padding: 6px; border: 1px solid rgba(20,55,67,.12); border-radius: 18px; background: rgba(250,252,251,.9); box-shadow: 0 18px 45px rgba(22,52,61,.2); backdrop-filter: blur(18px); }
  .nav-links button { flex: 1; border-radius: 13px; font-size: 11px; }
  .nav-links button.active { color: #fff; background: var(--ink); }
  .nav-links button.active::after { display: none; }
  .brand small { display: none; }
  main { width: calc(100% - 24px); padding: 36px 0 45px; }
  .intro { display: block; margin-bottom: 24px; }
  .intro h1 { font-size: 39px; }
  .intro-copy { width: auto; margin-top: 18px; }
  .home-showcase { min-height: 590px; grid-template-columns: 1fr; padding: 26px; }
  .home-visual { order: -1; min-height: 285px; }.visual-core { width: 145px; height: 145px; }.orbit-one { width: 210px; height: 210px; }.orbit-two { width: 270px; height: 270px; }.place-card { left: 0; }.ai-card { right: 0; }
  .home-feature-grid { grid-template-columns: 1fr; }.home-feature { min-height: 160px; }
  .page-heading { display: block; }.page-heading > p { width: auto; margin-top: 14px; }
  .map-panel { padding: 14px; border-radius: 21px; }
  .map-header { align-items: flex-end; }
  .location-icon { display: none; }
  .location-summary h2 { font-size: 16px; }
  .primary-button { padding: 10px 12px; }
  .primary-button span { display: none; }
  .map-canvas { height: 430px; }
  .map-art { width: 150%; max-width: none; margin-left: -25%; }
  .map-search { width: calc(100% - 74px); }
  .quick-cards { grid-template-columns: 1fr; }
  .quick-card:nth-child(n+3) { display: none; }
  .assistant-panel { border-radius: 21px; min-height: 560px; }
}

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