:root {
  --ink: #173c32;
  --muted: #6d8075;
  --line: #dfe6dc;
  --brand: #0a6649;
  --brand-deep: #145a46;
  --surface: #fffef9;
  --canvas: #f5f7f1;
  --amber: #9b6a22;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  background: none;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
button:focus-visible { outline: 2px solid #2a8d6d; outline-offset: 2px; }
.page-stage { width: 100%; min-height: 100dvh; display: flex; justify-content: center; overflow-x: hidden; background: var(--canvas); }
.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--canvas);
}
@media (min-width: 640px) {
  .page-stage { padding: 0; align-items: stretch; }
  .app-shell {
    width: min(560px, 100%);
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
.system-bar { display: none; }
.system-indicators { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.signal-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.signal-bars i { display: block; width: 2px; border-radius: 1px; background: currentColor; }
.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 6px; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 10px; }
.battery { width: 21px; height: 10px; border: 1px solid currentColor; border-radius: 2px; padding: 1px; position: relative; }
.battery::after { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.battery i { display: block; height: 100%; width: 75%; background: currentColor; border-radius: 1px; }
.app-header {
  position: relative;
  z-index: 4;
  flex: none;
  height: calc(58px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e9eee7;
}
.app-header h1 { margin: 0; text-align: center; font-size: 17px; letter-spacing: .6px; font-weight: 600; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: start; font-size: 29px; line-height: 1; font-weight: 300; }
.more-button { justify-self: end; width: 38px; height: 28px; border: 1px solid #d2dad3; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.more-button i { width: 3px; height: 3px; border-radius: 50%; background: #41594e; }
.app-main { flex: 1; width: 100%; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.app-main::-webkit-scrollbar { display: none; }
.hero {
  position: relative;
  height: 188px;
  overflow: hidden;
  padding: 26px 22px;
  color: #fffdf2;
  background-image: linear-gradient(90deg, rgba(10, 61, 58, .62), rgba(25, 90, 78, .1)), url('./assets/hero-handan.webp');
  background-size: cover;
  background-position: 52% center;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(12, 63, 54, .2)); pointer-events: none; }
.hero-kicker { margin: 0; font-family: Bahnschrift, sans-serif; font-size: 9px; letter-spacing: 2.4px; color: #e4eee2; }
.hero h2 { margin: 8px 0 4px; font-size: 34px; line-height: 1.15; letter-spacing: 1.5px; font-weight: 700; }
.hero h2 span { letter-spacing: 3px; }
.hero-subtitle { margin: 0; font-size: 13px; letter-spacing: .8px; color: #f3f5e8; }
.location-chip { position: absolute; z-index: 1; left: 22px; bottom: 17px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid rgba(241, 247, 222, .42); border-radius: 16px; background: rgba(21, 67, 55, .34); color: #fbfdec; font-size: 10px; letter-spacing: .5px; backdrop-filter: blur(3px); }
.location-chip .icon { width: 12px; height: 12px; }
.main-content { width: 100%; min-width: 0; padding: 15px 16px 22px; }
.scan-report {
  width: 100%;
  min-height: 76px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  color: #fbfff8;
  text-align: left;
  background: linear-gradient(112deg, #0b694c, #246d55);
  box-shadow: 0 7px 16px rgba(20, 91, 68, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.scan-report:active { transform: scale(.985); box-shadow: 0 3px 8px rgba(20, 91, 68, .1); }
.scan-report-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .12); }
.scan-report-icon .icon { width: 29px; height: 29px; }
.scan-report-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.scan-report-copy strong { font-size: 19px; line-height: 1.2; letter-spacing: 1px; font-weight: 600; }
.scan-report-copy small { color: #d8eadd; font-size: 11px; letter-spacing: .1px; }
.scan-report > .icon { width: 19px; height: 19px; color: #ecfff3; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 17px 0 15px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; font-size: 11px; color: #405f50; }
.quick-item b { font-weight: 400; white-space: nowrap; }
.quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #e8efe3; transition: transform .16s ease, background .16s ease; }
.quick-item:active .quick-icon { transform: scale(.92); }
.quick-icon .icon { width: 22px; height: 22px; }
.quick-rent .quick-icon { background: #e9ede3; color: #687852; }
.quick-pass .quick-icon { background: #e6eee8; color: #377461; }
.quick-credit .quick-icon { background: #f3ecda; color: #9a7d3d; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.section-heading h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: .4px; font-weight: 600; }
.text-link { color: #6d7f74; font-size: 11px; white-space: nowrap; }
.text-link span { margin-left: 2px; font-size: 17px; vertical-align: -1px; }
.site-card { position: relative; width: 100%; min-height: 78px; margin-bottom: 9px; padding: 10px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; transition: background .16s ease, border-color .16s ease; }
.site-card:active { background: #f4f7f1; border-color: #cbd8cd; }
.site-card img { flex: none; width: 58px; height: 58px; border-radius: 6px; object-fit: cover; filter: saturate(.7) contrast(.94); }
.site-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.site-copy b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.site-copy small { color: #6b8175; font-size: 10px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-copy > span { display: flex; align-items: center; gap: 5px; color: #70857a; font-family: Bahnschrift, 'Microsoft YaHei UI', sans-serif; font-size: 10px; }
.site-copy em { color: #315d4b; font-style: normal; font-weight: 600; }
.site-copy i { width: 1px; height: 9px; margin: 0 2px; background: #d5ded4; }
.status-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; color: #16745b; background: #e7f3ec; font-size: 9px; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: #27a07c; }
.weather-alert { width: 100%; margin-top: 4px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-radius: 6px; background: #f7efde; color: #896625; text-align: left; }
.weather-icon { display: grid; place-items: center; width: 23px; height: 23px; }
.weather-icon .icon { width: 18px; height: 18px; }
.weather-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weather-copy b { font-size: 11px; font-weight: 600; }
.weather-copy small { color: #9b7e4b; font-size: 9px; }
.weather-alert > .icon { width: 15px; height: 15px; }
.page-footnote { display: flex; justify-content: space-between; margin: 19px 2px 0; color: #9ba99f; font-size: 9px; }
.tab-bar { flex: none; min-height: calc(58px + var(--safe-bottom)); padding: 7px 25px calc(4px + var(--safe-bottom)); display: flex; justify-content: space-between; border-top: 1px solid #e1e7df; background: rgba(253, 253, 248, .98); }
.tab-item { width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #7e8d83; font-size: 10px; }
.tab-item .icon { width: 20px; height: 20px; transition: transform .18s ease; }
.tab-item b { font-weight: 400; }
.tab-item:active .icon { transform: translateY(-1px) scale(.95); }
.tab-active { color: #0b6e50; }
.tab-active b { font-weight: 600; }
.tab-active::after { content: ''; width: 21px; height: 2px; margin-top: 1px; border-radius: 2px; background: #0a674a; }
.home-indicator { display: none; }
.home-indicator i { width: 90px; height: 4px; border-radius: 4px; background: #31483d; }
.sheet-layer { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: inherit; }
.sheet-layer[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(14, 35, 29, .42); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
.bottom-sheet { position: relative; z-index: 1; width: 100%; max-height: calc(100% - 12px); display: flex; flex-direction: column; overflow: hidden; padding: 10px 18px calc(24px + var(--safe-bottom)); border-radius: 24px 24px 0 0; background: #fffdf8; box-shadow: 0 -18px 50px rgba(22, 52, 42, .2); animation: sheetUp .28s cubic-bezier(.2, .75, .25, 1) both; }
@media (min-width: 640px) { .bottom-sheet { width: calc(100% - 16px); margin-bottom: 8px; border-radius: 22px; } }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #d4ddd5; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 9px 0 14px; border-bottom: 1px solid #eaeee7; }
.sheet-kicker { margin: 0 0 4px; color: #87988c; font-family: Bahnschrift, sans-serif; font-size: 9px; letter-spacing: 1.3px; }
.sheet-header h2 { margin: 0; font-size: 21px; letter-spacing: .5px; }
.sheet-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #5e7166; background: #f0f3ed; font-size: 22px; font-weight: 300; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 17px 1px 2px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.toast { position: absolute; z-index: 80; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translate(-50%, 20px); max-width: calc(100% - 48px); padding: 10px 16px; border-radius: 20px; background: rgba(25, 50, 42, .93); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.sheet-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.icon-map,.icon-pin,.icon-scan,.icon-rent,.icon-shield,.icon-radar,.icon-arrow,.icon-user,.icon-wind {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-map { -webkit-mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22m3%205%206-2%206%203%206-2v15l-6%202-6-3-6%202Z%22/%3E%3Cpath%20d=%22M9%203v15M15%206v15%22/%3E%3C/svg%3E); mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22m3%205%206-2%206%203%206-2v15l-6%202-6-3-6%202Z%22/%3E%3Cpath%20d=%22M9%203v15M15%206v15%22/%3E%3C/svg%3E); }
.icon-pin { -webkit-mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.8%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M19%2010c0%204.5-7%2011-7%2011S5%2014.5%205%2010a7%207%200%201%201%2014%200Z%22/%3E%3Ccircle%20cx=%2212%22%20cy=%2210%22%20r=%222%22/%3E%3C/svg%3E); mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.8%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M19%2010c0%204.5-7%2011-7%2011S5%2014.5%205%2010a7%207%200%201%201%2014%200Z%22/%3E%3Ccircle%20cx=%2212%22%20cy=%2210%22%20r=%222%22/%3E%3C/svg%3E); }
.icon-scan { -webkit-mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M3%209V4h5M16%204h5v5M21%2016v5h-5M8%2021H3v-5M4%2012h16%22/%3E%3Cpath%20d=%22M8%207v3M11%207v3M14%207v3M17%207v3M8%2015v3M12%2015v3M16%2015v3%22/%3E%3C/svg%3E); mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M3%209V4h5M16%204h5v5M21%2016v5h-5M8%2021H3v-5M4%2012h16%22/%3E%3Cpath%20d=%22M8%207v3M11%207v3M14%207v3M17%207v3M8%2015v3M12%2015v3M16%2015v3%22/%3E%3C/svg%3E); }
.icon-rent { -webkit-mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Crect%20x=%226%22%20y=%226%22%20width=%2212%22%20height=%2212%22%20rx=%221%22/%3E%3Cpath%20d=%22M9%202v4M15%202v4M9%2018v4M15%2018v4M2%209h4M2%2015h4M18%209h4M18%2015h4%22/%3E%3Crect%20x=%2210%22%20y=%2210%22%20width=%224%22%20height=%224%22/%3E%3C/svg%3E); mask-image: url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%221.6%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Crect%20x=%226%22%20y=%226%22%20width=%2212%22%20height=%2212%22%20rx=%221%22/%3E%3Cpath%20d=%22M9%202v4M15%202v4M9%2018v4M15%2018v4M2%209h4M2%2015h4M18%209h4M18%2015h4%22/%3E%3Crect%20x=%2210%22%20y=%2210%22%20width=%224%22%20height=%224%22/%3E%3C/svg%3E); }
