/* ==========================================================================
   全球城市介绍 · 设计稿样式（v4）
   风格：旅行杂志感 —— 墨绿主色 + 暖橙点缀 + 米白纸感底
   与 bitonline 主题（--travel-green:#1f5d50 / --travel-orange:#d17a45）同源
   前缀统一 ct- ，不污染主题样式
   ========================================================================== */

/* 变量定义在 .ct-app 上，不用 :root —— 主题 :root 里已有 --line / --danger，
   同名会互相覆盖，连原站页脚边框色都会跟着变。 */
.ct-app {
  /* 文字 */
  --ink:      #12211d;
  --ink-2:    #3b4a45;
  --ink-3:    #75837e;
  --ink-4:    #9aa6a1;

  /* 面 */
  --bg:       #faf8f4;
  --bg-2:     #f3efe7;
  --card:     #ffffff;
  --line:     #e6e2d9;
  --line-2:   #efece4;

  /* 品牌 */
  --brand:    #1f5d50;
  --brand-d:  #123b34;
  --brand-l:  #eaf2ef;
  --accent:   #d17a45;
  --accent-l: #fbf1e9;
  --danger:   #c2413c;

  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;

  --radius:   14px;
  --radius-s: 10px;
  --shadow:   0 1px 2px rgba(18, 33, 29, .04), 0 6px 20px rgba(18, 33, 29, .05);
  --shadow-h: 0 2px 4px rgba(18, 33, 29, .06), 0 14px 34px rgba(18, 33, 29, .09);
}

/* 北京时间工具条与地图信息强化。 */
.ct-map-intro { padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--brand-l); color: var(--ink-2); font-size: 13px; }
.ct-map-intro b { color: var(--brand-d); }
.ct-timebar { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.ct-timebar-in { display: flex; align-items: stretch; gap: 24px; min-height: 82px; }
.ct-timebar-title { display: flex; flex: 0 0 116px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); color: var(--brand-d); }
.ct-timebar-title b { font-size: 13px; font-weight: 700; }
.ct-timebar-title small { margin-top: 2px; color: var(--ink-4); font-size: 10px; }
.ct-live-dot { width: 7px; height: 7px; margin-bottom: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(209,122,69,.14); animation: ct-time-pulse 2s ease-in-out infinite; }
.ct-time-grid { display: grid; flex: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
.ct-time-cell { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 12px 14px; border-right: 1px solid var(--line-2); overflow: hidden; }
.ct-time-cell:last-child { border-right: 0; }
.ct-time-cell span { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.ct-time-cell strong { display: block; margin-top: 2px; color: var(--ink); font: 600 19px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .3px; white-space: nowrap; }
.ct-time-cell small { margin-top: 3px; color: var(--ink-4); font-size: 10px; white-space: nowrap; }
.ct-time-cell.is-home { background: linear-gradient(90deg, var(--brand-l), rgba(234,242,239,.22)); }
.ct-time-cell.is-home span { color: var(--brand); font-weight: 700; }
.ct-time-cell.is-tick strong { animation: ct-time-tick .45s ease-out; }
@keyframes ct-time-pulse { 50% { box-shadow: 0 0 0 8px rgba(209,122,69,0); } }
@keyframes ct-time-tick { 0% { opacity: .45; transform: translateY(2px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .ct-timebar-in { display: block; padding-top: 10px; padding-bottom: 10px; }
  .ct-timebar-title { flex-direction: row; align-items: center; gap: 7px; min-height: 26px; border-right: 0; }
  .ct-live-dot { margin: 0; }
  .ct-timebar-title small { margin: 0 0 0 auto; }
  .ct-time-grid { display: flex; overflow-x: auto; margin-top: 5px; scrollbar-width: none; }
  .ct-time-grid::-webkit-scrollbar { display: none; }
  .ct-time-cell { flex: 0 0 145px; min-height: 70px; padding: 10px 12px; }
  .ct-time-cell strong { font-size: 18px; }
  .ct-map-intro { line-height: 1.7; }
}

/* ---------- 作用域 ----------
   城市页现在复用原站 style.css 的 header / footer，
   下面这 5 组原来写的是 html / body / a / img / :root，
   会连带改掉原站导航与页脚的字体、链接色、背景与 --line 变量。
   全部收进 .ct-app（只包住正文），原站外框一个属性都不动。 */

.ct-app,
.ct-app * { box-sizing: border-box; }

.ct-app {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.ct-app a { color: var(--brand); text-decoration: none; }
.ct-app a:hover { color: var(--accent); }

.ct-app img { max-width: 100%; height: auto; display: block; }

/* ---------- 布局 ----------
   宽度与原站 style.css 的 .wrap 一致（min(1180px, 100% - 48px)），
   这样面包屑、正文左边缘能和原站 header 的 logo、footer 的城市目录对齐。 */
.ct-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.ct-wrap-narrow { max-width: 860px; }

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 28px;
  align-items: start;
}
.ct-content { min-width: 0; }

/* ---------- 顶栏（模拟站点导航） ---------- */
.ct-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.ct-topbar-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}
.ct-logo {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--brand-d);
  white-space: nowrap;
}
.ct-logo em {
  font-style: normal;
  color: var(--accent);
}
.ct-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-2);
  overflow: hidden;
  white-space: nowrap;
}
.ct-nav a { color: var(--ink-2); }
.ct-nav a:hover { color: var(--brand); }
.ct-nav a.on {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.ct-topbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-4);
  background: var(--bg);
  min-width: 180px;
}

