/* ===========================================================
   山东安可质量检测有限公司  -  企业官网样式
   配色：专业蓝 / 中性灰
   =========================================================== */

:root {
  --primary: #0a3d7a;
  --primary-dark: #062a56;
  --primary-light: #1769c9;
  --accent: #00a4b4;
  --accent-soft: #e6f6f8;
  --ink: #1f2733;
  --text: #44505f;
  --muted: #8290a3;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-deep: #0b1f3a;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(13, 40, 84, .06);
  --shadow: 0 12px 34px rgba(13, 40, 84, .10);
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar .tb-left span { margin-right: 18px; }
.topbar .tb-right a { margin-left: 18px; color: rgba(255,255,255,.82); }
.topbar .tb-right a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-img { height: 100px; width: auto; display: block; }
.footer .f-brand .logo-img-foot {
  height: 44px; width: auto; display: block;
  background: #fff; padding: 9px 16px; border-radius: 10px;
}
.brand .logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}
.brand .brand-text b {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .5px;
}
.brand .brand-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  padding: 0 16px;
  height: 120px;
  line-height: 120px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.menu > li > a:hover,
.menu > li.active > a { color: var(--primary-light); }
.menu > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary-light);
  transform: scaleX(0);
  transition: transform .25s;
}
.menu > li:hover > a::after,
.menu > li.active > a::after { transform: scaleX(1); }

/* 下拉 */
.submenu {
  position: absolute;
  top: 120px; left: 0;
  min-width: 188px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s;
}
.menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
}
.submenu a:hover { background: var(--bg-soft); color: var(--primary-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- 通用区块 ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
}
.section-head h2 i { font-style: normal; color: var(--primary-light); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.section-head .bar {
  width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 18px auto 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
}
.btn-primary { background: var(--primary-light); color: #fff; }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { border-color: var(--primary-light); color: var(--primary-light); }
.btn-outline:hover { background: var(--primary-light); color: #fff; }

/* ===========================================================
   首页 Hero
   =========================================================== */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6,42,86,.93) 0%, rgba(10,61,122,.86) 45%, rgba(0,164,180,.78) 100%),
    radial-gradient(circle at 80% 20%, rgba(0,164,180,.35), transparent 55%),
    #0b1f3a;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 75%);
  opacity: .6;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 110px 24px 120px;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4be3c0; }
.hero h1 {
  font-size: 48px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: #6fe6da; }
.hero .lead {
  font-size: 18px;
  color: rgba(255,255,255,.86);
  max-width: 640px;
  margin-bottom: 18px;
}
.hero .creed {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin-bottom: 38px;
  letter-spacing: 1px;
}
.hero .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 统计 */
.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 24px;
}
.hero-stats .stat { text-align: center; color: #fff; }
.hero-stats .stat b { display: block; font-size: 50px; font-weight: 900; letter-spacing: .5px; line-height: 1.1; }
.hero-stats .stat b span { font-size: inherit; font-weight: inherit; }
.hero-stats .stat b i { font-style: normal; color: #6fe6da; font-size: 30px; font-weight: 800; }
.hero-stats .stat > span { display: block; font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ===========================================================
   关于卡片（首页四宫格）
   =========================================================== */
.about-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .28s;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.about-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.about-card:hover::before { transform: scaleX(1); }
.about-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary-light);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.about-card .ico svg { width: 28px; height: 28px; }
.about-card h3 { color: var(--ink); font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.about-card p { font-size: 14px; color: var(--muted); }
.about-card .more { display: inline-block; margin-top: 16px; color: var(--primary-light); font-weight: 600; font-size: 14px; }

/* ===========================================================
   关于公司（两栏）
   =========================================================== */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-split .visual {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10,61,122,.82) 0%, rgba(0,164,180,.70) 120%),
    url("../images/company/company.jpeg") center / cover no-repeat;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  color: #fff; text-align: center; padding: 40px;
}
.about-split .visual::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-split .visual .vinner { position: relative; z-index: 2; }
.about-split .visual .vinner b { display:block; font-size: 56px; font-weight: 800; letter-spacing: 4px; }
.about-split .visual .vinner span { display:block; font-size: 16px; letter-spacing: 3px; opacity: .9; margin-top: 8px; }
.about-split .visual .vinner .roles { margin-top: 26px; display: flex; gap: 10px; justify-content: center; }
.about-split .visual .vinner .roles em {
  font-style: normal; font-size: 13px; padding: 6px 14px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.about-split .txt .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.about-split .txt h2 { color: var(--ink); font-size: 30px; font-weight: 800; margin: 12px 0 20px; line-height: 1.35; }
.about-split .txt p { margin-bottom: 16px; }
.about-split .txt .creed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 30px; }
.about-split .txt .creed-list li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); font-size: 15px;
}
.about-split .txt .creed-list li::before {
  content: "✓"; width: 22px; height: 22px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* ===========================================================
   服务卡片
   =========================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all .28s;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
.svc-card .ico {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; margin-bottom: 22px;
}
.svc-card .ico svg { width: 28px; height: 28px; }
.svc-card h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.svc-card p { font-size: 14px; color: var(--muted); }
.svc-card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card .tags span {
  font-size: 12px; color: var(--primary-light);
  background: var(--accent-soft); padding: 4px 11px; border-radius: 6px;
}

/* ===========================================================
   优势条 / 实力
   =========================================================== */
.strength-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.strength {
  text-align: center; padding: 30px 18px;
  border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: all .28s;
}
.strength:hover { background: var(--primary); color: #fff; transform: translateY(-6px); box-shadow: var(--shadow); }
.strength:hover h4, .strength:hover p { color: #fff; }
.strength:hover .ico { background: rgba(255,255,255,.16); color: #fff; }
.strength .ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent-soft); color: var(--primary-light);
  display: grid; place-items: center; transition: all .28s;
}
.strength .ico svg { width: 26px; height: 26px; }
.strength h4 { color: var(--ink); font-size: 17px; margin-bottom: 8px; transition: color .28s; }
.strength p { font-size: 13px; color: var(--muted); transition: color .28s; }

/* ===========================================================
   CTA 横幅
   =========================================================== */
.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 30%, rgba(0,164,180,.5), transparent 50%);
}
.cta .container {
  position: relative; z-index: 2;
  padding: 64px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.cta p { color: rgba(255,255,255,.82); margin-top: 8px; }

/* ===========================================================
   页脚
   =========================================================== */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.66); padding: 64px 0 0; font-size: 14px; }
