/* ============================================================
 * 活动与新闻 — 页面级样式（news：列表 + 活动详情 + 新闻详情）
 * 全局 tokens / .container / .btn / .section-head 系列 / topbar / footer
 * 已在 assets/site.css；本文件含列表页 + 两类详情专属区块。
 * 源：design/claude-design/news.html + news-event.html + news-article.html <style>
 * 注：列表 hero=.news-hero（80px），详情 hero=.detail-hero（56px 紧凑）——
 *     与各内容页的 .page-hero 错开命名，避免编辑器样式串台。
 * ============================================================ */

/* ============ 列表页（home.html / 文章索引） ============ */

/* ---------- News hero (navy band) ---------- */
.news-hero {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.news-hero::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 360px; height: 320px;
  background-image: radial-gradient(rgba(217, 178, 94, .22) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.news-hero-inner { max-width: 780px; position: relative; z-index: 1; }
.news-hero .kicker-light {
  color: var(--brand-gold-light);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.news-hero h1 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -.3px; margin-top: var(--s-4);
}
.news-hero p.lead {
  margin-top: var(--s-6);
  font-size: 16.5px; color: var(--text-on-dark);
  line-height: 1.8; max-width: 640px;
}

/* ---------- Featured / pinned card ---------- */
.featured-wrap { padding: 64px 0 32px; }
.featured-card {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-8);
  align-items: stretch;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.featured-card::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  background-image: radial-gradient(rgba(217, 178, 94, .18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at top right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top right, black, transparent 70%);
  pointer-events: none;
}
.featured-visual {
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(217, 178, 94, .35);
  background: rgba(255, 255, 255, .03);
  display: grid; place-items: center;
  color: var(--text-on-dark-muted);
  font-size: 13px; text-align: center;
  padding: var(--s-3); min-height: 160px;
}
.featured-body { display: flex; flex-direction: column; gap: var(--s-3); position: relative; z-index: 1; }
.featured-badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-2);
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--brand-gold); color: var(--brand-navy-ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
}
.featured-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-navy-ink); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.featured-title { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.3; margin-top: var(--s-1); }
.featured-meta { color: var(--text-on-dark-muted); font-size: 14.5px; line-height: 1.7; }
.featured-meta .quote { color: var(--brand-gold-light); font-weight: 600; }
.featured-cta { margin-top: var(--s-4); align-self: flex-start; }

/* ---------- List / stream ---------- */
.list-section { padding: 48px 0 96px; }
.list-section .section-head { margin-bottom: var(--s-8); }
/* 列表行 = grid 三列：[缩略图 4:3] | [文字（标签/标题/摘要/日期）] | [操作]。
 * 缩略图取文章特色图（无图则品牌兜底块），日期作"标签在上·日期在下"的金点页脚。
 * 容器查询：按列表自身宽度重排，窄屏切方形缩略图 + 按钮整行。 */
.news-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  container-type: inline-size;
}
.news-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: var(--s-6); align-items: center;
  padding: 20px 8px; border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.news-row:hover { background: var(--bg-subtle); }

/* 缩略图（4:3，纯图，最左视觉锚点） */
.news-thumb {
  width: 112px; aspect-ratio: 4 / 3;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 92, .08); /* 内描边：浅图也有边界 */
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 无图兜底：品牌深蓝 + 金色点阵 + 微缩字标 */
.news-thumb.is-placeholder {
  background-color: var(--brand-navy);
  background-image: radial-gradient(rgba(217, 178, 94, .22) 1.3px, transparent 1.3px);
  background-size: 13px 13px; background-position: center;
  display: grid; place-items: center;
}
.news-thumb-mark {
  font-family: var(--font-serif); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; color: var(--brand-gold-light); opacity: .85; user-select: none;
}

/* 文字区：标签 → 标题 → 摘要 → 日期（顺序即视觉，无需 grid-area） */
.news-main { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.news-tag {
  display: inline-block;
  border: 1px solid rgba(46, 109, 180, .25); background: rgba(46, 109, 180, .06);
  color: var(--brand-blue); font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: var(--radius-pill); letter-spacing: .3px;
}
.news-row h3 { color: var(--brand-navy); font-size: 17.5px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.news-row h3 a { color: inherit; text-decoration: none; }
.news-row h3 a:hover { color: var(--brand-blue); }
.news-row .summary { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.6; text-wrap: pretty; }

/* 日期页脚：金色小圆点锚定 + 略增间距，读作有意的元信息而非孤立灰行 */
.news-date-inline {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 3px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .3px; white-space: nowrap;
}
.news-date-inline::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-gold); flex-shrink: 0;
}