/* ---------- 面包屑 ---------- */
.ct-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 16px 0 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.ct-crumb a { color: var(--ink-3); }
.ct-crumb a:hover { color: var(--brand); }
.ct-crumb-sep { color: #cbc6ba; }
.ct-crumb [aria-current] { color: var(--ink-2); }

/* ---------- Hero（总览页） ---------- */
.ct-hero {
  position: relative;
  padding: 46px 0 40px;
  background:
    radial-gradient(900px 320px at 12% -10%, #e8f0ec 0%, rgba(232,240,236,0) 62%),
    radial-gradient(700px 300px at 92% 0%, #fbf0e7 0%, rgba(251,240,231,0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}
.ct-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.ct-hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.ct-hero-h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.5px;
}
.ct-hero-h1 span { color: var(--brand); }
.ct-hero-lede {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.ct-hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 30px;
}
.ct-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14.5px;
  color: var(--ink);
  font-family: inherit;
  box-shadow: var(--shadow);
  outline: none;
}
.ct-hero-search input::placeholder { color: var(--ink-4); }
.ct-hero-search input:focus { border-color: var(--brand); }
.ct-hero-search button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
}
.ct-hero-search button:hover { background: var(--brand-d); }

.ct-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.ct-stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--brand-d);
  line-height: 1.2;
}
.ct-stat span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .3px;
}

/* ---------- 通用区块 ---------- */
.ct-main { padding: 34px 0 62px; }

.ct-block { margin-bottom: 40px; }
.ct-block:last-child { margin-bottom: 0; }
.ct-block-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ct-block-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.ct-block-h2 small {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ct-block-more { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.ct-block-more:hover { color: var(--brand); }

/* ---------- 洲卡片 ---------- */
.ct-cont-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}
.ct-cont-card {
  position: relative;
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: .2s cubic-bezier(.16,1,.3,1);
}
.ct-cont-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-l);
  opacity: .55;
  transition: .25s;
}
.ct-cont-card:hover {
  border-color: #cfe0da;
  box-shadow: var(--shadow-h);
  transform: translateY(-2px);
}
.ct-cont-card:hover::after { background: var(--accent-l); opacity: .9; }
.ct-cont-cn {
  position: relative;
  display: block;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--brand-d);
  line-height: 1.25;
  letter-spacing: 1px;
}
.ct-cont-en {
  position: relative;
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ct-cont-meta {
  position: relative;
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.ct-cont-meta b {
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
  margin-right: 4px;
}
.ct-cont-list {
  position: relative;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.ct-cont-card-empty { opacity: .5; }
.ct-cont-card-empty::after { background: var(--bg-2); }

/* ---------- 城市卡片（网格） ---------- */
.ct-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}
.ct-city-card {
  display: flex;
  flex-direction: column;
  padding: 16px 17px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  transition: .18s;
}
.ct-city-card:hover {
  border-color: #cfe0da;
  box-shadow: var(--shadow-h);
  transform: translateY(-2px);
}
.ct-city-card-hd {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ct-city-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, #2f7d69 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.ct-city-card-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.ct-city-card-en {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ct-city-card-desc {
  margin: 11px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ct-city-card-ft {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--ink-3);
}
.ct-tag {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.6;
}
.ct-tag-brand { background: var(--brand-l); color: var(--brand); }
.ct-tag-accent { background: var(--accent-l); color: #a35a2c; }

/* ---------- 国家行 ---------- */
.ct-country-list { display: flex; flex-direction: column; gap: 14px; }
.ct-country-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: .18s;
}
.ct-country-row:hover { border-color: #cfe0da; box-shadow: var(--shadow-h); }
.ct-country-main { flex: 1 1 auto; min-width: 0; }
.ct-country-name {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.ct-country-name a { color: var(--ink); }
.ct-country-name a:hover { color: var(--brand); }
.ct-country-capital {
  margin-left: 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
}
.ct-country-intro {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.78;
}
.ct-country-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-country-cities a {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: .15s;
}
.ct-country-cities a:hover {
  border-color: var(--brand);
  background: var(--brand-l);
  color: var(--brand);
}
.ct-country-cities .ct-more {
  border-style: dashed;
  background: transparent;
  color: var(--brand);
}
.ct-country-count {
  flex: 0 0 74px;
  text-align: center;
  padding-top: 2px;
}
.ct-country-count b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.15;
}
.ct-country-count span { font-size: 11.5px; color: var(--ink-4); }

/* ---------- 城市详情 · 页头 ---------- */
.ct-city-head { padding: 4px 0 4px; }
.ct-city-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}
.ct-city-kicker span { color: var(--ink-4); letter-spacing: .4px; text-transform: none; }
.ct-city-h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--ink);
}
.ct-city-en {
  margin: 0 0 16px;
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ct-lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--ink-2);
  max-width: 780px;
}

