/* ============================================================
   工程咨询服务公司官网 - 设计系统
   风格：深蓝政务工程风（参考 xhtc.com.cn 商务稳重 + 现代版式）
   纯静态，零外部依赖（无 CDN 字体/图标库）
   ============================================================ */

:root {
  --primary: #0b3d91;
  --primary-dark: #082b66;
  --primary-light: #2e7bd6;
  --accent: #c9a227;
  --accent-light: #e8c65a;
  --text: #2b2f36;
  --text-light: #666f7d;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border: #e3e8ef;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 61, 145, 0.14);
  --font: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); line-height: 1.2; }
.nav-list { display: flex; gap: 6px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--text); font-size: 15px; transition: all .2s;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); background: rgba(11, 61, 145, 0.07); }
.nav-cta {
  background: var(--primary); color: #fff !important; border-radius: 6px;
  padding: 8px 18px !important; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-light); }
.nav-tel {
  color: var(--primary) !important; font-weight: 700;
  display: flex; align-items: center; font-size: 15px;
}
.nav-tel:hover { color: var(--accent) !important; background: transparent !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--primary); cursor: pointer; }

/* ---------- Hero 横幅 ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(8,43,102,.92) 0%, rgba(11,61,145,.85) 55%, rgba(20,80,168,.78) 100%),
    url('../img/banner.jpg') center / cover no-repeat;
  color: #fff; padding: 96px 0 110px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.08) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(201,162,39,.15) 0, transparent 45%);
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: -80px; right: -80px; height: 120px;
  background: var(--white); transform: rotate(-1.5deg);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 42px; line-height: 1.35; font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 17px; color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; border: 0;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag {
  display: inline-block; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(201,162,39,.5); padding: 3px 14px; border-radius: 20px;
  margin-bottom: 12px; letter-spacing: 2px;
}
.section-head h2 { font-size: 30px; color: var(--primary-dark); font-weight: 800; }
.section-head .bar { width: 48px; height: 3px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }

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

.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 24px;
  transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 61, 145, .08); color: var(--primary); font-size: 24px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; color: var(--primary-dark); }
.card p { color: var(--text-light); font-size: 14px; }
.card .more { margin-top: 14px; font-size: 13px; color: var(--primary); font-weight: 600; }

/* ---------- 数据亮点 ---------- */
.stats {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 56px 0;
}
.stats .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--accent-light); }
.stat-label { margin-top: 6px; color: rgba(255,255,255,.8); font-size: 14px; }

/* ---------- 部门标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-item {
  padding: 8px 20px; border-radius: 24px; font-size: 14px;
  background: var(--white); color: var(--primary);
  border: 1px solid rgba(11,61,145,.25); transition: all .2s;
}
.tag-item:hover { background: var(--primary); color: #fff; }

/* ---------- 流程时间线 ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--accent), var(--primary-light)); transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 40px 36px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot {
  position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent);
}
.tl-item:nth-child(odd) .tl-dot { right: -7px; }
.tl-item:nth-child(even) .tl-dot { left: -7px; }
.tl-item h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--text-light); }

/* ---------- 案例卡片 ---------- */
.case-card { overflow: hidden; }
.case-card .cover {
  height: 160px; border-radius: 6px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); font-size: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.case-card .case-tag {
  display: inline-block; font-size: 12px; color: var(--accent);
  border: 1px solid rgba(201,162,39,.4); padding: 1px 10px; border-radius: 12px; margin-bottom: 8px;
}
.case-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.case-card .dept { font-size: 12px; color: var(--text-light); }

/* ---------- 新闻列表 ---------- */
.news-list .news-item {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 8px; border-bottom: 1px dashed var(--border); transition: background .2s;
}
.news-item:hover { background: rgba(11,61,145,.03); }
.news-item .date {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--bg-light); border-radius: 8px; padding: 8px 0;
}
.news-item .date b { display: block; font-size: 20px; color: var(--primary); }
.news-item .date span { font-size: 12px; color: var(--text-light); }
.news-item h4 { font-size: 15px; font-weight: 600; }
.news-item h4:hover { color: var(--primary); }
.news-item p { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ---------- 资质证书墙 ---------- */
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.qual-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: all .25s; background: var(--white);
}
.qual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.qual-card .q-icon {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.qual-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.qual-card p { font-size: 13px; color: var(--text-light); }

/* ---------- 联系 CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 60px 24px;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 26px; }

/* ---------- 联系页 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; background: var(--white);
}
.contact-card .icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(11,61,145,.08); color: var(--primary); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 15px; color: var(--text-light); margin-bottom: 8px; }
.contact-card p { font-size: 16px; font-weight: 600; color: var(--primary-dark); }
.contact-form {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1f40; color: rgba(255,255,255,.7); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 13px; color: rgba(255,255,255,.65); line-height: 2; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); text-align: center;
  padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-list {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-list.open { display: flex; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 30px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .timeline::before { left: 8px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 30px 32px; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 2px; right: auto; }
  .qual-grid, .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 通用辅助 */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.page-banner {
  background: url('../img/banner.jpg') center / cover no-repeat;
  color: var(--primary-dark); padding: 64px 0 72px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ''; position: absolute; bottom: -40px; left: -60px; right: -60px; height: 80px;
  background: var(--white); transform: rotate(-1deg);
}
.page-banner h1 { font-size: 32px; font-weight: 800; position: relative; z-index: 2; }
.page-banner p { color: var(--primary); margin-top: 8px; position: relative; z-index: 2; }
