/* 合肥冠威环境科技有限公司 — 官网样式
   响应式：PC / 手机 / 微信内置浏览器通用 */

:root {
  --green-900: #0f3d2e;
  --green-700: #1a6b4f;
  --green: #218562;
  --green-50: #eef7f2;
  --green-900-rgb: 15, 61, 46;
  --orange: #e8703a;
  --orange-dark: #c85a28;
  /* 深绿底上的暖色强调，与 orange 配套 */
  --cream: #ffc9a8;
  --ink: #1c2b25;
  --ink-2: #4a5a53;
  --ink-3: #78877f;
  --line: #e2eae6;
  --bg: #ffffff;
  --bg-2: #f6faf8;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(var(--green-900-rgb), .07);
  --shadow-lg: 0 8px 32px rgba(var(--green-900-rgb), .12);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

/* 键盘可达性：所有可交互元素的焦点环 */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
/* 深绿底上改用奶油色，保证可见 */
.hero :focus-visible,
.hero-stats :focus-visible,
.contact-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--orange); }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-900) 100%);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { min-width: 0; }
.brand-name {
  font-size: 17px; font-weight: 700; color: var(--green-900);
  letter-spacing: .2px; line-height: 1.3; white-space: nowrap;
}
.brand-sub {
  font-size: 12px; color: var(--ink-2); letter-spacing: 1.5px;
  text-transform: uppercase; line-height: 1.2;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 12px 14px; border-radius: 7px; font-size: 15px;
  color: var(--ink-2); font-weight: 500; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-700); }
.nav-links a.active { color: var(--green-700); font-weight: 600; }

