  html, body { height: 100%; }
  * { box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    color: #1F2937;
    background: #EAF3FC;
    background-image: linear-gradient(180deg, #D9E9F7 0%, #EAF3FC 30%, #EAF3FC 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
  }
  .app {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    padding: 20px 20px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  a { text-decoration: none; color: inherit; }
  button { font-family: inherit; }

  /* ===== 导航栏 ===== */
  .nav-bar { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
  .nav {
    display: flex; align-items: center; gap: 24px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 10px 20px;
  }
  .nav-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #1F2937; cursor: pointer; user-select: none; }
  .nav-logo svg { width: 24px; height: 24px; color: #2563eb; }
  .nav-menu { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .nav-item {
    position: relative; display: flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 14px; color: #374151; cursor: pointer; user-select: none;
    transition: background .2s, color .2s;
  }
  .nav-item:hover { background: #F3F4F6; color: #1F2937; }
  .nav-item.active { background: #E8F2FC; color: #2563eb; font-weight: 600; }
  .nav-item .caret { width: 12px; height: 12px; color: #9CA3AF; transition: transform .2s; }
  .nav-item.open .caret { transform: rotate(180deg); }
  .nav-drop-menu {
    position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%) translateY(-4px);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
    min-width: 190px; background: #fff; border: 1px solid #E5E9F0;
    border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 6px; opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
  }
  .nav-item.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav-drop-menu > div {
    padding: 8px 12px; font-size: 13px; color: #374151; border-radius: 8px;
    cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
  }
  .nav-drop-menu > div:hover { background: #F3F6FA; color: #2563eb; }

  /* ===== 页头 ===== */
  .page-head { text-align: center; }
  .page-head h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #1F2937; letter-spacing: 0.5px; }
  .page-head .sub { margin: 0 0 20px; font-size: 13px; color: #6B7280; }

  /* ===== 卡片 ===== */
  .card { background: #fff; border: 1px solid #E5E9F0; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 22px 24px; }
  .card > h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #1F2937; display: flex; align-items: center; gap: 8px; }
  .card > h2 svg { width: 18px; height: 18px; color: #2563eb; }

  /* ===== 热门景点天气 ===== */
  .spot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .spot-card {
    border: 1px solid #EEF1F6; border-radius: 12px;
    padding: 14px 16px; cursor: pointer; background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
  }
  .spot-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(0,120,212,0.10); transform: translateY(-2px); }
  .spot-name { font-size: 15px; font-weight: 600; color: #1F2937; }
  .spot-loc { margin-top: 3px; font-size: 12px; color: #9CA3AF; }
  .spot-w { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
  .spot-w .cond { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4B5563; }
  .spot-w .cond .wicon { font-size: 18px; line-height: 1; }
  .spot-w .temp { font-size: 20px; font-weight: 700; color: #F59E0B; font-variant-numeric: tabular-nums; }

  /* ===== 省份分组 ===== */
  .prov { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #F3F5F9; border-radius: 10px; }
  .prov:last-child { border-bottom: none; }
  .prov-name { font-size: 14px; font-weight: 600; color: #1F2937; }
  .prov-cnt { display: block; margin-top: 4px; font-size: 12px; color: #2563eb; cursor: pointer; }
  .prov-cnt:hover { text-decoration: underline; }
  .prov-cities { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
  .cpill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #F7F9FC; border: 1px solid #EDF0F5; border-radius: 8px;
    padding: 4px 6px 4px 10px; font-size: 13px; color: #374151; cursor: pointer;
    transition: border-color .2s, color .2s, background .2s; white-space: nowrap;
  }
  .cpill:hover { border-color: #2563eb; color: #2563eb; background: #F2F8FD; }
  .cpill em { font-style: normal; font-size: 11px; color: #8a97a8; background: #eef1f6; border-radius: 6px; padding: 0 5px; line-height: 16px; }
  .cpill:hover em { color: #2563eb; background: #e3f0fb; }

  /* ===== 大家都在查 ===== */
  .searches { display: flex; flex-wrap: wrap; gap: 10px; }
  .spill {
    background: #F7F9FC; border: 1px solid #EDF0F5; border-radius: 999px;
    padding: 6px 16px; font-size: 13px; color: #374151; cursor: pointer;
    transition: border-color .2s, color .2s;
  }
  .spill:hover { border-color: #2563eb; color: #2563eb; }

  /* ===== 说明 ===== */
  .guide { background: #EAF3FB; border: 1px solid #D8E8F6; }
  .guide p { margin: 6px 0; font-size: 12.5px; color: #4B5563; line-height: 1.8; }
  .guide p b { color: #1F2937; }

  /* ===== 页脚 ===== */
  .foot { margin-top: 28px; border-top: 1px solid #EDF0F5; background: #fff; }
  .fl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .fl-row {
    display: flex; align-items: baseline; text-align: left;
    padding: 13px 0; font-size: 13px; border-bottom: 1px solid #F3F5F8;
  }
  .fl-label { color: #9CA3AF; flex-shrink: 0; }
  .fl-row a { margin-right: 26px; white-space: nowrap; }
  .fl-row a:last-child { margin-right: 0; }
  .fl-links a { color: #2563eb; text-decoration: none; }
  .fl-links a:hover { text-decoration: underline; }
  .nav-links a { color: #6B7280; }
  .nav-links a:hover { color: #2563eb; }
  .brand { padding: 16px 20px 20px; text-align: center; font-size: 12px; color: #6B7280; line-height: 1.9; }
  .brand svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: #F59E0B; }
  .brand a { color: #2563eb; }
  .brand a:hover { text-decoration: underline; }
  .icp { color: #9CA3AF; }

  /* ===== 景点详情页 ===== */
  .crumb { font-size: 12px; color: #9CA3AF; }
  #spotPage { display: flex; flex-direction: column; gap: 20px; }
  .crumb a { color: #2563eb; text-decoration: none; }
  .crumb a:hover { text-decoration: underline; }
  .page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
  .main-col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
  .side-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; align-self: start; }
  /* ===== 景点详情 Hero 三模块 ===== */
  .weather-overview {
    display: flex; gap: 20px;
    background: #fff; border: 1px solid #EDF0F5; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
    padding: 22px 24px;
    align-items: stretch;
    height: 311.78px;
  }
  .city-image-wrap {
    width: 160px; height: 200px; border-radius: 14px; flex-shrink: 0;
    overflow: hidden;
    align-self: center;
    position: relative;
    background: #F3F6FB;
  }
  .city-image {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  /* 图片加载中：旋转圈 + 浅灰底 */
  .img-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #F3F6FB; border-radius: 14px;
  }
  .img-spinner {
    width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid #DCE6F2; border-top-color: #2563eb;
    animation: img-spin .8s linear infinite;
  }
  @keyframes img-spin { to { transform: rotate(360deg); } }
  .city-image-wrap:not(.is-loading) .img-loading { display: none; }
  .weather-main {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    justify-content: center;
  }
  .city-name {
    font-size: 26px; margin: 0 0 4px; font-weight: 700; color: #1F2937;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .weather-tag {
    font-size: 12px; font-weight: 500; color: #ffffff; background: #2563eb;
    padding: 3px 10px; border-radius: 999px;
  }
  .city-locline { font-size: 13px; color: #9CA3AF; margin-top: 4px; }
  .city-locline a { color: #2563eb; text-decoration: none; }
  .temp-display {
    display: flex; align-items: center; gap: 16px; margin: 10px 0 12px;
  }
  .temp-big {
    font-size: 52px; color: #1F2937; line-height: 1; font-weight: 700;
  }
  .temp-unit {
    font-size: 20px; font-weight: 400; color: #6B7280;
  }
  .temp-side {
    display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #374151;
  }
  .ts-row strong { font-weight: 600; color: #1F2937; }
  .weather-desc-line { font-size: 13px; color: #6B7280; line-height: 1.7; }
  .update-time { font-size: 12px; color: #9CA3AF; margin-top: 8px; }
  .weather-grid {
    width: 280px; flex-shrink: 0;
    display: flex; flex-direction: column; justify-content: center;
    background: #F5F9FD; border-radius: 0 13px 13px 0; padding: 14px 22px;
    margin: -22px -24px -22px 0;
  }
  .grid-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #64748B;
    min-width: 0;
    padding: 15px 0;
  }
  .grid-item + .grid-item { border-top: 1px dashed #DCE6F2; }
  .grid-item svg {
    width: 16px; height: 16px; flex-shrink: 0; color: #2563eb;
  }
  .grid-item strong {
    margin-left: auto; font-weight: 600; color: #1F2937;
    white-space: nowrap;
  }
  /* ===== Tab 导航 ===== */
  .tab-bar { display: flex; gap: 4px; overflow-x: auto; }
  .tab-bar::-webkit-scrollbar { height: 0; }
  .tab-item {
    flex: 1; min-width: 64px; text-align: center; padding: 11px 8px; font-size: 14px; cursor: pointer;
    background: #fff; color: #374151; border-radius: 10px 10px 0 0; border: 1px solid #EDF0F5; border-bottom: none; white-space: nowrap;
    transition: background .2s, color .2s;
  }
  .tab-item:hover { color: #2563eb; }
  .tab-item.on { background: #2563eb; color: #fff; font-weight: 600; }
  /* ===== 内容区 ===== */
  .tab-content {
    background: #fff; border: 1px solid #EDF0F5; border-radius: 0 14px 14px 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    padding: 22px 24px;
  }
  .section-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #1F2937; display: flex; align-items: center; gap: 6px; }
  .section-title svg { width: 16px; height: 16px; color: #2563eb; }
  .section-title ~ .section-title { margin-top: 22px; }
  /* ===== 每日汇总（上标签下数值，6 列均分居中） ===== */
  .day-summary { display: flex; align-items: stretch; padding: 14px 12px; background: #F5F9FD; border-radius: 10px; margin-bottom: 14px; }
  .ds-item { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 600; color: #1F2937; text-align: center; }
  .ds-item label { color: #9CA3AF; font-size: 12px; font-weight: 400; }
  .ds-item .temp-high, .ds-item .temp-low { color: #1F2937; }
  .ds-item .text-muted { color: #9CA3AF; margin: 0 4px; }
  .temp-high { color: #F59E0B; font-weight: 600; }
  .temp-low { color: #2563eb; font-weight: 600; }
  /* ===== 表格 ===== */
  .table-wrap { overflow-x: auto; }
  .hourly-table, .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .hourly-table th, .hourly-table td, .data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #F3F5F8; white-space: nowrap; }
  .hourly-table th, .data-table th { color: #9CA3AF; font-weight: 500; font-size: 12px; }
  .hourly-table tr:hover td, .data-table tr:hover td { background: #F8FAFD; }
  .data-table tr.highlight td { background: #F0F7FE; }
  /* 逐小时表：蓝底表头居中式 */
  .hourly-table th { background: #EAF3FC; color: #3D4A5C; font-weight: 600; font-size: 13px; text-align: center; padding: 12px 8px; border-bottom: 2px solid #BFD8F0; }
  .hourly-table td { text-align: center; padding: 12px 8px; border-bottom: 1px solid #EEF1F6; }
  .date-sub { display: block; font-size: 11px; color: #9CA3AF; margin-top: 2px; }
  /* ===== 生活指数 ===== */
  .lifestyle-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ls-card-v2 { background: #F8FAFD; border: 1px solid #EEF1F6; border-radius: 12px; padding: 14px; }
  .ls-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .ls-icon { width: 28px; height: 28px; border-radius: 8px; background: #E8F3FD; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ls-icon svg { width: 16px; height: 16px; color: #2563eb; }
  .ls-name { font-size: 13px; font-weight: 600; color: #1F2937; flex: 1; }
  .ls-badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
  .ls-badge.lv-good { color: #16A34A; background: #DCFCE7; }
  .ls-badge.lv-warn { color: #D97706; background: #FEF3C7; }
  .ls-badge.lv-bad { color: #DC2626; background: #FEE2E2; }
  .ls-desc { font-size: 12px; color: #6B7280; line-height: 1.6; }
  /* ===== 同地区景点（嵌入 .tab-content 内，无需独立卡片） ===== */
  .nearby-section { padding-top: 4px; }
  /* ===== 页内导航 ===== */
  .inner-nav { background: #fff; border: 1px solid #EDF0F5; border-radius: 14px; padding: 14px 18px; font-size: 13px; line-height: 2; color: #6B7280; }
  .inner-nav a { color: #2563eb; text-decoration: none; margin-right: 18px; white-space: nowrap; }
  .inner-nav a:hover { text-decoration: underline; }
  /* ===== SEO 文案 ===== */
  .seo-box { background: #EAF3FB; border: 1px solid #D8E8F6; border-radius: 14px; padding: 18px 22px; }
  .seo-box h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #1F2937; }
  .seo-box p { margin: 0; font-size: 13px; color: #4B5563; line-height: 1.9; }
  /* ===== 侧栏 ===== */
  .side-box { background: #fff; border: 1px solid #EDF0F5; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); padding: 18px 20px; }
  .side-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #1F2937; display: flex; align-items: center; gap: 6px; }
  .side-title svg { width: 15px; height: 15px; color: #2563eb; }
  .side-town-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-town-item { font-size: 13px; color: #374151; padding: 4px 10px; background: #F7F9FC; border: 1px solid #EDF0F5; border-radius: 8px; cursor: pointer; transition: border-color .2s, color .2s; }
  .side-town-item:hover { border-color: #2563eb; color: #2563eb; }
  .side-city-list { display: flex; flex-direction: column; }
  .side-city-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #F3F5F8; font-size: 13px; cursor: pointer; }
  .side-city-item:last-child { border-bottom: none; }
  .side-city-item:hover .sc-name { color: #2563eb; }
  .sc-name { color: #1F2937; }
  .sc-weather { display: flex; align-items: center; gap: 4px; color: #6B7280; flex: 1; margin-left: 12px; }
  .sc-temp { color: #F59E0B; font-weight: 600; }

  /* ===== 响应式 ===== */
  @media (max-width: 1080px) { .page-layout { grid-template-columns: 1fr; } .side-col { position: static; } }
  @media (max-width: 900px) { .spot-grid { grid-template-columns: repeat(3, 1fr); } .lifestyle-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 720px) {
    .prov { grid-template-columns: 1fr; gap: 8px; }
    .spot-grid { grid-template-columns: repeat(2, 1fr); }
    .fl-row { flex-wrap: wrap; row-gap: 6px; }
    .weather-overview { flex-direction: column; height: auto; }
    .city-image-wrap { width: 100%; height: 180px; }
    .weather-grid { width: 100%; margin: 0; border-radius: 12px; padding: 8px 16px; }
    .day-summary { flex-wrap: wrap; gap: 12px 0; }
    .ds-item { flex: 0 0 33.33%; }
    .hourly-table th, .hourly-table td, .data-table th, .data-table td { padding: 8px 6px; }
  }
  @media (max-width: 480px) {
    .app { padding: 14px 12px 40px; gap: 18px; }
    .page-head h1 { font-size: 21px; }
    .card { padding: 16px 14px; border-radius: 12px; }
    .tab-content { padding: 16px 14px; border-radius: 12px; }
    .nav { gap: 14px; padding: 8px 12px; }
    .nav-logo { font-size: 16px; }
    .nav-item { padding: 6px 10px; font-size: 13px; }
    .nav-drop-menu { min-width: 160px; }
    .spot-w .temp { font-size: 18px; }
    .temp-big { font-size: 42px; }
    .lifestyle-grid-v2 { grid-template-columns: 1fr; }
  }
