/*
  统一样式文件：可在此修改配色、字体、间距。
  注：所有图片与文字均为占位内容，后续可直接替换。
*/
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0f5bff;
  --primary-dark: #0d4ed8;
  --border: #e5e7eb;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  font-size: 15px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  margin: 6px 0;
}

.hero,
.page-banner {
  background: #f3f6ff;
  padding: 80px 0;
}

.hero-content,
.about-preview-inner,
.intro-grid,
.contact-grid,
.news-grid,
.process-grid,
.stats-grid,
.card-grid {
  display: grid;
  gap: 24px;
}

.hero-content {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero h1,
.page-banner h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 3.5rem);
  line-height: 1.05;
}

.eyebrow,
.small-title,
.news-date {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead,
.page-banner p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.hero-image img,
.about-preview-image img,
.news-card-image img,
.product-image img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 40px;
}

.about-preview-inner {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-preview-image {
  justify-self: end;
}

.news-list,
.stats-grid {
  display: grid;
  gap: 20px;
}

.news-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-item,
.card,
.contact-card,
.news-card,
.product-card,
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: grid;
  gap: 18px;
}

.product-image {
  overflow: hidden;
  border-radius: 18px;
}

.product-image img {
  width: 100%;
  height: auto;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  text-align: center;
}

.process-step strong {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  text-align: center;
  padding: 36px 28px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-grid {
  grid-template-columns: 1.05fr 1fr;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}

.news-articles .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card-body {
  display: grid;
  gap: 12px;
}

.news-card-body a {
  color: var(--primary);
  font-weight: 600;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand p,
.footer-contact p {
  margin: 14px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

@media (max-width: 960px) {
  .hero-content,
  .about-preview-inner,
  .product-list .card-grid,
  .news-grid,
  .contact-grid,
  .stats-grid,
  .process-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    background: #fff;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero,
  .page-banner,
  .section {
    padding: 60px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100%, calc(100% - 30px));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .button {
    width: 100%;
  }

  .contact-form label,
  .footer-links,
  .site-nav {
    width: 100%;
  }

  .hero-image,
  .about-preview-image {
    justify-self: center;
  }
}
