@charset "utf-8";
/* --------------------------------------------------------------------------
   程一博环保 · 官网样式（国企风格）
   规则：直角、细边框、深蓝主色、红色点缀、无阴影、无渐变装饰
   -------------------------------------------------------------------------- */

:root {
  --blue: #0b4da2;
  --blue-d: #073a7c;
  --blue-l: #e8eff8;
  --red: #c00000;
  --ink: #1f2329;
  --sub: #6b7684;
  --line: #d8dee6;
  --bg: #f3f5f8;
  --white: #fff;
  --wrap: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   顶部工具条
   -------------------------------------------------------------------------- */

.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #6b7684;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.topbar-links {
  display: flex;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Logo 区与搜索
   -------------------------------------------------------------------------- */

.masthead {
  padding: 18px 0;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  flex: none;
}

.logo-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  line-height: 1.3;
}

.logo-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8a94a3;
}

.search {
  display: flex;
  width: 260px;
  height: 36px;
  border: 1px solid var(--line);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.search button {
  width: 44px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   主导航
   -------------------------------------------------------------------------- */

.nav {
  background: var(--blue);
}

.nav .wrap {
  display: flex;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav .wrap::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 0 4px;
  min-width: 104px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.nav a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav a:hover {
  background: var(--blue-d);
}

.nav a[aria-current="page"] {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   焦点图
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #0b1220;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.is-active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 38, 0.78), rgba(6, 18, 38, 0.3));
}

.slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}

.slide h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.slide p {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

/* --------------------------------------------------------------------------
   通知公告条
   -------------------------------------------------------------------------- */

.notice {
  background: var(--red);
  color: #fff;
}

.notice .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  font-size: 13px;
}

.notice-label {
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.notice a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice a:hover {
  text-decoration: underline;
}

.notice time {
  flex: none;
  font-family: Consolas, monospace;
  font-size: 12px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   通用区块
   -------------------------------------------------------------------------- */

.sec {
  padding: 34px 0;
}

.sec-gray {
  background: var(--bg);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sec-title {
  position: relative;
  padding-left: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: var(--blue);
}

.sec-more {
  font-size: 13px;
  color: #7b8794;
  white-space: nowrap;
}

.sec-more:hover {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   首页两栏：图片 + 新闻面板
   -------------------------------------------------------------------------- */

.grid-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.banner-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.banner-figure figcaption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  font-size: 13px;
  color: #5b6674;
}

.panel {
  border: 1px solid var(--line);
  background: #fff;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  flex: 1;
  height: 44px;
  border: 0;
  background: #f1f4f8;
  color: #40505f;
  font-size: 15px;
  cursor: pointer;
}

.tabs button + button {
  border-left: 1px solid var(--line);
}

.tabs button.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px dashed #e6eaf0;
  font-size: 14px;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #22303d;
}

.news-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.news-list time {
  flex: none;
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #98a2b0;
}

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  background: #fff;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 20px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

.card p {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7684;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--blue);
}

.card-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   数据条
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.stat {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: Consolas, monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.stat span {
  font-size: 13px;
  color: #6b7684;
}

/* --------------------------------------------------------------------------
   内容页
   -------------------------------------------------------------------------- */

.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  color: #6b7684;
}

.breadcrumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.page-head {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 26px;
  font-weight: 700;
}

.page-head p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
}

.prose p + p {
  margin-top: 12px;
}

.prose {
  font-size: 15px;
  line-height: 1.95;
  color: #33414f;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 10px;
  border-left: 4px solid var(--blue);
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.table th,
.table td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.table th {
  width: 180px;
  background: #f1f4f8;
  font-weight: 700;
  color: #33414f;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: #7b8794;
}

/* --------------------------------------------------------------------------
   联系页
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-list {
  border: 1px solid var(--line);
}

.contact-row {
  display: flex;
  border-bottom: 1px solid #edf0f4;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row dt {
  width: 120px;
  flex: none;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: #33414f;
}

.contact-row dd {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
}

.phone-box {
  border: 1px solid var(--line);
  padding: 22px;
  text-align: center;
}

.phone-box .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #7b8794;
}

.phone-box .no {
  display: block;
  margin-top: 6px;
  font-family: Consolas, monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
}

.phone-box .hint {
  margin-top: 10px;
  font-size: 12px;
  color: #7b8794;
}

.btn {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 24px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-d);
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-ghost:hover {
  background: var(--blue-l);
}

/* 按钮行：多个按钮 / 按钮+说明文字的横向排列 */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 14px;
  color: var(--sub);
}

.map-box {
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: #8a94a3;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* 人工客服占位 */
.service-box {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: #fff;
}

.service-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.service-box h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.service-box p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sub);
}

.service-wx {
  font-family: Consolas, monospace;
  color: var(--ink) !important;
}

.service-box .btn {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.footer {
  margin-top: 44px;
  border-top: 3px solid var(--blue);
  background: #eef1f5;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 28px;
  padding: 36px 0 28px;
  font-size: 13px;
  color: #5b6674;
}

.footer h4 {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink);
}

.footer li {
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--blue);
}

