/* ============================================================
 * PASCO 首页（front-page）页面级样式
 * 来源：Claude Design 导出 index.html 的内联 <style>（design/claude-design/index.html）。
 * 共享 tokens/topbar/footer/buttons 在 site.css。
 * 仅改动：背景图 url() 路径改为相对本文件（assets/ 同级）。
 * ============================================================ */

/* ---------- Hero (forum-led) ---------- */
.hero {
  position: relative;
  background-color: var(--surface-navy);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80%;
  background-image: url("forum-hero.png");
  background-size: cover;
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
  mask-image: linear-gradient(to bottom, transparent, #000 18%);
  z-index: -2;
}
.hero-bg-mobile {
  display: none;
  position: absolute; inset: 0;
  background-image: url("forum-hero-square.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(11, 23, 46, .92) 0%,
    rgba(14, 35, 68, .80) 35%,
    rgba(15, 33, 64, .42) 70%,
    rgba(15, 33, 64, .28) 100%);
  z-index: -1;
}
/* WP 区块主题适配：.hero 是 is-layout-flow group，core 注入的
   `:root :where(.is-layout-flow) > * { margin-block-start:24px }` 会把非首个子级下推。
   这命中绝对定位的 .hero-overlay（桌面）和 .hero-bg-mobile（移动端）→ 整层下移 24px，
   顶部露出 .hero 底色 (--surface-navy) 形成一条蓝带。需用 (0,2,0) 特异性点名这两个装饰层
   才能与顺序无关地压过该 inline 规则（.hero>* 同为 (0,1,0)，因排在 inline 样式前而失效）。 */
.hero > .hero-overlay,
.hero > .hero-bg-mobile { margin-block-start: 0; margin-block-end: 0; }
.hero-inner {
  padding: 112px 0 128px;
  max-width: 640px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.hero-eyebrow .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-gold-light);
  flex-shrink: 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.5px;
  margin-top: var(--s-6);
}
.hero-sub-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--text-on-dark-muted);
  font-weight: 400;
  margin-top: var(--s-3);
}
.gold-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s-8);
  padding: 8px 16px 8px 0;
  color: var(--brand-gold-light);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}
.gold-bar::before {
  content: "";
  width: 3px;
  align-self: stretch;
  background: var(--brand-gold-light);
  border-radius: 2px;
}
.hero-desc {
  margin-top: var(--s-6);
  font-size: 16px;
  color: var(--text-on-dark);
  max-width: 480px;
  line-height: 1.7;
}
.hero-cta {
  display: flex; gap: var(--s-4); margin-top: var(--s-8);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--s-12);
  color: var(--text-on-dark-muted);
  font-size: 13px;
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
  letter-spacing: .3px;
}
.hero-meta strong {
  color: var(--brand-gold-light);
  font-weight: 600;
  margin-right: 6px;
}
.hero-meta svg { width: 15px; height: 15px; margin-right: 7px; vertical-align: -3px; color: var(--brand-gold-light); }

/* ---------- 论坛速览 ---------- */
.forum-overview { background: var(--bg-subtle); }
.overview-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(4, 1fr);
}
.overview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: var(--s-2);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.overview-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--brand-gold);
  transition: width .3s ease;
}
.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.overview-card:hover::before { width: 60%; }
.overview-card .idx {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-gold-ink);
  letter-spacing: 1.5px;
  opacity: .55;
}
.overview-card .label {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.overview-card .title {
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 700;
  margin-top: var(--s-1);
}
.overview-card .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: var(--s-1);
}

/* ---------- 关于 PASCO band ---------- */
.about {
  background-color: #0A1A36;
  background-image:
    linear-gradient(180deg,
      rgba(10, 26, 54, .35) 0%,
      rgba(10, 26, 54, .15) 35%,
      rgba(10, 26, 54, 0) 60%,
      rgba(10, 26, 54, .15) 100%),
    url("about-horizon.png");
  background-size: cover, cover;
  background-position: center, center bottom;
  background-repeat: no-repeat, no-repeat;
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 128px 0 144px;
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.about .kicker-light {
  color: var(--brand-gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.about h2 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  margin-top: var(--s-4);
  letter-spacing: 2px;
}
.about h2 .dot-gold {
  color: var(--brand-gold-light);
  margin: 0 var(--s-3);
  font-weight: 400;
}
.about p {
  margin-top: var(--s-6);
  font-size: 16.5px;
  color: var(--text-on-dark);
  line-height: 1.85;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.about-cta {
  margin-top: var(--s-8);
  display: inline-flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 活动与新闻 ---------- */
.news-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(3, 1fr);
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.news-cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  position: relative;
  display: grid;
  place-items: center;
  color: #A6B3C4;
  font-size: 13px;
  letter-spacing: 1px;
}
.news-cover::after {
  content: "活动配图";
}
/* 动态卡片有特色图时：图填满封面，隐藏占位文字。 */
.news-cover.has-img::after { content: none; }
.news-cover.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 整卡可点（动态卡片用 <a>）：去掉链接默认下划线 / 颜色。 */
a.news-card { text-decoration: none; color: inherit; }
.news-body {
  padding: 20px 24px 24px;
  display: flex; flex-direction: column; gap: var(--s-2);
  flex: 1;
}
.news-tag {
  display: inline-block;
  color: var(--brand-blue);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  align-self: flex-start;
}
.news-body h3 {
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 700;
  margin-top: var(--s-1);
  line-height: 1.4;
}
.news-date {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: var(--s-2);
  letter-spacing: .5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-inner { padding: 56px 0 72px; max-width: 100%; }
  .hero-bg { display: none; }
  .hero-bg-mobile {
    display: block;
    background-position: center center;
    opacity: .9;
  }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(11, 23, 46, .82) 0%,
      rgba(14, 35, 68, .80) 60%,
      rgba(15, 33, 64, .92) 100%);
  }
  .hero h1 { font-size: 30px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .overview-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-meta { gap: var(--s-3); flex-direction: column; }
  .gold-bar { font-size: 14px; }
  .about h2 { font-size: 28px; letter-spacing: 1px; }
  .about h2 .dot-gold { margin: 0 var(--s-2); }
}

/* ---------- 区块主题适配：补回 band 纵向 padding ----------
 * 原型 band 是 <section>，吃 site.css 的 `section { padding: 96px 0 }`；
 * 区块版 band 是 <div>，拿不到，需按 band 类显式补回。
 * .about 自带 padding:128px 0 144px（更高优先级），不在此列。 */
.hero,
.forum-overview,
.news { padding-block: 96px; }
@media (max-width: 880px) {
  .hero,
  .forum-overview,
  .news { padding-block: 64px; }
}
