/* ============ 崇左瑞华官网主页 v4 · 全屏背景 · 大气商务 ============ */
:root {
  --navy: #16324f;
  --navy-deep: #0e2338;
  --navy-light: #234b6e;
  --gold: #c9a86a;
  --gold-deep: #b8860b;
  --gold-light: #e8d5ae;
  --red: #d92d20;
  --ink: #1f2a37;
  --muted: #5b6776;
  --line: #e6e9ee;
  --bg: #f7f8fa;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
}
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 134, 11, .3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184, 134, 11, .4); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline.dark { color: var(--navy); border-color: var(--navy); }
.btn-study {
  background: linear-gradient(135deg, #e73323, #c41e14);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 45, 32, .3);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-study:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 45, 32, .4); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 35, 56, .96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}
.topbar-inner { display: flex; align-items: center; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.brand-logo svg { display: block; width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { color: var(--gold-light); font-size: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav-link { color: #c9d3dd; font-size: 15px; position: relative; padding: 4px 0; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold);
}
.nav-cta { flex-shrink: 0; padding: 9px 18px; font-size: 14px; }
.menu-toggle { display: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero 全屏背景 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 100vh; min-height: 760px;
  display: flex; align-items: center;
  padding-top: 74px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
  filter: brightness(1.02) saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,35,56,.88) 0%, rgba(14,35,56,.66) 34%, rgba(14,35,56,.28) 60%, rgba(14,35,56,.06) 100%),
    linear-gradient(180deg, rgba(14,35,56,.35) 0%, rgba(14,35,56,0) 28%, rgba(14,35,56,0) 72%, rgba(14,35,56,.45) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 60px 20px 50px; }
.hero-main {
  display: flex; gap: 60px; align-items: center; justify-content: space-between;
  margin-bottom: 50px;
}
.hero-text { flex: 1.3; min-width: 320px; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,106,.22);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 14px;
  padding: 7px 18px;
  border-radius: 24px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.15; margin-bottom: 22px; letter-spacing: 2px; }
.hero-desc { font-size: 19px; color: #e0e8f0; line-height: 1.9; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 右侧联系卡片 */
.hero-contact-card {
  flex: .5; min-width: 260px; max-width: 320px;
  background: rgba(14,35,56,.62);
  border: 1px solid rgba(201,168,106,.45);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hcc-title {
  font-size: 18px; font-weight: 700; color: var(--gold-light);
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,106,.3);
}
.hcc-item { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hcc-icon { font-size: 22px; width: 28px; text-align: center; }
.hcc-body { display: flex; flex-direction: column; line-height: 1.4; }
.hcc-label { font-size: 12px; color: #9db0c2; }
.hcc-body a, .hcc-body span:last-child { color: #fff; font-size: 15px; font-weight: 600; }
.hcc-body a:hover { text-decoration: underline; color: var(--gold-light); }

/* 核心信息卡 */
.info-strip {
  display: flex; flex-direction: column; gap: 16px;
}
.info-card {
  background: rgba(14,35,56,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  backdrop-filter: blur(6px);
}
.info-card.info-address { max-width: 100%; }
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-icon { font-size: 28px; flex-shrink: 0; }
.info-body { flex: 1; }
.info-label { font-size: 13px; color: #9db0c2; margin-bottom: 5px; }
.info-value { font-size: 15px; color: #fff; font-weight: 600; line-height: 1.5; }
.info-value .tel { color: var(--gold-light); }

/* ---------- 最新开班通知区块 ---------- */
.notice-section { background: #fff8e6; border-bottom: 1px solid #f0e0b8; padding: 26px 0; }
.notice-section-inner {
  display: flex; align-items: center; gap: 22px;
}
.notice-icon { font-size: 36px; }
.notice-content { flex: 1; }
.notice-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.notice-list { font-size: 15px; color: var(--ink); }
.notice-list span { margin-right: 24px; }
.notice-btn { color: var(--navy); border-color: var(--navy); padding: 9px 20px; }

/* ---------- 通用 section ---------- */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head.left { text-align: left; }
.section-title { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; position: relative; display: inline-block; }
.section-title::after {
  content: ""; display: block; width: 52px; height: 3px; background: var(--gold);
  margin: 14px auto 0; border-radius: 2px;
}
.section-head.left .section-title::after { margin-left: 0; }
.section-title.light { color: #fff; }
.section-title.light::after { background: var(--gold); }
.section-sub { color: var(--muted); font-size: 16px; }
.section-sub.light { color: #c9d3dd; }
.section-more { text-align: center; margin-top: 32px; }

/* ---------- 培训项目 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); transition: all .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(22,50,79,.12); border-color: var(--gold-light); }
.course-cover {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 46px; position: relative;
}
.course-cover .line-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(201,168,106,.9); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 4px;
}
.course-body { padding: 20px; }
.course-name { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.course-desc { font-size: 14px; color: var(--muted); min-height: 40px; }

/* ---------- 机构简介 v2 ---------- */
.about-section { display: grid; gap: 44px; }
.about-main {
  background: var(--navy); color: #d5dee7; border-radius: 16px;
  padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.about-main .section-title { color: #fff; }
.about-main .section-sub { color: var(--gold-light); }
.about-body { font-size: 15px; line-height: 2; }
.about-body p { margin-bottom: 16px; }
.about-stats { display: flex; gap: 28px; }
.about-stat { text-align: center; }
.as-num { display: block; font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.as-label { font-size: 13px; color: #9db0c2; }
.about-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px;
  text-align: center; transition: all .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(22,50,79,.1); }
.feature-card .feature-icon { font-size: 38px; margin-bottom: 14px; }
.feature-card h4 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 开班动态 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 22px; cursor: pointer;
  transition: all .2s;
}
.news-item:hover { border-color: var(--gold-light); box-shadow: 0 8px 24px rgba(22,50,79,.08); }
.news-tag {
  display: inline-block; font-size: 12px; color: var(--gold-deep);
  background: #faf3e3; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.news-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.news-summary { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 视频课堂 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: all .2s; cursor: pointer; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(22,50,79,.14); }
.video-cover {
  height: 140px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0e2338, #234b6e); color: #fff; font-size: 36px;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.video-play {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(201,168,106,.92);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
  position: relative; z-index: 2;
}
.video-body { padding: 16px; }
.video-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.video-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 在线报名 / 联系 ---------- */
.enroll-section { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.enroll-left { color: #d5dee7; }
.enroll-left .section-title { margin-bottom: 18px; }
.enroll-contact .ec-item { font-size: 16px; margin-bottom: 14px; color: #d5dee7; }
.enroll-contact .ec-item .tel { color: var(--gold-light); font-weight: 600; }
.enroll-wx { margin-top: 24px; text-align: center; }
.enroll-wx img { width: 130px; height: 130px; border-radius: 8px; background: #fff; padding: 4px; }
.enroll-wx p { font-size: 13px; margin-top: 8px; }
.enroll-right { min-width: 300px; }
.enroll-form-card { background: #fff; border-radius: 14px; padding: 32px; }
.enroll-form-card h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.form-intro { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-row2 { display: flex; gap: 16px; }
.form-field { margin-bottom: 18px; flex: 1; }
.form-field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.form-field label em { color: #d92d20; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fbfcfd;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,168,106,.15);
}
.form-field textarea { resize: vertical; }
.form-tip { margin-top: 12px; font-size: 13px; color: var(--gold-deep); text-align: center; min-height: 18px; }
.form-tip.err { color: #d92d20; }

/* 多选工种 */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-group label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fbfcfd; cursor: pointer; font-weight: 500; font-size: 14px;
  transition: all .15s;
}
.checkbox-group label:hover { border-color: var(--gold); }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold-deep); cursor: pointer; }
.checkbox-group label.checked { border-color: var(--gold); background: #faf3e3; }
.checkbox-placeholder { color: var(--muted); cursor: default !important; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-deep); color: #9db0c2; padding: 36px 0; border-top: 3px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-org { display: flex; flex-direction: column; }
.footer-name { color: #fff; font-size: 16px; font-weight: 600; }
.footer-meta { font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; color: #c9d3dd; }
.footer-links a:hover { color: var(--gold-light); }
.footer-icp { font-size: 13px; }

/* ---------- 文章详情弹窗 ---------- */
.article-modal {
  position: fixed; inset: 0; background: rgba(14,35,56,.6); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.article-modal-box {
  background: #fff; border-radius: 12px; max-width: 720px; width: 100%;
  max-height: 84vh; overflow-y: auto; padding: 32px; position: relative;
}
.article-modal-close {
  position: absolute; top: 16px; right: 20px; font-size: 28px; cursor: pointer; color: var(--muted);
}
.article-modal-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.article-modal-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.article-modal-content { font-size: 15px; line-height: 1.9; color: #333; white-space: pre-wrap; }

/* ---------- 报名弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(14,35,56,.65); z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: #fff; border-radius: 14px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 20px; color: var(--navy); }
.modal-close { font-size: 24px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-main { flex-direction: column; align-items: flex-start; }
  .hero-contact-card { max-width: 100%; width: 100%; }
  .about-main { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .enroll-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #0e2338; padding: 16px 20px; flex-direction: column; gap: 12px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { margin-left: auto; }
  .hero { min-height: auto; padding: 100px 0 40px; }
  .hero-title { font-size: 40px; }
  .news-list { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .notice-section-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 10px; }
  .topbar-inner { height: 64px; gap: 12px; }
  .hero { padding-top: 90px; }
  .hero-inner { padding: 40px 16px 40px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-features, .course-grid, .video-grid { grid-template-columns: 1fr; }
  .about-main { padding: 28px; }
  .about-stats { gap: 18px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 26px; }
  .form-row2 { flex-direction: column; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
