﻿:root {
  --color-primary: #0e4a7b;
  --color-primary-hover: #0a3a61;
  --color-accent: #17a2a0;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #1c2733;
  --color-text-muted: #5c6b7a;
  --color-border: #d8e0e8;
  --color-danger: #d64545;
  --shadow-sm: 0 4px 16px rgba(16, 36, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 36, 56, 0.12);
  --radius: 12px;
  --container: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.7 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2000;
}

.skip-link:focus {
  left: 8px;
}

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f2f6fb 0%, #f8fbff 100%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.tag,
.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 162, 160, 0.3);
  color: #0f6d6b;
  background: #ecfbfa;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.caption {
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
  transition: min-height 0.2s ease, box-shadow 0.2s ease;
  min-height: var(--header-h);
}

.site-header.is-shrink {
  --header-h: 62px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-right: auto;
  width: 400px;
}

.logo span {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 1.6px;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  padding: 8px 0;
  font-weight: 600;
  color: #32485e;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--color-surface);
  color: #3f556a;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-secondary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

.btn-secondary:hover {
  background: #eef5ff;
}

.text-link {
  color: var(--color-primary);
  font-weight: 700;
}

.hero {
  padding-top: 96px;
}

.hero-grid,
.product-grid,
.two-col,
.contact-grid {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
}

.hero-visual,
.media-placeholder,
.map-placeholder,
.cert-placeholder {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 30%, rgba(23, 162, 160, 0.35), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(14, 74, 123, 0.35), transparent 40%),
    linear-gradient(135deg, #dae8f6, #f2f7fd);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.hero-visual,
.media-placeholder {
  min-height: 300px;
}

.map-placeholder {
  min-height: 280px;
}

.cert-placeholder {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: #315171;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-hero {
  padding-top: 112px;
  padding-bottom: 46px;
}

.anchor-nav-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 600;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 0;
}

.anchor-nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
}

.timeline li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
}

.milestone {
  list-style: none;
  padding: 0;
  border-left: 3px solid #b4cadf;
}

.milestone li {
  position: relative;
  padding: 0 0 18px 20px;
}

.milestone li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  position: absolute;
  left: -7px;
  top: 7px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  color: #385067;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.empty-state {
  text-align: center;
  color: var(--color-danger);
  margin-top: 18px;
}

.contact-band {
  background: linear-gradient(120deg, #0e4a7b, #10609f);
  color: #fff;
}

.contact-band p,
.contact-band h2 {
  color: #fff;
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.contact-mini p {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-mini img,
.contact-card img {
  width: 18px;
  height: 18px;
}

.cta-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card,
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-card label {
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  border: 1px solid #c7d2de;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}

.form-card input:focus-visible,
.form-card select:focus-visible,
.form-card textarea:focus-visible,
.filter-btn:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(23, 162, 160, 0.35);
  outline-offset: 2px;
}

.site-footer {
  background: #132437;
  color: #dbe7f1;
  padding: 42px 0 22px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #c4d5e5;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #173047;
  margin: 5px 0;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-grid,
  .product-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-tools .btn,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    display: none;
  }

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

  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .anchor-nav-wrap {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