/* 速览数据 */
.ct-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ct-fact {
  padding: 14px 16px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.ct-fact-k {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .4px;
  line-height: 1.5;
}
.ct-fact-v {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}
.ct-fact-v em {
  font-style: normal;
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 吸顶目录 */
.ct-toc {
  position: sticky;
  /* 原站 header 是 sticky（min-height:88px，z-index:10），
     这里要让出 96px 并且 z-index 更低，否则目录会压在导航上 */
  top: 96px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px 0;
  margin: 0 0 22px;
  background: linear-gradient(var(--bg) 62%, rgba(250, 248, 244, .88));
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.ct-toc::-webkit-scrollbar { display: none; }
.ct-toc a {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: .15s;
}
.ct-toc a:hover,
.ct-toc a.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* ---------- 内容区块 ---------- */
.ct-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
  scroll-margin-top: 60px;
}
.ct-sec-h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.2px;
}
.ct-sec-h2::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 19px;
  border-radius: 2px;
  background: linear-gradient(var(--brand), var(--accent));
}
.ct-sec-h2 small {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-4);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-left: auto;
}
.ct-sec-body > *:first-child { margin-top: 0; }
.ct-sec-body > *:last-child { margin-bottom: 0; }
.ct-sec-body p {
  margin: 0 0 13px;
  color: var(--ink-2);
  line-height: 1.95;
}
.ct-h3 {
  margin: 22px 0 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ct-h4 {
  margin: 16px 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
}
.ct-ul {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}
.ct-ul li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.9;
}
.ct-ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.ct-ul li b { color: var(--ink); font-weight: 600; }

.ct-note {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 15px;
  background: var(--accent-l);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #8a4a22;
  line-height: 1.78;
}

/* 双列列表（机场、酒店区域等） */
.ct-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.ct-mini {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
}
.ct-mini-t {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.ct-mini-t code {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
}
.ct-mini p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.78; }

/* ---------- 地图 ---------- */
.ct-map-box {
  margin: 4px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef2ee;
}
.ct-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.4;
  min-height: 260px;
  overflow: hidden;
}
.ct-map svg { width: 100%; height: 100%; display: block; }

/* ---------- 地图插槽 ----------
   PHP 模板把经纬度/缩放/图源写进 data-*，换地图方案时只替换 .ct-map-slot 的内容 */
.ct-map-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ct-map-slot > svg,
.ct-map-slot > canvas,
.ct-map-slot > img,
.ct-map-slot > iframe,
.ct-map-slot > div {
  display: block;
  width: 100%;
  height: 100%;
}

/* 服务端瓦片：5×3 张 256px，中心点即目标坐标；不依赖任何 JS 地图库 */
.ct-map-tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e8eee9;
}
.ct-map-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 256px;
  height: 256px;
  max-width: none;
  border: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
a.ct-map-provider { text-decoration: none; }
a.ct-map-provider:hover { color: var(--brand); }
/* 控件层统一压在插槽之上，避免被地图 canvas 盖住 */
.ct-map-tabs,
.ct-map-label,
.ct-map-pin,
.ct-map-scale,
.ct-map-provider { z-index: 3; }

