/* ===== 冠佑企业官网 全局样式（简约大气 / 响应式） ===== */
:root {
  --primary: #1f4e79;
  --primary-dark: #163a5c;
  --accent: #eef3f8;
  --hero-from: #1f4e79;
  --hero-to: #0e2438;
  --text: #1c2733;
  --text-light: #5a6b7b;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --border: #e5eaf0;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 40, 60, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-img { max-height: 44px; width: auto; display: block; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text-light);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--accent); }
.nav-links a.active { color: var(--primary); font-weight: 600; background: var(--accent); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .25s; }

/* ===== 首屏 Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--hero-from), var(--hero-to));
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-inner { position: relative; padding: 110px 24px 120px; text-align: center; }
.hero-slogan {
  display: inline-block; padding: 6px 18px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; font-size: 14px; letter-spacing: 2px; margin-bottom: 26px;
  background: rgba(255,255,255,.08);
}
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 700; max-width: 820px; margin: 0 auto 22px; }
.hero p { font-size: 17px; max-width: 720px; margin: 0 auto 40px; opacity: .88; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px; font-size: 16px;
  background: #fff; color: var(--primary); font-weight: 600; transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); margin-left: 14px; }
.btn-primary { background: var(--primary); color: #fff; }

/* ===== 通用区块 ===== */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag { color: var(--primary); font-size: 14px; font-weight: 600; letter-spacing: 3px; margin-bottom: 12px; }
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* 简介双栏 */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro-grid h2 { font-size: 32px; margin-bottom: 20px; }
.intro-grid p { color: var(--text-light); margin-bottom: 16px; }
.intro-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 15px;
}
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 26px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14.5px; }

/* 服务卡片（带图） */
.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-img {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); font-size: 14px;
}
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 24px 24px 28px; }

/* 关于我们 */
.about-paragraphs p { color: var(--text-light); margin-bottom: 18px; text-indent: 2em; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.value-item { text-align: center; padding: 36px 22px; background: var(--bg-soft); border-radius: var(--radius); }
.value-item h3 { color: var(--primary); font-size: 20px; margin-bottom: 12px; }
.value-item p { color: var(--text-light); font-size: 14.5px; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-item h4 { font-size: 15px; color: var(--text-light); font-weight: 500; margin-bottom: 4px; }
.contact-item p { font-size: 16.5px; font-weight: 600; word-break: break-all; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; margin-bottom: 8px; }
.form-card .form-tip { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 15px; font-family: inherit; transition: border .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 14px; font-size: 14.5px; padding: 10px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e8f7ee; color: #177245; }
.form-msg.err { display: block; background: #fdecea; color: #c0392b; }

/* CTA 横幅 */
.cta-band { background: linear-gradient(120deg, var(--hero-from), var(--hero-to)); color: #fff; text-align: center; padding: 72px 24px; border-radius: 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 14px; }
.cta-band p { opacity: .85; margin-bottom: 30px; }

/* 页脚 */
.footer { background: #101c28; color: rgba(255,255,255,.65); padding: 44px 0 30px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer .fname { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.footer a:hover { color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .value-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 80px 24px 90px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .section-head h2 { font-size: 26px; }
  .form-card { padding: 26px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
