/* ==========================================================================
   cncity.cc - China Cities Travel Guide
   Shared stylesheet
   ========================================================================== */

/* Reset & base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
               Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: #9B1B30; text-decoration: none; transition: color .2s ease; }
a:hover { color: #6E1120; }
h1, h2, h3, h4 { color: #1a1a2e; margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }

/* Layout container ---------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-tight { padding: 40px 0; }

/* Top header / navigation --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #9B1B30;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-weight: 700; font-size: 18px;
  letter-spacing: .5px;
}
.brand-mark {
  height: 38px; width: auto; border-radius: 0;
  display: block; object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.brand-text small { display: block; font-size: 11px; font-weight: 400; opacity: .8; letter-spacing: 1px; }

@media (max-width: 480px) {
  .brand-mark { height: 32px; }
  .brand-text small { font-size: 10px; letter-spacing: .5px; }
}

.nav-toggle {
  display: none;
  background: transparent; border: 0; color: #fff; font-size: 24px;
  cursor: pointer; padding: 6px 10px; border-radius: 4px;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }

.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.92); padding: 8px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 500; transition: background .2s ease;
}
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.site-nav .cta { background: #FFD56B; color: #9B1B30; }
.site-nav .cta:hover { background: #fff; color: #9B1B30; }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 520px;
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #9B1B30 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,213,107,.18) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(155,27,48,.55) 0%, transparent 60%),
              linear-gradient(135deg, #1a1a2e 0%, #5a1322 50%, #9B1B30 100%);
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 88%, rgba(255,213,107,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.10) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 55% 62%, rgba(255,213,107,.18) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.08) 0 1px, transparent 2px);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%;
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero .hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: #FFD56B;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 500;
}
.hero p.hero-desc {
  max-width: 720px; margin: 0 auto 36px;
  font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.9);
}
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: #FFD56B; color: #9B1B30; border-color: #FFD56B; }
.btn-primary:hover { background: #fff; color: #9B1B30; border-color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { background: transparent; color: #9B1B30; border-color: #9B1B30; }
.btn-outline:hover { background: #9B1B30; color: #fff; }

/* Section heading ----------------------------------------------------------- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  color: #1a1a2e;
}
.section-head .accent {
  display: inline-block; width: 50px; height: 3px;
  background: #9B1B30; margin-bottom: 18px;
}
.section-head p { max-width: 700px; margin: 0 auto; color: #555; font-size: 16px; }

/* City cards ---------------------------------------------------------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.city-card {
  display: block; color: inherit;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.city-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.city-card .city-cover {
  position: relative; height: 220px;
  display: flex; flex-direction: column;
  justify-content: flex-end;        /* cluster English + Chinese together (closer); English above Chinese */
  gap: 10px;
  align-items: center; text-align: center;
  padding: 22px;
  overflow: hidden;
}
.city-card .city-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 38%, transparent 60%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.city-card .city-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 2px, transparent 3px),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12) 0 2px, transparent 3px);
  z-index: 1; pointer-events: none;
}
.city-card .city-name {
  position: relative; z-index: 2;
  color: #FFFFFF; margin: 0;
  font-size: 34px; font-weight: 800; letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 3px 14px rgba(0,0,0,.45);
}
.city-card .city-name-cn {
  position: relative; z-index: 2;
  color: #FFD56B; margin: 0;
  font-size: 40px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.5);
}
.city-card .city-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,213,107,.95); color: #9B1B30;
  padding: 4px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  z-index: 2;
}
.city-card .city-body { padding: 20px; }
.city-card .city-body p {
  color: #555; font-size: 14px; line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-card .city-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #888;
}
.city-card .city-meta span { display: inline-flex; align-items: center; gap: 4px; }
.city-card .city-meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #9B1B30;
}
.city-card .city-link {
  display: inline-block; margin-top: 14px;
  color: #9B1B30; font-weight: 600; font-size: 13px;
  letter-spacing: .5px;
}
.city-card .city-link::after { content: " →"; transition: margin-left .2s ease; }
.city-card:hover .city-link::after { margin-left: 4px; }

