/* ============================================================
   China Business Gateway — page styles
   Extends the global design system (style.css tokens).
   Palette, type and spacing inherited via CSS variables.
   ============================================================ */

/* ---------- Active nav state ---------- */
.nav-links a.is-active { color: var(--gold); }
.nav-links a.is-active::after { width: 100%; }

/* ---------- Page-scoped header treatment (China Business only) ----------
   Softens the white top band so the header blends into the beige page,
   and turns the nav underline into a refined full-width gold divider. */
body.cbg-page {
  background: var(--cream);
  /* System Chinese font stack — no heavy external download */
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
.cbg-page .site-header {
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid rgba(194, 160, 76, 0.38);
}

/* ============================================================
   GATEWAY HERO  (two columns: copy + interactive map)
   ============================================================ */
.cbg {
  background: var(--cream);
  padding: 0 0 56px;
}
/* Full-bleed editorial hero.
   Left text edge aligns with the homepage container (under the logo);
   the map runs out toward the right page edge so it dominates the layout. */
.cbg > .container.cbg-grid {
  max-width: none;
  width: 100%;
  padding-top: 44px;
  /* aligned near the homepage grid, with a slightly reduced left inset so the map can grow */
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: clamp(6px, 1.5vw, 26px); /* map sits closer to the right edge */
}
.cbg-grid {
  display: grid;
  grid-template-columns: minmax(252px, 0.45fr) minmax(0, 1.55fr);
  column-gap: clamp(12px, 1.7vw, 30px);
  align-items: center;
}
/* Map column holds the map + (mobile) province card */
.cbg-map-col { position: relative; min-width: 0; }

/* Left copy column */
.cbg-intro { max-width: 460px; }
.cbg-intro h1 {
  font-size: clamp(2.6rem, 3.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin-bottom: 22px;
}
.cbg-intro .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--grey-text);
  max-width: 430px;
  margin-bottom: 34px;
}
.cbg-rule { width: 64px; height: 3px; background: var(--gold); margin: 6px 0 26px; }

.cbg-features { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 22px; }
.cbg-feature { display: flex; gap: 18px; align-items: flex-start; }
.cbg-feature .ic {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); background: rgba(194,160,76,.06);
}
.cbg-feature .ic svg { width: 24px; height: 24px; }
.cbg-feature h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.cbg-feature p { font-size: 0.92rem; color: var(--grey-text); margin: 0; }

.cbg-callout {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 20px 22px; background: rgba(194,160,76,.05);
}
.cbg-callout .ic { color: var(--gold); flex: none; }
.cbg-callout .ic svg { width: 30px; height: 30px; }
.cbg-callout .label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.cbg-callout p { font-size: 0.95rem; color: var(--navy); margin: 0; }

/* ============================================================
   MAP
   ============================================================ */
/* No frame, no background, no clipping — the map floats on the beige page */
.cbg-map-wrap {
  position: relative;
}
.cbg-map {
  /* full silhouette, large, but always fully inside the column/viewport */
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: -42px;            /* rises subtly into the structured divider zone */
  overflow: visible;            /* never clip the SVG to a rectangle */
  -webkit-tap-highlight-color: transparent;
  /* premium depth follows the China silhouette (not a rectangle) */
  filter: drop-shadow(0 26px 46px rgba(15,28,48,.22));
}

/* Province shapes — fine, understated gold borders */
.province {
  fill: var(--navy);
  stroke: rgba(194, 160, 76, 0.55); /* muted gold, calmer than full --gold */
  stroke-width: 0.45;
  stroke-linejoin: round;
  transition: fill .28s ease, stroke .28s ease, stroke-width .28s ease, filter .28s ease;
  cursor: default;
}
/* Premium hover: lighter blue, brighter gold border, subtle gold glow */
.province:hover,
.province.is-hover {
  fill: #34507f;
  stroke: var(--gold-soft);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 3px rgba(194, 160, 76, 0.55));
}
.province.is-featured { cursor: pointer; fill: #1f3559; }
.province.is-featured:hover,
.province.is-featured.is-hover { fill: #3d5d92; }
.province.is-active {
  fill: #3d5d92;
  stroke: var(--gold-soft);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 3px rgba(194, 160, 76, 0.5));
}

/* Province name labels (two centered lines: English over Chinese) */
.province-label {
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
}
.pl-en {
  fill: rgba(255, 255, 255, 0.82);
  font-family: var(--sans);
  font-size: 7.3px;
  font-weight: 600;
  letter-spacing: 0.09em;
  stroke: rgba(15, 28, 48, 0.55);
  stroke-width: 1.4px;
}
.pl-cn {
  fill: rgba(202, 174, 110, 0.82); /* muted gold */
  font-family: var(--cjk);
  font-size: 6.3px;
  font-weight: 500;
  letter-spacing: 0.06em;
  stroke: rgba(15, 28, 48, 0.5);
  stroke-width: 1px;
}

/* ---- Strategic markers (calm hierarchy) ----
   Beijing = primary focus (muted deep red); Shanghai & Hong Kong = subtle gold. */
.cb-dot { cursor: pointer; transition: fill .2s ease, stroke .2s ease; }

/* Beijing — primary focus marker: muted deep red, soft glow + ring */
.cb-bj {
  fill: #9e3b3b;                 /* muted deep red, not bright */
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(158, 59, 59, 0.65));
}
.cb-bj:hover { fill: #b14848; }
.cb-ring {
  fill: none;
  stroke: #9e3b3b;
  stroke-width: 1;
  opacity: 0.45;
  pointer-events: none;
}

/* Shanghai & Hong Kong — secondary hubs: warm gold, subtle ring + soft glow,
   visible at a glance but clearly weaker than Beijing */
.cb-sec {
  fill: var(--gold-soft);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 0.7;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(194, 160, 76, 0.6));
}
.cb-sec:hover { fill: var(--gold); }
.cb-sec-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  opacity: 0.32;
  pointer-events: none;
}


