:root {
  --primary: #0e7490;
  --primary-dark: #0a5a70;
  --primary-soft: #e6f1f5;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --border: #e5e9ee;
  --dark: #0e2a33;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 43, 51, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 43, 51, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; color: var(--dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.text-center { text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-small { padding: 6px 14px; font-size: 14px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-block { width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; color: var(--primary); }
.brand-text small { font-size: 12px; color: var(--muted); }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: #fff; background: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ---------- 首页横幅 ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 42, 51, 0.88) 0%, rgba(8, 42, 51, 0.55) 60%, rgba(8, 42, 51, 0.35) 100%); }
.hero-content { position: relative; padding: 96px 20px; max-width: 1140px; }
.hero h1 { font-size: 40px; color: #fff; margin-bottom: 16px; }
.hero-sub { font-size: 18px; max-width: 640px; color: rgba(255, 255, 255, 0.92); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); }
.section-cta { text-align: center; margin-top: 32px; }

/* ---------- 内页横幅 ---------- */
.page-banner { background: var(--dark); color: #fff; padding: 48px 0; }
.page-banner h1 { color: #fff; font-size: 32px; }
.page-banner p { color: rgba(255, 255, 255, 0.85); max-width: 720px; margin: 0; }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}
.feature-card h3 { font-size: 19px; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { background: #fff; border-bottom: 1px solid var(--border); }
.product-img img { width: 100%; height: 220px; object-fit: contain; padding: 16px; }
.product-body { padding: 20px; }
.product-cat { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.product-body h3 { font-size: 18px; }
.product-body p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 18px; color: var(--primary); }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- 为什么选择 ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why-text h2 { font-size: 28px; }
.check-list { margin: 20px 0 24px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }

/* ---------- 资质 ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cert-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #cfe4ec;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}
.cert-img { max-width: 340px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: var(--primary); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin: 0; }

/* ---------- 分类卡片 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.category-card h3 { font-size: 17px; color: var(--primary); }
.category-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 产品列表（产品页） ---------- */
.product-grid-full { grid-template-columns: repeat(3, 1fr); }
.feature-list { margin-top: 12px; }
.feature-list li { position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.feature-list li::before { content: "•"; position: absolute; left: 4px; color: var(--primary); }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.about-text h2 { font-size: 28px; }
.about-aside { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.about-aside h3 { font-size: 18px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.info-list li:last-child { border-bottom: 0; }
.info-list li span { color: var(--muted); flex-shrink: 0; }

.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.factory-item { margin: 0; }
.factory-item img { border-radius: var(--radius); box-shadow: var(--shadow); height: 200px; width: 100%; object-fit: cover; }
.factory-item figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact-strip h2 { margin-bottom: 12px; }
.contact-strip p { margin: 0 0 4px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 26px; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: fit-content; }

.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-tip { color: var(--muted); font-size: 14px; }
.required { color: #dc2626; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-row label small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-row textarea { resize: vertical; min-height: 120px; }

.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.captcha-row img { border: 1px solid var(--border); border-radius: 6px; height: 44px; }
.captcha-row input { width: 160px !important; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 15px; }
.flash-success { background: #e8f7ee; color: #15803d; border: 1px solid #bbe6c9; }
.flash-error { background: #fdecea; color: #b91c1c; border: 1px solid #f5c6c2; }

/* ---------- 隐私页 ---------- */
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding: 48px 20px 32px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-col p { color: #cbd5e1; margin-bottom: 8px; }
.footer-title { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; font-size: 14px; }
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { color: #cbd5e1; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid, .service-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid-full { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 12px 10px; border-radius: 6px; }

  .hero-content { padding: 72px 20px; }
  .hero h1 { font-size: 30px; }

  .feature-grid, .service-grid, .category-grid,
  .product-grid, .product-grid-full, .factory-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .section { padding: 44px 0; }
}