/* Directory page (cities.html): keep top-English / bottom-Chinese layout, only scale up */
.city-card--dir .city-cover { align-items: center; text-align: center; }
.city-card--dir .city-name { font-size: 44px; font-weight: 800; text-align: center; }
.city-card--dir .city-name-cn { font-size: 55px; font-weight: 700; text-align: center; margin-top: 0; letter-spacing: 3px; }

/* Per-city official website bar (injected below the hero) ----------------- */
.city-site {
  background: #f8f9fa; border-top: 1px solid #ececec;
  padding: 14px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px;
}
.city-site-label { font-weight: 600; color: #9B1B30; letter-spacing: .3px; }
.city-site a { color: #185FA5; text-decoration: none; font-weight: 500; }
.city-site a:hover { text-decoration: underline; }

/* Per-city cover gradients ------------------------------------------------- */
.bg-beijing   { background: linear-gradient(135deg, #8B0000 0%, #C8102E 50%, #FF6B35 100%); }
.bg-shanghai  { background: linear-gradient(135deg, #0F4C81 0%, #5B2C87 50%, #C8102E 100%); }
.bg-guangzhou{ background: linear-gradient(135deg, #00897B 0%, #2E7D32 50%, #C8102E 100%); }
.bg-chengdu  { background: linear-gradient(135deg, #E65100 0%, #BF360C 50%, #6D4C41 100%); }
.bg-xian     { background: linear-gradient(135deg, #5D4037 0%, #8D6E63 50%, #FF8F00 100%); }
.bg-hangzhou { background: linear-gradient(135deg, #2E7D32 0%, #388E3C 40%, #1565C0 100%); }
.bg-shenzhen { background: linear-gradient(135deg, #00BCD4 0%, #1976D2 50%, #6A1B9A 100%); }
.bg-guilin   { background: linear-gradient(135deg, #1B5E20 0%, #388E3C 40%, #00838F 100%); }

/* Generic card grid (used for highlights/news/etc.) ------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  border-top: 3px solid #9B1B30;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .2s ease;
}
.info-card:hover { transform: translateY(-4px); }
.info-card .info-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(155,27,48,.1); color: #9B1B30;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  font-weight: 700;
}
.info-card h3 { font-size: 19px; margin-bottom: 12px; }
.info-card p { color: #555; font-size: 14px; line-height: 1.7; margin: 0; }

/* Featured bar (red strip section) ----------------------------------------- */
.feature-strip {
  background: linear-gradient(135deg, #9B1B30 0%, #6E1120 100%);
  color: #fff; padding: 70px 0;
  position: relative; overflow: hidden;
}
.feature-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,213,107,.15) 0 3px, transparent 4px),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,.10) 0 3px, transparent 4px);
  pointer-events: none;
}
.feature-strip .section-head h2,
.feature-strip .section-head p { color: #fff; }
.feature-strip .section-head .accent { background: #FFD56B; }
.feature-strip .section-head p { color: rgba(255,255,255,.85); }

/* City detail page --------------------------------------------------------- */
.city-hero {
  position: relative;
  min-height: 420px;
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 80px 0 50px;
  overflow: hidden;
}
.city-hero-bg { position: absolute; inset: 0; z-index: 0; }
.city-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.65) 100%);
}
.city-hero-inner { position: relative; z-index: 1; width: 100%; }
.city-hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.city-hero .city-cn {
  display: block;
  font-size: 22px; font-weight: 400;
  color: #FFD56B; letter-spacing: 4px;
  margin-bottom: 14px;
}
.city-hero .city-tagline {
  font-size: 18px; color: rgba(255,255,255,.92);
  max-width: 720px; margin: 0 0 24px;
  line-height: 1.7;
}
.city-hero .city-quickfacts {
  display: flex; gap: 30px; flex-wrap: wrap;
  margin-top: 22px;
}
.city-hero .city-quickfacts > div {
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  padding: 12px 18px; border-radius: 4px;
  border-left: 3px solid #FFD56B;
}
.city-hero .city-quickfacts strong {
  display: block; font-size: 13px;
  color: #FFD56B; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 4px;
  font-weight: 600;
}
.city-hero .city-quickfacts span { font-size: 15px; font-weight: 500; }

/* City nav (anchor tabs) ---------------------------------------------------- */
.city-tabs {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 64px; z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.city-tabs .container {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: thin;
}
.city-tabs a {
  padding: 16px 18px;
  color: #555; font-size: 14px; font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.city-tabs a:hover { color: #9B1B30; }
.city-tabs a.active { color: #9B1B30; border-bottom-color: #9B1B30; }

/* Content blocks ----------------------------------------------------------- */
.content-block { padding: 50px 0; border-bottom: 1px solid #f0f0f0; }
.content-block:last-child { border-bottom: 0; }
.content-block h2 {
  font-size: 28px; color: #9B1B30;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.content-block h2::before {
  content: ""; width: 4px; height: 26px;
  background: #9B1B30; border-radius: 2px;
}
.content-block p { color: #444; font-size: 15px; line-height: 1.85; margin-bottom: 16px; }

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; margin-top: 22px;
}
.attraction-card {
  background: #fafafa; border-radius: 8px;
  padding: 22px;
  border-left: 3px solid #9B1B30;
  transition: background .2s ease, transform .2s ease;
}
.attraction-card:hover { background: #fff; transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.attraction-card h3 {
  font-size: 18px; color: #1a1a2e; margin: 0 0 8px;
  display: flex; align-items: baseline; gap: 8px;
}
.attraction-card .rank {
  background: #9B1B30; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  min-width: 22px; text-align: center;
}
.attraction-card .pinyin {
  font-size: 12px; color: #888; font-style: italic;
  margin-bottom: 8px; letter-spacing: .5px;
}

/* Image gallery for city pages */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 22px;
}
.gallery-item {
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  background: #f5f5f5;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.gallery-item img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  padding: 12px 16px;
  font-size: 13px; color: #555;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  line-height: 1.5;
}
.gallery-item .caption strong {
  display: block;
  color: #9B1B30;
  font-size: 13px; margin-bottom: 3px;
  letter-spacing: .5px;
}

/* City hero with background image */
.city-hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.city-hero.has-image > .city-hero-bg {
  background: transparent !important;
}
.city-hero.has-image > .city-hero-bg::after {
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}
.attraction-card p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 10px; }
.attraction-card .ticket {
  font-size: 12px; color: #9B1B30; font-weight: 600;
  background: rgba(155,27,48,.08); padding: 4px 10px;
  border-radius: 3px; display: inline-block;
}

/* Food list ---------------------------------------------------------------- */
.food-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; }
.food-card {
  display: flex; gap: 16px; padding: 18px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  border: 1px solid #f0f0f0;
}
.food-card .food-icon {
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 8px;
  background: linear-gradient(135deg, #FFD56B, #FF8F00);
  display: grid; place-items: center;
  font-size: 22px;
}
.food-card h4 { font-size: 16px; margin: 0 0 4px; color: #1a1a2e; }
.food-card .pinyin { font-size: 12px; color: #888; font-style: italic; margin-bottom: 6px; }
.food-card p { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

/* Tips / facts box --------------------------------------------------------- */
.tips-box {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-left: 4px solid #FF8F00;
  padding: 20px 24px; border-radius: 4px;
  margin-top: 22px;
}
.tips-box h4 {
  margin: 0 0 10px; font-size: 16px; color: #BF360C;
  display: flex; align-items: center; gap: 8px;
}
.tips-box ul { margin: 0; padding-left: 1.4em; color: #5D4037; }
.tips-box li { margin-bottom: 6px; font-size: 14px; }

/* Practical info grid (transport / stay) ---------------------------------- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin-top: 22px;
}
.info-grid .item {
  background: #f8f9fa; padding: 18px; border-radius: 6px;
}
.info-grid .item h4 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 1px; color: #9B1B30;
  margin-bottom: 8px;
}
.info-grid .item p { margin: 0; font-size: 14px; color: #444; line-height: 1.6; }

/* Quote / call-out --------------------------------------------------------- */
.callout {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
  border-left: 4px solid #9B1B30;
  padding: 20px 24px; border-radius: 4px; margin: 22px 0;
  color: #4a148c;
}
.callout strong { color: #6a1b9a; }

/* Guide page specific ------------------------------------------------------ */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.guide-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-top: 4px solid #9B1B30;
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.guide-card .guide-icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(135deg, #9B1B30, #6E1120);
  color: #FFD56B; font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
  margin: 24px 24px 16px;
}
.guide-card h3 { padding: 0 24px; font-size: 20px; }
.guide-card p { padding: 0 24px; color: #555; font-size: 14px; line-height: 1.7; }
.guide-card ul { padding: 0 24px 24px; margin: 0; list-style: none; }
.guide-card ul li {
  padding: 8px 0; border-top: 1px solid #f5f5f5;
  font-size: 14px; color: #444;
  position: relative; padding-left: 18px;
}
.guide-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: #9B1B30; font-weight: 700;
}

/* App card (for essential apps) ------------------------------------------- */
.apps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.app-card {
  background: #fff; padding: 20px; border-radius: 8px;
  border: 1px solid #eee;
  display: flex; gap: 16px;
}
.app-card .app-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #2E7D32, #4CAF50);
  color: #fff; font-size: 18px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.app-card h4 { font-size: 15px; margin: 0 0 4px; color: #1a1a2e; }
.app-card .desc { font-size: 13px; color: #666; margin: 0; line-height: 1.5; }
.app-card .ios-android {
  font-size: 11px; color: #888; margin-top: 6px;
}

/* Phrase list --------------------------------------------------------------- */
.phrases-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 22px; }
.phrase-item {
  background: #fff; padding: 14px 18px; border-radius: 6px;
  border-left: 3px solid #9B1B30;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.phrase-item .zh {
  font-size: 18px; color: #1a1a2e; font-weight: 600;
  margin-bottom: 2px;
}
.phrase-item .pinyin {
  font-size: 12px; color: #9B1B30; font-style: italic;
  margin-bottom: 4px;
}
.phrase-item .en { font-size: 13px; color: #666; }

/* Step list ----------------------------------------------------------------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 22px 0 0; }
.step-list li {
  counter-increment: step;
  background: #fff; padding: 18px 20px 18px 64px;
  border-radius: 8px; margin-bottom: 12px;
  border: 1px solid #eee;
  position: relative; min-height: 60px;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #9B1B30; color: #FFD56B;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.step-list li h4 { margin: 0 0 6px; font-size: 15px; color: #1a1a2e; }
.step-list li p { margin: 0; font-size: 13px; color: #555; line-height: 1.65; }

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.7);
  padding: 50px 0 30px;
  font-size: 14px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.site-footer h5 {
  color: #fff; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #FFD56B; }
.site-footer ul li.footer-all { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer ul li.footer-all a { color: #FFD56B; font-weight: 600; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px; padding-top: 20px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.5);
}
.site-footer .brand-block .brand { margin-bottom: 14px; }

/* Back to top -------------------------------------------------------------- */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #9B1B30; color: #FFD56B;
  display: none; place-items: center;
  font-size: 18px; font-weight: 700;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(155,27,48,.4);
  z-index: 80;
}
.back-top.show { display: grid; }
.back-top:hover { background: #6E1120; }

/* Reveal on scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #9B1B30; flex-direction: column;
    padding: 10px 0; gap: 0;
    transform: translateY(calc(-100% - 64px));
    transition: transform .25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,.2);
    visibility: hidden;
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
  }
  .site-nav a { padding: 12px 20px; width: 100%; border-radius: 0; }
  .site-nav .cta { background: transparent; color: #FFD56B; }
  .site-nav .cta:hover { background: rgba(255,213,107,.15); color: #FFD56B; }
  .city-hero { min-height: 360px; padding: 70px 0 40px; }
  .city-hero .city-quickfacts { gap: 12px; }
  .city-hero .city-quickfacts > div { flex: 1 1 calc(50% - 12px); }
  .city-tabs { top: 64px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 50px 0; }
  .city-grid, .card-grid, .info-grid, .guide-grid, .food-list, .apps-list, .attractions-grid, .phrases-list {
    grid-template-columns: 1fr;
  }
  .city-tabs .container { font-size: 13px; }
  .city-tabs a { padding: 14px 14px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
}

/* ===== Interactive China map (homepage) ===== */
.map-wrap { max-width: 960px; margin: 0 auto; }
.china-map-box {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #fbf4ea 100%);
  border: 1px solid #ecd9bf;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(155, 27, 48, .10);
  overflow: visible;
}
.china-map { display: block; width: 100%; height: auto; cursor: grab; }
.china-map.grabbing { cursor: grabbing; }

/* Map zoom controls (homepage) */
.map-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  display: flex; gap: 6px;
}
.map-zoom-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid #e6d3c2; background: rgba(255,255,255,.92);
  color: #9B1B30; font: 700 18px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(155,27,48,.12);
  transition: background .15s ease, color .15s ease, transform .15s ease, opacity .15s ease;
  -webkit-user-select: none; user-select: none;
}
.map-zoom-btn:hover { background: #9B1B30; color: #fff; }
.map-zoom-btn:active { transform: translateY(1px); }
.map-zoom-btn[data-act="reset"] { font-size: 16px; }
.map-zoom-btn:disabled { opacity: .38; cursor: default; background: rgba(255,255,255,.92); color: #9B1B30; }
.province {
  fill: #f3e7d6;
  stroke: #c9a36b;
  stroke-width: .6;
  transition: fill .2s ease;
}
.province:hover { fill: #efd9bf; cursor: pointer; }
/* province "projector" focus: dim everything except the selected province */
.china-map.prov-focus .province:not(.active) { opacity: .13; transition: opacity .3s ease; }
.china-map .province.active {
  fill: #f0b429; stroke: #9B1B30; stroke-width: 1.2; opacity: 1;
}
.china-map.prov-focus .city-dot:not(.in-prov) { opacity: .13; transition: opacity .3s ease; }
.china-map .city-dot.in-prov .dot { fill: #9B1B30; }

.city-dot { cursor: pointer; outline: none; }
.city-dot .dot {
  fill: #FFD56B;
  stroke: #9B1B30;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .15s ease, fill .15s ease;
}
.city-dot .dot-label {
  font: 600 12px/1 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  fill: #5a3a1c;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 2.4px;
  opacity: 0;
  transition: opacity .15s ease;
}
.city-dot.featured .dot-label { opacity: .95; }
.city-dot:hover .dot-label,
.city-dot.active .dot-label,
.city-dot:focus-visible .dot-label { opacity: .95; }
.city-dot:hover .dot,
.city-dot.hover .dot,
.city-dot.active .dot,
.city-dot:focus-visible .dot {
  fill: #9B1B30;
  transform: scale(1.9);
  filter: drop-shadow(0 0 6px rgba(255, 213, 107, .95));
}
.city-dot.featured .dot { stroke-width: 2; }
.city-dot.active .dot { transform: scale(2.1); }

/* tooltip */
.map-tooltip {
  position: absolute;
  left: 0; top: 0;
  z-index: 20;
  width: max-content;
  max-width: 250px;
  background: #2a1118;
  color: #fff;
  border: 1px solid #9B1B30;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%);
  transition: opacity .15s ease;
  pointer-events: none;
  text-align: left;
}
.map-tooltip.show { opacity: 1; visibility: visible; pointer-events: auto; }
.map-tooltip .tt-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #9B1B30; background: #FFD56B; border-radius: 999px;
  padding: 2px 8px; margin-bottom: 6px; font-weight: 700;
}
.map-tooltip .tt-name { display: block; font-size: 16px; color: #FFD56B; }
.map-tooltip .tt-cn { display: block; font-size: 12px; color: #e9d3b6; margin-bottom: 6px; }
.map-tooltip .tt-intro { display: block; font-size: 12.5px; line-height: 1.5; color: #f3e7d6; margin-bottom: 8px; }
.map-tooltip .tt-link {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #FFD56B;
  text-decoration: none; border-bottom: 1px solid rgba(255, 213, 107, .5);
}
.map-tooltip .tt-link:hover { color: #fff; }
.map-hint { text-align: center; color: #9a7b54; font-size: 13px; margin: 12px 0 0; }

/* province focus panel — lists cities inside the focused province */
.map-prov-panel {
  position: absolute; top: 14px; right: 14px; width: 232px; max-height: 78%;
  overflow-y: auto; background: #fff; border: 1px solid #ecd9bf; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(60, 40, 10, .20); padding: 14px 14px 12px; z-index: 6;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.map-prov-panel.show { opacity: 1; visibility: visible; transform: none; }
.map-prov-panel .map-prov-close {
  position: absolute; top: 6px; right: 10px; border: 0; background: transparent;
  font-size: 22px; line-height: 1; color: #9B1B30; cursor: pointer; padding: 2px 4px;
}
.map-prov-panel .map-prov-name {
  font-size: 16px; font-weight: 600; color: #3a2a17; margin: 0 26px 10px 0; line-height: 1.3;
}
.map-prov-panel .map-prov-list { display: flex; flex-direction: column; gap: 6px; }
.map-prov-panel .map-prov-item {
  display: flex; flex-direction: column; text-decoration: none; padding: 7px 10px;
  border-radius: 9px; background: #fbf3e6; border: 1px solid #f0e0c8;
  transition: background .15s ease;
}
.map-prov-panel .map-prov-item:hover { background: #f6e3c4; }
.map-prov-panel .map-prov-item .mp-en {
  font-size: 13.5px; font-weight: 600; color: #5a3a1c;
}
.map-prov-panel .map-prov-item .mp-cn { font-size: 12px; color: #9a7b54; }
.map-prov-panel .map-prov-empty { font-size: 13px; color: #9a7b54; margin: 4px 0; }
.map-noscript { text-align: center; margin: 12px 0 0; }

@media (max-width: 560px) {
  .china-map-box { padding: 8px; border-radius: 14px; }
  .city-dot .dot-label { font-size: 14px; }
  .map-tooltip { max-width: 200px; }
  .map-prov-panel {
    top: auto; bottom: 10px; right: 10px; left: 10px; width: auto;
    max-height: 42%;
  }
}

/* ---- Cities directory filter bar (cities.html) ---- */
.city-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 4px 0 30px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #f0e2d6;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(155, 27, 48, .05);
}
.city-filter .filter-label {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: #9B1B30; text-transform: uppercase; margin-right: 4px;
}
.filter-chip {
  appearance: none; cursor: pointer;
  border: 1px solid #e6d3c2;
  background: #fff;
  color: #6b3a1f;
  font: 600 13px/1 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 9px 14px; border-radius: 999px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-chip:hover { border-color: #9B1B30; color: #9B1B30; transform: translateY(-1px); }
.filter-chip.active {
  background: #9B1B30; border-color: #9B1B30; color: #fff;
  box-shadow: 0 6px 16px rgba(155, 27, 48, .25);
}
.filter-chip .chip-n {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 11px; border-radius: 999px;
  background: rgba(155, 27, 48, .12); color: #9B1B30;
}
.filter-chip.active .chip-n { background: rgba(255, 255, 255, .25); color: #fff; }
.city-filter .filter-count {
  margin-left: auto; font-size: 13px; color: #9a8a7e; font-weight: 600;
}
/* make the on-card tag feel clickable (filters its category) */
.city-card .city-tag { cursor: pointer; transition: background .18s ease, transform .18s ease; }
.city-card .city-tag:hover { background: #FFD56B; transform: translateY(-1px); }

@media (max-width: 560px) {
  .city-filter { padding: 12px; gap: 8px; }
  .filter-chip { padding: 8px 12px; font-size: 12px; }
  .city-filter .filter-count { width: 100%; margin: 4px 0 0; }
  .city-card .city-name { font-size: 30px; }
  .city-card .city-name-cn { font-size: 35px; font-weight: 700; letter-spacing: 2px; }
  .city-card--dir .city-name { font-size: 34px; }
  .city-card--dir .city-name-cn { font-size: 45px; font-weight: 700; }
}