/* News Centre 页:导语、文章卡片墙、活动地图、订阅表单。
   卡片墙由 tools/sync.js 按 site.json 的 posts 生成。 */

/* ---------- 导语 ---------- */
.press-intro { padding-block: 110px; }

.press-intro__grid {
  display: grid;
  grid-template-columns: 400px 542px;
  justify-content: space-between;
  align-items: center;
}
.press-intro__title { font-size: clamp(28px, calc(2.64 * var(--vw)), 38px); line-height: 1.2; font-weight: 700; }
.press-intro__grid p { margin-top: 29.6px; font-size: 15px; line-height: 21px; }
.press-intro__grid img { width: 100%; aspect-ratio: 542 / 380; object-fit: cover; }

/* ---------- 文章卡片墙(2026-09-16 改版):最新一篇大图横排,其余三列小卡片 ----------
   原来 8 张同样大的卡片两列排、每张带三行摘要,要滚四屏。现在只有置顶那篇带摘要,
   小卡片只留图、日期、标题;先露置顶 + 一排,其余由 js/site.js 收起来、点 Show all 展开(同 Events 页「所有场次」)。
   卡片由 tools/sync.js 生成:posts 第一条用 partials/post-feature.html,其余用 post-card.html。
   2026-09-16 加了搜索和「小卡片点开看摘要」:摘要 + Read more 收在 .news-card__detail 里,js/site.js 接管后才收起来;
   搜索时置顶大卡退场,换成它的小卡片版(.news-card--mirror,平时藏着),结果一律是小卡片。 */
.news { background: var(--mist); padding-block: 90px 80px; }
.news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.news__title { font-size: clamp(28px, calc(2.64 * var(--vw)), 38px); line-height: 1.2; font-weight: 700; }

/* 搜索框:js/site.js 接管后才去掉 hidden(不跑脚本时搜不了,就不摆一个没用的框)。
   描边用 --rule:浅灰底上也有 3:1,--line-soft 在这里几乎看不见 */
.news-search { position: relative; flex: 0 1 360px; }
.news-search__input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 44px 0 46px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* 小于 16px 时 iPhone 一点进去就整页放大 */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.news-search__input::placeholder { color: var(--map-muted); opacity: 1; }
/* Safari / Chrome 自带的放大镜和清除叉号关掉,用自己那一套,两边长得一样 */
.news-search__input::-webkit-search-decoration,
.news-search__input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.news-search__input:focus { outline: none; border-color: var(--map-ink); box-shadow: 0 0 0 1px var(--map-ink); }
.news-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--map-muted);
  pointer-events: none;
}
.news-search__clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--map-muted);
  cursor: pointer;
}
.news-search__clear svg { display: block; width: 20px; height: 20px; }
.news-search__clear:focus-visible { outline: 2px solid var(--map-ink); outline-offset: -4px; }

/* 搜索结果条数(读屏会念出来);没在搜的时候是空的,不占高度 */
.news-status { font-size: 16px; line-height: 24px; color: var(--map-muted); }
.news-status:not(:empty) { margin-top: 28px; }
.news-status strong { font-weight: 700; color: var(--ink); }
/* 搜不到时给几个能搜出东西的词 */
.news-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.news-suggest[hidden] { display: none; }
.news-suggest__label { margin-right: 4px; color: var(--map-muted); }
.news-suggest__term {
  padding: 9px 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.news-suggest__term:focus-visible { outline: 2px solid var(--map-ink); outline-offset: 2px; }

.news__grid {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  /* 点开一张只长高这一张,同一排的别的卡片不跟着拉伸出一截空白;没点开时靠标题留两行高度排齐 */
  align-items: start;
}
.news-status:not(:empty) ~ .news__grid { margin-top: 24px; }
/* 平时:置顶大卡在、它的小卡片版藏着;搜索时反过来 */
.news__grid:not(.is-searching) .news-card--mirror,
.news__grid.is-searching .news-card--feature { display: none; }

/* 「先露一排」靠 hidden 属性,下面这条 display:flex 会把它顶掉(同 events.css 的 .edition[hidden]) */
.news-card[hidden] { display: none; }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.news-card__media { overflow: hidden; }
/* 3:2 比 Recent Posts 的 291:163 裁得少:卡片图是按那个更窄的比例挑过安全区的,这里只会更安全 */
.news-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s var(--ease-float); }
.news-card__body { display: flex; flex-direction: column; align-items: start; padding: 20px 22px 26px; }
.news-card__date { font-size: 14px; line-height: 20px; color: var(--map-muted); }
.news-card__title { margin-top: 8px; font-size: 18px; line-height: 1.4; font-weight: 700; }
.news-card__title a { text-decoration: none; }
/* 整张卡片都能点:标题链接铺满卡片,一张卡片只占一个 Tab 位 */
.news-card__title a::after { content: ""; position: absolute; inset: 0; }