.news-action {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--brand-navy); font-size: 14px; font-weight: 600; background: var(--bg);
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.news-action:hover { border-color: var(--brand-blue); color: var(--brand-blue); text-decoration: none; }
/* 主按钮（活动·报名）：更亮的品牌浅金 + 深墨字，与全站 .btn-gold 同步 */
.news-action.is-primary { border-color: var(--brand-gold-light); background: var(--brand-gold-light); color: var(--brand-navy-ink); font-weight: 700; }
.news-action.is-primary:hover { background: #CFA248; border-color: #CFA248; color: var(--brand-navy-ink); }

/* 移动重排（容器宽度 < 560）：方形缩略图居左、文字在右、按钮跟随文字落下方 */
@container (max-width: 560px) {
  .news-row {
    grid-template-columns: 96px 1fr; grid-template-rows: auto auto;
    column-gap: var(--s-4); row-gap: var(--s-3); align-items: start; padding: 16px 4px;
  }
  .news-thumb { width: 96px; aspect-ratio: 1 / 1; grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .news-main { grid-column: 2; grid-row: 1; align-self: start; }
  .news-action { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 0; padding: 8px 18px; }
  .news-thumb-mark { font-size: 10px; letter-spacing: 2px; }
}

/* ---------- 分类筛选 tab + 加载更多（site.js 渐进增强；无 JS 时隐藏、全部可见） ---------- */
.news-toolbar { margin-bottom: var(--s-6); }
.news-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.news-tab {
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.news-tab:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.news-tab.is-active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
/* .news-row 默认 display:grid，需显式覆盖 [hidden] 的 display:none */
.news-row[hidden] { display: none; }
.news-more { display: flex; justify-content: center; margin-top: var(--s-8); }
.news-more .news-more-btn { min-width: 180px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-12); }
.page-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: 14px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.page-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); text-decoration: none; }
.page-btn.is-current { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.page-btn.is-disabled { color: #C7CFDA; cursor: not-allowed; pointer-events: none; }

/* ---------- Footnote (reused) ---------- */
.list-footnote {
  margin-top: var(--s-8); padding: 14px 18px;
  border-left: 3px solid var(--brand-gold); background: var(--bg-subtle);
  color: var(--text-muted); font-size: 13.5px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============ 详情页（single.html，内容入 Post） ============ */

/* ---------- Breadcrumb ---------- */
.crumb { padding: 24px 0 0; color: var(--text-muted); font-size: 13.5px; letter-spacing: .2px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--brand-blue); text-decoration: none; }
.crumb .sep { margin: 0 10px; color: #C5CDD8; }
.crumb .cur { color: var(--text); font-weight: 500; }

/* ---------- Detail hero (compact navy) ---------- */
.detail-hero {
  background: var(--brand-navy); color: var(--text-on-dark);
  padding: 56px 0 64px; margin-top: 24px;
  position: relative; overflow: hidden; isolation: isolate;
}
.detail-hero::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 360px; height: 320px;
  background-image: radial-gradient(rgba(217, 178, 94, .22) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black, transparent 70%);
  pointer-events: none; z-index: 0;
}
.detail-hero-inner { max-width: 820px; position: relative; z-index: 1; }
.detail-hero .eyebrow {
  display: inline-block; color: var(--brand-gold-light);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.detail-hero h1 {
  color: #fff; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.2px; margin-top: var(--s-3); max-width: 780px;
}
.detail-hero .ensub {
  margin-top: var(--s-2); color: var(--brand-gold-light);
  font-family: var(--font-serif); font-style: italic; font-size: 18px; font-weight: 400;
}

/* Event meta (hero) */
.evmeta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px; margin-top: var(--s-6); max-width: 720px;
  color: var(--text-on-dark); font-size: 14.5px;
}
.evmeta .it { display: flex; align-items: center; gap: 10px; }
.evmeta .dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold-light); }
.evmeta b { color: #fff; font-weight: 600; margin-left: 4px; }
.headcta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-8); }

/* Article meta (hero) */
.artmeta {
  display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center;
  margin-top: var(--s-6); color: var(--text-on-dark-muted); font-size: 13.5px; letter-spacing: .2px;
}
.artmeta .tag {
  display: inline-block; border: 1px solid rgba(217, 178, 94, .35); background: rgba(217, 178, 94, .08);
  color: var(--brand-gold-light); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill); letter-spacing: .3px;
}
.artmeta b { color: #fff; font-weight: 600; }

/* ---------- Detail body layout ---------- */
.article-band { padding: 48px 0 64px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-12); align-items: start; }
.article-inner { max-width: 760px; margin: 0 auto; }

