:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-alt: #eef2f7;
  --text: #1a1a2e;
  --muted: #6b7280;
  --brand: #1b3a5c;
  --brand-dark: #11263d;
  --accent: #e8782a;
  --line: #d8dee9;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(27, 58, 92, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.3rem;
  align-items: stretch;
}

.tag {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  background: #dce7ff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin: 0 0 0.6rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.hero-desc,
.section-lead,
.card p,
.timeline p,
.job-item p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  background: #cd6721;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #edf2ff;
}

.btn-small {
  padding: 0.4rem 0.75rem;
}

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.hero-metrics {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.hero-metrics strong {
  font-size: 1.1rem;
}

.hero-metrics span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
  padding: 1.1rem;
}

.hero-card ul {
  margin: 0.6rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.helper {
  margin: 0;
  font-size: 0.9rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--panel-alt);
}

.hero-full {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(130deg, #214468 0%, #274f77 40%, #2e608f 100%);
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 45%);
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero-full .tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.hero-full .hero-desc {
  color: rgba(255, 255, 255, 0.9);
}

.cards {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

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

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

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ph-image {
  border: 1px dashed #afbdd3;
  border-radius: 12px;
  background: #f8fafd;
  min-height: 96px;
  color: #66758d;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.9rem;
}

.ph-image.lg {
  min-height: 180px;
}

.placeholder-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--brand);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: process;
}

.process-flow li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.tab-panel {
  display: none;
  margin-top: 0.9rem;
}

.tab-panel.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-grid .lg {
  grid-column: span 2;
}

.logo-wall {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.logo-wall span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f5fb;
  color: #6f7d93;
  text-align: center;
  padding: 0.65rem 0.4rem;
  font-size: 0.86rem;
}

.quote-card p {
  font-style: italic;
}

.quote-section {
  background: linear-gradient(135deg, #213f61 0%, #1a3553 100%);
  color: #fff;
}

.quote-section .section-lead {
  color: rgba(255, 255, 255, 0.9);
}

.quote-section .lead-form {
  margin-top: 1rem;
}

.quote-section .lead-form label {
  color: var(--text);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.align-center {
  text-align: center;
}

.mt-20 {
  margin-top: 1.2rem;
}

.page-banner {
  background: linear-gradient(120deg, #213f61 0%, #2e5b87 100%);
  color: #fff;
  padding: 3rem 0;
}

.page-banner p {
  margin: 0;
  opacity: 0.92;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-bar button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.filter-bar .active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
}

.thumb-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 1rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.footer-columns h3 {
  font-size: 1rem;
}

.footer-columns a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.footer-columns .qr {
  min-height: 64px;
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-actions {
  display: none;
  position: fixed;
  right: 0.8rem;
  bottom: 1rem;
  z-index: 50;
  gap: 0.45rem;
  flex-direction: column;
}

.floating-actions a {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.floating-actions a:first-child {
  background: var(--accent);
}

.floating-actions a:last-child {
  background: var(--brand);
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline > div {
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 0.75rem 0.9rem;
  background: var(--panel);
}

.job-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.job-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}

.job-item span {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.contact-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #c8d2e5;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 87, 245, 0.15);
}

.form-tip {
  margin: 0.7rem 0 0;
  min-height: 1.3rem;
  font-size: 0.9rem;
  color: var(--brand);
}

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

.footer-wrap {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-wrap a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-grid,
  .stats-grid,
  .process-flow,
  .gallery-grid,
  .logo-wall,
  .footer-columns,
  .about-grid,
  .detail-grid,
  .grid-two,
  .thumb-grid,
  .contact-grid,
  .cards.three,
  .cards.two,
  .cards.four,
  .cards.five {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .nav.open {
    display: flex;
  }

  .floating-actions {
    display: flex;
  }
}