/* ---------- 小卡片:点一下展开摘要 + Read more ----------
   不跑脚本时摘要一直摊开、标题仍是链接。跑脚本后 js/site.js 把标题链接换成按钮(.news-card__toggle),
   按钮的 ::after 铺满卡片 → 点卡片哪里都是展开/收起;摘要区叠在它上面,点 Read more 才进文章。
   小卡片的 body 后面跟着摘要区(:not(:last-child)),置顶大卡的 body 是最后一个,不受影响。 */
.news-card__body:not(:last-child) { padding-bottom: 0; }
.news-card__body:not(:last-child) .news-card__title { min-height: 2.8em; } /* 两行高:一行和两行的标题,卡片照样一样高 */
.news-card__meta { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-card__icon { display: none; }
.news-card__meta .stats { margin-right: auto; } /* 紧跟日期,展开按钮留在最右 */
.js-news .news-card__icon {
  display: block;
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
/* 加号:两根短横,竖的那根转平就是减号 */
.js-news .news-card__icon::before,
.js-news .news-card__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-float);
}
.js-news .news-card__icon::after { transform: rotate(90deg); }
.js-news .news-card.is-open .news-card__icon { border-color: var(--ink); }
.js-news .news-card.is-open .news-card__icon::after { transform: rotate(0deg); }

.news-card__toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.news-card__toggle::after { content: ""; position: absolute; inset: 0; }
.news-card__toggle:focus { outline: none; }
.news-card__toggle:focus-visible::after { outline: 2px solid var(--map-ink); outline-offset: 3px; }

/* 摘要区。高度动画靠 grid 的 0fr ↔ 1fr(能从 0 过渡到「内容多高就多高」);
   底部留白放在外层 padding 上 —— 放在里层会被当成最小高度,收起时漏出一截摘要。
   收起后 visibility:hidden,读屏和 Tab 都跳过里面的链接;展开时立刻可见,收起时等动画走完再藏 */
.news-card__detail { position: relative; z-index: 1; display: grid; grid-template-rows: 1fr; padding-bottom: 26px; }
.news-card__detail-in { min-height: 0; overflow: hidden; padding-inline: 22px; }
.news-card__detail .news-card__excerpt { margin-top: 12px; -webkit-line-clamp: 5; }
.news-card__detail .news-card__more { display: inline-block; margin: 14px 0 6px; }
.news-card__more:focus-visible { outline: 2px solid var(--map-ink); outline-offset: 2px; }
.js-news .news-card__detail { grid-template-rows: 0fr; visibility: hidden; }
.js-news .news-card.is-open .news-card__detail { grid-template-rows: 1fr; visibility: visible; }
/* 过渡等「收起」先算完才打开(js/site.js 随后加 news-anim),否则页面一加载就会播一遍摘要收起来的动画 */
.news-anim .news-card__detail { transition: grid-template-rows 0.35s var(--ease-float), visibility 0s linear 0.35s; }
.news-anim .news-card.is-open .news-card__detail { transition-delay: 0s; }