.footer-tel {
  font-family: Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid #dde2e9;
  font-size: 12px;
  color: #8892a0;
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 14px 0;
}

/* --------------------------------------------------------------------------
   视觉密度补强：纸张颗粒 / 双规线 / 印刷细节
   -------------------------------------------------------------------------- */

/* 全站纸张颗粒，降低纯色面的“数字感” */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("../img/noise.svg");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* 导航：丝网纹理 + 当前栏目红色底线 */
.nav {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--red);
}

/* 焦点图：内嵌细框、网格纹、标题下红色短线 */
.hero::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.slide::after {
  background-image:
    linear-gradient(90deg, rgba(6, 18, 38, 0.78), rgba(6, 18, 38, 0.3)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 120px);
}

.slide h1 {
  position: relative;
  padding-bottom: 14px;
}

.slide h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
}

/* 公告条：斜纹底 + 上下白线 */
.notice {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 6px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* 区块标题：蓝色双规线 */
.sec-head {
  position: relative;
  border-bottom: 2px solid var(--blue);
}

.sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: rgba(11, 77, 162, 0.3);
}

/* 图片：内嵌白色细框，像装裱而不是贴图 */
.banner-figure img,
.card img,
.split figure img {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: -10px;
}

/* 卡片：悬停描边转主色 */
.card {
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: var(--blue);
}

/* 数据条：顶部主色粗线 */
.stats {
  border-top: 3px solid var(--blue);
}

.stat b {
  font-variant-numeric: tabular-nums;
}

/* 表格：顶部粗线 + 行悬停 */
.table {
  border-top: 3px solid var(--blue);
}

.table tbody tr:hover td {
  background: #f7f9fc;
}

/* 内页标题：红色短线 */
.page-head h1 {
  position: relative;
  padding-bottom: 12px;
}

.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--red);
}

/* 电话框：顶部主色压边 */
.phone-box {
  border-top: 3px solid var(--blue);
}

/* 地图占位：斜向细纹，明确是待替换 */
.map-box {
  background-image: repeating-linear-gradient(45deg, #eef2f7 0 8px, #f6f8fb 8px 16px);
}

/* 页脚：蓝色顶线上的红色一段 */
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 150px;
  height: 3px;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .masthead .wrap {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }

  .nav a {
    min-width: 88px;
    font-size: 14px;
  }

  .hero {
    height: 320px;
  }

  .slide h1 {
    font-size: 26px;
  }

  .slide p {
    font-size: 14px;
  }

  .grid-news,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .sec-title {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  /* 窄屏顶部条：只保留咨询热线，避免换行后被栏高裁切 */
  .topbar .wrap > span {
    display: none;
  }

  .topbar-links {
    gap: 12px;
    margin-left: auto;
  }

  .topbar-links a + a {
    display: none;
  }

  .logo-name {
    font-size: 18px;
  }

  .card-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .notice .wrap {
    gap: 10px;
  }

  .notice time {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-row dt {
    width: 96px;
  }

  .table {
    font-size: 12px;
  }

  .table th {
    width: 92px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
  }
}

/* --------------------------------------------------------------------------
   在线询价表单
   -------------------------------------------------------------------------- */

.form {
  margin-top: 8px;
  max-width: 860px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #33414f;
}

.field label .req {
  margin-left: 4px;
  color: var(--red);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: #7b8794;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.form-status {
  min-height: 20px;
  font-size: 13px;
  color: #5b6674;
}

.form-status[data-state="ok"] {
  color: #1a7f3c;
}

.form-status[data-state="err"] {
  color: var(--red);
}

.form button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* 蜜罐字段：给自动化提交用，真人看不到 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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