/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --red: #CC0000;
  --red-dark: #8B0000;
  --red-light: #FFEBEE;
  --gold: #FFD700;
  --gold-light: #FFF8DC;
  --text: #1A1A1A;
  --text-mid: #555;
  --text-light: #888;
  --border: #E0E0E0;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --radius: 10px;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Serif SC', 'SimSun', '宋体', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.star-icon { color: var(--gold); font-size: 1.1em; }
.star-icon-lg { color: var(--gold); font-size: 2.5rem; display: block; margin: 0 auto 8px; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: .92rem;
  transition: .18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.15); }
.nav-links .nav-admin {
  background: rgba(255,215,0,.15);
  color: var(--gold);
  border: 1px solid rgba(255,215,0,.3);
}
.nav-links .nav-admin:hover { background: var(--gold); color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #8B0000 0%, #CC0000 40%, #B22222 100%);
  padding: 60px 16px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-flag-wrap {
  flex-shrink: 0;
  width: 340px;
  max-width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  animation: flagFloat 4s ease-in-out infinite;
}
.flag-svg { width: 100%; height: auto; }
.route-node { animation: nodePulse 2s ease-in-out infinite; }
.route-node:nth-child(2) { animation-delay: .3s; }
.route-node:nth-child(3) { animation-delay: .6s; }
.route-node:nth-child(4) { animation-delay: .9s; }

@keyframes flagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes nodePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.hero-text { color: #fff; text-align: center; flex: 1; min-width: 240px; }
.group-badge {
  display: inline-block;
  background: rgba(255,215,0,.2);
  border: 1px solid rgba(255,215,0,.5);
  color: var(--gold);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .88rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.hero-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 3rem;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 20px;
}
.slogan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.slogan-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.95);
  letter-spacing: 1px;
  text-align: center;
}
.queue-song {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.song-label {
  background: var(--gold);
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}
.song-title { color: var(--gold); font-size: 1.05rem; font-style: italic; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; overflow: hidden; }
.hero-wave svg { width: 100%; height: 100%; }

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 56px 16px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.6rem;
  color: var(--red-dark);
  position: relative;
  padding-left: 16px;
}
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--red);
  border-radius: 2px;
}
.view-all {
  color: var(--red);
  font-size: .9rem;
  border: 1px solid var(--red);
  padding: 5px 14px;
  border-radius: 4px;
  transition: .15s;
}
.view-all:hover { background: var(--red); color: #fff; }

/* ─── INFO CARDS ─────────────────────────────────────────────── */
.info-section { background: #fff; }
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 4px solid var(--red);
  transition: .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.15rem; color: var(--red-dark); margin-bottom: 8px; }
.info-card p { color: var(--text-mid); font-size: .92rem; line-height: 1.7; }

/* ─── ACTIVITY CARDS ─────────────────────────────────────────── */
.activities-preview { background: var(--bg); }
.act-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.act-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
  transition: .2s;
}
.act-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.act-date { font-size: .8rem; color: var(--text-light); margin-bottom: 8px; }
.act-card h3 { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.1rem; color: var(--red-dark); margin-bottom: 6px; }
.act-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px; }
.act-meta { font-size: .82rem; color: var(--text-light); }

