/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff; font-size: 20px; font-weight: bold;
  border-radius: 8px;
}
.logo-text { font-size: 18px; font-weight: 600; color: #c62828; }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  text-decoration: none; color: #555; font-size: 14px;
  padding: 8px 14px; border-radius: 6px; transition: all 0.2s;
}
.nav-links a:hover { background: #fce4ec; color: #c62828; }

/* ===== 主横幅 ===== */
.hero {
  position: relative; height: 85vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #4a1010 30%, #c62828 70%, #d32f2f 100%);
  margin-top: 64px;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 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.05'%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");
  opacity: 0.3;
}
.hero-content { position: relative; text-align: center; color: #fff; padding: 0 20px; z-index: 1; }
.hero-content h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; letter-spacing: 4px; }
.hero-subtitle { font-size: 20px; margin-bottom: 40px; opacity: 0.9; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 36px; border-radius: 50px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  transition: all 0.3s; cursor: pointer;
}
.btn-primary { background: #fff; color: #c62828; }
.btn-primary:hover { background: #fce4ec; transform: translateY(-2px); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-secondary { background: #c62828; color: #fff; }
.btn-secondary:hover { background: #b71c1c; transform: translateY(-2px); }

/* ===== 通用区块 ===== */
.section { padding: 80px 0; }
.section-alt { background: #fafafa; }
.section-title {
  text-align: center; font-size: 32px; font-weight: 700;
  color: #c62828; margin-bottom: 12px; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: #c62828; margin: 16px auto 0; border-radius: 2px;
}
.section-desc { text-align: center; color: #777; margin-bottom: 48px; font-size: 16px; }
.section-more { text-align: center; margin-top: 40px; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 16px; font-size: 15px; color: #555; text-indent: 2em; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat-item {
  background: #fff; padding: 24px 16px; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stat-number { display: block; font-size: 32px; font-weight: 700; color: #c62828; }
.stat-label { display: block; font-size: 14px; color: #999; margin-top: 4px; }

/* ===== 业务范围 ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; padding: 36px 24px; border-radius: 12px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 12px; color: #c62828; }
.service-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== 卡片通用 ===== */
.activities-grid, .courses-grid, .articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.activity-card, .course-card, .article-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s;
}
.activity-card:hover, .course-card:hover, .article-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
}
.card-img span { font-size: 48px; opacity: 0.7; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 16px; margin-bottom: 8px; color: #333; }
.card-body p { font-size: 13px; color: #999; margin-bottom: 12px; }
.card-tag {
  display: inline-block; padding: 2px 10px; font-size: 12px;
  color: #c62828; background: #fce4ec; border-radius: 20px;
}

/* ===== 联系我们 ===== */
.contact-section { background: linear-gradient(135deg, #1a0a0a, #c62828); color: #fff; }
.contact-section .section-title { color: #fff; }
.contact-section .section-title::after { background: #fff; }
.contact-section .section-desc { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.contact-icon { font-size: 24px; width: 32px; text-align: center; }
.contact-qr { text-align: center; }
.qr-placeholder {
  width: 180px; height: 180px; margin: 0 auto;
  background: rgba(255,255,255,0.15); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 14px; opacity: 0.8;
}

/* ===== 页脚 ===== */
.footer {
  background: #1a0a0a; color: rgba(255,255,255,0.6);
  text-align: center; padding: 40px 0; font-size: 14px;
}
.footer p { margin-bottom: 4px; }

/* ===== 占位符 ===== */
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; }
.placeholder h3 { color: #999; }
.placeholder p { color: #ccc; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid, .courses-grid, .articles-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