.nav-tel {
  display: flex; align-items: center; gap: 7px;
  background: var(--orange); color: #fff !important;
  padding: 9px 17px !important; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 2px 10px rgba(232,112,58,.3);
}
.nav-tel:hover { background: var(--orange-dark) !important; color: #fff !important; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏（含轮播） ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--green-900) center/cover no-repeat;
  min-height: 520px; display: flex; align-items: center; overflow: hidden;
}
/* 三张图叠加，淡入淡出切换 */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(var(--green-900-rgb),.93) 0%, rgba(var(--green-900-rgb),.75) 45%, rgba(var(--green-900-rgb),.42) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 76px; }
.hero-inner { max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  padding: 6px 15px; border-radius: 999px; font-size: 13.5px;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px); line-height: 1.28; margin: 0 0 18px;
  font-weight: 700; letter-spacing: -.3px;
}
.hero h1 .accent { color: var(--cream); }
.hero p.lead {
  font-size: clamp(15px, 2.2vw, 17.5px); color: rgba(255,255,255,.9);
  margin: 0 0 30px; line-height: 1.85;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* 轮播指示器 */
.hero-dots {
  position: relative; z-index: 2;
  display: flex; gap: 8px; margin-bottom: 22px;
}
.hero-dot {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .25s, width .25s;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { background: var(--cream); width: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 27px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(232,112,58,.36); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.13); color: #fff; border-color: #fff; }
/* 浅色底上的次要按钮（404 页） */
.btn-ghost-dark { border-color: var(--green); color: var(--green-700); }
.btn-ghost-dark:hover { background: var(--green-50); color: var(--green-700); }

/* 首屏下方数据条 */
.hero-stats {
  background: var(--green-900); color: #fff; position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.hero-stats .num {
  font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; color: var(--cream);
  line-height: 1.2; letter-spacing: -.5px;
}
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 3px; }

/* ---------- 通用区块 ---------- */
section { padding: 74px 0; }
.sec-alt { background: var(--bg-2); }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-tag {
  display: inline-block; color: var(--green); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px;
}
.sec-head h2 {
  font-size: clamp(23px, 3.6vw, 32px); margin: 0 0 14px;
  color: var(--green-900); font-weight: 700; letter-spacing: -.3px; line-height: 1.35;
}
.sec-head p { color: var(--ink-2); margin: 0; font-size: 16px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #c9ded5;
}
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--green-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 17px;
}
.card-icon svg { width: 25px; height: 25px; stroke: var(--green); fill: none; stroke-width: 1.7; }
.card h3 { margin: 0 0 10px; font-size: 18.5px; color: var(--green-900); font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.card ul { margin: 12px 0 0; padding-left: 19px; color: var(--ink-2); font-size: 14.5px; }
.card ul li { margin-bottom: 5px; }

/* ---------- 流程 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 38px; font-weight: 700; color: var(--green); opacity: .18;
  line-height: 1; display: block; margin-bottom: 8px;
}
.step h4 { margin: 0 0 7px; font-size: 17px; color: var(--green-900); font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }

/* ---------- 图片画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  position: relative; background: var(--bg-2); aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px; color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(to top, rgba(var(--green-900-rgb),.88), transparent);
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
}
.about-copy p { color: var(--ink-2); font-size: 15.5px; line-height: 1.95; margin: 0 0 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.pill {
  background: var(--green-50); color: var(--green-700); border: 1px solid #cfe6dc;
  padding: 6px 15px; border-radius: 999px; font-size: 14px; font-weight: 500;
}

/* ---------- 知识科普 ---------- */
.kb-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 14px;
}
.kb-item h3 {
  margin: 0 0 10px; font-size: 17.5px; color: var(--green-900);
  display: flex; align-items: flex-start; gap: 11px; font-weight: 700; line-height: 1.5;
}
.kb-num {
  flex: none; width: 27px; height: 27px; border-radius: 7px; margin-top: 1px;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.kb-item p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; padding-left: 38px; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { display: grid; gap: 13px; }
.contact-row {
  display: flex; align-items: flex-start; gap: 15px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 19px 21px;
}
.contact-row .ci {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ci svg { width: 21px; height: 21px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.contact-row .cl { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.contact-row .cv { font-size: 16.5px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.contact-row .cv a {
  color: var(--ink); display: inline-block;
  padding: 6px 0; min-height: 34px;
}
.contact-row .cv a:hover { color: var(--orange); }
.contact-row .cv small { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }

.contact-cta {
  background: linear-gradient(140deg, var(--green-900), var(--green-700));
  color: #fff; border-radius: var(--radius); padding: 38px 34px;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-cta h3 { margin: 0 0 13px; font-size: 23px; font-weight: 700; line-height: 1.45; }
.contact-cta p { margin: 0 0 24px; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.85; }
.contact-cta .btn { align-self: flex-start; }

/* ---------- 常见问题 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 20px 52px 20px 24px; position: relative;
  font-size: 16.5px; font-weight: 600; color: var(--green-900);
  list-style: none; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .22s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--orange); }
.faq-body { padding: 0 24px 21px; }
.faq-body p {
  margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9;
  padding-top: 3px; border-top: 1px solid var(--line);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.notfound h1 { font-size: clamp(56px, 12vw, 96px); margin: 0; color: var(--green); opacity: .22; line-height: 1; }
.notfound h2 { font-size: clamp(20px, 3.6vw, 27px); margin: 10px 0 14px; color: var(--green-900); }
.notfound p { color: var(--ink-2); margin: 0 0 26px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--green-900); color: rgba(255,255,255,.7);
  padding: 52px 0 26px; font-size: 14.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.site-footer h4 {
  color: #fff; font-size: 15.5px; margin: 0 0 15px; font-weight: 600;
}
.site-footer p { margin: 0 0 9px; line-height: 1.85; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--cream); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.66);
}

/* ---------- 手机端悬浮拨号条 ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  box-shadow: 0 -3px 18px rgba(var(--green-900-rgb),.11);
  gap: 9px;
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px; border-radius: 9px; font-weight: 600; font-size: 15.5px;
}
.mobile-bar .mb-call { background: var(--orange); color: #fff; }
.mobile-bar .mb-alt { background: var(--green-50); color: var(--green-700); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  section { padding: 52px 0; }
  .nav { height: 60px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-tel { justify-content: center; margin-top: 8px; }

  .hero { min-height: 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero-stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px 21px; }
  .kb-item { padding: 21px 19px; }
  .kb-item p { padding-left: 0; margin-top: 4px; }
  .contact-cta { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 66px; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}

/* 减少动画：禁用轮播过渡 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-dot { transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
