/* ═══════════════════════════════════════════════════════════
   新湘会亲子 AI 创作展 —— 样式
   调性：小型电影节。深色影院底 + 暖橙金强调色，让海报和视频跳出来。
   移动端优先（主要在微信里打开）。
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:      #0e1015;
  --ink-2:    #161a24;
  --ink-3:    #1f2431;
  --text:     #e9e7e4;
  --muted:    #98a0b0;
  --accent:   #ff6b3d;
  --gold:     #f2b544;
  --line:     rgba(255,255,255,.09);
  --line-2:   rgba(255,255,255,.16);
  --shadow:   0 18px 50px rgba(0,0,0,.55);
  --wrap:     1140px;
  --r:        14px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
          "Segoe UI", Roboto, sans-serif;
  --serif: "Songti SC", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ─────────────────────────── 首屏 ─────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 22px 60px;
}

/* 首屏背景：活动合照。用 1600px 版本，反正上面压着暗层，细节要求低 */
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('group-hero.jpg');
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  filter: saturate(.85);
}

/* 暗层要压得住白字，又要让人认得出照片里的人。
   上淡下浓：标题区留一点照片，往下渐渐融进页面底色。 */
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14,16,21,.55) 0%,
      rgba(14,16,21,.68) 38%,
      rgba(14,16,21,.88) 72%,
      rgba(14,16,21,1)  100%),
    radial-gradient(120% 78% at 50% 42%, transparent 0%, rgba(14,16,21,.55) 100%);
}

.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.hero__kicker {
  margin: 0 0 22px;
  font-size: clamp(11px, 2.9vw, 13px);
  letter-spacing: .22em;
  color: var(--gold);
  text-indent: .22em;
}

.hero__title {
  margin: 0 0 26px;
  font-size: clamp(38px, 9vw, 76px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(96deg, var(--gold) 0%, var(--accent) 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0 auto 38px;
  max-width: 460px;
  color: #c7ccd8;
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 2;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 8vw, 64px);
  margin-bottom: 44px;
}
.stat { display: flex; flex-direction: column; }
.stat b {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .12em; }

.hero__cta {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: .25s;
  backdrop-filter: blur(6px);
}
.hero__cta:hover { border-color: var(--gold); color: var(--gold); }

/* ─────────────────────────── 通用标题 ─────────────────────────── */

.sect__title {
  margin: 0 0 26px;
  font-size: clamp(25px, 5.4vw, 36px);
  font-weight: 800;
  letter-spacing: .04em;
}
.sect__title--center { text-align: center; margin-bottom: 12px; }
.sect__title--center::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.sect__sub { margin: 46px 0 16px; font-size: 19px; font-weight: 700; }
.sect__note {
  text-align: center;
  color: var(--muted);
  margin: 0 0 44px;
  font-size: 15px;
}

/* ─────────────────────────── 关于 ─────────────────────────── */

.about { padding: clamp(70px, 12vw, 118px) 0; border-top: 1px solid var(--line); }

/* 上下排版：文案在上、合照在下。
   30 人的宽幅合照挤在侧栏里谁也看不清，走满宽才认得出人。 */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(38px, 6vw, 60px);
}
.about__text { max-width: 760px; }   /* 中文长行不好读，正文单独收窄 */
.about__text p { margin: 0 0 20px; color: #cbd1dc; }
.about__text em { color: var(--gold); font-style: normal; }
.about__text b { color: var(--text); }

.about__punch {
  margin-top: 32px !important;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(255,107,61,.09), transparent);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--muted) !important;
}
.about__punch strong { color: var(--text); font-size: 17px; line-height: 1.9; }

.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  height: auto;              /* 必须写：否则 HTML 的 height 属性会当成 CSS 高度，图片被拉伸 */
  aspect-ratio: 2400 / 1350; /* 加载前就占好位，避免图片到位时页面跳动 */
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about__photo figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .04em;
}

.highlight__video {
  width: 100%;
  border-radius: var(--r);
  background: #000;
  box-shadow: var(--shadow);
  max-height: 70vh;
}

/* ─────────────────────────── 作品墙 ─────────────────────────── */

.works {
  padding: clamp(70px, 12vw, 118px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(242,181,68,.05), transparent 70%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 22px;
}
.grid__loading { color: var(--muted); text-align: center; padding: 50px 0; }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.22,.9,.3,1), border-color .28s;
  text-align: left;
  padding: 0;
  color: inherit;
  width: 100%;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card:hover .card__poster img { transform: scale(1.06); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 14 部里 13 部是 16:9 原生比例，卡片跟着用 16:9 就不会裁切；
   唯一的竖屏《琼楼别》在缩略图上居中裁切，进详情页仍是完整比例。 */
.card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c11;
}
.card__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.9,.3,1);
}
.card__poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,12,17,.85) 100%);
}

