:root {
  --ink: #12342d;
  --muted: #647c75;
  --line: #d9e3dc;
  --cream: #f7f5ee;
  --forest: #0f5f4f;
  --lime: #c7dc72;
  --gold: #dcae52;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #edf1eb; font-family: "DM Sans", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; width: min(1440px, 100%); min-height: 100vh; margin: auto; background: var(--paper); }
.sidebar { width: 264px; flex: 0 0 264px; padding: 28px 20px; display: flex; flex-direction: column; background: var(--ink); color: #f7fbf6; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); border-radius: 15px 15px 15px 4px; background: var(--lime); font-family: "Noto Serif SC", serif; font-size: 24px; font-weight: 700; }
.eyebrow { margin: 0 0 4px; color: #7b958e; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.brand .eyebrow { color: #a9c5bc; }
.brand h1 { margin: 0; font-family: "Noto Serif SC", serif; font-size: 21px; letter-spacing: .05em; }
.city-card { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.06); }
.city-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199,220,114,.14); }
.city-card strong, .city-card small { display: block; }
.city-card strong { font-size: 13px; }
.city-card small { margin-top: 3px; color: #b5c9c2; font-size: 11px; }
nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 11px; color: #c5d7d0; background: transparent; text-align: left; }
.nav-item span:first-child { width: 17px; color: var(--lime); font-size: 17px; }
.nav-item.active, .nav-item:hover { color: #fff; background: rgba(255,255,255,.11); }
.sidebar-footer { margin-top: auto; padding: 19px 13px 6px; border-top: 1px solid rgba(255,255,255,.16); }
.sidebar-footer p { margin: 0 0 6px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.sidebar-footer small { display: block; color: #b5c9c2; font-size: 11px; line-height: 1.55; }
.language-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 18px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.08); }
.lang { border: 0; padding: 7px; border-radius: 7px; color: #c5d7d0; background: transparent; font-size: 12px; }
.lang.active { color: var(--ink); background: var(--lime); font-weight: 700; }

.content { flex: 1; min-width: 0; padding: 34px clamp(22px, 4vw, 65px) 55px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }
.topbar h2 { margin: 0; font-family: "Noto Serif SC", serif; font-size: clamp(21px, 2.5vw, 30px); letter-spacing: .025em; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.status { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #58be79; }
.scan-button, .outline-button { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; }
.scan-button span { margin-right: 6px; font-size: 14px; }
.scan-button:hover, .outline-button:hover { color: white; background: var(--ink); }

.panel { display: none; }
.panel.active { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 250px; overflow: hidden; border-radius: 18px; background: var(--cream); }
.hero-copy { padding: clamp(28px, 4vw, 47px); }
.pill { display: inline-block; padding: 6px 10px; border-radius: 20px; color: var(--forest); background: #e5efd1; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.hero-copy h3, .section-intro h3 { max-width: 660px; margin: 15px 0 10px; font-family: "Noto Serif SC", serif; font-size: clamp(23px, 3vw, 36px); line-height: 1.38; letter-spacing: .02em; }
.hero-copy p, .section-intro p { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.quick-prompts button { padding: 8px 11px; border: 1px solid #cbd8cf; border-radius: 9px; color: var(--ink); background: white; font-size: 12px; }
.quick-prompts button:hover { border-color: var(--forest); color: var(--forest); }
.hero-art { position: relative; overflow: hidden; background: linear-gradient(150deg, #c4dbb2 0%, #8fb8a4 35%, #377d6c 80%); }
.sun { position: absolute; top: 28px; right: 32px; width: 62px; height: 62px; border-radius: 50%; background: #fbecab; opacity: .9; }
.mountain { position: absolute; bottom: -35px; transform: rotate(42deg); border-radius: 45px; background: #246353; }
.mountain-one { left: -80px; width: 230px; height: 230px; background: #154f42; }
.mountain-two { left: 75px; width: 210px; height: 210px; background: #367a63; }
.mountain-three { right: -70px; width: 220px; height: 220px; background: #1d5c4d; }
.path { position: absolute; width: 105px; height: 400px; left: 46%; bottom: -210px; transform: rotate(33deg); border-left: 16px solid #e0d69d; border-radius: 50%; opacity: .85; }
.art-label { position: absolute; bottom: 25px; right: 27px; color: rgba(255,255,255,.85); font-size: 11px; font-weight: 700; line-height: 1.35; letter-spacing: .12em; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 18px; margin-top: 18px; }
.chat-card, .info-card, .route-card, .spot-card { border: 1px solid var(--line); border-radius: 16px; background: white; }
.chat-card { overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.assistant-avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px 11px 11px 3px; color: var(--ink); background: var(--lime); font-family: "Noto Serif SC", serif; font-weight: 700; }
.chat-header strong, .chat-header small { display: block; }
.chat-header strong { font-size: 13px; }
.chat-header small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.voice-button { margin-left: auto; width: 31px; height: 31px; border: 0; border-radius: 9px; color: var(--forest); background: #edf4ed; }
.voice-button:hover { background: #dae9db; }
.messages { display: grid; gap: 12px; max-height: 305px; min-height: 250px; padding: 19px; overflow-y: auto; background: #fcfdfb; }
.message { max-width: 85%; padding: 11px 13px; border-radius: 4px 14px 14px 14px; color: #26463f; background: #e8f1ea; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.message.user { justify-self: end; border-radius: 14px 4px 14px 14px; color: white; background: var(--forest); }
.message small { display: block; margin-bottom: 4px; color: #518072; font-size: 10px; font-weight: 700; }
.message.user small { color: #b9d6c9; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { width: 100%; padding: 10px 11px; outline: none; border: 1px solid #d8e1dc; border-radius: 10px; color: var(--ink); font-size: 13px; }
.composer input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(15,95,79,.08); }
.composer button { width: 40px; border: 0; border-radius: 10px; color: var(--ink); background: var(--lime); font-size: 20px; font-weight: 700; }
.disclaimer { margin: 0; padding: 0 14px 13px; color: #84938d; font-size: 10px; line-height: 1.55; }
.info-card { padding: 18px; background: #f5f8f3; }
.info-title { display: flex; gap: 9px; align-items: center; }
.mini-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--forest); background: #dcebc1; }
.info-title h4, .info-title p { margin: 0; }
.info-title h4 { font-size: 13px; }
.info-title p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.spot-preview { margin: 17px 0; }
.preview-art { height: 110px; position: relative; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, #1f6655, #9bc091); }
.preview-art:before { content: ""; position: absolute; left: 22px; bottom: -38px; width: 130px; height: 130px; transform: rotate(45deg); border-radius: 30px; background: #164d40; }
.preview-art:after { content: ""; position: absolute; right: 18px; bottom: 13px; width: 30px; height: 30px; border-radius: 50%; background: #f7e6a1; }
.spot-preview strong { display: block; margin-top: 11px; font-family: "Noto Serif SC", serif; font-size: 17px; }
.spot-preview p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.outline-button { width: 100%; }

.section-intro { margin: 10px 0 28px; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.route-card { padding: 19px; overflow: hidden; }
.route-number { color: var(--gold); font-weight: 700; letter-spacing: .08em; font-size: 11px; }
.route-card h4, .spot-card h4 { margin: 13px 0 8px; font-family: "Noto Serif SC", serif; font-size: 20px; }
.route-card p, .spot-card p { min-height: 52px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.route-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.route-tags span { padding: 5px 7px; border-radius: 6px; color: #54756b; background: #edf3ec; font-size: 10px; }
.route-card button, .spot-card button { margin-top: 16px; padding: 0; border: 0; color: var(--forest); background: transparent; font-size: 12px; font-weight: 700; }
.spot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spot-card { padding: 13px; }
.spot-visual { display: grid; height: 110px; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, #236e5b, #aac891); font-family: "Noto Serif SC", serif; font-size: 23px; letter-spacing: .1em; }
.spot-card:nth-child(2) .spot-visual { background: linear-gradient(135deg, #4a6255, #aab8a0); }
.spot-card:nth-child(3) .spot-visual { background: linear-gradient(135deg, #a87437, #e7c875); }
.spot-card:nth-child(4) .spot-visual { background: linear-gradient(135deg, #396f87, #a9ced2); }
.spot-card h4 { font-size: 17px; }

dialog { width: min(350px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 18px; color: var(--ink); text-align: center; box-shadow: 0 25px 80px rgba(15,44,37,.25); }
dialog::backdrop { background: rgba(10,35,29,.46); }
.close-modal { position: absolute; top: 10px; right: 13px; border: 0; color: var(--muted); background: transparent; font-size: 27px; }
.qr-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 145px; margin: 8px auto 18px; padding: 12px; border: 7px solid var(--ink); color: var(--ink); background: repeating-linear-gradient(45deg,#e6eed9 0 8px,#fff 8px 16px); font-family: "Noto Serif SC", serif; font-size: 23px; font-weight: 700; }
dialog h3 { margin: 0 0 8px; font-family: "Noto Serif SC", serif; }
dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 950px) { .sidebar { width: 210px; flex-basis: 210px; } .guide-layout { grid-template-columns: 1fr; } .info-card { display: none; } .spot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .app-shell { display: block; } .sidebar { width: 100%; min-height: auto; padding: 16px; } .brand { padding-bottom: 12px; } .city-card, .sidebar-footer { display: none; } nav { display: flex; gap: 6px; overflow-x: auto; } .nav-item { white-space: nowrap; } .content { padding: 24px 17px 36px; } .topbar { align-items: flex-start; } .top-actions { display: grid; gap: 7px; justify-items: end; } .status { font-size: 10px; } .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 160px; } .route-grid { grid-template-columns: 1fr; } .topbar h2 { font-size: 22px; } }
