/* ============================================
   工程劳务公司官网 · 全局样式
   风格：稳重工业商务风
   主色深蓝 #0F3460  辅助橙 #E94560  正文深灰 #333333
   ============================================ */

:root {
  --primary: #0F3460;      /* 主色 深蓝 */
  --primary-dark: #0a2547;
  --primary-light: #1a4a80;
  --accent: #E94560;       /* 辅助 橙 */
  --accent-dark: #c93952;
  --text: #333333;         /* 正文深灰 */
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #F5F6F8;           /* 背景浅灰 */
  --border: #E5E7EB;       /* 边框灰 */
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, .1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);
  --radius: 8px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
}

a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 通用标题 ---------- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-subtitle { color: var(--text-light); font-size: 15px; margin-bottom: 36px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .section-title { padding-left: 0; display: inline-block; }
.section-head .section-title::before { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-align: center;
  line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  height: 80px;
  transition: height .3s, box-shadow .3s;
  display: flex;
  align-items: center;
}
.site-header.compact {
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.logo .logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo .logo-text small { display: block; font-size: 14px; font-weight: 500; opacity: .9; letter-spacing: 2px; }
.logo .logo-en { font-size: 21px; letter-spacing: .5px; line-height: 1.1; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: #fff;
  padding: 6px 14px;
  font-size: 15px;
  position: relative;
  border-radius: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-phone {
  color: #fff;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s;
}
.header-phone:hover { background: var(--accent-dark); }

/* 移动端汉堡菜单 */
.nav-toggle { display: none; color: #fff; font-size: 26px; cursor: pointer; background: none; border: none; }

/* ---------- 页面横幅 ---------- */
.page-banner {
  background: var(--primary);
  padding: 130px 0 60px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: .85; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg);
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: var(--text); }

/* ---------- 首页 Banner ---------- */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  margin-top: 80px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,37,71,.88) 0%, rgba(10,37,71,.55) 55%, rgba(10,37,71,.2) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; }
.hero-content .hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero-content h1 { font-size: 42px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.hero-content p { font-size: 18px; opacity: .9; margin-bottom: 30px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.hero-dots span.active { background: var(--accent); width: 30px; border-radius: 6px; }

/* ---------- 业务卡片 ---------- */
.business-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  display: block;
}
.biz-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.biz-card .card-img {
  height: 200px;
  background: #e9edf2;
  position: relative;
  overflow: hidden;
}
.biz-card .card-img .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c4;
  font-size: 14px;
  background:
    linear-gradient(45deg, transparent 49%, #d4dae2 49%, #d4dae2 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, #d4dae2 49%, #d4dae2 51%, transparent 51%);
  background-color: #eef1f5;
}
.biz-card .card-body { padding: 20px; }
.biz-card .card-body h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.biz-card .card-body p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; min-height: 44px; }
.biz-card .card-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.biz-card .card-link::after { content: " →"; }

/* ---------- 核心优势 ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s;
}
.advantage-item:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.advantage-item .adv-icon {
  width: 60px; height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.advantage-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.advantage-item p { font-size: 14px; color: var(--text-light); }

/* ---------- 案例卡片 ---------- */
.case-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  display: block;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.case-card .card-img { height: 160px; position: relative; overflow: hidden; background: #e9edf2; }
.case-card .img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #b0b8c4; font-size: 13px;
  background:
    linear-gradient(45deg, transparent 49%, #d4dae2 49%, #d4dae2 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, #d4dae2 49%, #d4dae2 51%, transparent 51%);
  background-color: #eef1f5;
}
.case-card .card-body { padding: 16px; }
.case-card .case-type {
  display: inline-block;
  background: var(--bg);
  color: var(--text-light);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.case-card h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.case-card .case-loc { font-size: 13px; color: var(--text-lighter); }

/* ---------- 资质区 ---------- */
.qual-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.qual-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.cert-item .cert-img {
  height: 130px;
  background: #eef1f5;
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #b0b8c4; font-size: 13px;
}
.cert-item p { font-size: 13px; color: var(--text-light); }

/* ---------- 咨询区块 ---------- */
.cta-section {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
}
.cta-section .cta-inner { display: flex; align-items: center; justify-content: space-between; }
.cta-section h2 { font-size: 28px; margin-bottom: 8px; }
.cta-section p { opacity: .85; }
.cta-actions { display: flex; gap: 16px; align-items: center; }
.cta-phone { font-size: 26px; font-weight: 700; color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a2547;
  color: #c5cedb;
  padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid p { font-size: 14px; line-height: 1.8; }
.footer-links a { display: block; font-size: 14px; color: #c5cedb; padding: 4px 0; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { font-size: 14px; padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #8a97a8;
}
.footer-bottom a { color: #8a97a8; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 列表页通用 ---------- */
.filter-tabs { display: flex; gap: 12px; margin-bottom: 30px; }
.filter-tabs .tab {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-light);
  transition: all .25s;
  background: #fff;
}
.filter-tabs .tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tabs .tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 新闻列表 ---------- */
.news-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.news-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg); }
.news-item .news-date {
  flex: 0 0 80px;
  text-align: center;
  background: var(--bg);
  border-radius: 6px;
  padding: 10px 0;
  align-self: flex-start;
}
.news-item .news-date .d { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.news-item .news-date .m { font-size: 13px; color: var(--text-light); }
.news-item h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { font-size: 14px; color: var(--text-light); }

/* ---------- 详情页正文 ---------- */
.article-body { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-body p { margin-bottom: 16px; }
.article-body h3 { font-size: 20px; color: var(--primary); margin: 24px 0 12px; }
.article-body .article-img {
  height: 300px;
  background: #eef1f5;
  border-radius: var(--radius);
  margin: 20px 0;
  display: flex; align-items: center; justify-content: center;
  color: #b0b8c4;
}
.article-meta { color: var(--text-light); font-size: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .25s;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 30px; }
.contact-info .info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-info .info-icon {
  flex: 0 0 44px; height: 44px;
  background: var(--primary);
  color: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-info h3 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.contact-info p { font-size: 14px; color: var(--text-light); }
.map-placeholder {
  height: 100%;
  min-height: 400px;
  background: #eef1f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #b0b8c4;
  flex-direction: column;
  gap: 8px;
}
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.contact-form h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; }

/* ---------- 通用 section 间距 ---------- */
.section { padding: 70px 0; }
.section.bg-light { background: var(--bg); }

/* ---------- 时间轴（发展历程） ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .year { font-size: 20px; font-weight: 700; color: var(--primary); }
.timeline-item p { color: var(--text-light); }

/* ---------- 施工流程 ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flow-step { text-align: center; position: relative; }
.flow-step .step-num {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.flow-step h4 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.flow-step p { font-size: 12px; color: var(--text-lighter); }
.flow-step::after {
  content: "→";
  position: absolute;
  right: -14px; top: 18px;
  color: var(--accent);
  font-size: 20px;
}
.flow-step:last-child::after { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .main-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 20px; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .business-cards, .advantages-grid, .case-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .qual-section { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .flow-step::after { display: none; }
  .hero-content h1 { font-size: 32px; }
  .cta-section .cta-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .business-cards, .advantages-grid, .case-cards { grid-template-columns: 1fr; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 26px; }
  .qual-certs { grid-template-columns: repeat(2, 1fr); }
  .news-item { flex-direction: column; }
  .news-item .news-date { flex: none; width: 100px; }
}
