/* CMO17 班级网站 · 视觉规范
   主色：中欧红 #A6192E ｜ 辅色：炭墨 #2B2B33 ｜ 底：暖白 #FBFAF8
   标题衬线 / 正文无衬线 ｜ 移动优先（微信内置浏览器为主要场景） */

:root {
  --red: #A6192E;
  --red-deep: #8C1526;
  --ink: #2B2B33;
  --ink-soft: #5A5A66;
  --line: #E8E4DE;
  --paper: #FBFAF8;
  --card: #FFFFFF;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- 页头 ---------- */
.topbar {
  border-top: 4px solid var(--red);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; background: var(--red); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.brand .sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 2px; display: block; margin-top: -3px; }
nav.menu { display: flex; gap: 18px; font-size: 14px; flex-shrink: 0; }
nav.menu a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
nav.menu a.on, nav.menu a:hover { color: var(--red); }

/* ---------- 首页主视觉 ---------- */
.hero { padding: 52px 0 40px; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: 2px; line-height: 1.4;
}
.hero .divider {
  width: 48px; height: 3px; background: var(--red);
  margin: 18px auto;
}
.hero p { color: var(--ink-soft); font-size: 15px; max-width: 480px; margin: 0 auto; }

/* ---------- 区块 ---------- */
section.block { padding: 8px 0 40px; }
.block-title {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  letter-spacing: 1.5px; display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.block-title::before { content: ""; width: 4px; height: 20px; background: var(--red); }

/* ---------- 活动卡片 ---------- */
.event-card {
  background: var(--card); border: 1px solid var(--line);
  display: flex; gap: 16px; padding: 18px;
  margin-bottom: 14px; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease;
}
.event-card:hover { box-shadow: 0 4px 16px rgba(43,43,51,.08); }
.event-date {
  flex: 0 0 62px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px;
}
.event-date .d { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--red); line-height: 1.1; }
.event-date .m { font-size: 12px; color: var(--ink-soft); letter-spacing: 1px; }
.event-body h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.event-body .meta { font-size: 13px; color: var(--ink-soft); }
.tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; margin-left: 8px;
  border: 1px solid var(--red); color: var(--red); vertical-align: 2px;
}
.tag.gray { border-color: var(--ink-soft); color: var(--ink-soft); }

/* 活动分类标示：班级活动（强调）> CMO俱乐部 > 泛中欧 */
.cat-row { margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.cat-row .tag { margin-left: 0; vertical-align: baseline; }
.cat {
  display: inline-block; font-size: 11px; padding: 2px 9px;
  letter-spacing: 1px; font-weight: 600;
}
.cat.cat-class { background: var(--red); color: #fff; }
.cat.cat-club  { background: transparent; color: var(--red); border: 1px solid var(--red); }
.cat.cat-ceibs { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.event-card.cat-class {
  border-left: 4px solid var(--red);
  background: #FFFDFB;
  box-shadow: 0 2px 10px rgba(166,25,46,.07);
}
.event-card.cat-class .event-body h3 { font-size: 17.5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff;
  padding: 10px 26px; text-decoration: none; font-size: 14.5px;
  letter-spacing: 1px; border: none; cursor: pointer;
}
.btn:hover { background: var(--red-deep); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }

/* ---------- 详情页 ---------- */
.article { background: var(--card); border: 1px solid var(--line); padding: 32px 26px; margin: 32px 0; }
.article h1 { font-family: var(--serif); font-size: 24px; letter-spacing: 1px; line-height: 1.45; }
.article .lede { color: var(--ink-soft); font-size: 14px; margin: 10px 0 4px; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.article h2 {
  font-family: var(--serif); font-size: 17.5px; margin: 26px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.article h2::before { content: ""; width: 3px; height: 16px; background: var(--red); }
.article p, .article li { font-size: 15px; color: var(--ink); }
.article ul { padding-left: 20px; }

/* 行程表 */
table.sched { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
table.sched th { white-space: nowrap;
  background: var(--red); color: #fff; font-weight: 500;
  padding: 8px 10px; text-align: left; letter-spacing: 1px;
}
table.sched td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sched tr td:first-child { white-space: nowrap; color: var(--red); font-weight: 600; }

.notice {
  background: #FAF3F0; border-left: 3px solid var(--red);
  padding: 12px 16px; font-size: 14px; margin: 16px 0;
}

/* ---------- 相册占位 ---------- */
.placeholder {
  text-align: center; padding: 70px 20px; color: var(--ink-soft);
  border: 1px dashed var(--line); background: var(--card); margin: 32px 0;
}
.placeholder .big { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 30px;
  padding: 26px 0 40px; text-align: center;
  font-size: 12.5px; color: var(--ink-soft); letter-spacing: 1px;
}
footer .footline { width: 36px; height: 2px; background: var(--red); margin: 0 auto 14px; }

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  nav.menu { gap: 12px; font-size: 13px; }
  .article { padding: 24px 18px; }
}

/* ---------- 班级足迹时间轴 ---------- */
.timeline { position: relative; padding-left: 4px; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: ""; position: absolute; left: 86px; top: 18px; bottom: -4px;
  width: 1px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-date {
  flex: 0 0 68px; text-align: right;
  font-family: var(--serif); font-weight: 700; font-size: 14.5px; color: var(--red);
  padding-top: 1px; letter-spacing: .5px;
}
.tl-dot {
  flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); margin-top: 7px; position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--paper);
}
.tl-body { flex: 1; }
.tl-title { font-size: 15.5px; font-weight: 600; }
.tl-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 班徽 ---------- */
.brand .mark-img { width: 38px; height: 38px; display: block; }
.hero-badge { width: 92px; height: 92px; margin: 0 auto 18px; display: block; }
