/* ===== 全局基础 ===== */
:root {
  --navy: #15315e;
  --navy-dark: #0f2546;
  --gold: #c9a24b;
  --gold-light: #e3c878;
  --bg: #f5f7fa;
  --text: #2c3440;
  --muted: #6b7686;
  --line: #e3e8ef;
  --white: #ffffff;
  --maxw: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.topbar {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { text-decoration: underline; }

/* ===== 头部 / 导航 ===== */
.header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 52px; height: 52px; }
.logo .name { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.logo .name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 4px;
  transition: .2s;
}
.nav a:hover { color: var(--navy); background: #eef2f8; }
.nav a.active { color: var(--white); background: var(--navy); }

.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ===== 横幅 ===== */
.banner {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, #1f4a86 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%);
  border-radius: 50%;
}
.banner h1 { font-size: 38px; line-height: 1.35; margin-bottom: 18px; font-weight: 700; }
.banner p { font-size: 17px; color: #d7e0ee; max-width: 620px; margin-bottom: 30px; }
.banner .btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section.gray { background: #eef2f7; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 30px; color: var(--navy); position: relative; display: inline-block; padding-bottom: 14px; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 3px; background: var(--gold); }
.section-title p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ===== 服务卡片 ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 26px;
  transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(21,49,94,.12); border-color: var(--gold); }
.card .icon { width: 50px; height: 50px; margin-bottom: 18px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }
.card .more { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 14px; }

/* ===== 数据栏 ===== */
.stats { background: var(--navy); color: #fff; }
.stats .grid-4 { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat .num { font-size: 38px; font-weight: 700; color: var(--gold-light); }
.stat .label { color: #cbd5e1; font-size: 14px; margin-top: 6px; }

/* ===== 新闻列表 ===== */
.news-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item .date { flex: 0 0 78px; text-align: center; background: #eef2f8; border-radius: 6px; padding: 10px 0; }
.news-item .date b { display: block; font-size: 24px; color: var(--navy); }
.news-item .date span { font-size: 12px; color: var(--muted); }
.news-item .info h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.news-item .info h3:hover { color: var(--navy); }
.news-item .info p { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; background: #fbeecb; color: #8a6d1f; padding: 2px 10px; border-radius: 3px; margin-bottom: 6px; }

/* ===== 关于/详情区块 ===== */
.lead { font-size: 16px; color: #44505f; max-width: 860px; }
.feature { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.feature .dot { flex: 0 0 8px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; margin-top: 9px; }
.feature h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 36px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.service-detail h3 { color: var(--navy); font-size: 21px; margin-bottom: 12px; }
.service-detail ul { margin-top: 10px; }
.service-detail ul li { padding-left: 20px; position: relative; color: #44505f; margin-bottom: 6px; }
.service-detail ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ===== 培训列表 ===== */
.train-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 22px 24px; }
.train-card .meta { display: flex; gap: 20px; color: var(--muted); font-size: 13px; margin: 8px 0 12px; flex-wrap: wrap; }
.train-card h3 { color: var(--navy); font-size: 18px; }
.train-card .price { color: #c0392b; font-weight: 700; }

/* ===== 表单 ===== */
.form-wrap { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfcfe;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.note { background: #fff8e6; border: 1px solid #f0dca0; color: #7a5e16; padding: 12px 16px; border-radius: 5px; font-size: 13px; margin-bottom: 20px; }

/* ===== 联系信息 ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.contact-info li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info .ico { flex: 0 0 36px; height: 36px; }
.contact-info b { color: var(--navy); }
.qr { text-align: center; }
.qr .box { width: 200px; height: 200px; margin: 0 auto 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

/* ===== 页脚 ===== */
.footer { background: var(--navy-dark); color: #aeb9c9; padding: 50px 0 0; font-size: 14px; }
.footer .grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer a { color: #aeb9c9; display: block; padding: 5px 0; }
.footer a:hover { color: var(--gold-light); }
.footer .about p { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding: 18px 0; text-align: center; font-size: 13px; color: #7e8aa0; }

/* ===== 面包屑 ===== */
.crumb { background: #eef2f7; padding: 12px 0; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--navy); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-3, .grid-2, .stats .grid-4, .footer .grid-4 { grid-template-columns: 1fr 1fr; }
  .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .banner h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .topbar .container { font-size: 12px; }
  .grid-3, .grid-2, .stats .grid-4, .footer .grid-4 { grid-template-columns: 1fr; }
  .banner { padding: 60px 0 50px; }
  .banner h1 { font-size: 26px; }
}
