@import url("https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap");

/* =========================================================
   方传公益 FangChuan Public Welfare — 全局设计系统
   风格：简约大气 · 沉稳绿 + 暖金点缀 · 公益气质
   ========================================================= */

:root {
  /* 主色系 —— 渐变红，象征热情、温暖与善意 */
  --green-900: #7a1414;
  --green-800: #961a1a;
  --green-700: #c1121f;
  --green-600: #d62828;
  --green-500: #e5383b;
  --green-100: #fbe9e9;
  --green-050: #fcf4f4;
  --grad-red: linear-gradient(135deg, #e5383b 0%, #c1121f 100%);
  --grad-red-soft: linear-gradient(135deg, #ff8a8a 0%, #d62828 100%);

  /* 点缀色 —— 暖金，象征善意、温度、阳光 */
  --gold-600: #cf8f1f;
  --gold-500: #e3a32e;
  --gold-400: #efb955;
  --gold-100: #fbeed3;

  /* 中性色 */
  --ink: #23282b;
  --ink-soft: #3c454a;
  --gray: #6b7480;
  --gray-soft: #9aa3ab;
  --line: #e7e3da;
  --bg: #faf8f4;
  --bg-warm: #f4efe6;
  --white: #ffffff;

  /* 排版 —— 宋体（思源宋体 Noto Serif SC，兜底系统宋体） */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", "宋体", serif;

  /* 阴影与圆角 */
  --shadow-sm: 0 2px 10px rgba(16, 58, 44, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 58, 44, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 58, 44, 0.14);
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 通用排版 ---------------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--gold-500);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
  line-height: 1.3;
}
.section-title .accent { color: var(--green-700); }

.section-sub {
  margin-top: 14px;
  color: var(--gray);
  font-size: 16px;
  max-width: 640px;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold-500);
  color: #4a3500;
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--green-700);
  color: var(--green-700);
  background: transparent;
}
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost { color: var(--green-700); padding-left: 0; padding-right: 0; }
.btn-ghost::after { content: "→"; transition: transform .2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, border-color .3s;
}
/* 下滑后：毛玻璃半透明效果，始终跟随页面 */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.brand .logo-mark::after {
  content: "";
  position: absolute; bottom: 6px; left: 9px; right: 9px;
  height: 3px; border-radius: 2px; background: var(--gold-400);
}
.brand .logo-img {
  height: 36px;
  width: auto;
  max-width: 220px;
  border-radius: 8px;
  object-fit: contain;
}
.brand .logo-text { line-height: 1.1; }
.brand .logo-text b { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.brand .logo-text span {
  display: block; font-size: 11px; color: var(--gray);
  letter-spacing: 2px; text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a {
  padding: 8px 10px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--green-700); background: var(--green-050); }
.nav-menu a.active { color: var(--green-700); font-weight: 700; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--ink); border-radius: 2px;
  transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单面板 */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 18px 24px 40px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 15px 6px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.mobile-menu a.active { color: var(--green-700); font-weight: 700; }
.mobile-menu .btn { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------------- 首页 Hero（全幅轮播） ---------------- */
.hero {
  position: relative;
  background: #7a1414;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 1px;
  margin: 8px 0 18px;
}
.hero h1 .hl { color: var(--gold-400); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.86);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.hero-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.hero-card h3 { font-size: 15px; letter-spacing: 2px; color: var(--gold-400); margin-bottom: 14px; font-weight: 600; }
.hero-card .motto {
  font-size: 26px; font-weight: 800; line-height: 1.5;
  letter-spacing: 2px;
}
.hero-card .motto-sub { margin-top: 12px; color: rgba(255,255,255,.78); font-size: 14px; }

/* 数据条（轮播图下方的概览区块） */
.stats-band {
  position: relative;
  background: var(--bg);
  padding: 56px 0 64px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .num {
  font-size: 36px; font-weight: 800; color: var(--green-700);
  font-variant-numeric: tabular-nums;
}
.stat .num .unit { font-size: 16px; color: var(--gold-500); margin-left: 2px; }
.stat .label { font-size: 13px; color: var(--gray); margin-top: 6px; letter-spacing: .5px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-100); }

.icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green-050);
  color: var(--green-700);
  margin-bottom: 18px;
}
.icon-badge.gold { background: var(--gold-100); color: var(--gold-600); }
.icon-badge svg { width: 28px; height: 28px; }

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--green-700); font-weight: 600; font-size: 14px; }