.footer .f-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer .f-brand .brand-text b { color: #fff; }
.footer .f-brand p { margin-top: 18px; color: rgba(255,255,255,.55); max-width: 320px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 700; }
.footer .f-links li { margin-bottom: 11px; }
.footer .f-links a:hover { color: #fff; }
.footer .f-contact li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent); }
.footer .f-phone span { display: block; margin-bottom: 5px; }
.footer .f-phone span:last-child { margin-bottom: 0; }
.footer .f-phone em {
  font-style: normal; color: rgba(255,255,255,.42);
  margin-right: 10px; display: inline-block; min-width: 40px;
}
.footer .f-phone a { color: rgba(255,255,255,.66); }
.footer .f-phone a:hover { color: #fff; }
.footer .f-wx { margin-top: 20px; }
.footer .f-wx img {
  width: 100px; height: 100px; border-radius: 8px;
  background: #fff; padding: 6px; display: block;
}
.footer .f-wx span { display: block; font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 9px; }
.footer .f-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer .f-bottom a:hover { color: #fff; }

/* ===========================================================
   内页通用
   =========================================================== */
.page-hero {
  background:
    linear-gradient(120deg, rgba(6,42,86,.94), rgba(10,61,122,.88) 60%, rgba(0,164,180,.78)),
    var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; padding: 78px 24px; }
.page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 16px; max-width: 640px; }
.breadcrumb { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }

/* 资质清单 */
.qual-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.qual-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; transition: all .25s;
}
.qual-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); transform: translateX(4px); }
.qual-item .q-ico {
  width: 40px; height: 40px; flex: none; border-radius: 9px;
  background: var(--accent-soft); color: var(--primary-light);
  display: grid; place-items: center; font-weight: 800;
}
.qual-item .q-ico svg { width: 20px; height: 20px; }
.qual-item span { font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* 荣誉徽章 */
.honor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.honor {
  text-align: center; padding: 26px 16px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  transition: all .25s;
}
.honor:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.honor .h-ico {
  width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #f5b942, #f08c2e); color: #fff;
  display: grid; place-items: center;
}
.honor .h-ico svg { width: 24px; height: 24px; }
.honor span { font-size: 14px; color: var(--ink); font-weight: 600; }

/* 项目清单 */
.proj-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px;
}
.proj-toolbar button {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 14px;
  font-family: var(--font); transition: all .22s; font-weight: 600;
}
.proj-toolbar button:hover { border-color: var(--primary-light); color: var(--primary-light); }
.proj-toolbar button.active { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

.proj-cat { margin-bottom: 40px; }
.proj-cat h3 {
  color: var(--ink); font-size: 20px; font-weight: 800; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.proj-cat h3::before { content:""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--primary), var(--accent)); }
