/* ============================================================
   中国美术学院社会艺术水平考级 · 云逸书院考点
   视觉规范对齐「中国美术学院社会艺术水平考级管理系统」
   主色取自官方：品牌红 #b60511 · 亮红 #d8010f · 黑 #0d0d0d · 页脚 #303030
   ============================================================ */
:root {
  --brand: #b60511;      /* 官方顶栏红 */
  --brand-2: #d8010f;    /* 官方亮红：按钮 / 激活 */
  --brand-d: #8c040d;    /* 深红：hover */
  --nav-black: #0d0d0d;  /* 官方二级导航黑 */
  --footer: #303030;     /* 官方页脚深灰 */
  --ink: #222222;
  --ink-2: #555555;
  --ink-3: #888888;
  --bg: #ffffff;
  --bg-2: #f5f6f7;
  --line: #e6e6e6;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", Arial, Helvetica, sans-serif;
  --font-call: "KaiTi", "STKaiti", "楷体", "Kaiti SC", serif;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); }

/* ===== 页眉（官方红）===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  min-height: 74px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.cafa-logo { height: 46px; display: block; }
.header-divider { width: 1px; height: 46px; background: rgba(255, 255, 255, .42); flex: 0 0 auto; }
.header-sub { color: #fff; font-size: 17px; letter-spacing: 1.5px; white-space: nowrap; }

.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a.active { background: var(--brand-2); color: #fff; }

/* ===== 主视觉 ===== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 74px 24px 66px;
  background: linear-gradient(120deg, #b60511 0%, #8c040d 58%, #690308 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .12), transparent 42%),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, .09), transparent 42%);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-cn { font-family: var(--font-call); font-size: 50px; font-weight: 400; letter-spacing: 12px; }
.hero-en { font-size: 14px; letter-spacing: 6px; color: rgba(255, 255, 255, .82); margin-top: 10px; text-transform: uppercase; }
.hero-line { width: 72px; height: 2px; background: rgba(255, 255, 255, .72); margin: 22px auto; }
.hero-sub { font-size: 21px; letter-spacing: 3px; }
.hero-intro { max-width: 680px; margin: 16px auto 0; color: rgba(255, 255, 255, .86); font-size: 15px; }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--brand-2);
  padding: 12px 40px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .24); }
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: #f6ecec; color: var(--brand-d); }
.btn-ghost {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .85);
  padding: 11px 38px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: #fff; color: var(--brand); }

/* 公告内成绩查询链接 */
.ann-score-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-2);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--brand-2);
  padding-bottom: 2px;
}
.ann-score-link:hover { color: var(--brand-d); }

/* ===== 区块 ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 58px 24px 10px; }
.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 30px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand-2);
}
.section-sub { text-align: center; color: var(--ink-2); margin-bottom: 28px; font-size: 15px; }

/* ===== 公告 ===== */
.ann-list { display: flex; flex-direction: column; gap: 20px; }
.ann-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-2);
  border-radius: 3px;
  padding: 24px 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}
.ann-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ann-tag { background: var(--brand-2); color: #fff; font-size: 13px; padding: 3px 11px; border-radius: 2px; letter-spacing: 1px; }
.ann-tag--active {
  background: var(--brand);
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-2);
  animation: annPulse 1.8s ease-in-out infinite;
}
@keyframes annPulse {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-2); }
  50% { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(216, 1, 15, .35); }
}
.ann-card--current { border-top-color: var(--brand); }
.ann-title { font-size: 20px; flex: 1; min-width: 200px; color: var(--ink); }
.ann-date { font-size: 13px; color: var(--ink-3); }
.ann-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--bg-2);
  border-radius: 3px;
  padding: 16px 14px;
  margin-bottom: 16px;
}
.ann-time { text-align: center; }
.t-label { display: block; font-size: 13px; color: var(--ink-2); }
.t-val { display: block; font-size: 17px; font-weight: 700; color: var(--brand-2); margin-top: 2px; }
.ann-body { color: var(--ink-2); font-size: 15px; }

/* ===== 报名流程 ===== */
.process-list { list-style: none; max-width: 780px; margin: 0 auto; position: relative; }
.process-list::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.process-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; position: relative; }
.p-step {
  flex: 0 0 40px;
  height: 40px;
  background: var(--brand-2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(182, 5, 17, .28);
  z-index: 1;
}
.p-text h4 { font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.p-text p { color: var(--ink-2); font-size: 15px; }
.process-cta { text-align: center; margin-top: 14px; }
.wechat-tip { margin-top: 14px; color: var(--ink-3); font-size: 14px; }

/* ===== 考级项目 ===== */
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject-card {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  border-radius: 3px;
  padding: 20px 22px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0, 0, 0, .1); border-bottom-color: var(--brand-2); }
.s-name { font-size: 19px; color: var(--ink); }
.s-level { display: inline-block; font-size: 13px; color: var(--brand-2); border: 1px solid var(--brand-2); border-radius: 2px; padding: 1px 8px; margin: 8px 0 10px; }
.s-desc { color: var(--ink-2); font-size: 14px; }

/* ===== 简讯 ===== */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.news-date { flex: 0 0 96px; color: var(--brand-2); font-weight: 700; font-size: 15px; padding-top: 2px; }
.news-content h4 { font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.news-content p { color: var(--ink-2); font-size: 15px; }

/* ===== 证书展示 ===== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .14); }
.cert-card img { box-sizing: border-box; width: 100%; height: 320px; object-fit: contain; display: block; padding: 10px; background: #f7f5f1; }
.cert-card figcaption { padding: 12px 14px; font-size: 14px; color: var(--ink-2); text-align: center; }
.cert-card figcaption strong { color: var(--ink); }

/* ===== 页脚（官方深灰）===== */
.site-footer {
  margin-top: 56px;
  padding: 30px 24px;
  text-align: center;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  background: var(--footer);
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.footer-admin-wrap { margin-top: 10px; }
.footer-admin {
  display: inline-block;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 5px 14px;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.footer-admin:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* 后台管理入口（悬浮按钮，手机/电脑均可快速进入） */
.admin-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  background: var(--brand-2);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 11px 18px;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(182, 5, 17, .42);
  transition: background .15s, transform .15s;
}
.admin-fab:hover { background: var(--brand); transform: translateY(-2px); }

/* ===== 灯箱 ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 12, 12, .86); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90%; max-height: 88%; border: 6px solid #fff; border-radius: 3px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 10px 14px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .ann-times { grid-template-columns: repeat(2, 1fr); }
  .subject-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cn { font-size: 34px; letter-spacing: 6px; }
  .hero-sub { font-size: 18px; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-date { flex-basis: auto; }
  .cafa-logo { height: 40px; }
  .header-sub { font-size: 15px; }
}
@media (max-width: 480px) {
  .subject-grid, .cert-grid { grid-template-columns: 1fr; }
  .header-divider { display: none; }
  .admin-fab { right: 14px; bottom: 14px; padding: 10px 15px; font-size: 13px; }
}