/* ─── REPORTS STATUS ─────────────────────────────────────────── */
.reports-status { background: #fff; }
.submitted-list { margin-top: 16px; }
.submitted-hint { color: var(--text-mid); margin-bottom: 14px; font-size: .92rem; }
.name-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.name-tag {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .88rem;
}
.no-data-box {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
}

/* ─── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #8B0000 0%, #CC0000 100%);
  color: #fff;
  text-align: center;
  padding: 50px 16px 44px;
}
.page-hero-sm { padding: 36px 16px 32px; }
.page-hero h1 { font-family: 'ZCOOL XiaoWei', serif; font-size: 2.2rem; margin-bottom: 8px; letter-spacing: 3px; }
.page-hero p { opacity: .85; font-size: .95rem; }

/* ─── ACTIVITIES PAGE ────────────────────────────────────────── */
.activity-block {
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.activity-title-row { margin-bottom: 16px; }
.activity-title { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.4rem; color: var(--red-dark); margin-bottom: 4px; }
.activity-date { font-size: .85rem; color: var(--text-light); }
.activity-desc { font-size: .9rem; color: var(--text-mid); margin-top: 8px; }
.media-section-label { font-size: .88rem; color: var(--text-light); margin: 16px 0 10px; font-weight: 600; }
.no-media-hint { color: var(--text-light); font-size: .88rem; padding: 8px 0; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.photo-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: .2s;
  color: #fff;
  font-size: .85rem;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  padding: 4px 8px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.video-item { border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.video-item video { width: 100%; max-height: 280px; display: block; }
.video-caption { background: #f5f5f5; padding: 6px 10px; font-size: .82rem; color: var(--text-mid); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-inner img { max-width: 100%; max-height: 80vh; border-radius: 6px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -8px;
  color: #fff;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px;
  opacity: .7;
  transition: .15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { color: rgba(255,255,255,.8); font-size: .88rem; margin-top: 10px; text-align: center; }

/* ─── REPORTS / FORM ─────────────────────────────────────────── */
.form-container { max-width: 820px; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.guide-card { border-radius: var(--radius); padding: 20px 18px; line-height: 1.65; }
.guide-analysis { background: #fff8f8; border-left: 4px solid var(--red); }
.guide-training { background: #fffde7; border-left: 4px solid #FFA000; }
.guide-title { font-weight: 700; font-size: .95rem; margin-bottom: 8px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guide-length { font-size: .78rem; font-weight: 400; background: var(--red); color: #fff; padding: 1px 7px; border-radius: 10px; }
.guide-theme { font-size: .85rem; color: var(--red-dark); margin-bottom: 6px; }
.guide-body { font-size: .85rem; color: var(--text-mid); }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 28px;
}
.form-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.3rem;
  color: var(--red-dark);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.label-hint { font-weight: 400; color: var(--text-light); margin-left: 6px; font-size: .82rem; }
.required { color: var(--red); margin-left: 2px; }
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: .15s;
  background: #fff;
  color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .92rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: .15s;
  line-height: 1.7;
  background: #fff;
  color: var(--text);
}
.form-textarea-lg { min-height: 280px; }
.form-textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
.char-count-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.char-count { font-size: .78rem; color: var(--text-light); }
.form-actions { margin-top: 24px; text-align: center; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: .9rem;
  transition: .15s;
  border: none;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-submit {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
  letter-spacing: 1px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,0,.3); }
.form-note { margin-top: 10px; font-size: .8rem; color: var(--text-light); }

.submitted-status { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.submitted-status h3 { padding: 16px 20px; background: #f9f9f9; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
.submitted-table-wrap { overflow-x: auto; }
.submitted-table { width: 100%; border-collapse: collapse; }
.submitted-table th { padding: 10px 16px; text-align: left; font-size: .85rem; color: var(--text-light); background: #fafafa; border-bottom: 2px solid var(--border); }
.submitted-table td { padding: 10px 16px; border-bottom: 1px solid #f5f5f5; font-size: .9rem; }
.submitted-table tr:last-child td { border-bottom: none; }
.submitted-name { font-weight: 600; }
.submit-time { color: var(--text-light); font-size: .82rem; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert { border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; font-size: .92rem; line-height: 1.5; }
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; }

/* ─── ADMIN LOGIN ────────────────────────────────────────────── */
.admin-body {
  background: linear-gradient(135deg, #8B0000 0%, #CC0000 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login-wrap { width: 100%; max-width: 380px; }
.admin-login-card { background: #fff; border-radius: var(--radius); padding: 36px 28px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.admin-login-logo { text-align: center; margin-bottom: 24px; }
.admin-login-logo h1 { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.6rem; color: var(--red-dark); }
.admin-login-logo p { color: var(--text-light); font-size: .88rem; margin-top: 4px; }
.admin-back { text-align: center; margin-top: 20px; }
.admin-back a { color: var(--text-light); font-size: .85rem; text-decoration: underline; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--red-dark); color: rgba(255,255,255,.7); padding: 24px 16px; }
.footer-content { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: 'ZCOOL XiaoWei', serif; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.footer-slogan { font-size: .82rem; letter-spacing: 1px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--red-dark);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; border-radius: 0; }
  .navbar { position: relative; }

  .hero { padding: 36px 16px 60px; }
  .hero-content { gap: 28px; }
  .hero-flag-wrap { width: 280px; }
  .hero-title { font-size: 2.2rem; }
  .slogan-grid { max-width: 260px; }

  .section { padding: 36px 16px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .page-hero h1 { font-size: 1.8rem; }
  .guide-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-flag-wrap { width: 240px; }
  .hero-title { font-size: 1.8rem; letter-spacing: 3px; }
  .slogan-grid { max-width: 220px; }
  .slogan-item { font-size: .88rem; padding: 6px 8px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
