/* Glean153 — class prefix gc-, mobile-first. Breakpoints: 600 / 900 / 1024 / 1280 */

/* Fonts: prefer locally installed Noto families; system Thai/Myanmar fallbacks follow.
   Self-hosted woff2 files can be added to assets/fonts/ and appended to src below. */
@font-face { font-family: "G153 Thai"; font-display: swap; src: local("Noto Sans Thai"), local("NotoSansThai-Regular"), url('../fonts/NotoSansThai-Regular.woff') format('woff'); font-weight: 400; }
@font-face { font-family: "G153 Thai"; font-display: swap; src: local("Noto Sans Thai Bold"), local("NotoSansThai-Bold"), url('../fonts/NotoSansThai-Bold.woff') format('woff'); font-weight: 700; }
@font-face { font-family: "G153 Myanmar"; font-display: swap; src: local("Noto Sans Myanmar"), local("NotoSansMyanmar-Regular"), url('../fonts/NotoSansMyanmar-Regular.woff') format('woff'); font-weight: 400; }
@font-face { font-family: "G153 Myanmar"; font-display: swap; src: local("Noto Sans Myanmar Bold"), local("NotoSansMyanmar-Bold"), url('../fonts/NotoSansMyanmar-Bold.woff') format('woff'); font-weight: 700; }

