/* ============================================================
 * 长春市第九中学青年志愿服务队 · 全站样式
 * 移动端优先，志愿红主色 + 朝气蓝辅助
 * ============================================================ */

:root {
  --red: #d71920;
  --red-dark: #b31218;
  --red-light: #fdecec;
  --blue: #1b6ca8;
  --blue-light: #eaf3fa;
  --ink: #1f2733;
  --ink-2: #55606e;
  --line: #e6eaef;
  --bg: #f7f8fa;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 39, 51, 0.08);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

.container { width: min(var(--maxw), 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand span { font-size: 15px; }
.nav-links { display: none; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--ink-2); padding: 6px 2px; }
.nav-links a.active, .nav-links a:hover { color: var(--red); font-weight: 600; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
.mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 13px 6%; border-top: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- 首屏 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #8f0f14 100%);
  color: #fff; padding: 46px 0 54px;
}
.hero-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-badge { width: 92px; height: 92px; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.hero h1 { font-size: 26px; line-height: 1.35; letter-spacing: .5px; }
.hero p { opacity: .92; font-size: 15px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #fff; color: var(--red); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-red { background: var(--red); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -30px auto 0; position: relative; }
.stat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 12px; text-align: center;
}
.stat-card b { display: block; font-size: 24px; color: var(--red); }
.stat-card small { color: var(--ink-2); font-size: 13px; }

/* ---------- 通用区块 ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 21px; }
.section-head .more { color: var(--blue); font-size: 14px; }

/* ---------- 活动卡片 ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.activity-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.cover { height: 120px; position: relative; }
.cover .tag {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92);
  color: var(--ink); font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.cover-red { background: linear-gradient(135deg, #d71920, #f0555b); }
.cover-blue { background: linear-gradient(135deg, #1b6ca8, #4a97c9); }
.cover-green { background: linear-gradient(135deg, #2e8b57, #57b983); }
.cover-orange { background: linear-gradient(135deg, #e8833a, #f5b06e); }
.cover-purple { background: linear-gradient(135deg, #7a5bbf, #a98fd6); }
.cover-darkred { background: linear-gradient(135deg, #7a161b, #a83237); }
.cover-pink { background: linear-gradient(135deg, #e06a9a, #f2a7c4); }

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 16px; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-2); font-size: 13px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags em { font-style: normal; font-size: 12px; color: var(--blue); background: var(--blue-light); padding: 3px 9px; border-radius: 999px; }

/* ---------- 详情页 ---------- */
.detail-head { padding: 30px 0 10px; }
.detail-head h1 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.meta-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.meta-box small { display: block; color: var(--ink-2); font-size: 12px; }
.meta-box b { font-size: 15px; }
.detail-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 18px 0; }
.detail-body p { color: var(--ink-2); }
.tip-box { background: var(--red-light); border-left: 4px solid var(--red); border-radius: 12px; padding: 16px; margin: 18px 0; }
.tip-box h3 { font-size: 15px; margin-bottom: 8px; color: var(--red-dark); }

/* ---------- 指引步骤 ---------- */
.steps { display: grid; gap: 16px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; }
.step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14px; }

/* ---------- 风采墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-item {
  border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: flex-end;
  padding: 12px; color: #fff; position: relative; overflow: hidden;
}
.gallery-item span { font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* ---------- 页脚 ---------- */
.site-footer { background: #1f2733; color: #c7cfd9; padding: 30px 0; margin-top: 30px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.site-footer p { font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { flex-direction: row; align-items: center; gap: 30px; }
  .hero h1 { font-size: 32px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .detail-meta { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
