/* ============ 青年文明号宣传画册 · 红金主题 ============ */
:root {
  --red: #c8102e;          /* 青年文明号标准红 */
  --red-dark: #8f0b21;
  --gold: #d4af37;         /* 金 */
  --gold-light: #e8c96a;
  --cream: #faf6ef;        /* 米白背景 */
  --ink: #2a2622;
  --grey: #8a857e;
  --line: #e4dcc8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ============ 滚动进度条 ============ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); }

/* ============ 侧边导航 ============ */
.side-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 900;
  background: linear-gradient(160deg, #2a0a0f 0%, #4a0f18 60%, #6b1220 100%);
  color: #fff; padding: 24px 18px; transform: translateX(-100%); transition: transform .35s ease;
  display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,.25);
}
.side-nav.open { transform: translateX(0); }
.nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.nav-logo { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--gold-light); border: 1px solid rgba(212,175,55,.5); padding: 6px 10px; border-radius: 4px; }
.nav-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; opacity: .7; }
.nav-links { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-link {
  color: rgba(255,255,255,.85); text-decoration: none; padding: 9px 10px; border-radius: 6px;
  font-size: 14px; display: flex; align-items: center; gap: 10px; transition: background .2s;
}
.nav-link span { font-size: 12px; color: var(--gold); font-weight: 700; width: 22px; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: var(--gold-light); }
.nav-foot { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.nav-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 890; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-mask.show { opacity: 1; pointer-events: auto; }
.nav-toggle {
  position: fixed; top: 14px; left: 14px; z-index: 800; width: 40px; height: 40px;
  background: rgba(200,16,46,.92); color: #fff; border: none; border-radius: 8px; font-size: 20px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: transform .2s;
}
.nav-toggle:hover { transform: scale(1.06); }

/* ============ 页面结构 ============ */
main { scroll-snap-type: y mandatory; height: 100vh; overflow-y: scroll; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.page {
  min-height: 100vh; scroll-snap-align: start; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 40px 48px; border-bottom: 1px solid var(--line);
}
.page-inner { width: 100%; max-width: 1080px; }

/* ============ 封面 ============ */
.cover { background: #6b1220; overflow: hidden; padding: 0; }
.cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(212,175,55,.22), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(143,11,33,.9), transparent 55%),
    linear-gradient(160deg, #7a1424 0%, #5a0e1b 55%, #3d0913 100%);
}
.cover-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(212,175,55,.35) 28px, rgba(212,175,55,.35) 29px);
}
.cover-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px 24px; max-width: 720px; }
.cover-badge {
  display: inline-block; font-size: 15px; letter-spacing: 6px; color: var(--gold-light);
  border: 1.5px solid var(--gold); padding: 8px 18px 8px 24px; border-radius: 30px; margin-bottom: 34px;
  background: rgba(0,0,0,.15);
}
.cover-title { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: 6px; line-height: 1.35; margin-bottom: 22px; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.cover-sub { font-size: clamp(16px, 2.4vw, 21px); letter-spacing: 3px; line-height: 1.7; opacity: .95; margin-bottom: 26px; }
.cover-slogan {
  display: inline-block; font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; letter-spacing: 4px;
  color: var(--gold-light); border-top: 1px solid rgba(212,175,55,.6); border-bottom: 1px solid rgba(212,175,55,.6);
  padding: 12px 30px; margin-bottom: 22px; white-space: nowrap;
}
.cover-period { font-size: 14px; letter-spacing: 3px; opacity: .8; margin-bottom: 8px; }
.cover-footer { font-size: 13px; letter-spacing: 2px; opacity: .65; }

/* ============ 板块头部 ============ */
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--red); padding-bottom: 12px; }
.sec-num { font-size: 42px; font-weight: 800; color: var(--red); font-family: Georgia, serif; line-height: 1; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: 4px; color: var(--red-dark); }
.sec-body .lead { font-size: 15px; line-height: 1.95; color: #4a453f; text-align: justify; margin-bottom: 14px; }
.sec-body .para2 { font-size: 15px; line-height: 1.95; color: #4a453f; text-align: justify; margin-bottom: 14px; }
blockquote.spirit {
  font-size: 15.5px; line-height: 1.9; color: #6b1220; font-weight: 600; text-align: center;
  border-left: none; background: linear-gradient(90deg, rgba(212,175,55,.14), rgba(200,16,46,.07));
  padding: 18px 26px; border-radius: 10px; margin: 16px 0;
}

/* ============ 标签（口号/小组） ============ */
ul.tags { list-style: none; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
ul.tags li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.6; }
.tag-label {
  flex-shrink: 0; background: var(--red); color: #fff; font-size: 12px; padding: 2px 10px;
  border-radius: 20px; letter-spacing: 1px;
}

/* ============ 子板块 ============ */
.subblock { margin: 22px 0 6px; }
.subblock h3 {
  font-size: 19px; font-weight: 700; color: var(--red-dark); letter-spacing: 2px;
  padding-left: 12px; border-left: 4px solid var(--gold); margin-bottom: 10px; line-height: 1.4;
}
.subblock p { font-size: 14.5px; line-height: 1.9; color: #4a453f; text-align: justify; margin-bottom: 12px; }

/* ============ 图片画廊 ============ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 10px 0 6px; }
figure.photo {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
}
figure.photo:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ph-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f0ece3; cursor: zoom-in; }
.ph-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
figure.photo:hover .ph-wrap img { transform: scale(1.05); }
figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--grey); text-align: center; line-height: 1.4; }

/* 竖图/文档类（媒体报道、证书）特殊处理 */
.gallery-portrait figure.photo .ph-wrap { aspect-ratio: 3/4; }
.gallery-wide figure.photo .ph-wrap { aspect-ratio: 16/9; }

/* ============ 封底 ============ */
.backcover { background: linear-gradient(160deg, #6b1220, #3d0913); color: #fff; text-align: center; padding: 60px 30px; }
.back-content { max-width: 640px; margin: 0 auto; }
.back-badge {
  display: inline-block; font-size: 14px; letter-spacing: 6px; color: var(--gold-light);
  border: 1.5px solid var(--gold); padding: 7px 16px 7px 22px; border-radius: 30px; margin-bottom: 30px;
}
.back-content h2 { font-size: 30px; letter-spacing: 8px; margin-bottom: 22px; }
.back-text { font-size: 14px; letter-spacing: 2px; opacity: .8; margin-bottom: 8px; }
.back-phone { font-size: 38px; font-weight: 800; color: var(--gold-light); letter-spacing: 3px; margin-bottom: 26px; font-family: Georgia, serif; }
.back-bank { font-size: 17px; letter-spacing: 3px; margin-bottom: 6px; }
.back-bank-sub { font-size: 13px; opacity: .7; letter-spacing: 2px; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lb-cap { color: #fff; margin-top: 14px; font-size: 14px; letter-spacing: 1px; opacity: .9; }
.lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 40px; cursor: pointer; opacity: .8; line-height: 1; }

/* ============ 移动端 ============ */
@media (max-width: 768px) {
  .page { padding: 56px 16px 36px; }
  .sec-num { font-size: 32px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .cover-title { letter-spacing: 3px; }
  .side-nav { width: 210px; }
}

/* === Image orientation === */
figure.photo.portrait .ph-wrap { aspect-ratio: 3/4; }
figure.photo.square .ph-wrap { aspect-ratio: 1/1; }

/* === Image orientation === */
figure.photo.portrait .ph-wrap { aspect-ratio: 3/4; }
figure.photo.square .ph-wrap { aspect-ratio: 1/1; }