.card__play {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(14,16,21,.55);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: .3s;
  padding-left: 3px;
}
.card:hover .card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.card__no {
  position: absolute;
  z-index: 2;
  left: 12px; top: 10px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(14,16,21,.6);
  border: 1px solid rgba(242,181,68,.3);
  border-radius: 999px;
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}

.card__meta { padding: 14px 16px 16px; }
.card__title {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.card__by { margin: 0; font-size: 13px; color: var(--muted); }
.card__by .age { color: var(--gold); }

.card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card__foot .on { color: var(--accent); }

/* ─────────────────────────── 弹层 ─────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,7,10,.86);
  backdrop-filter: blur(7px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0 } }

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(880px, 94vw);
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: rise .32s cubic-bezier(.22,.9,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px) } }

.modal__x {
  position: absolute; z-index: 5;
  right: 12px; top: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(14,16,21,.72);
  color: var(--text);
  font-size: 15px;
  backdrop-filter: blur(4px);
}
.modal__x:hover { background: var(--accent); border-color: var(--accent); }

.modal__player { background: #000; border-radius: 18px 18px 0 0; overflow: hidden; }
.modal__player video {
  width: 100%;
  max-height: 62svh;
  object-fit: contain;
  background: #000;
  display: block;
}

.modal__body { padding: 24px clamp(18px, 4vw, 30px) 30px; }

.mhead__title { margin: 0 0 6px; font-size: clamp(21px, 4.6vw, 28px); font-weight: 800; }
.mhead__by { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.mhead__by .age { color: var(--gold); }
.mhead__syn { margin: 0; color: #c2c8d4; font-size: 15px; line-height: 1.9; }
.mhead__syn:empty { display: none; }

/* 操作条 */
.mbar {
  display: flex;
  gap: 12px;
  margin: 22px 0 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.likebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  color: var(--text);
  font-size: 15px;
  transition: .22s;
}
.likebtn:hover { border-color: var(--accent); }
.likebtn__heart { font-size: 18px; line-height: 1; transition: .22s; }
.likebtn.on { border-color: var(--accent); background: rgba(255,107,61,.14); color: var(--accent); }
.likebtn.on .likebtn__heart { transform: scale(1.16); }
.likebtn__n { font-variant-numeric: tabular-nums; }

/* ── 留言 ── */
.cmts { margin-top: 30px; }
.cmts__title { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.cmts__title span { color: var(--muted); font-weight: 400; font-size: 15px; }

.cform { margin-bottom: 24px; }
.cform__name, .cform__body {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.7;
}
.cform__name { margin-bottom: 10px; }
.cform__body { resize: vertical; min-height: 82px; }
.cform__name:focus, .cform__body:focus { outline: none; border-color: var(--gold); }

.cform__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cform__hint { font-size: 13px; color: var(--muted); min-height: 20px; }
.cform__hint.err { color: var(--accent); }
.cform__hint.ok  { color: #5fc98a; }

.cform__go {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: .22s;
  flex-shrink: 0;
}
.cform__go:hover { filter: brightness(1.1); }
.cform__go:disabled { opacity: .5; cursor: progress; }

.clist { list-style: none; margin: 0; padding: 0; }
.clist__empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
.cmt { padding: 15px 0; border-top: 1px solid var(--line); }
.cmt__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.cmt__name { font-weight: 600; font-size: 14px; }
.cmt__time { font-size: 12px; color: var(--muted); }
.cmt__body { margin: 0; color: #ccd2dd; font-size: 15px; white-space: pre-wrap; word-break: break-word; }

/* ─────────────────────────── 尾部 ─────────────────────────── */

.foot {
  padding: clamp(70px, 12vw, 110px) 0 60px;
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(760px 420px at 50% 0%, rgba(255,107,61,.10), transparent 70%);
}
.foot__title { margin: 0 0 12px; font-size: clamp(24px, 5.2vw, 34px); font-weight: 800; }
.foot__sub { margin: 0 0 32px; color: var(--muted); }

.foot__cta {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--gold), var(--accent));
  color: #1a1206;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: .25s;
  box-shadow: 0 10px 30px rgba(255,107,61,.24);
}
.foot__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255,107,61,.34); }

.foot__meta {
  margin: 46px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.foot__meta small { opacity: .65; font-size: 12px; }

/* ─────────────────────────── 响应式 ─────────────────────────── */

/* about 已是单列上下排版，无需断点特殊处理 */

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card__title { font-size: 15px; }
  .card__meta { padding: 11px 12px 13px; }
  .card__foot { gap: 12px; font-size: 12px; }
  .modal__panel { width: 100vw; max-height: 100svh; border-radius: 0; border: 0; }
  .modal__player { border-radius: 0; }
  .mbar .likebtn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