.ct-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 6px rgba(194, 65, 60, .18), 0 2px 6px rgba(0,0,0,.25);
  z-index: 3;
}
.ct-map-pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(194, 65, 60, .45);
  animation: ct-pulse 2.4s ease-out infinite;
}
@keyframes ct-pulse {
  0%   { transform: scale(.7); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}
.ct-map-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 16px));
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-d);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(18,33,29,.28);
}
.ct-map-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--brand-d);
  transform: rotate(45deg);
}
.ct-map-ctrl {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}
.ct-map-ctrl button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.95);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.ct-map-ctrl button:hover { background: #fff; color: var(--brand); }
.ct-map-tabs {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  z-index: 4;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.ct-map-tabs span {
  padding: 5px 12px;
  font-size: 12px;
  background: rgba(255,255,255,.94);
  color: var(--ink-3);
  cursor: pointer;
}
.ct-map-tabs span.on { background: var(--brand); color: #fff; }
.ct-map-scale {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 11px;
  color: var(--ink-2);
  background: rgba(255,255,255,.9);
  padding: 2px 7px;
  border-radius: 4px;
}
.ct-map-provider {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 10.5px;
  color: var(--ink-3);
  background: rgba(255,255,255,.85);
  padding: 2px 7px;
  border-radius: 4px;
}
.ct-map-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 12.5px;
  color: var(--ink-3);
}
.ct-map-bar b { color: var(--ink); font-weight: 600; }
.ct-map-bar .ct-map-bar-r { margin-left: auto; color: var(--ink-4); font-size: 11.5px; }

/* ---------- FAQ ---------- */
.ct-faq { margin: 0; }
.ct-faq-item {
  border-bottom: 1px dashed var(--line);
  padding: 15px 0;
}
.ct-faq-item:first-child { padding-top: 0; }
.ct-faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-faq-q {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  gap: 9px;
  line-height: 1.6;
}
.ct-faq-q::before {
  content: "Q";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ct-faq-a {
  margin: 7px 0 0 29px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.88;
}

/* ---------- 相关城市 ---------- */
.ct-rel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ct-rel-card {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  transition: .15s;
}
.ct-rel-card:hover { border-color: var(--brand); background: var(--brand-l); }
.ct-rel-card b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.ct-rel-card span {
  display: block;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ---------- 侧栏 ---------- */
.ct-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.ct-side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.ct-side-t {
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-side-t::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.ct-kv { margin: 0; }
.ct-kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.ct-kv div:last-child { border-bottom: 0; }
.ct-kv dt { color: var(--ink-3); flex: 0 0 auto; }
.ct-kv dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.ct-side-links { display: flex; flex-direction: column; gap: 2px; }
.ct-side-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.ct-side-links a:last-child { border-bottom: 0; }
.ct-side-links a:hover { color: var(--brand); }
.ct-side-links a em {
  font-style: normal;
  color: var(--ink-4);
  font-size: 11.5px;
  letter-spacing: .6px;
}
.ct-side-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.72;
}
.ct-side-cta {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--brand) 0%, #2f7d69 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31,93,80,.22);
}
.ct-side-cta b { display: block; font-size: 14.5px; }
.ct-side-cta span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.ct-side-cta:hover { color: #fff; filter: brightness(1.06); }

/* ---------- 分页 ---------- */
.ct-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
}
.ct-pager a {
  min-width: 38px;
  padding: 7px 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13.5px;
  color: var(--ink-2);
}
.ct-pager a:hover { border-color: var(--brand); color: var(--brand); }
.ct-pager a.cur {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- 页脚 ---------- */
.ct-foot {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 28px 0;
  font-size: 12.5px;
  color: var(--ink-4);
}
.ct-foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}
.ct-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.ct-foot-links a { color: var(--ink-3); }

/* ---------- 设计标注（仅设计稿使用，上线前删除） ---------- */
.ct-anno {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 5px;
  background: #eef4ff;
  border: 1px dashed #93b4f5;
  color: #1d4ed8;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  vertical-align: middle;
}
.ct-anno-db { background: #f0fdf4; border-color: #86d3a0; color: #15803d; }
.ct-anno-js { background: #fef3f2; border-color: #f3a9a3; color: #b42318; }

/* ---------- 推荐位（本国 / 本洲 / 全球） ---------- */
.ct-rec-group { margin-bottom: 24px; }
.ct-rec-group:last-child { margin-bottom: 0; }
.ct-rec-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.ct-rec-hd h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-rec-hd h3::before {
  content: "";
  width: 5px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand);
}
.ct-rec-badge {
  padding: 1px 9px;
  border-radius: 5px;
  background: var(--brand-l);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.ct-rec-badge-rand {
  background: #eef4ff;
  color: #1d4ed8;
  margin-left: auto;
}
.ct-rec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 9px;
}
.ct-rec-item {
  display: block;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  transition: .15s;
}
.ct-rec-item:hover {
  border-color: var(--brand);
  background: var(--brand-l);
  transform: translateY(-1px);
}
.ct-rec-item b {
  display: block;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.ct-rec-item span {
  display: block;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--ink-4);
  line-height: 1.6;
}
.ct-rec-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-side { position: static; }
  .ct-nav { display: none; }
}
@media (max-width: 720px) {
  .ct-topbar-in { height: 56px; gap: 12px; }
  .ct-topbar-search { display: none; }
  .ct-logo { font-size: 17px; }
  /* 窄屏：宽度按 100% - 32px 走，与原站 .wrap 在手机上的留白接近 */
  .ct-wrap { width: calc(100% - 32px); }
  .ct-hero { padding: 32px 0 30px; }
  .ct-hero-search { flex-direction: column; }
  .ct-hero-search button { width: 100%; }
  .ct-stats { gap: 22px; }
  .ct-stat b { font-size: 22px; }
  .ct-cont-grid { grid-template-columns: 1fr; }
  .ct-city-grid { grid-template-columns: 1fr; }
  .ct-city-h1 { font-size: 23px; }
  .ct-lede { font-size: 14.5px; }
  .ct-sec { padding: 18px 16px; }
  .ct-sec-h2 { font-size: 18px; }
  .ct-facts { grid-template-columns: repeat(2, 1fr); }
  .ct-fact { padding: 11px 13px; }
  .ct-fact-v { font-size: 13.5px; }
  .ct-country-row { flex-direction: column; gap: 10px; padding: 17px; }
  .ct-country-count { flex: none; text-align: left; padding: 0; }
  .ct-country-count b { display: inline; font-size: 16px; margin-right: 4px; }
  .ct-map { aspect-ratio: 4 / 3; }
  .ct-map-bar { gap: 10px; font-size: 12px; }
  .ct-map-bar .ct-map-bar-r { margin-left: 0; width: 100%; }
  .ct-rec-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ct-rec-hd h3 { font-size: 15px; }
  .ct-sec-body p, .ct-ul li { line-height: 1.88; }
}

/* 地图容器：插槽里放 iframe / canvas / img 都自动铺满，不绑定具体图源 */
.ct-map-slot { background: var(--brand-l); }
.ct-map-slot > iframe,
.ct-map-slot > canvas,
.ct-map-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ct-map-box { transition: box-shadow .35s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.ct-map-box:hover { box-shadow: 0 18px 42px rgba(18,33,29,.12); transform: translateY(-2px); }
.ct-map-provider { letter-spacing: .2px; }

/* Shared scroll reveal. The resting state stays readable when JavaScript is unavailable. */
.ct-motion-ready .ct-sec,
.ct-motion-ready .ct-block,
.ct-motion-ready .ct-side-card,
.ct-motion-ready .ct-country-row,
.ct-motion-ready .ct-city-card { opacity: 0; transform: translateY(18px); }
.ct-motion-ready .ct-sec.ct-revealed,
.ct-motion-ready .ct-block.ct-revealed,
.ct-motion-ready .ct-side-card.ct-revealed,
.ct-motion-ready .ct-country-row.ct-revealed,
.ct-motion-ready .ct-city-card.ct-revealed { opacity: 1; transform: none; transition: opacity .72s cubic-bezier(.16,1,.3,1), transform .72s cubic-bezier(.16,1,.3,1); }
.ct-sec, .ct-block, .ct-side-card, .ct-country-row, .ct-city-card { transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease; }
.ct-city-card:hover, .ct-country-row:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18,33,29,.10); }
.ct-nav a, .ct-foot-links a, .ct-crumb a { transition: color .2s ease, opacity .2s ease; }
.ct-nav a:hover, .ct-foot-links a:hover, .ct-crumb a:hover { opacity: .72; }
.ct-toc a { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.ct-toc a:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .ct-motion-ready .ct-sec,
  .ct-motion-ready .ct-block,
  .ct-motion-ready .ct-side-card,
  .ct-motion-ready .ct-country-row,
  .ct-motion-ready .ct-city-card { opacity: 1; transform: none; }
  .ct-map-slot > iframe, .ct-map-box { transition: none; }
}

/* ---------- 模板新增：字母索引与分页省略号 ---------- */
.ct-letter-index { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-letter-index .ct-tag { padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); }
.ct-letter-index .ct-tag em { margin-left: 5px; color: var(--ink-4); font-style: normal; font-size: 11px; }
.ct-pager-gap { padding: 7px 4px; color: var(--ink-4); font-size: 13px; }

/* 空区块：数据缺失时整块不输出，这里只兜底防止残留边框 */
.ct-sec:empty, .ct-block:empty { display: none; }