.proj-cat h3 small { font-weight: 600; font-size: 13px; color: var(--muted); }
.proj-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.proj-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-size: 14.5px; color: var(--text); transition: all .22s;
}
.proj-list li:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.proj-list li::before {
  content: ""; width: 7px; height: 7px; flex: none; margin-top: 9px;
  border-radius: 50%; background: var(--accent);
}

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .ci-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px;
  transition: all .25s;
}
.contact-info .ci-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }
.contact-info .ci-item .ci-ico {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--primary-light);
  display: grid; place-items: center;
}
.contact-info .ci-item .ci-ico svg { width: 24px; height: 24px; }
.contact-info .ci-item h4 { color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.contact-info .ci-item p { font-size: 14.5px; color: var(--muted); }
/* 联系方式：电话多行 */
.contact-info .ci-item p a { color: var(--text); transition: color .2s; }
.contact-info .ci-item p a:hover { color: var(--primary-light); }
.contact-info .ci-item .phone-row { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.contact-info .ci-item .phone-row em { font-style: normal; color: var(--muted); font-size: 13px; min-width: 42px; }
.contact-info .ci-item .phone-row a { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.contact-info .ci-item .phone-row a:hover { color: var(--primary-light); }

/* 微信二维码卡片 */
.wx-card {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(135deg, var(--accent-soft), #eef6fb);
  border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 18px;
}
.wx-card .wx-qr {
  width: 132px; height: 132px; flex: none; border-radius: 10px; overflow: hidden;
  background: #fff; padding: 7px; box-shadow: var(--shadow-sm);
}
.wx-card .wx-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.wx-card .wx-text h4 { color: var(--ink); font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.wx-card .wx-text h4 svg { width: 20px; height: 20px; color: #2aae67; }
.wx-card .wx-text p { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.wx-card .wx-text span { font-size: 13px; color: var(--muted); }

.contact-form {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 34px;
}
.contact-form h3 { color: var(--ink); font-size: 21px; margin-bottom: 22px; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 14.5px; color: var(--ink); background: #fff;
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(23,105,201,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 内容文章块 */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { color: var(--ink); font-size: 26px; font-weight: 800; margin: 38px 0 16px; }
.prose h3 { color: var(--primary); font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose .pull {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; color: var(--ink);
}

/* 文化卡 */
.culture-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.culture-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 20px; transition: all .25s;
}
.culture-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.culture-card .c-ico {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center;
}
.culture-card .c-ico svg { width: 26px; height: 26px; }
.culture-card h4 { color: var(--ink); font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.culture-card p { font-size: 14px; color: var(--muted); }

/* 动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   全过程服务（四阶段）
   =========================================================== */
.phase-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.phase {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: all .28s;
}
.phase:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
.phase .ph-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; margin-bottom: 6px;
}
.phase .ph-step b {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.phase h3 { color: var(--ink); font-size: 18px; font-weight: 800; margin: 8px 0 14px; }
.phase ul li {
  position: relative; padding-left: 18px; margin-bottom: 9px;
  font-size: 13.5px; color: var(--text); line-height: 1.5;
}
.phase ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ===========================================================
   技术服务团队（部门）
   =========================================================== */
.dept-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.dept {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all .28s;
}
.dept:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.dept .d-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dept .d-head .d-ico {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center;
}
.dept .d-head .d-ico svg { width: 26px; height: 26px; }
.dept .d-head h3 { color: var(--ink); font-size: 19px; font-weight: 800; }
.dept .d-head span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.dept ul li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  font-size: 14px; color: var(--text);
}
.dept ul li::before {
  content: "›"; position: absolute; left: 4px; top: -1px;
  color: var(--primary-light); font-weight: 800;
}

/* ===========================================================
   服务客户墙
   =========================================================== */
.client-group { margin-bottom: 36px; }
.client-group .cg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.client-group .cg-head .cg-ico {
  width: 44px; height: 44px; flex: none; border-radius: 11px;
  background: var(--accent-soft); color: var(--primary-light);
  display: grid; place-items: center;
}
.client-group .cg-head .cg-ico svg { width: 22px; height: 22px; }
.client-group .cg-head h3 { color: var(--ink); font-size: 20px; font-weight: 800; }
.client-group .cg-head h3 small { font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 8px; }
.client-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.client-tags span {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 16px; font-size: 14px; color: var(--ink); transition: all .2s;
}
.client-tags span:hover { border-color: var(--primary-light); color: var(--primary-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* 客户 logo 文字墙（首页预览） */
.client-marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-marquee span {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-size: 14.5px; color: var(--text); font-weight: 600;
}

/* 标准依据小标签 */
.std-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.std-tags span {
  font-size: 12px; color: var(--primary); font-weight: 600;
  background: #eef4fc; border: 1px solid #d8e6f7; padding: 4px 11px; border-radius: 6px;
}

/* 资质荣誉总览图 */
.overview-img {
  display: block; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .25s;
}
.overview-img:hover { box-shadow: var(--shadow); }
.overview-img img { width: 100%; display: block; }
.overview-tip { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ===========================================================
   证书展示画廊 + 灯箱
   =========================================================== */
.cert-group-title {
  color: var(--ink); font-size: 20px; font-weight: 800; margin: 8px 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.cert-group-title::before { content:""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--primary), var(--accent)); }
.cert-group-title:not(:first-of-type) { margin-top: 44px; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: all .25s; margin: 0;
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--primary-light); }
.cert .cert-img {
  height: 240px; background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden; padding: 16px;
}
.cert .cert-img img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 4px 16px rgba(13,40,84,.12); transition: transform .3s;
}
.cert:hover .cert-img img { transform: scale(1.04); }
.cert .cert-cap {
  padding: 14px 14px; font-size: 13.5px; color: var(--ink); font-weight: 600;
  text-align: center; border-top: 1px solid var(--line); line-height: 1.5;
}
/* 单张侧向证书：旋转 270° 转正，并自适应居中 */
.cert .cert-img img.rot270 {
  transform: rotate(270deg);
  max-width: 208px;   /* 旋转后此值变为可视高度，适配 240px 容器 */
  max-height: 100%;
}
.lightbox img.lb-rot270 {
  transform: rotate(270deg);
  max-width: 80vh;    /* 旋转后交换视口约束，保证完整居中显示 */
  max-height: 86vw;
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,20,40,.92); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 5vh 6vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox .lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 16px; padding: 0 20px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox .lb-close:hover { opacity: 1; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 46px; cursor: pointer; padding: 8px 16px; user-select: none; opacity: .75;
}
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }
.lightbox .lb-nav:hover { opacity: 1; }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1024px) {
  .about-cards { grid-template-columns: repeat(2,1fr); }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .strength-grid { grid-template-columns: repeat(3,1fr); }
  .honor-grid { grid-template-columns: repeat(2,1fr); }
  .qual-grid { grid-template-columns: repeat(2,1fr); }
  .footer .f-grid { grid-template-columns: 1fr 1fr; }
  .phase-grid { grid-template-columns: repeat(2,1fr); }
  .dept-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  /* <nav> 包裹的菜单在移动端为 fixed，让 <nav> 不占 flex 位置，
     使导航行只剩「品牌 + 按钮」，space-between 自然把按钮推到最右 */
  .header .nav > nav { display: contents; }
  .nav { height: 84px; }
  .brand .logo-img { height: 64px; }
  .menu {
    position: fixed; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    box-shadow: var(--shadow);
  }
  .menu.open { max-height: 80vh; overflow-y: auto; }
  .menu > li > a { height: 54px; line-height: 54px; padding: 0 24px; border-bottom: 1px solid var(--line); }
  .menu > li > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 24px; display: none; }
  .menu > li.open-sub .submenu { display: block; }
  .topbar { display: none; }
  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .about-split .txt .creed-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-stats .container { grid-template-columns: repeat(2,1fr); gap: 30px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .proj-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .about-cards, .svc-grid, .strength-grid, .honor-grid, .qual-grid, .culture-grid, .phase-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .cert .cert-img { height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .footer .f-grid { grid-template-columns: 1fr; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat b { font-size: 40px; }
  .hero-stats .stat b i { font-size: 24px; }
  .section-head h2 { font-size: 26px; }
}
