:root {
  --primary: #3d7ec9;
  --primary-dark: #2f6cb4;
  --accent: #f5a623;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --text: #1f2d3a;
  --text-muted: #5b6b78;
  --border: #e0e9f2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(61, 126, 201, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 14px; letter-spacing: 1px;
}
.brand-text { color: var(--text); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* 按钮 */
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2f6cb4 0%, #3d7ec9 45%, #7ab0e0 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,166,35,.25), transparent 45%);
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 96px 24px 80px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 16px; border-radius: 20px; font-size: 14px; margin-bottom: 20px; }
.hero-title { font-size: 48px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 32px; font-weight: 800; color: var(--accent); }
.stat span { font-size: 14px; color: rgba(255,255,255,.85); }

/* 通用 section */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* 证书 / 资质类别 */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; }
.cert { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); }
.cert-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 160px; background: #eaf1f9; border-radius: 8px; color: var(--text-muted); font-size: 14px; margin-bottom: 14px;
}
.cert p { font-size: 14px; color: var(--text-muted); }
.cert-tag {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; font-size: 14px; margin-bottom: 14px;
}
.cert h3 { font-size: 17px; margin-bottom: 10px; }

/* 成功案例证书墙 */
.cert-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px;
  max-width: 1120px; margin: 0 auto;
}
.cert-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .2s;
}
.cert-card:hover { transform: translateY(-4px); }
.cert-card img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.cert-card figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.cert-card figcaption strong { font-size: 14px; }
.cert-card figcaption span { font-size: 12px; color: var(--text-muted); }
.cert-note { text-align: center; color: var(--text-muted); font-size: 13px; max-width: 760px; margin: 24px auto 0; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out;
}
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* 子页面 hero 与面包屑 */
.page-hero { background: linear-gradient(135deg, #2f6cb4, #3d7ec9); color: #fff; padding: 64px 24px; }
.page-hero-inner { max-width: 1120px; margin: 0 auto; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.88); font-size: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb { display: block; font-size: 13px; margin-bottom: 12px; }

/* 查看更多链接 */
.more-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: 15px; }
.more-link:hover { color: var(--primary-dark); }

/* 详情页内容块 */
.detail-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.detail-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.detail-block h2, .detail-block h3 { font-size: 19px; margin-bottom: 12px; color: var(--text); }
.detail-block p { color: var(--text-muted); font-size: 15px; line-height: 1.9; margin-bottom: 8px; }
.detail-block strong { color: var(--text); }
.detail-block ul { padding-left: 20px; color: var(--text-muted); line-height: 2; font-size: 15px; }

/* 新闻列表 */
.news-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: transform .2s; }
.news-item:hover { transform: translateY(-3px); }
.news-date { flex-shrink: 0; color: var(--text-muted); font-size: 13px; background: var(--bg-alt); padding: 6px 10px; border-radius: 8px; }
.news-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.news-body p { font-size: 14px; color: var(--text-muted); }
.news-arrow { margin-left: auto; color: var(--primary); font-size: 20px; flex-shrink: 0; }

/* 文章页 */
.article { max-width: 820px; margin: 0 auto; padding: 48px 24px; }
.article p { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 18px; }
.article h2 { font-size: 22px; margin: 34px 0 16px; color: var(--text); }
.article h3 { font-size: 18px; margin: 26px 0 12px; color: var(--text); }
.article ul { padding-left: 22px; margin-bottom: 18px; }
.article li { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 6px; }
.article-contact { background: var(--bg-alt); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 8px; font-weight: 600; }

/* 常见问题 */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer; font-size: 16px;
  list-style: none; position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; }
.step { text-align: center; padding: 28px 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* 案例 */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1120px; margin: 0 auto; }
.case { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.case-quote { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.case-owner { font-size: 13px; color: var(--text-muted); }

/* 关于 */
.about { max-width: 800px; margin: 0 auto; text-align: center; color: var(--text-muted); font-size: 16px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.contact-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.contact-item span { color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-tip { font-size: 14px; color: var(--primary); min-height: 20px; }

/* ===== 全局留言弹窗 ===== */
.msg-fab {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(61, 126, 201, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}
.msg-fab:hover { background: var(--primary-dark); transform: translateY(-50%) translateX(-2px); }
.msg-fab .fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  font-size: 16px;
}
.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.5);
}
.msg-modal.open { display: flex; }
.msg-modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: msgPop 0.25s ease;
}
@keyframes msgPop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.msg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.msg-modal-head h3 { font-size: 18px; color: var(--text); }
.msg-modal-close {
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
}
.msg-modal-close:hover { color: var(--text); }
.msg-modal-body { padding: 24px; }
.msg-modal-body p.msg-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.msg-form { display: flex; flex-direction: column; gap: 12px; }
.msg-form input, .msg-form select, .msg-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt);
}
.msg-form input:focus, .msg-form select:focus, .msg-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.msg-form button { width: 100%; margin-top: 4px; }

.msg-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.msg-contact-bar .who { display: flex; flex-direction: column; gap: 2px; }
.msg-contact-bar .who b { font-size: 16px; color: var(--text); }
.msg-contact-bar .who span { font-size: 13px; color: var(--text-muted); }
.msg-contact-bar .who .num { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }
.msg-call-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.msg-call-btn:hover { background: var(--primary-dark); }
.msg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.msg-divider::before, .msg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (max-width: 640px) {
  .msg-fab { right: 12px; padding: 12px 14px; font-size: 14px; }
  .msg-fab .fab-text { display: none; }
}

/* 页脚 */
.footer { background: #1a3550; color: rgba(255,255,255,.8); text-align: center; padding: 32px 24px; }
.footer-small { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 24px; gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .hero-title { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}