/* ---- Premium hover tooltip (dark navy card, follows cursor) ---- */
.cbg-tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  width: 240px;
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  color: #fff;
  border: 1px solid rgba(194,160,76,.42);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 20px 46px rgba(15,28,48,.45);
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}
.cbg-tooltip.show { opacity: 1; transform: translateY(0) scale(1); }
.cbg-tooltip .tt-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; margin: 0; color: #fff; }
.cbg-tooltip .tt-cn { font-family: var(--cjk); font-size: 0.95rem; color: var(--gold-soft); margin: 3px 0 0; }
.cbg-tooltip .tt-div { width: 36px; height: 2px; background: var(--gold); margin: 12px 0; }
.cbg-tooltip .tt-stmt { font-size: 0.84rem; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.cbg-tooltip .tt-ind { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cbg-tooltip .tt-ind li { font-size: 0.72rem; letter-spacing: .02em; color: var(--gold-soft);
  border: 1px solid rgba(194,160,76,.4); border-radius: 30px; padding: 3px 10px; }
.cbg-tooltip .tt-more { margin: 12px 0 0; font-size: 0.74rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); }

/* ---- Mobile province card (revealed on tap, below the map) ---- */
.cbg-mobcard {
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  color: #fff; border: 1px solid rgba(194,160,76,.42);
  border-radius: var(--radius); padding: 26px 24px 28px; margin-top: 18px;
  box-shadow: 0 18px 40px rgba(15,28,48,.34); position: relative;
  animation: cbCardIn .25s ease;
}
@keyframes cbCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cbg-mobcard .mc-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border: none; background: none; color: rgba(255,255,255,.65); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.cbg-mobcard .mc-close:hover { color: var(--gold-soft); }
.cbg-mobcard .tt-name { font-family: var(--serif); font-size: 1.5rem; margin: 0; color: #fff; }
.cbg-mobcard .tt-cn { font-family: var(--cjk); font-size: 1rem; color: var(--gold-soft); margin: 3px 0 0; }
.cbg-mobcard .tt-div { width: 40px; height: 3px; background: var(--gold); margin: 14px 0; }
.cbg-mobcard .tt-stmt { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 16px; }
.cbg-mobcard .tt-ind { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cbg-mobcard .tt-ind li { font-size: 0.8rem; color: var(--gold-soft);
  border: 1px solid rgba(194,160,76,.4); border-radius: 30px; padding: 5px 13px; }
.cbg-mobcard .btn { width: 100%; text-align: center; }

/* ============================================================
   REGION CTA BAND
   ============================================================ */
.cbg-band {
  background: var(--cream);
  border-top: 1px solid rgba(15,28,48,.08);
  padding: 40px 0 64px;
}
.cbg-band-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.cbg-band .bldg { color: var(--navy); flex: none; }
.cbg-band .bldg svg { width: 60px; height: 60px; }
.cbg-band h2 { font-size: 1.5rem; margin: 0 0 6px; }
.cbg-band p { margin: 0; color: var(--grey-text); font-size: 0.96rem; max-width: 420px; }
.cbg-band .band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cbg-band .band-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 0.92rem; }
.cbg-band .band-mail:hover { color: var(--gold); }
.cbg-band .band-mail svg { width: 18px; height: 18px; color: var(--gold); }
.cbg-band .divider { width: 1px; background: rgba(15,28,48,.12); align-self: stretch; }

/* ============================================================
   FEATURED PROVINCES GRID (SEO + discoverability)
   ============================================================ */
.cbg-featured { padding: 88px 0; }
.cbg-prov-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cbg-prov-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.cbg-prov-card::before { content:""; position:absolute; left:0; top:0; width:0; height:3px; background:var(--gold); transition:width .3s ease; }
.cbg-prov-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cbg-prov-card:hover::before { width: 100%; }
.cbg-prov-card .pc-cn { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; }
.cbg-prov-card h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.cbg-prov-card p { font-size: 0.95rem; color: var(--grey-text); margin: 0 0 16px; }
.cbg-prov-card .pc-go { color: var(--navy); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 7px; align-items: center; }
.cbg-prov-card:hover .pc-go { color: var(--gold); }

/* ============================================================
   PROVINCE DETAIL PAGES
   ============================================================ */
.prov-hero {
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: 96px 0 86px; position: relative; overflow: hidden;
}
.prov-hero::after {
  content:""; position:absolute; right:-6%; top:50%; transform:translateY(-50%);
  width:480px; height:480px; border:1.5px solid rgba(194,160,76,.25); border-radius:50%;
}
.prov-hero .container { position: relative; z-index: 2; max-width: 820px; }
.prov-breadcrumb { font-size: 0.82rem; letter-spacing: .04em; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.prov-breadcrumb a:hover { color: var(--gold); }
.prov-hero .cn { font-family: var(--serif); color: var(--gold-soft); font-size: 1.4rem; }
.prov-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 4px 0 18px; }
.prov-hero .positioning-stmt { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 640px; }

/* Quick stats strip */
.prov-stats { background: var(--navy-deep); color: #fff; }
.prov-stats .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.prov-stat { padding: 30px 16px; text-align: center; }
.prov-stat .v { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-soft); line-height: 1.1; }
.prov-stat .k { font-size: 0.74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 8px; }

/* Detail content blocks */
.prov-section { padding: 80px 0; }
.prov-blocks { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.prov-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.prov-block.full { grid-column: 1 / -1; }
.prov-block .bk-ic { width: 46px; height: 46px; border-radius: 10px; background: rgba(194,160,76,.1); color: var(--gold); display: grid; place-items: center; margin-bottom: 16px; }
.prov-block .bk-ic svg { width: 24px; height: 24px; }
.prov-block h2 { font-size: 1.5rem; margin: 0 0 12px; }
.prov-block p { color: var(--grey-text); margin: 0 0 10px; }
.prov-block ul { margin: 6px 0 0; padding: 0; list-style: none; }
.prov-block ul li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; color: var(--navy); font-size: 0.96rem; border-bottom: 1px solid var(--line); }
.prov-block ul li:last-child { border-bottom: none; }
.prov-block ul li::before { content: "—"; color: var(--gold); font-weight: 700; flex: none; }

.prov-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.prov-tags span { font-size: 0.85rem; color: var(--navy); border: 1px solid var(--line); border-radius: 30px; padding: 7px 16px; background: var(--cream); }

/* Province contact CTA */
.prov-cta { background: var(--cream); padding: 80px 0; }
.prov-cta-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.prov-cta-card::after { content:""; position:absolute; left:50%; top:-40%; transform:translateX(-50%); width:420px;height:420px;border:1px solid rgba(194,160,76,.2);border-radius:50%; }
.prov-cta-card .container { position: relative; z-index: 2; }
.prov-cta-card .eyebrow { color: var(--gold); }
.prov-cta-card h2 { font-size: clamp(1.8rem,3.6vw,2.6rem); margin: 0 0 14px; }
.prov-cta-card p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 30px; }
.prov-cta-card .role-note { font-size: 0.86rem; color: rgba(255,255,255,.6); margin-top: 22px; }

.prov-disclaimer { font-size: 0.8rem; color: var(--grey-text); text-align: center; padding: 0 0 50px; max-width: 760px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cbg > .container.cbg-grid {
    max-width: 820px; margin: 0 auto;
    padding-left: 28px; padding-right: 28px; padding-top: 38px;
  }
  .cbg-grid { grid-template-columns: 1fr; gap: 36px; }
  .prov-blocks { grid-template-columns: 1fr; }
  .cbg-intro { max-width: none; }
  /* stacked layout: large, centered, no bleed, no overlap */
  .cbg-map-col { max-width: 760px; margin: 0 auto; width: 100%; }
  .cbg-map { width: 100%; margin-top: 0; }
}
@media (max-width: 760px) {
  .cbg { padding: 0 0 28px; }
  .province-label { display: none; }
  .cbg-band-inner { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .cbg-band .divider { display: none; }
  .cbg-prov-grid { grid-template-columns: 1fr; }
  .prov-stats .container { grid-template-columns: repeat(2,1fr); }
  .prov-cta-card { padding: 40px 24px; }
}
