/* 城市分站首页 — 与主站同结构，差异化视觉 */

body.city-homepage {
  --city-bar-h: 44px;
}

/* 城市标识顶栏 */
.city-bar {
  background: var(--city-hero-gradient, linear-gradient(135deg, var(--green-dark), var(--green)));
  color: #fff;
  font-size: 13px;
  min-height: var(--city-bar-h);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}
.city-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 0;
}
.city-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.city-bar-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.city-bar-links a {
  color: rgba(255, 255, 255, 0.92);
  margin-left: 14px;
  font-size: 13px;
}
.city-bar-links a:hover { color: #fff; text-decoration: underline; }

/* 城市 Hero 条（轮播上方） */
.city-hero-strip {
  background: var(--city-hero-gradient, linear-gradient(135deg, var(--green-dark), var(--green-light)));
  color: #fff;
  padding: 28px 0 32px;
  position: relative;
  overflow: hidden;
}
.city-hero-strip::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.city-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.city-hero-strip h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  margin: 10px 0 14px;
  font-weight: 700;
}
.city-hero-strip .city-hero-lead {
  font-size: 15px;
  line-height: 1.85;
  opacity: 0.94;
  max-width: 620px;
}
.city-hero-strip .city-hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 12px;
  border-radius: 4px;
}
.city-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.city-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.city-hero-card strong { display: block; margin-bottom: 10px; font-size: 15px; }
.city-hero-card ul { list-style: none; }
.city-hero-card li {
  font-size: 13px;
  padding: 5px 0 5px 18px;
  position: relative;
  opacity: 0.95;
}
.city-hero-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* 布局变体 */
body.city-layout-1 .city-hero-strip { padding: 36px 0 40px; }
body.city-layout-1 .carousel { height: 480px; }
body.city-layout-2 .city-hero-layout { grid-template-columns: 1fr; }
body.city-layout-2 .city-hero-card { max-width: 520px; }
body.city-layout-2 .carousel { height: 420px; }
body.city-layout-0 .carousel-caption h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* 区块标题城市前缀 */
body.city-homepage .section-head h2 .city-prefix {
  color: var(--green);
  font-weight: 700;
}
body.city-homepage .section-head .city-sub {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: 6px;
}

/* 本地服务面板（替代全国城市网格） */
.city-local-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
.city-local-main {
  background: linear-gradient(145deg, var(--green-pale), #fff);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
  border-left: 4px solid var(--green);
}
.city-local-main h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.city-local-main p { color: var(--gray-700); line-height: 1.85; margin-bottom: 16px; }
.city-local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.city-local-tags li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.city-local-aside {
  background: var(--green-dark);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.city-local-aside .hotline {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}
.city-nearby {
  margin-top: 20px;
}
.city-nearby h4 {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-weight: 600;
}
.city-nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-nearby-grid a {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--green-dark);
  transition: 0.2s;
}
.city-nearby-grid a:hover {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green);
}
.city-nearby-grid a.is-current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  pointer-events: none;
}

body.city-homepage .geo-city-search-bar,
body.city-homepage .geo-cities-outer,
body.city-homepage .geo-locate-bar { display: none !important; }

body.city-homepage .logo-text::after {
  content: attr(data-city-suffix);
  font-size: 13px;
  color: var(--green);
  margin-left: 6px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .city-hero-layout,
  .city-local-panel { grid-template-columns: 1fr; }
  .city-bar-inner { justify-content: center; text-align: center; }
  body.city-layout-1 .carousel,
  body.city-layout-2 .carousel { height: 360px; }
}
