/* 苏州安启鑫环保科技 — 三页平铺 · 浅绿主题 */
:root {
  --mint-50: #f4faf6;
  --mint-100: #e8f5ee;
  --mint-150: #dceee4;
  --mint-200: #c8e6d4;
  --green-700: #1f6b4f;
  --green-800: #165a42;
  --green-900: #0f4634;
  --ink: #2a3d36;
  --ink-soft: #5a7268;
  --ink-muted: #7a9086;
  --line: #c5ddd0;
  --white: #ffffff;
  --shadow: 0 10px 32px rgba(22, 90, 66, 0.1);
  --radius: 14px;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 64px;
  --footer-h: 72px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--mint-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-x: hidden;
}

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

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

/* 顶栏/页脚：宽幅铺开 */
.container {
  width: 100%;
  padding-inline: var(--pad-x);
  margin-inline: 0;
}

/* —— Header —— */
.site-header {
  flex-shrink: 0;
  height: var(--header-h);
  background: rgba(244, 250, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
}

.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--green-700);
  background: var(--mint-150);
}

.site-nav a.is-active {
  background: var(--green-800);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-800);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Main：铺满可视区 —— */
.page-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  padding: 0;
}

.page-panel {
  width: 100%;
  padding: clamp(1.25rem, 3vh, 2.25rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

.page-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 107, 79, 0.1);
  border: 1px solid rgba(31, 107, 79, 0.22);
  color: var(--green-700);
  margin-bottom: 0.85rem;
}

.page-copy h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.28;
  margin-bottom: 0.65rem;
}

.page-copy .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.page-copy .desc {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
  max-width: 38em;
  line-height: 1.7;
}

.page-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.page-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  list-style: none;
}

.page-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-700);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  align-items: center;
}

.copy-tip {
  width: 100%;
  font-size: 0.88rem;
  color: var(--green-700);
  font-weight: 500;
  min-height: 1.25em;
  margin-top: 0.35rem;
}

/* 图片区：占满右栏、更大 */
.page-visual {
  display: grid;
  gap: 1rem;
  min-width: 0;
  height: 100%;
  align-content: center;
}

.page-visual.single {
  grid-template-columns: 1fr;
}

.page-visual.dual {
  grid-template-columns: 1fr 1fr;
}

.page-visual figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--mint-150);
  height: min(58vh, 480px);
  display: flex;
  flex-direction: column;
}

.page-visual.dual figure {
  height: min(52vh, 420px);
}

.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1 1 auto;
  min-height: 0;
}

.page-visual figcaption {
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-800);
  background: rgba(244, 250, 246, 0.96);
  border-top: 1px solid var(--line);
  text-align: center;
}


/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  text-align: center;
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 90, 66, 0.2);
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-800);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  background: var(--mint-100);
  border-color: var(--green-700);
}

.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-700);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: var(--mint-150);
}

/* —— Footer —— */
.site-footer {
  flex-shrink: 0;
  min-height: var(--footer-h);
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.7rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  flex-shrink: 0;
}

.footer-name {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
}

.footer-meta {
  font-size: 0.78rem;
  opacity: 0.7;
}

.footer-meta a {
  color: var(--mint-200);
}

.footer-beian {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 0.15rem;
}

.footer-beian a {
  color: var(--mint-200);
}

.footer-beian a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint-200);
  letter-spacing: 0.02em;
}

.footer-phone:hover {
  color: var(--white);
  text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .page-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: start;
    min-height: auto;
    padding-block: 1.25rem 1.5rem;
  }

  .page-visual.dual {
    grid-template-columns: 1fr 1fr;
  }

  .page-visual figure,
  .page-visual.dual figure {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--mint-50);
    border-bottom: 1px solid var(--line);
    padding: 0.65rem var(--pad-x) 0.9rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .page-visual.dual {
    grid-template-columns: 1fr;
  }

  .page-visual figure,
  .page-visual.dual figure {
    height: 200px;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-height: 720px) and (min-width: 961px) {
  .page-visual figure {
    height: min(48vh, 380px);
  }

  .page-visual.dual figure {
    height: min(44vh, 340px);
  }

  .page-copy h1 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.footer-sep { margin: 0 0.35rem; opacity: 0.5; }
.footer-gongan { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--mint-200); }
.footer-gongan:hover { color: var(--white); text-decoration: underline; }
.gongan-icon { width: 14px; height: 14px; object-fit: contain; }