/* 搜索时每张结果卡片底下两行:命中在正文里就截命中那一段,只命中标题/日期就放文章开头 */
.news-card__hit {
  margin-top: 8px;
  min-height: 44px;
  font-size: 15px;
  line-height: 22px;
  color: var(--map-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news-card__hit[hidden] { display: none; }
.news-card.is-open .news-card__hit.is-lead { display: none; } /* 展开后摘要本来就从开头讲起,不重复 */
.news-card mark { padding: 0 1px; background: rgb(var(--map-glow) / 0.24); color: inherit; }

/* 置顶那篇:左图右文,占满一行。图按 4:3 撑出行高,文字多了图跟着拉高(height:100% 在算行高时当 auto)。
   别给图片容器写 aspect-ratio + 里面绝对定位:容器被行高拉伸时 WebKit 会按比例反推宽度,左栏空出一截(2026-09-16 实测) */
.news-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.news-card--feature .news-card__media img { height: 100%; aspect-ratio: 4 / 3; }
.news-card--feature .news-card__body { justify-content: center; padding: 40px 40px 44px; }
.news-card--feature .news-card__title { margin-top: 10px; font-size: 28px; line-height: 1.3; }
.news-card__excerpt {
  margin-top: 14px;
  font-size: 16px;
  line-height: 24px;
  color: var(--map-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
/* 样子同 Events 页的「Read the … recap →」 */
.news-card__more {
  margin-top: 22px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.news-card__more::after { content: "\2192"; content: "\2192" / ""; display: inline-block; margin-left: 6px; transition: transform 0.2s; }

/* 同 events.css 的 .editions__more */
.news__more {
  margin-top: 32px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.3;
}
@media (hover: hover) {
  .news-card:hover .news-card__title a,
  .news-card:hover .news-card__toggle { color: var(--accent); }
  .news-card:hover .news-card__media img { transform: scale(1.04); }
  .news-card--feature:hover .news-card__more::after,
  .news-card__detail .news-card__more:hover::after { transform: translateX(3px); }
  .js-news .news-card:hover .news-card__icon { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .news__more:hover { background: var(--ink); color: var(--paper); }
  .news-search__clear:hover { color: var(--ink); }
  .news-suggest__term:hover { border-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .news-anim .news-card__detail,
  .js-news .news-card__icon::before,
  .js-news .news-card__icon::after { transition: none; }
}

/* ---------- 活动地图(可交互) ----------
   陆地底图 assets/img/world-map.svg 由 tools/build-world-map.js 生成;
   城市点 .map-pin、时间线 .map-tl 由 tools/sync.js 按 site.json 的 eventMap 写进页面;
   时间线 ↔ 地图点的联动在 js/site.js。点的位置是百分比,地图怎么缩放都对得上。
   浅色浮雕:陆地的颜色、厚度、投影、边缘渐隐在 build-world-map.js 里;这里管底色、点、卡片、时间线。 */
.event-map {
  padding-block: 56px 48px;
  color: var(--ink);
  /* 上面是浅灰的文章卡片墙、下面是白底的订阅表单:从浅灰渐变到白,两头都不出硬边。
     渐变必须在地图上沿(padding-top 56px)之前结束:底图边缘是盖一层白色渐隐的,底下不是纯白就会露出一道白边 */
  background: linear-gradient(var(--mist), var(--paper) 48px);
  /* 时间线最后一格「CES (Las Vegas)」不换行、比格子宽,把这一段轴线撑出画框,末端箭头再往外伸 8px。
     768–800 宽整页缩小时,WebKit 不让文字小于屏幕上的 9px(13px 的字被算成 14.7px),胶囊从 114px 撑到 128px,
     箭头伸出页面右边 4.5px,整页多出 3px 横向滚动。区块和视口一样宽,横向裁掉的部分本来就在屏幕外,看起来一个像素都不变;
     只裁横向,纵向照常(clip 不会让另一个方向变成滚动容器) */
  overflow-x: clip;
}

.event-map__map { position: relative; }
.event-map__canvas { position: relative; }
.event-map__land { display: block; width: 100%; height: auto; }

/* 标题压在南太平洋那片海上,和原来那张图的构图一致 */
.event-map__head {
  position: absolute;
  left: 1.5%;
  bottom: 7%;
  max-width: 320px; /* 南美洲西海岸在 x≈340,标题和提示都不能越过去 */
  z-index: 2;
  pointer-events: none;
}
.event-map__title {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  font-variant-numeric: lining-nums;
}
.event-map__hint { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--map-muted); }

/* 城市点:可点区域 18px(= tools/sync.js 的 PIN_MIN_GAP,两点再近就互相挡住),看得见的点 10px */
.event-map__pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-pin::before,
.map-pin::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.map-pin::before {
  inset: 4px;
  background: var(--map-pin);
  box-shadow: 0 0 0 2px var(--paper), 0 1px 4px 1px rgba(0, 50, 50, 0.35); /* 白圈压在浅色陆地上、投影落在白色海面上,两边都醒目 */
  transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.map-pin::after { inset: 0; border: 2px solid var(--map-pin); opacity: 0; } /* 亮起时一圈圈扩散的光环 */
.map-pin:focus-visible { outline: 2px solid var(--map-ink); outline-offset: 4px; }

/* 脚本会给鼠标指到的点加 .is-open;:hover 只在 (hover: hover) 里兜底(脚本没跑时也能看卡片)。
   触屏上 :hover 会「粘住」,不圈起来的话点第二下卡片关不掉 */
.map-pin:focus-visible,
.map-pin.is-open,
.map-pin.is-lit { z-index: 3; }
.map-pin:focus-visible::before,
.map-pin.is-open::before,
.map-pin.is-lit::before {
  transform: scale(1.3);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--map-pin), 0 0 12px 4px rgb(var(--map-glow) / 0.5), 0 0 32px 12px rgb(var(--map-glow) / 0.22);
}
.map-pin:focus-visible::after,
.map-pin.is-open::after,
.map-pin.is-lit::after { animation: map-ping 1.6s ease-out infinite; }
@keyframes map-ping {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(3.2); opacity: 0; }
}
/* 从时间线点亮一部分城市时,其余的点退到后面 */
.event-map.has-lit .map-pin:not(.is-lit)::before { opacity: 0.3; box-shadow: none; }

/* 点亮时点旁边的城市名(卡片打开时卡片里已经有名字,就不重复) */
.map-pin__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 0 2px var(--paper), 0 0 4px var(--paper), 0 1px 8px var(--paper); /* 白色描边:压在陆地、侧壁、海面上都读得清 */
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.map-pin--label-left .map-pin__label { left: auto; right: calc(100% + 4px); }
.map-pin.is-lit .map-pin__label { opacity: 1; }
.map-pin:focus-visible .map-pin__label,
.map-pin.is-open .map-pin__label { opacity: 0; }

/* 日期卡片。横向按点在地图上的位置对齐:translateX(-x%),靠左的点往右展开、靠右的往左展开,
   只要卡片比地图窄就永远伸不出地图,手机上也不会撑出横向滚动条 */
.map-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(0, 40, 40, 0.16), 0 2px 6px rgba(0, 40, 40, 0.08);
  text-align: left;
  transform: translate(calc(-1 * var(--x)), 6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s;
}
.map-pin--up .map-tip { top: auto; bottom: calc(100% + 10px); transform: translate(calc(-1 * var(--x)), -6px); }
.map-pin:focus-visible .map-tip,
.map-pin.is-open .map-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-1 * var(--x)), 0);
  transition: opacity 0.18s, transform 0.18s;
}
.map-tip__city { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--ink); }
.map-tip__row { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; color: var(--map-muted); }
.map-tip__when { min-width: 5.4em; font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

.map-badge {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--map-ink);
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--map-ink);
}
.map-badge--gcs { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* 时间线:图例一列 + 每月一列。四行(月份 / GCS / 轴线 / GCSx)用 subgrid 在各月之间对齐,
   轴线由每一列的 .map-tl__tick 各画一段拼成 */
.event-map__timeline { margin-top: 18px; }
.map-tl {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 76px;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 22px auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.map-tl > li {
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  justify-items: center;
  padding: 6px 4px 10px;
  border-radius: 10px;
  text-align: center;
}
.map-tl > .map-tl__legend { justify-items: start; padding-left: 0; }

.map-tl__name { padding-bottom: 6px; font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.map-tl__above,
.map-tl__below { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; line-height: 17px; }
.map-tl__above { align-self: end; padding-bottom: 5px; }
.map-tl__below { align-self: start; padding-top: 5px; color: var(--map-muted); }
.map-tl__legend .map-tl__above,
.map-tl__legend .map-tl__below { align-items: flex-start; }

.map-tl__tick {
  position: relative;
  justify-self: stretch;
  margin-inline: -4px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.map-tl__legend .map-tl__tick { margin-left: 0; }
.map-tl__tick::before { /* 每个月在轴线上的小三角 */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 8px;
  margin: -3px 0 0 -5px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 0.2s, background-color 0.2s;
}
.map-tl__legend .map-tl__tick::before { content: none; }
.map-tl > li:last-child .map-tl__tick::after { /* 轴线末端的箭头 */
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 10px;
  margin-top: -5px;
  background: var(--line);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.map-tl__ev { transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.map-tl__ev--gcs { padding: 2px 8px; white-space: nowrap; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }

.map-tl__month { cursor: pointer; transition: background-color 0.2s, opacity 0.2s; }
.map-tl__month:focus-visible { outline: 2px solid var(--map-ink); outline-offset: -2px; }
.map-tl__month.is-lit { background: rgb(var(--map-glow) / 0.08); }
.map-tl__month.is-lit .map-tl__tick::before { background: var(--map-pin); transform: scale(1.5); }
.map-tl.has-lit .map-tl__month:not(.is-lit) { opacity: 0.4; }
.map-tl__ev.is-lit { color: var(--map-ink); }
.map-tl__ev--gcs.is-lit { border-color: var(--map-pin); background: rgb(var(--map-glow) / 0.1); }

/* 真有悬停的设备(鼠标、触控板):脚本没跑时也能靠 :hover 看卡片。
   触屏上 :hover 会粘住,点第二下关不掉,所以圈在这里面 */
@media (hover: hover) {
  .map-pin:hover { z-index: 3; }
  .map-pin:hover::before {
    transform: scale(1.3);
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--map-pin), 0 0 12px 4px rgb(var(--map-glow) / 0.5), 0 0 32px 12px rgb(var(--map-glow) / 0.22);
  }
  .map-pin:hover::after { animation: map-ping 1.6s ease-out infinite; }
  .map-pin:hover .map-pin__label { opacity: 0; }
  .map-pin:hover .map-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(-1 * var(--x)), 0);
    transition: opacity 0.18s, transform 0.18s;
  }
  .map-tl__month:hover { background: rgb(var(--map-glow) / 0.08); }
  .map-tl__month:hover .map-tl__tick::before { background: var(--map-pin); transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin::after { animation: none; }
}

/* ---------- 订阅表单 ---------- */
.loop { padding-block: 100px 102px; }

.loop__grid {
  display: grid;
  grid-template-columns: 307px 605px;
  justify-content: space-between;
  align-items: start;
}
.loop__title { font-size: clamp(28px, calc(2.64 * var(--vw)), 38px); line-height: 1.2; font-weight: 700; }
.loop__intro p { font-size: 15px; line-height: 24px; }
.loop__title + p { margin-top: 30.4px; }
.loop__intro p + p { margin-top: 24px; }

.loop-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 18px;
  padding: 30px 40px;
  background: var(--mist);
  font-family: var(--font-number);
}
.field { display: block; }
.field--wide { grid-column: 1 / -1; }
.field span { display: block; font-size: 16px; line-height: 20px; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  resize: none;
}
.field textarea { padding-top: 12px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }

.loop-form__submit {
  grid-column: 1 / -1;
  height: 43px;
  border: 1px solid var(--ink);
  background: transparent;
  font: 16px/19.2px Helvetica, Arial, sans-serif;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.loop-form__submit:hover { background: var(--ink); color: var(--paper); }
.loop-form__submit[disabled] { opacity: 0.55; cursor: progress; }
/* 提交结果(js/site.js 填);hidden 会被 display 规则顶掉,单写一条 */
.loop-form__status[hidden] { display: none; }
.loop-form__status { grid-column: 1 / -1; margin-top: -12px; font-size: 16px; line-height: 24px; color: var(--map-ink); }
.loop-form__status.is-error { color: var(--danger); }
.loop-form__status:focus { outline: none; }

.loop__note { max-width: 958px; margin: 69px auto 0; text-align: center; font-size: 16px; line-height: 25.6px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 767px) {
  .press-intro { padding-block: 72px; }
  .press-intro__grid,
  .loop__grid { grid-template-columns: 1fr; row-gap: 40px; }
  /* 文章墙:置顶那篇图在上字在下;其余变成一行一条(左缩略图、右日期标题) */
  .news { padding-block: 72px 56px; }
  .news__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .news-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .news-card__media { position: relative; }
  .news-card__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .news-card__body { justify-content: center; min-height: 92px; padding: 12px 16px; }
  .news-card__title { margin-top: 4px; font-size: 16px; line-height: 1.35; }
  .news-card--feature { grid-template-columns: minmax(0, 1fr); }
  .news-card--feature .news-card__media img { position: static; height: auto; }
  .news-card--feature .news-card__body { padding: 22px 20px 26px; }
  .news-card--feature .news-card__title { font-size: 22px; }
  .news-card__excerpt { -webkit-line-clamp: 3; }
  .news__more { margin-top: 24px; }
  /* 搜索框换到标题下面、占满一行;小卡片点开后摘要接在缩略图那一行下面、占满整宽 */
  .news-search { flex-basis: 100%; }
  .news-status:not(:empty) { margin-top: 20px; }
  .news-status:not(:empty) ~ .news__grid { margin-top: 16px; }
  .news-card__body:not(:last-child) { padding-bottom: 12px; }
  .news-card__body:not(:last-child) .news-card__title { min-height: 0; }
  .js-news .news-card__icon { width: 24px; height: 24px; }
  /* 小卡片一行放不下「日期 + 浏览点赞 + 展开按钮」(日期会被挤成两行):数字挪到日期下面,展开按钮在右边竖着居中 */
  .news-card:not(.news-card--feature) .news-card__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .news-card:not(.news-card--feature) .news-card__meta .stats { grid-row: 2; margin: 2px 0 0; }
  .news-card:not(.news-card--feature) .news-card__icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .news-card__detail { grid-column: 1 / -1; padding-bottom: 0; }
  .news-card__detail-in { padding-inline: 16px; }
  .news-card__detail .news-card__excerpt { margin-top: 12px; -webkit-line-clamp: 4; }
  .news-card__detail .news-card__more { margin-bottom: 16px; }
  .news-card__hit { min-height: 0; font-size: 14px; line-height: 20px; }
  .loop { padding-block: 72px; }
  /* 活动地图:标题挪到地图上面,时间线横向滑动(页面本身不横向滚动) */
  .event-map { padding-block: 56px 40px; }
  .event-map__head { position: static; max-width: none; margin-bottom: 16px; }
  .event-map__br { display: none; }
  .event-map__title { font-size: 28px; }
  .map-pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .map-pin::before { inset: 3px; }
  .map-pin__label { font-size: 12px; }
  .event-map__timeline { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
  .map-tl { min-width: 860px; }
}

@media (max-width: 640px) {
  .loop-form { grid-template-columns: 1fr; padding: 24px; }
}
