/* ============================================================
   校社协同服务现代社区治理人才培养 · 教学成果展示网站
   共享样式表 — 蓝绿主题（呼应"蓝湾守望者"与环保公益）
   ============================================================ */

:root {
  --blue: #1b6ca8;        /* 主蓝 */
  --blue-dark: #144f7c;   /* 深蓝 */
  --green: #2e9e6b;       /* 主绿 */
  --green-dark: #1f7a50;  /* 深绿 */
  --orange: #f0923b;      /* 暖橙点缀 */
  --ink: #243640;         /* 正文深色 */
  --ink-light: #5b6f7a;   /* 次要文字 */
  --bg: #f6fafb;          /* 页面底色 */
  --card: #ffffff;
  --line: #dce8ec;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(20, 79, 124, 0.08);
  --shadow-hover: 0 8px 24px rgba(20, 79, 124, 0.16);
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue-dark); }
.brand .logo-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-light); line-height: 1.3; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink); font-size: 14.5px; white-space: nowrap;
}
.nav-links a:hover { background: #eaf4f0; color: var(--green-dark); }
.nav-links a.active { background: var(--blue); color: #fff; }
.nav-links a.active:hover { background: var(--blue-dark); }

@media (max-width: 900px) {
  .nav-bar { flex-direction: column; height: auto; padding: 10px 16px; gap: 8px; }
  .nav-links { justify-content: center; }
}

/* ---------- 页首横幅（内页） ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, var(--green) 100%);
  color: #fff; padding: 56px 0 48px;
}
.page-hero .crumb { font-size: 13px; opacity: 0.85; margin-bottom: 10px; }
.page-hero .crumb a { color: #fff; }
.page-hero h1 { font-size: 32px; letter-spacing: 1px; margin-bottom: 8px; }
.page-hero p.sub { font-size: 16px; opacity: 0.92; max-width: 760px; }

/* ---------- 首页主视觉 ---------- */
.home-hero {
  position: relative; color: #fff;
  background: linear-gradient(115deg, rgba(20,79,124,0.94) 0%, rgba(27,108,168,0.88) 55%, rgba(46,158,107,0.85) 100%);
  overflow: hidden;
}
.home-hero .wrap { padding-top: 84px; padding-bottom: 84px; position: relative; z-index: 2; }
.home-hero .kicker {
  display: inline-block; font-size: 14px; letter-spacing: 3px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  padding: 4px 16px; margin-bottom: 22px; opacity: 0.95;
}
.home-hero h1 { font-size: 42px; line-height: 1.35; letter-spacing: 2px; margin-bottom: 16px; }
.home-hero .sub { font-size: 18px; opacity: 0.95; max-width: 720px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-primary:hover { color: var(--green-dark); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: #eef6f4; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--blue-dark); letter-spacing: 1px; }
.section-title .en { font-size: 13px; letter-spacing: 3px; color: var(--green); text-transform: uppercase; margin-top: 4px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 2px;
}
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }

.lead { max-width: 860px; margin: 0 auto; text-align: center; color: var(--ink-light); font-size: 16.5px; }
.section-title.left + .lead { text-align: left; margin: 0 0 28px; }

/* ---------- 数据速览 ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px; margin-top: 8px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 18px; text-align: center; border-top: 4px solid var(--green);
}
.stat-card:nth-child(odd) { border-top-color: var(--blue); }
.stat-card .num { font-size: 38px; font-weight: 800; color: var(--blue-dark); line-height: 1.15; }
.stat-card .num small { font-size: 18px; font-weight: 700; }
.stat-card .label { font-size: 14px; color: var(--ink-light); margin-top: 6px; }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .thumb { height: 190px; overflow: hidden; background: #dfeaec; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; color: var(--blue-dark); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-light); flex: 1; }
.card .more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--green-dark); }
.card .more::after { content: " →"; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green)); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 34px 62px; }
.tl-item:last-child { padding-bottom: 6px; }
.tl-dot {
  position: absolute; left: 8px; top: 4px; width: 25px; height: 25px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); z-index: 2;
}
.tl-item:nth-child(even) .tl-dot { border-color: var(--green); }
.tl-date { font-size: 14px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.5px; }
.tl-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; margin-top: 8px;
}
.tl-card h3 { font-size: 17.5px; color: var(--blue-dark); margin-bottom: 6px; }
.tl-card p { font-size: 14.5px; color: var(--ink-light); }
.tl-card img { border-radius: 8px; margin-top: 12px; }

/* ---------- 图廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gallery figure {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.gallery img { width: 100%; height: 210px; object-fit: cover; }
.gallery figure.tall img { height: auto; }
.gallery figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--ink-light); }

/* ---------- 故事/亮点模块 ---------- */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 28px;
}
.story:nth-child(even) { direction: rtl; }
.story > * { direction: ltr; }
.story img { border-radius: 10px; box-shadow: var(--shadow); }
.story h3 { font-size: 21px; color: var(--blue-dark); margin-bottom: 10px; }
.story .tag {
  display: inline-block; font-size: 12.5px; color: var(--green-dark);
  background: #e6f4ee; border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; font-weight: 600;
}
.story p { color: var(--ink-light); font-size: 15px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- 荣誉展示 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.honor-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.honor-card img { border-radius: 8px; margin-bottom: 14px; }
.honor-card h3 { font-size: 16.5px; color: var(--blue-dark); }
.honor-card p { font-size: 13.5px; color: var(--ink-light); margin-top: 6px; }

/* ---------- 链接清单 ---------- */
.link-list { list-style: none; }
.link-list li {
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 12px; display: flex; gap: 14px; align-items: baseline;
}
.link-list .src {
  flex: none; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--blue); border-radius: 6px; padding: 2px 10px;
}
.link-list li:nth-child(even) .src { background: var(--green); }
.link-list a { font-size: 15px; font-weight: 600; }
.link-list .date { flex: none; font-size: 13px; color: var(--ink-light); margin-left: auto; }

/* ---------- 下载区 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.download-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
  padding: 18px 20px; border-left: 4px solid var(--blue);
}
.download-item:hover { box-shadow: var(--shadow-hover); }
.download-item .icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: #eaf3f9; color: var(--blue); font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.download-item .name { font-size: 15px; font-weight: 600; color: var(--ink); }
.download-item .meta { font-size: 12.5px; color: var(--ink-light); }

/* ---------- 占位提示 ---------- */
.placeholder {
  border: 2px dashed #b9d4c8; background: #f2faf6; border-radius: var(--radius);
  padding: 26px 28px; color: var(--ink-light); font-size: 14.5px;
}
.placeholder .ph-title { font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }

/* ---------- 引用 ---------- */
blockquote {
  border-left: 4px solid var(--green); background: #f0f8f4;
  padding: 18px 22px; border-radius: 0 10px 10px 0;
  color: var(--ink); font-size: 15.5px; margin: 20px 0;
}
blockquote footer { font-size: 13px; color: var(--ink-light); margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.85);
  padding: 44px 0 26px; margin-top: 0;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer p, .site-footer a { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18); margin-top: 30px; padding-top: 18px;
  font-size: 12.5px; color: rgba(255,255,255,0.55); text-align: center;
}
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- 小工具 ---------- */
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.text-muted { color: var(--ink-light); font-size: 14px; }
