/* ============================================================
   PHPGEO系统 全站公共样式（style.css）
   来源基准：网页设计/ 设计稿公共层（Header/底部导航/基础 reset）
   加载顺序：style.css 先加载，页面私有 css 后加载（级联覆盖）
   ============================================================ */
:root {
  --brand: #0b6e4f;
  --brand-dark: #075a3f;
  --brand-light: #e6f4ef;
  --accent: #ff7a00;
  --danger: #dc2626;
  --danger-dark: #b91c1c;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f5f7f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --max-width: 1200px;
  --nav-height: 56px;
}
  --brand: #0b6e4f;
  --brand-dark: #075a3f;
  --brand-light: #e6f4ef;
  --accent: #ff7a00;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f5f7f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --max-width: 1200px;
  --nav-height: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 72px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 全站 Header（与设计稿一致） ========== */
/* ========== Header（与首页一致） ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-height);
  padding: 8px 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  min-width: 0;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
}

.header-search input::placeholder { color: #9ca3af; }

.header-search button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.location-btn {
  display: none;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0.95;
}

.desktop-nav { display: none; }

/* ========== 底部导航（移动端） ========== */
/* ========== 底部导航（移动端） ========== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.bottom-nav a.active { color: var(--brand); font-weight: 600; }
.bottom-nav .nav-icon { font-size: 19px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .today-scroll span { animation: none !important; padding-left: 0 !important; }
}