/* Photo band */
.photo-band {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(46, 109, 180, .08), rgba(184, 134, 47, .06) 60%, rgba(46, 109, 180, .06)),
    var(--bg-subtle);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.photo-band .ph-label { position: absolute; left: 24px; bottom: 18px; color: #6B7A91; font-size: 13px; letter-spacing: .3px; }

/* 真实文章配图（取代 .photo-band 占位）：圆角卡、自适应、可选图注 */
.article-figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-subtle);
}
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption {
  padding: 11px 18px; color: var(--text-muted);
  font-size: 13px; line-height: 1.5; border-top: 1px solid var(--border);
}

/* Prose */
.prose { margin-top: 28px; color: var(--text); font-size: 16.5px; line-height: 1.85; }
.prose p { margin-top: 18px; }
.prose p:first-child { margin-top: 0; }
.prose .lead-p { font-size: 19px; line-height: 1.7; color: var(--brand-navy); font-weight: 500; }
.prose h2 {
  color: var(--brand-navy); font-size: 22px; font-weight: 750; margin-top: 40px;
  line-height: 1.35; position: relative; padding-left: 18px;
}
.prose h2::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--brand-gold); }
.prose ul { margin-top: 14px; padding-left: 24px; }
.prose li { margin-top: 6px; line-height: 1.75; }
.prose li::marker { color: var(--brand-gold); }
.prose blockquote {
  margin: 32px 0; padding: 18px 24px; border-left: 3px solid var(--brand-gold);
  background: var(--bg-subtle); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--brand-navy); font-size: 16px; font-style: italic; line-height: 1.7;
}
.prose a { color: var(--brand-blue); text-decoration: underline; text-decoration-color: rgba(46, 109, 180, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }

/* Postfoot + share */
.postfoot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4);
}
.btn-outline { background: var(--bg); color: var(--brand-navy); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: var(--bg); }
.share { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-size: 13.5px; }
.share a {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.share a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Sidebar infocard (event) */
.infocard {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 24px 22px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px;
}
.infocard h3 { font-size: 13px; color: var(--brand-blue); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: var(--s-2); }
.infocard .row { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.infocard .row:last-of-type { border-bottom: 0; }
.infocard .k { color: var(--text-muted); font-size: 13px; }
.infocard .v { color: var(--brand-navy); font-weight: 600; }
.infocard .btn { margin-top: var(--s-3); width: 100%; }
.infocard .note { margin-top: var(--s-2); font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* "更多动态" (event detail) */
.more { background: var(--bg-subtle); padding: 64px 0 80px; }
.more .section-head { margin-bottom: var(--s-6); }
.newslist { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.newsitem {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-6); align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--border); transition: background .15s ease;
}
.newsitem:last-child { border-bottom: 0; }
.newsitem:hover { background: var(--bg-subtle); }
.newsitem .d { border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; padding: 6px 0; color: var(--text-muted); line-height: 1.15; }
.newsitem .d .mo { font-size: 11.5px; }
.newsitem .d .dy { font-size: 15px; font-weight: 700; margin-top: 2px; color: var(--text-muted); }
.newsitem .tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.newsitem .tag {
  display: inline-block; border: 1px solid rgba(46, 109, 180, .25); background: rgba(46, 109, 180, .06);
  color: var(--brand-blue); font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill);
}
.newsitem h3 { color: var(--brand-navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.newsitem .ex { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

/* Prev / next nav (article) */
.postnav { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.postnav a {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--brand-navy); background: var(--bg); font-size: 15px; font-weight: 600; line-height: 1.45;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; text-decoration: none;
}
.postnav a:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.postnav .dir-l { font-size: 12.5px; font-weight: 600; color: var(--brand-blue); letter-spacing: .5px; }
.postnav .next { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .infocard { position: static; }
}
@media (max-width: 880px) {
  .news-hero { padding: 56px 0 64px; }
  .detail-hero { padding: 40px 0 48px; }
  .featured-card { grid-template-columns: 1fr; padding: 28px 24px; gap: var(--s-4); }
  .featured-visual { min-height: 140px; }
  /* .news-row 的窄屏重排由组件级 @container 处理（见上方 list/stream 段） */
  .evmeta { grid-template-columns: 1fr; }
  .artmeta { gap: var(--s-3); font-size: 13px; }
  .article-inner { max-width: 100%; }
  .newsitem { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: var(--s-3) var(--s-4); }
  .newsitem .btn { grid-column: 1 / -1; justify-self: start; }
  .postnav { grid-template-columns: 1fr; }
  .postnav .next { text-align: left; }
}
@media (max-width: 560px) {
  .featured-title { font-size: 20px; }
  .news-row h3 { font-size: 16px; }
}