/* 项目卡（带图） */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-cover {
  height: 180px;
  position: relative;
  display: grid; place-items: center;
  color: #fff;
}
.project-cover .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--green-800);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.project-cover svg { width: 56px; height: 56px; opacity: .92; }
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.project-body p { color: var(--gray); font-size: 14px; min-height: 44px; }
.project-meta {
  display: flex; gap: 16px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--gray);
}
.project-meta b { color: var(--green-700); font-size: 15px; display: block; }

/* 渐变封面预设 */
.cv-green { background: linear-gradient(135deg, #e5383b, #c1121f); }
.cv-gold  { background: linear-gradient(135deg, #ff8a8a, #d62828); }
.cv-teal  { background: linear-gradient(135deg, #c1121f, #7a1414); }
.cv-ink   { background: linear-gradient(135deg, #ff9a8b, #e5383b); }
.cv-sand  { background: linear-gradient(135deg, #d62828, #961a1a); }

/* ---------------- 聚焦领域（首页） ---------------- */
.focus-wrap { background: var(--bg-warm); }
.focus-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}
.focus-item:last-child { border-bottom: none; }
.focus-num {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.focus-item h3 { font-size: 18px; font-weight: 700; }
.focus-item p { color: var(--gray); font-size: 15px; }

/* ---------------- 新闻列表 ---------------- */
.news-item {
  display: flex; gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s;
}
.news-item:hover { padding-left: 8px; }
.news-date {
  flex: none; width: 78px; text-align: center;
  border-right: 2px solid var(--green-100);
}
.news-date .d { font-size: 30px; font-weight: 800; color: var(--green-700); line-height: 1; }
.news-date .m { font-size: 13px; color: var(--gray); margin-top: 4px; }
.news-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.news-body h3 a:hover { color: var(--green-700); }
.news-body p { color: var(--gray); font-size: 14px; }
.news-body .cat { display: inline-block; font-size: 12px; color: var(--gold-600); font-weight: 600; margin-bottom: 6px; }

/* ---------------- 时间轴（信息公开/历程） ---------------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--green-100);
}
.tl-item { position: relative; padding: 0 0 30px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-700); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green-100);
}
.tl-item .year { font-weight: 800; color: var(--green-700); font-size: 15px; }
.tl-item h4 { font-size: 16px; margin: 4px 0 6px; }
.tl-item p { color: var(--gray); font-size: 14px; }

/* ---------------- 政策/规范列表 ---------------- */
.policy-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.policy-list li:hover { border-color: var(--green-500); transform: translateX(4px); }
.policy-list .doc-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-050); color: var(--green-700);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.policy-list .doc-name { flex: 1; font-weight: 600; }
.policy-list .doc-meta { font-size: 13px; color: var(--gray); }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-050);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------------- 联系信息块 ---------------- */
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-050); color: var(--green-700);
  display: grid; place-items: center;
}
.contact-card h4 { font-size: 15px; color: var(--gray); font-weight: 600; }
.contact-card p { font-size: 17px; font-weight: 700; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer .brand .logo-text b { color: #fff; }
.footer .brand .logo-text span { color: rgba(255,255,255,.6); }
.footer-about { color: rgba(255,255,255,.7); font-size: 14px; margin: 18px 0; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--gold-400); }
.footer-news { font-size: 14px; color: rgba(255,255,255,.7); }
.footer-news li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-news li:last-child { border-bottom: none; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.beian-badge { display: inline-flex; vertical-align: middle; margin-right: 5px; }
.beian-badge img { height: 17px; width: auto; vertical-align: middle; border-radius: 2px; }

/* ---------------- 通用页头（内页） ---------------- */
.page-hero {
  background: linear-gradient(150deg, #7a1414, #c1121f);
  color: #fff;
  padding: 70px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,185,85,.22), transparent 70%);
}
.page-hero .crumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--gold-400); }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: 1px; }
.page-hero p { margin-top: 12px; max-width: 620px; color: rgba(255,255,255,.82); }

/* ---------------- 爱心支持 ---------------- */
.support-hero {
  background: linear-gradient(135deg, var(--green-700), var(--gold-500));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.support-hero h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.support-hero p { color: rgba(255,255,255,.9); }
.support-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.amount-btn {
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.10);
  color: #fff; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; cursor: pointer; transition: .2s;
}
.amount-btn.active, .amount-btn:hover { background: #fff; color: var(--green-800); }

.donate-ways { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 8px; }
.donate-way {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: #fff; text-align: center;
}
.donate-way .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; margin: 0 auto 14px; }
.donate-way h4 { font-size: 16px; margin-bottom: 6px; }

/* ---------------- 影像资料 ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; color: #fff; background: linear-gradient(135deg,#e5383b,#c1121f);
  transition: transform .3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  font-weight: 600; font-size: 15px;
}
.gallery-item svg { width: 48px; height: 48px; opacity: .85; }

/* ---------------- 面包屑/分页 ---------------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: var(--green-050); color: var(--green-700); font-weight: 600;
  cursor: pointer; transition: background .2s ease, color .2s ease;
}
.tag-pill.active { background: var(--green-700); color: #fff; }
.muted { color: var(--gray); text-align: center; padding: 24px 0; }
.form-msg { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: var(--green-700); }
.form-msg.err { color: #c1121f; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px,3vw,32px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--gray); max-width: 560px; margin: 0 auto 24px; }

/* ---------------- 内容详情页 ---------------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article {
  background: #fff; border: 1px solid var(--line, #efe6e7); border-radius: 18px;
  padding: 40px 44px; box-shadow: 0 12px 36px rgba(120, 20, 22, .06);
}
.article-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.35; margin: 6px 0 18px; color: var(--ink, #2a2326); }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cat {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--green-050); color: var(--green-700); font-size: 13px; font-weight: 600;
}
.article-cover { margin: 8px 0 22px; border-radius: 14px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.prose { font-size: 16px; line-height: 1.95; color: #4a4042; }
.prose.lead { font-size: 17px; color: #6a5f62; margin-bottom: 18px; }
/* 富文本正文（CMS 编辑器输出的 HTML） */
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.prose h1, .prose h2, .prose h3 { color: var(--green-800, #1f4d3a); margin: 22px 0 10px; line-height: 1.5; }
.prose p { margin: 0 0 14px; }
.prose blockquote {
  margin: 16px 0; padding: 10px 18px; border-left: 4px solid var(--gold-500, #c9a25e);
  background: #faf7f1; border-radius: 0 10px 10px 0; color: #6a5f62;
}
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 14px; }
.prose a { color: var(--green-700, #2e6b4f); text-decoration: underline; text-underline-offset: 3px; }
.article-facts {
  display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0;
  padding: 16px 20px; background: var(--green-050); border-radius: 12px;
}
.article-facts b { display: block; color: var(--green-700); font-size: 15px; }
.article-facts span { font-size: 14px; color: var(--muted, #8a7f82); }

/* 合作案例卡片 */
.case-card {
  display: block; background: #fff; border: 1px solid var(--line, #efe6e7);
  border-radius: 16px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(120,20,22,.12); border-color: var(--green-100); }
.case-cover { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 14px; color: #fff; }
.case-cover .tag { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(2px); }
.case-cover svg { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; opacity: .8; }
.case-body { padding: 18px 20px 22px; }
.case-org { font-size: 13px; color: var(--gold-500); font-weight: 600; margin-bottom: 4px; }
.case-body h3 { font-size: 18px; margin: 0 0 8px; }
.case-body p { font-size: 14px; color: var(--gray); margin: 0; }

/* 影像卡片（含真实图片） */
.gallery-item { position: relative; display: block; }
.gallery-img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; display: block; }
.gallery-ph { width: 100%; border-radius: 12px; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); border-radius: 0 0 12px 12px;
  font-weight: 600; font-size: 14px;
}

/* 政策列表行 */
.policy-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer;
  border: 1px solid var(--line, #efe6e7); border-radius: 12px; background: #fff; margin-bottom: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; text-decoration: none; color: inherit;
}
.policy-row:hover { border-color: var(--green-500); transform: translateX(4px); box-shadow: 0 8px 22px rgba(120,20,22,.08); }
.policy-row .doc-go { margin-left: auto; color: var(--green-700); font-weight: 600; font-size: 14px; }
.policy-row .doc-meta { font-size: 13px; color: var(--gray); }

.more { display: inline-block; margin-top: 14px; color: var(--green-700); font-weight: 600; font-size: 14px; }

/* ---------------- 滚动进入动画 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .support-hero { grid-template-columns: 1fr; }
  .donate-ways, .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid, .donate-ways { grid-template-columns: 1fr; }
  .support-hero { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
}

/* ---------------- 首页轮播图 ---------------- */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* 底部波浪：位于图片之上、文字与控件之下 */
.carousel::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px; z-index: 2; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C240 30 420 120 720 70 C1020 20 1200 110 1440 60 L1440 140 L0 140Z' fill='%23faf8f4'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.slide {
  display: none;
  position: relative;
  min-height: 540px;
  align-items: center;
  background: linear-gradient(135deg, #7a1414, #c1121f);
}
.slide.active { display: flex; }
.slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12,8,8,.62), rgba(12,8,8,.25) 55%, rgba(12,8,8,.05));
}
.slide-inner { position: relative; z-index: 3; padding: 0 56px; max-width: 780px; color: #fff; }
.slide-inner .eyebrow { color: var(--gold-400); }
.slide-inner .eyebrow::before { background: var(--gold-400); }
.slide-inner h2 {
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 800;
  line-height: 1.25; margin: 8px 0 14px;
}
.slide-inner p { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.9); margin-bottom: 24px; max-width: 600px; }
.carousel-dots { position: absolute; bottom: 20px; left: 56px; display: flex; gap: 10px; z-index: 4; }
.carousel-dots button {
  width: 10px; height: 10px; border: none; border-radius: 999px;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .3s;
}
.carousel-dots button.active { background: #fff; width: 28px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.28); color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.carousel-arrow:hover { background: rgba(0,0,0,.5); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* 影像资料：视频播放标记 / 无图占位 */
.gallery-item .gallery-play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none;
}
.gallery-item .gallery-play svg { width: 30px; height: 30px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.gallery-item .gallery-ph {
  width: 100%; height: 210px; object-fit: cover; border-radius: 12px; display: block;
  background: linear-gradient(135deg, #e5383b, #c1121f);
}
.detail-video { width: 100%; max-height: 480px; border-radius: 14px; display: block; background: #000; }

@media (max-width: 768px) {
  .slide { min-height: 380px; }
  .slide-inner { padding: 0 26px; }
  .slide-inner h2 { font-size: 26px; }
  .carousel-dots { left: 26px; bottom: 14px; }
  .carousel-arrow { display: none; }
}

/* ===== 我要报名弹窗（引导至志愿汇） ===== */
body.modal-open { overflow: hidden; }
.apply-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.apply-modal.open { display: block; }
.apply-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 18, 18, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: amFade .25s ease;
}
.apply-card {
  position: relative; z-index: 1;
  width: min(92vw, 460px); margin: 14vh auto 0;
  background: #fff; border-radius: 22px; padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden; animation: amPop .32s cubic-bezier(.2, .9, .3, 1.25);
}
.apply-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #c1121f, #e2383d);
}
.apply-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.05); color: #999; font-size: 22px; line-height: 1;
  cursor: pointer; transition: .2s;
}
.apply-close:hover { background: rgba(0, 0, 0, 0.1); color: #444; }
.apply-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.apply-logo {
  height: 44px; width: auto; border-radius: 10px; background: #fff;
  padding: 5px 7px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.apply-id { display: flex; flex-direction: column; }
.apply-name { font-size: 19px; font-weight: 800; color: var(--ink); }
.apply-org { font-size: 12px; color: var(--gray); letter-spacing: .5px; }
.apply-title { font-size: 20px; font-weight: 800; color: #c1121f; margin: 0 0 10px; }
.apply-body { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 20px; }
.apply-body strong { color: #c1121f; font-weight: 700; }
.apply-go { display: block; text-align: center; padding: 13px; font-size: 15px; font-weight: 700; }
.apply-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.apply-links-t { font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.apply-links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.apply-links-row a {
  font-size: 13px; color: var(--green-700); background: var(--green-050);
  padding: 6px 13px; border-radius: 999px; transition: .2s;
}
.apply-links-row a:hover { background: #e7f1ea; }
@keyframes amFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes amPop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ===== 进入网站弹窗（后台可编辑） ===== */
.entry-popup { position: fixed; inset: 0; z-index: 320; display: none; }
.entry-popup.open { display: block; }
.entry-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 18, 18, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: epFade .3s ease;
}
.entry-card {
  position: relative; z-index: 1;
  width: min(92vw, 720px); margin: 12vh auto 0;
  background: #fff; border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 280px 1fr;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
  animation: epPop .36s cubic-bezier(.2, .9, .3, 1.2);
}
.entry-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #c1121f, #e5383b, #efb955);
}
.entry-media { background: linear-gradient(135deg, #e5383b, #c1121f); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.entry-body { padding: 36px 34px 30px; display: flex; flex-direction: column; }
.entry-badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-600); background: var(--gold-100);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.entry-title { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 0 12px; line-height: 1.35; }
.entry-text { font-size: 15px; line-height: 1.9; color: var(--ink-soft); margin: 0 0 22px; }
.entry-skip {
  align-self: flex-start; padding: 12px 30px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700), #1b5e3f);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: .25s;
  box-shadow: 0 6px 18px rgba(27, 94, 63, 0.28);
}
.entry-skip:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 94, 63, 0.35); }
.entry-close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.06); color: #999; font-size: 22px; line-height: 1;
  cursor: pointer; transition: .2s;
}
.entry-close:hover { background: rgba(0, 0, 0, 0.12); color: #444; }
@keyframes epFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .entry-card { grid-template-columns: 1fr; margin: 8vh auto 0; }
  .entry-media img { min-height: 160px; max-height: 200px; }
  .entry-body { padding: 28px 24px 26px; }
}

/* =========================================================
   全站变灰（哀悼模式）：后台「站点信息」一键开关
   注意：filter 不能加在 html/body 上，否则 position:fixed 的
   导航/弹窗会失效（filter 会改变 fixed 的包含块）。
   因此对 body 的普通子元素整体变灰，fixed 元素单独变灰。
   ========================================================= */
html.gray-mode body > *:not(#nav-root):not(#mobile-root) { filter: grayscale(100%); }
html.gray-mode .nav,
html.gray-mode .mobile-menu { filter: grayscale(100%); }

/* =========================================================
   节日主题皮肤（春节 / 国庆）：灯笼等中国元素装饰
   由 components.js 的 applyFestivalTheme 根据后台设置挂载
   #festDeco（pointer-events:none，不挡操作；层级低于弹窗 300）
   ========================================================= */
.fest-deco { position: fixed; inset: 0; pointer-events: none; z-index: 105; overflow: hidden; }

/* 顶部喜庆渐变条 */
.f-ribbon {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #c1121f, #e3a32e, #c1121f, #e3a32e, #c1121f);
  background-size: 200% 100%; animation: fRibbon 6s linear infinite;
}
@keyframes fRibbon { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* 灯笼 */
.f-lantern {
  position: absolute; top: 60px; width: 48px; height: 62px;
  border-radius: 50% / 44%;
  background: radial-gradient(circle at 32% 28%, #ff7a7a, #c1121f 70%);
  box-shadow: inset -7px -9px 14px rgba(0, 0, 0, .25), 0 8px 18px rgba(193, 18, 31, .35);
  display: flex; align-items: center; justify-content: center;
  color: #ffd766; font-weight: 800; font-size: 23px;
  transform-origin: top center; animation: fSwing 3.6s ease-in-out infinite;
}
.f-lantern::before { /* 挂绳 */
  content: ""; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 16px; background: #b9892b;
}
.f-lantern::after { /* 流苏 */
  content: ""; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 14px; background: #e3a32e; border-radius: 2px;
}
.f-l-left { left: 18px; }
.f-l-right { right: 18px; animation-delay: .4s; }
.f-char { text-shadow: 0 1px 2px rgba(120, 0, 0, .5); }

/* 国庆主题：更深的中国红 */
.theme-national .f-lantern {
  background: radial-gradient(circle at 32% 28%, #ff6b6b, #b3000c 70%);
  box-shadow: inset -7px -9px 14px rgba(0, 0, 0, .28), 0 8px 18px rgba(179, 0, 12, .4);
}
.theme-national .f-ribbon {
  background: linear-gradient(90deg, #b3000c, #ffd200, #b3000c, #ffd200, #b3000c);
  background-size: 200% 100%;
}

/* 主题下给导航加一点喜庆描边 */
.theme-spring .nav.scrolled,
.theme-national .nav.scrolled { border-bottom: 3px solid var(--gold-500, #e3a32e); }
.theme-spring .nav:not(.scrolled),
.theme-national .nav:not(.scrolled) { border-bottom: 3px solid rgba(227, 163, 46, .5); }

@keyframes fSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@media (max-width: 720px) {
  .f-lantern { display: none; }
}

/* =========================================================
   志愿活动查询（信息系统式）
   ========================================================= */
.act-query { padding: 18px 20px; margin-top: 30px; }
.act-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--green-700); color: var(--green-700); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.act-fields {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px;
}
.act-l { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.act-l input, .act-l select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); min-width: 150px;
}
.act-l input:focus, .act-l select:focus { outline: none; border-color: var(--green-700); }
.act-sep { color: var(--muted); padding-bottom: 10px; }
#actSearch { margin-left: 4px; }

.act-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.stat-pill {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 18px;
  border-radius: 12px; background: var(--green-050); color: var(--green-700);
}
.stat-pill span { font-size: 13px; }
.stat-pill b { font-size: 20px; font-weight: 800; }

.act-result { padding: 6px 6px 10px; overflow-x: auto; }
.act-table th { white-space: nowrap; }
.act-table td { vertical-align: middle; }
.act-date { white-space: nowrap; font-weight: 600; color: var(--ink); }
.act-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

@media (max-width: 640px) {
  .act-fields { flex-direction: column; align-items: stretch; }
  .act-l input, .act-l select { min-width: 0; width: 100%; }
  .act-sep { display: none; }
  #actSearch { width: 100%; }
  #actReset { width: 100%; }
}
