
/* ============================================
   勇哥说38 · 全站样式
   ============================================ */

:root {
  --primary: #1a3a5c;
  --accent: #f0a500;
  --accent2: #e03a2f;
  --bg: #f5f5f0;
  --white: #ffffff;
  --text: #222222;
  --text-light: #666666;
  --border: #e0ddd5;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 10px;
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ============ 导航 ============ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { font-size: 28px; }

.logo-text strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 1px;
}

.logo-text small {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(240,165,0,0.12);
}
.btn-contact {
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 9px 20px !important;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #ffc233 !important;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 20px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  background: var(--primary);
  padding: 10px 20px;
}

.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li a {
  display: block;
  color: rgba(255,255,255,0.9);
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ============ 英雄区 ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg,#0d2137 0%,#1a3a5c 50%,#0f2940 100%);
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.4);
  color: var(--accent);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px,5vw,52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 2;
}

.hero-sub strong { color: var(--accent); }

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.4);
  color: var(--accent);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px,5vw,52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 2;
}

.hero-sub strong { color: var(--accent); }

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #ffc233;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,165,0,0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 40px; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-num em { font-style: normal; font-size: 18px; color: rgba(255,255,255,0.7); }
.stat-label { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 4px; }
/* ============ 通用 Section ============ */
.section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p { color: var(--text-light); font-size: 16px; }

.section-label {
  display: inline-block;
  background: rgba(240,165,0,0.12);
  color: #b07800;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ============ 价值卡片 ============ */
.values-section { background: white; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.value-icon { font-size: 44px; margin-bottom: 16px; }
.value-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.value-card p { color: var(--text-light); font-size: 15px; line-height: 1.75; }
/* ============ 关于预览 ============ */
.about-preview { background: var(--bg); }

.about-preview-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  object-fit: cover;
  aspect-ratio: 3/4;
  background: #1a3a5c;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.badge {
  background: var(--primary);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.about-preview-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-highlight {
  background: linear-gradient(135deg,#fff8e6,#ffeec9);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 15px;
  font-style: italic;
  color: #5a4400;
}
/* ============ 安全系列预览 ============ */
.safety-preview { background: white; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  gap: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.article-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(26,58,92,0.15);
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.article-tag {
  display: inline-block;
  background: var(--accent2);
  color: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-methods {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  min-width: 220px;
}

.contact-icon { font-size: 32px; }
.contact-item strong { display: block; font-size: 13px; color: var(--text-light); }
.contact-item span { font-size: 17px; font-weight: 700; color: var(--primary); }
.contact-tip { color: var(--text-light); font-size: 15px; font-style: italic; }

/* ============ 底部 ============ */
.site-footer {
  background: #0d2137;
  color: rgba(255,255,255,0.75);
  padding: 52px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-brand p { font-size: 13px; line-height: 2; }
.footer-nav h4, .footer-contact h4 { color: white; font-size: 15px; margin-bottom: 14px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 13px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact p { font-size: 13px; line-height: 2; }
.footer-beian {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-beian a { color: rgba(255,255,255,0.35); }
.footer-beian a:hover { color: rgba(255,255,255,0.7); }

.footer-disclaimer {
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .about-preview-inner,
  .course-preview-inner,
  .about-main-inner,
  .course-main-inner { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .about-preview-img, .about-photo-wrap { max-width: 320px; margin: 0 auto; }
  .course-visual, .course-sidebar-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .main-nav, .header-contact { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 60px 0; }
  .hero-stats { gap: 30px; }
  .stat-num { font-size: 30px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary,.btn-secondary { width: 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .contact-methods { flex-direction: column; align-items: center; }
}
/* ============ 课程页面模块卡片 ============ */
.course-modules-compact {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.compact-module {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,#0d2137,#1a3a5c);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  flex: 1;
  min-width: 160px;
}

.compact-module-icon { font-size: 26px; }
.compact-module strong { font-size: 15px; font-weight: 700; display: block; }
.compact-module small { font-size: 11px; opacity: 0.7; }

.modules-overview { padding: 60px 0; }
.modules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 36px; }

.module-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.module-1::before { background: #e74c3c; }
.module-1:hover { border-color: #e74c3c; transform: translateY(-4px); }
.module-2::before { background: #f39c12; }
.module-2:hover { border-color: #f39c12; transform: translateY(-4px); }
.module-3::before { background: #27ae60; }
.module-3:hover { border-color: #27ae60; transform: translateY(-4px); }

.module-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.module-1 .module-num { background: #fdecea; color: #e74c3c; }
.module-2 .module-num { background: #fef6e7; color: #d68910; }
.module-3 .module-num { background: #eafaf1; color: #27ae60; }
.module-card h3 { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.module-card p { color: var(--text-light); font-size: 14px; line-height: 1.85; margin-bottom: 16px; }
.module-covers {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  background: var(--primary);
  padding: 5px 16px;
  border-radius: 50px;
}


.qrcode-box{margin-top:28px;padding:24px;background:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 2px 12px rgba(0,0,0,.1)}
.qrcode-img{width:180px;height:180px;border-radius:8px}
.qrcode-box p{color:#666;font-size:14px}