:root {
  --gc-ink: #0b1426;
  --gc-ink-2: #111d35;
  --gc-ink-3: #1c2b4a;
  --gc-orange: #f7931a;
  --gc-orange-text: #b45309;
  --gc-up: #16a34a;
  --gc-down: #dc2626;
  --gc-bg: #f4f6f9;
  --gc-surface: #ffffff;
  --gc-line: #e2e7ef;
  --gc-text: #16202e;
  --gc-muted: #5a6679;
  --gc-radius: 10px;
  --gc-shadow: 0 1px 2px rgba(11, 20, 38, .06), 0 4px 14px rgba(11, 20, 38, .05);
  --gc-font: "Noto Sans", "G153 Thai", "G153 Myanmar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
             "Leelawadee UI", Thonburi, "Sukhumvit Set", Tahoma, "Myanmar Text", "Myanmar Sangam MN", Padauk, sans-serif;
  --gc-lh: 1.85;
  --gc-lh-head: 1.5;
}
html[lang="en"] { --gc-lh: 1.65; --gc-lh-head: 1.3; }
html[lang="my"] { --gc-lh: 2.05; --gc-lh-head: 1.75; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--gc-bg); color: var(--gc-text); font-family: var(--gc-font); font-size: 16px; line-height: var(--gc-lh); overflow-wrap: anywhere; }
img, video { max-width: 100%; height: auto; display: block; }
/* 泰文、缅文没有空格分词，超长词/短语在标题、卡片内必须能任意位置换行，否则会把容器撑宽（390/414 手机端横向溢出的诱因之一） */
:lang(th), :lang(my) { overflow-wrap: anywhere; word-break: break-word; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gc-orange-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gc-orange); outline-offset: 2px; }
h1, h2, h3 { line-height: var(--gc-lh-head); margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.gc-sr, .gc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gc-muted { color: var(--gc-muted); }
.gc-up { color: var(--gc-up); }
.gc-down { color: var(--gc-down); }

/* ---------- containers: .gc-wrap horizontal only, .gc-page vertical only ---------- */
.gc-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.gc-page { padding-block: 20px 40px; }
@media (min-width: 600px) { .gc-wrap { padding-inline: 20px; } }
@media (min-width: 1024px) { .gc-wrap { padding-inline: 24px; } .gc-page { padding-block: 28px 56px; } }

/* ---------- top bar ---------- */
.gc-top { background: var(--gc-ink); color: #e6ecf5; }
.gc-top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 10px; }
.gc-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .2px; min-height: 44px; min-width: 0; }
.gc-logo:hover { color: #fff; }
.gc-logo__img {
  display: block; height: 28px; width: auto; max-width: 170px; object-fit: contain;
  box-sizing: content-box; padding: 5px 9px; background: #fff; border-radius: 8px;
}
@media (min-width: 600px) { .gc-logo__img { height: 32px; max-width: 220px; } }
.gc-logo__mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--gc-orange), #c46a00); overflow: hidden; flex: none; }
.gc-logo__mark img { width: 34px; height: 34px; }
.gc-logo__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-lang { margin-left: auto; display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; flex: none; }
.gc-lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; font-size: 14px; color: #c3cedf; line-height: 1.2; }
.gc-lang a + a { border-left: 1px solid rgba(255,255,255,.12); }
.gc-lang a:hover { color: #fff; background: rgba(255,255,255,.06); }
.gc-lang a.is-on { background: var(--gc-orange); color: var(--gc-ink); font-weight: 700; }
.gc-search { order: 3; flex: 1 1 100%; display: flex; background: #fff; border-radius: 999px; overflow: hidden; }
.gc-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; min-height: 44px; background: transparent; color: var(--gc-text); font-size: 15px; }
.gc-search input:focus { outline: none; }
.gc-search:focus-within { box-shadow: 0 0 0 2px var(--gc-orange); }
.gc-search button { border: 0; background: transparent; color: var(--gc-ink); width: 48px; min-height: 44px; cursor: pointer; display: grid; place-items: center; }
@media (min-width: 900px) {
  .gc-search { order: 0; flex: 0 1 380px; margin-left: auto; }
  .gc-lang { margin-left: 0; }
}

/* ---------- sticky nav strip (never wraps; scrolls horizontally) ---------- */
.gc-nav { position: sticky; top: 0; z-index: 50; background: var(--gc-ink-2); border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.gc-nav__in { display: flex; align-items: stretch; }
.gc-nav__toggle { flex: none; width: 44px; min-height: 46px; margin-left: -8px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.gc-nav__viewport { position: relative; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gc-nav__viewport::-webkit-scrollbar { display: none; }
.gc-nav__list { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.gc-nav__list a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; color: #c9d3e3; font-size: 15px; border-bottom: 3px solid transparent; line-height: 1.2; }
.gc-nav__list a:hover { color: #fff; }
.gc-nav__list a.is-on { color: #fff; border-bottom-color: var(--gc-orange); font-weight: 600; }
.gc-nav__rail { position: relative; flex: 1; min-width: 0; display: flex; }
.gc-nav__rail::before, .gc-nav__rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.gc-nav__rail::before { left: 0; background: linear-gradient(90deg, var(--gc-ink-2), rgba(17,29,53,0)); }
.gc-nav__rail::after { right: 0; background: linear-gradient(270deg, var(--gc-ink-2), rgba(17,29,53,0)); }
.gc-nav__rail.has-l::before, .gc-nav__rail.has-r::after { opacity: 1; }
@media (min-width: 1024px) { .gc-nav__toggle { display: none; } }
.gc-drawer { background: var(--gc-ink-3); border-top: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 46px); overflow-y: auto; }
.gc-drawer[hidden] { display: none; }
.gc-drawer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding-block: 12px 16px; }
.gc-drawer__list a { display: flex; align-items: center; min-height: 44px; color: #dfe6f1; padding: 0 8px; border-radius: 6px; }
.gc-drawer__list a:hover, .gc-drawer__list a.is-on { background: rgba(255,255,255,.07); color: #fff; }
.gc-drawer__sub a { font-size: 14px; color: #aab6c9; padding-left: 20px; }
@media (min-width: 600px) { .gc-drawer__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- shared bits ---------- */
.gc-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--gc-orange-text); text-transform: uppercase; line-height: 1.4; }
.gc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gc-sec-title { font-size: 20px; position: relative; padding-left: 12px; margin-bottom: 14px; }
.gc-sec-head .gc-sec-title { margin-bottom: 0; }
.gc-sec-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--gc-orange); }
.gc-sec-title small { color: var(--gc-muted); font-weight: 400; font-size: 15px; }
.gc-more { font-size: 14px; color: var(--gc-orange-text); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.gc-section { margin-top: 32px; }
.gc-col > .gc-section:first-child, .gc-col > .gc-rows:first-child { margin-top: 0; }
.gc-empty { color: var(--gc-muted); font-size: 15px; margin: 8px 0; }
.gc-empty--box { background: var(--gc-surface); border: 1px dashed var(--gc-line); border-radius: var(--gc-radius); padding: 28px 20px; text-align: center; }
.gc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--gc-muted); line-height: 1.6; }
.gc-meta a { color: var(--gc-muted); }
.gc-meta a:hover { color: var(--gc-orange-text); }
.gc-badge { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--gc-down); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.gc-count { color: var(--gc-muted); font-size: 14px; margin: 0 0 12px; }
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0; background: var(--gc-ink); color: #fff; font-weight: 600; cursor: pointer; font-size: 15px; }
.gc-btn:hover { background: var(--gc-ink-3); color: #fff; }
.gc-btn--ghost { background: transparent; color: var(--gc-ink); border: 1px solid var(--gc-line); }
.gc-btn--ghost:hover { background: var(--gc-surface); color: var(--gc-orange-text); }
.gc-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- layout grid ---------- */
.gc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.gc-home .gc-layout { margin-top: 32px; }
.gc-page > .gc-layout:first-child { margin-top: 0; }
.gc-crumb + .gc-layout { margin-top: 12px; }
@media (min-width: 1024px) { .gc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; } }
.gc-col { min-width: 0; }

/* ---------- home hero: lead + flash timeline ---------- */
.gc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .gc-hero { grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 24px; } }
/* 实测复现的根因（老板反馈「样式全乱了」）：aspect-ratio:16/10 同时叠加 min-height:300px 时，
   浏览器为了同时满足两者，会用「min-height × 比例」反推出一个不小于 480px 的最小宽度
   （300*16/10=480），在 <600 断点内边距只有 16px 的窄屏（content 宽度普遍 <480px）会把这个
   网格列/容器撑宽，导致整页横向溢出。手机断点不设 min-height，纯粹让 aspect-ratio 按可用宽度
   算高度就不会有下限冲突；min-width:0 一并保留作为网格子项的兜底，防止其它场景再次撑宽。 */
.gc-lead { position: relative; min-width: 0; border-radius: var(--gc-radius); overflow: hidden; background: var(--gc-ink) linear-gradient(135deg, #0b1426 0%, #1c2b4a 60%, #3a2a12 100%); aspect-ratio: 16 / 10; isolation: isolate; }
@media (min-width: 600px) { .gc-lead { min-height: 300px; } }
.gc-lead--text { background-image: url("../images/hero-bg.jpg"), linear-gradient(135deg, #0b1426 0%, #1c2b4a 60%, #3a2a12 100%); background-size: cover; background-position: center; }
.gc-lead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gc-lead__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,20,38,0) 25%, rgba(11,20,38,.72) 62%, rgba(11,20,38,.94) 100%); }
.gc-lead__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; }
.gc-lead__text .gc-kicker { color: var(--gc-ink); background: var(--gc-orange); padding: 2px 8px; border-radius: 4px; }
.gc-lead__title { font-size: 22px; margin: 10px 0 6px; }
.gc-lead__title a { color: #fff; }
.gc-lead__title a:hover { color: #ffd9a8; }
.gc-lead__sum { display: none; margin: 0 0 8px; color: #d6deea; font-size: 15px; }
.gc-lead__text time { font-size: 13px; color: #b7c3d6; }
@media (min-width: 600px) { .gc-lead__text { padding: 24px 28px; } .gc-lead__title { font-size: 28px; } .gc-lead__sum { display: block; } }
@media (min-width: 900px) { .gc-lead { aspect-ratio: auto; min-height: 460px; } .gc-lead__title { font-size: 32px; } }

.gc-flash { background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 16px 16px 10px; min-width: 0; }
.gc-flash .gc-sec-title { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.gc-live { width: 9px; height: 9px; border-radius: 50%; background: var(--gc-down); box-shadow: 0 0 0 3px rgba(220,38,38,.18); flex: none; }
@media (min-width: 900px) { .gc-flash { max-height: 460px; overflow-y: auto; } }

/* timeline (home flash + news list) */
.gc-tl { position: relative; }
.gc-tl__item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; }
.gc-tl__item::before { content: ""; position: absolute; left: 58px; top: 10px; bottom: -4px; width: 2px; background: var(--gc-line); }
.gc-tl__item:last-child::before { display: none; }
.gc-tl__item::after { content: ""; position: absolute; left: 54px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gc-surface); border: 2px solid var(--gc-orange); }
.gc-tl__time { font-size: 14px; font-weight: 700; color: var(--gc-ink); line-height: 1.5; display: flex; flex-direction: column; }
.gc-tl__time small { font-weight: 400; font-size: 12px; color: var(--gc-muted); }
.gc-tl__title, .gc-tl__main { padding-left: 14px; }
.gc-tl__main .gc-tl__title { padding-left: 0; }
.gc-tl__title { font-size: 15px; font-weight: 500; line-height: var(--gc-lh-head); }
.gc-tl--page { background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 20px 16px 8px; }
.gc-tl--page .gc-tl__item { grid-template-columns: 76px minmax(0, 1fr); padding-bottom: 20px; }
.gc-tl--page .gc-tl__item::before { left: 82px; }
.gc-tl--page .gc-tl__item::after { left: 78px; }
.gc-tl--page .gc-tl__title { font-size: 17px; font-weight: 700; }
.gc-tl__sum { margin: 4px 0 0; color: var(--gc-muted); font-size: 15px; }
.gc-tl__empty { list-style: none; }

/* ---------- cards ---------- */
.gc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gc-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); overflow: hidden; padding: 10px; }
.gc-card__img { display: block; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1c2b4a, #0b1426); aspect-ratio: 16 / 10; align-self: start; }
.gc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gc-card:hover .gc-card__img img { transform: scale(1.03); }
.gc-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gc-card__title { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gc-card__sum { display: none; margin: 0; color: var(--gc-muted); font-size: 14px; }
.gc-card__time { font-size: 13px; color: var(--gc-muted); margin-top: auto; }
@media (min-width: 600px) {
  .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gc-card { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .gc-card__img { border-radius: 0; }
  .gc-card__body { padding: 12px 14px 14px; }
  .gc-card__sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 900px) { .gc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 1–2 items: compact horizontal cards, no empty slots */
.gc-block--compact .gc-card { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
.gc-block--compact .gc-card__img { border-radius: 6px; }
.gc-block--compact .gc-card__body { padding: 0; }
@media (min-width: 600px) { .gc-block--compact .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gc-block--compact .gc-card { grid-template-columns: 160px minmax(0, 1fr); } }
@media (min-width: 1024px) { .gc-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* topics block */
.gc-topic-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 600px) { .gc-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gc-topic-card { position: relative; display: block; border-radius: var(--gc-radius); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1c2b4a, #0b1426); isolation: isolate; }
.gc-topic-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gc-topic-card__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,20,38,.05) 30%, rgba(11,20,38,.88) 100%); }
.gc-topic-card__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; }
.gc-topic-card__text .gc-kicker { color: var(--gc-orange); }
.gc-topic-card__name { color: #fff; font-size: 17px; }
.gc-topic-card:hover .gc-topic-card__name { color: #ffd9a8; }

/* ---------- list rows: image left, text right ---------- */
.gc-rows { display: grid; gap: 14px; }
.gc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 10px; }
.gc-row__img { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1c2b4a, #0b1426); align-self: start; }
.gc-row__img img { width: 100%; height: 100%; object-fit: cover; }
.gc-row__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gc-row__title { font-size: 16px; }
.gc-row__sum { display: none; margin: 0; color: var(--gc-muted); font-size: 15px; }
.gc-row--search { grid-template-columns: minmax(0, 1fr); }
.gc-row--search:has(.gc-row__img) { grid-template-columns: 112px minmax(0, 1fr); }
.gc-row mark, .gc-row em.hl { background: #fff1db; color: inherit; padding: 0 2px; border-radius: 2px; }
@media (min-width: 600px) {
  .gc-row { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 14px; }
  .gc-row--search:has(.gc-row__img) { grid-template-columns: 200px minmax(0, 1fr); }
  .gc-row__title { font-size: 18px; }
  .gc-row__sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 1024px) { .gc-row { grid-template-columns: 240px minmax(0, 1fr); } .gc-row--search:has(.gc-row__img) { grid-template-columns: 240px minmax(0, 1fr); } }

/* ---------- category / page headers ---------- */
.gc-cathead, .gc-pagehead { background: var(--gc-ink) url("../images/cat-banner.jpg") center / cover no-repeat; color: #fff; padding-block: 18px 26px; position: relative; }
.gc-cathead::before, .gc-pagehead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,20,38,.92), rgba(11,20,38,.7)); }
.gc-cathead > .gc-wrap, .gc-pagehead > .gc-wrap { position: relative; }
.gc-cathead__title { font-size: 26px; margin-top: 6px; }
.gc-cathead__intro { margin: 8px 0 0; color: #cdd6e4; max-width: 760px; font-size: 15px; }
.gc-cathead__meta { margin: 6px 0 0; color: #aab6c9; font-size: 14px; }
.gc-hash { color: var(--gc-orange); margin-right: 2px; }
@media (min-width: 900px) { .gc-cathead, .gc-pagehead { padding-block: 22px 34px; } .gc-cathead__title { font-size: 32px; } }
.gc-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gc-subcats a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #e3e9f3; font-size: 14px; }
.gc-subcats a:hover { border-color: var(--gc-orange); color: #fff; }
.gc-subcats--light a { border-color: var(--gc-line); color: var(--gc-text); background: var(--gc-surface); }
.gc-subcats--light { margin-top: 24px; }

/* breadcrumb */
.gc-crumb ol { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 14px; color: var(--gc-muted); line-height: 1.6; }
.gc-crumb li + li::before { content: "›"; margin: 0 8px; color: #9aa6b8; }
.gc-crumb a { display: inline-block; padding-block: 6px; }
.gc-crumb--dark ol { color: #aab6c9; }
.gc-crumb--dark a { color: #d4dcea; }
.gc-crumb--dark a:hover { color: var(--gc-orange); }

/* ---------- article ---------- */
.gc-article { min-width: 0; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 18px 16px 24px; }
@media (min-width: 600px) { .gc-article { padding: 28px 32px 32px; } }
.gc-article__title { font-size: 25px; margin: 6px 0 12px; }
@media (min-width: 900px) { .gc-article__title { font-size: 32px; } }
.gc-source { margin: 10px 0 0; font-size: 14px; color: var(--gc-muted); }
.gc-source a { color: var(--gc-orange-text); text-decoration: underline; text-underline-offset: 2px; }
.gc-taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gc-taglist a, .gc-cloud a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #eef2f7; color: var(--gc-ink-3); font-size: 14px; line-height: 1.3; }
.gc-taglist a:hover, .gc-cloud a:hover { background: #fff1db; color: var(--gc-orange-text); }
.gc-cover { margin: 20px 0 0; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1c2b4a, #0b1426); }
.gc-cover img { width: 100%; height: auto; }

.gc-prose { margin-top: 20px; font-size: 17px; line-height: var(--gc-lh); max-width: 760px; }
.gc-prose > :first-child { margin-top: 0; }
.gc-prose p { margin: 0 0 1.1em; }
.gc-prose h2 { font-size: 22px; margin: 1.6em 0 .6em; padding-left: 12px; border-left: 4px solid var(--gc-orange); }
.gc-prose h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.gc-prose h4 { font-size: 17px; margin: 1.2em 0 .4em; }
.gc-prose a { color: var(--gc-orange-text); text-decoration: underline; text-underline-offset: 2px; }
.gc-prose ul, .gc-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.gc-prose ul { list-style: disc; }
.gc-prose ol { list-style: decimal; }
.gc-prose li { margin-bottom: .35em; }
.gc-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 1em auto; }
.gc-prose figure { margin: 1.2em 0; }
.gc-prose figcaption { font-size: 14px; color: var(--gc-muted); text-align: center; margin-top: 6px; }
.gc-prose blockquote { margin: 1.2em 0; padding: 12px 16px; background: #f6f8fb; border-left: 4px solid var(--gc-ink-3); color: #33415a; border-radius: 0 6px 6px 0; }
.gc-prose code { background: #eef2f7; padding: 1px 6px; border-radius: 4px; font-size: .9em; word-break: break-all; }
.gc-prose pre { background: var(--gc-ink); color: #e6ecf5; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.gc-prose pre code { background: none; padding: 0; word-break: normal; }
.gc-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; line-height: 1.6; }
.gc-prose th, .gc-prose td { border: 1px solid var(--gc-line); padding: 8px 12px; text-align: left; white-space: nowrap; }
.gc-prose th { background: #f1f4f8; }
.gc-prose iframe, .gc-prose video { max-width: 100%; }
.gc-prose .up, .gc-prose .gc-up { color: var(--gc-up); }
.gc-prose .down, .gc-prose .gc-down { color: var(--gc-down); }
.gc-prose hr { border: 0; border-top: 1px solid var(--gc-line); margin: 2em 0; }

.gc-box { margin-top: 20px; padding: 16px; border: 1px solid var(--gc-line); border-radius: var(--gc-radius); background: #fafbfd; }
.gc-box__title { font-size: 18px; margin-bottom: 10px; }
.gc-spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; font-size: 15px; }
.gc-spec dt { color: var(--gc-muted); }
.gc-spec dd { margin: 0; }
.gc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.gc-price b { font-size: 22px; color: var(--gc-down); }
.gc-table-scroll { overflow-x: auto; }
.gc-params { border-collapse: collapse; width: 100%; font-size: 15px; }
.gc-params td { border-bottom: 1px solid var(--gc-line); padding: 6px 4px; }
.gc-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gc-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #e8edf4; }
@media (min-width: 900px) { .gc-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gc-video video { width: 100%; background: #000; border-radius: 6px; }

/* fixed risk box */
.gc-risk { margin-top: 28px; padding: 14px 16px; border-radius: 8px; background: #fff7eb; border: 1px solid #fcd9a5; border-left: 5px solid var(--gc-orange); }
.gc-risk__title { font-size: 16px; color: #8a4204; margin-bottom: 4px; padding: 0; }
.gc-risk p { margin: 0; font-size: 15px; color: #5b3a12; }

.gc-intopics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 15px; }
.gc-intopics span { color: var(--gc-muted); }
.gc-intopics a { color: var(--gc-orange-text); font-weight: 600; }

.gc-prevnext { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; }
.gc-prevnext__item { border: 1px solid var(--gc-line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.gc-prevnext__label { font-size: 13px; color: var(--gc-muted); }
.gc-prevnext__item a { font-weight: 600; }
@media (min-width: 600px) { .gc-prevnext { grid-template-columns: 1fr 1fr; } .gc-prevnext__item--next { text-align: right; } }

.gc-related { margin-top: 32px; }
.gc-related .gc-card { box-shadow: none; border: 1px solid var(--gc-line); }

/* comments */
.gc-comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--gc-line); }
.gc-cmt-list { display: grid; gap: 14px; }
.gc-cmt { padding: 12px 14px; background: #f7f9fc; border-radius: 8px; }
.gc-cmt__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.gc-cmt__meta time { color: var(--gc-muted); }
.gc-cmt__body { font-size: 15px; margin-top: 4px; }
.gc-cmt-replies { margin: 10px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--gc-line); display: grid; gap: 10px; }
.gc-cmt-replies .gc-cmt { background: #fff; }
.gc-cmt-form { margin-top: 22px; display: grid; gap: 12px; }
.gc-cmt-form__title { font-size: 18px; }
.gc-field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .gc-field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gc-field { display: grid; gap: 4px; font-size: 14px; color: var(--gc-muted); }
.gc-field em { color: var(--gc-down); font-style: normal; }
.gc-field input, .gc-field textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd7e3; border-radius: 8px; background: #fff; color: var(--gc-text); font-size: 16px; }
.gc-field textarea { resize: vertical; line-height: 1.7; }
.gc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gc-cmt-note { margin: 0; font-size: 13px; color: var(--gc-muted); }
.gc-cmt-form .gc-btn { justify-self: start; }
.gc-cmt-msg { margin: 0; font-size: 15px; min-height: 1.5em; }
.gc-cmt-msg.is-ok { color: var(--gc-up); }
.gc-cmt-msg.is-err { color: var(--gc-down); }

/* ---------- sidebar ---------- */
.gc-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; min-width: 0; }
@media (min-width: 600px) and (max-width: 1023px) { .gc-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gc-widget { background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 16px; min-width: 0; }
.gc-widget__title { font-size: 17px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--gc-ink); position: relative; }
.gc-widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--gc-orange); }
.gc-widget--guide { border-top: 3px solid var(--gc-orange); }
.gc-mini { display: grid; gap: 10px; }
.gc-mini__link { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 44px; }
.gc-mini__img { display: block; width: 80px; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; background: linear-gradient(135deg, #1c2b4a, #0b1426); }
.gc-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.gc-mini__title { font-size: 14px; font-weight: 600; line-height: 1.55; }
.gc-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-terms a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--gc-line); border-radius: 6px; font-size: 14px; line-height: 1.3; background: #fafbfd; }
.gc-terms a:hover { border-color: var(--gc-orange); }
.gc-terms .gc-empty { flex-basis: 100%; }
.gc-rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--gc-line); font-size: 15px; line-height: 1.6; }
.gc-rank li:last-child { border-bottom: 0; }
.gc-rank__no { font-weight: 800; color: #9aa6b8; font-size: 16px; }
.gc-rank li:nth-child(-n+3) .gc-rank__no { color: var(--gc-orange); }
.gc-plain li { border-bottom: 1px dashed var(--gc-line); }
.gc-plain li:last-child { border-bottom: 0; }
.gc-plain a { display: block; padding: 8px 0; font-size: 15px; line-height: 1.6; }
.gc-plain--lines li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.gc-plain--lines time { font-size: 13px; color: var(--gc-muted); }
.gc-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-cloud .gc-empty { flex-basis: 100%; }
.gc-widget .gc-more { margin-top: 4px; }

/* ---------- pager ---------- */
.gc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.gc-pager a, .gc-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 8px; background: var(--gc-surface); border: 1px solid var(--gc-line); font-size: 15px; }
.gc-pager a:hover { border-color: var(--gc-orange); color: var(--gc-orange-text); }
.gc-pager .is-on { background: var(--gc-ink); color: #fff; border-color: var(--gc-ink); font-weight: 700; }
.gc-pager .gc-pager__info { flex-basis: 100%; background: none; border: 0; min-height: 0; font-size: 13px; color: var(--gc-muted); }
@media (max-width: 599px) { .gc-pager__edge { display: none !important; } }

/* ---------- topic pages ---------- */
/* 同 .gc-lead 的坑：aspect-ratio+min-height 同时存在会在窄屏把宽度撑破容器（实测 390 宽会溢出到
   616px），这里窄屏本就不需要 200px 的下限（3:1 比例在 358px 内容宽时高度已有 119px），去掉
   min-height 只让 aspect-ratio 按可用宽度算高度，彻底不会撑宽。 */
.gc-topic-hero { position: relative; min-width: 0; border-radius: var(--gc-radius); overflow: hidden; background: linear-gradient(135deg, #0b1426, #1c2b4a); aspect-ratio: 3 / 1; margin-top: 8px; isolation: isolate; }
.gc-topic-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gc-topic-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,20,38,.9), rgba(11,20,38,.35)); }
.gc-topic-hero__text { position: absolute; left: 0; bottom: 0; right: 0; z-index: 2; padding: 18px 20px; color: #fff; }
.gc-topic-hero__text .gc-kicker { color: var(--gc-orange); }
.gc-topic-hero__title { font-size: 26px; }
.gc-topic-hero__count { margin: 4px 0 0; color: #c9d3e3; font-size: 14px; }
@media (min-width: 900px) { .gc-topic-hero__text { padding: 28px 36px; } .gc-topic-hero__title { font-size: 34px; } }
.gc-topic-intro { margin-top: 16px; font-size: 16px; color: #33415a; max-width: 860px; }
.gc-topic-body { max-width: 860px; }
.gc-topic-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 600px) { .gc-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gc-topic-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gc-tcard { background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); overflow: hidden; display: flex; flex-direction: column; }
.gc-tcard__img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1c2b4a, #0b1426); }
.gc-tcard__img img { width: 100%; height: 100%; object-fit: cover; }
.gc-tcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gc-tcard__title { font-size: 19px; }
.gc-tcard__intro { margin: 0; color: var(--gc-muted); font-size: 15px; }
.gc-tcard .gc-meta { margin-top: auto; }

/* tags wall */
.gc-tagwall { display: flex; flex-wrap: wrap; gap: 10px; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 20px; }
.gc-tagwall a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 999px; background: #eef2f7; color: var(--gc-ink-3); line-height: 1.3; }
.gc-tagwall a:hover { background: #fff1db; color: var(--gc-orange-text); }
.gc-tagwall small { font-size: 12px; color: var(--gc-muted); }
.gc-tagwall .gc-empty--box { flex-basis: 100%; border: 0; }
.gc-w1 { font-size: 14px; }
.gc-w2 { font-size: 15px; }
.gc-w3 { font-size: 17px; font-weight: 600; }
.gc-w4 { font-size: 19px; font-weight: 700; }
.gc-w5 { font-size: 22px; font-weight: 700; background: #fff1db !important; color: var(--gc-orange-text) !important; }

/* search form */
.gc-sform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 820px; }
.gc-sform input, .gc-sform select { min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 0 12px; background: #fff; color: var(--gc-text); font-size: 15px; }
.gc-sform input { flex: 1 1 100%; min-width: 0; }
.gc-sform select { flex: 1 1 140px; min-width: 0; }
.gc-sform .gc-btn { background: var(--gc-orange); color: var(--gc-ink); flex: 0 0 auto; }
.gc-sform .gc-btn:hover { background: #ffa940; color: var(--gc-ink); }
@media (min-width: 600px) { .gc-sform input { flex: 1 1 260px; } }
.gc-sform--light input { border-color: #cfd7e3; }

/* 404 */
.gc-404 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 20px; }
.gc-404__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: linear-gradient(135deg, #0b1426, #1c2b4a); }
.gc-404__code { margin: 0; font-size: 44px; font-weight: 800; color: var(--gc-orange); line-height: 1; }
.gc-404__title { font-size: 24px; margin: 6px 0 8px; }
.gc-404__text p { color: var(--gc-muted); }
@media (min-width: 900px) { .gc-404 { grid-template-columns: 1fr 1fr; padding: 32px; gap: 36px; } }

/* single page */
.gc-single { max-width: 860px; margin-inline: auto; background: var(--gc-surface); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 20px 16px 28px; }
@media (min-width: 600px) { .gc-single { padding: 32px 40px 40px; } }
.gc-single .gc-cover { margin-top: 0; margin-bottom: 20px; }

/* ---------- footer ---------- */
.gc-foot { background: var(--gc-ink); color: #aab6c9; margin-top: 16px; padding-block: 28px 20px; font-size: 15px; }
.gc-foot__risk { border: 1px solid rgba(247,147,26,.35); background: rgba(247,147,26,.07); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; }
.gc-foot__risk strong { color: var(--gc-orange); display: block; margin-bottom: 2px; }
.gc-foot__risk p { margin: 0; font-size: 14px; color: #c9d3e3; }
.gc-foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.gc-foot__brand { grid-column: 1 / -1; }
.gc-foot__brand p { margin: 8px 0 0; font-size: 14px; max-width: 360px; }
.gc-logo--foot { font-size: 20px; min-height: 0; }
.gc-foot__col h2 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.gc-foot__col a { display: inline-flex; align-items: center; min-height: 36px; color: #aab6c9; font-size: 14px; }
.gc-foot__col a:hover { color: var(--gc-orange); }
.gc-foot__copy { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8391a7; }
@media (min-width: 600px) { .gc-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gc-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .gc-foot__brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
