/* ============================================================
   B2B Independent Site - Shared Styles
   专业 · 可信 · 响应式。修改主色只需改 :root 里的变量。
   ============================================================ */

:root {
  --primary: #123a63;
  --primary-light: #1b5488;
  --accent: #e07b39;
  --accent-hover: #c96a2c;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-alt: #eef2f7;
  --text: #1c2733;
  --text-muted: #5a6875;
  --border: #dce3ea;
  --radius: 8px;
  --max-width: 1140px;
  --shadow: 0 4px 18px rgba(18, 58, 99, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}
.site-nav ul { display: flex; list-style: none; gap: 26px; }
.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 88px 0 92px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.7rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 1.1rem; color: #dce8f4; margin-bottom: 30px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
}
.hero-visual .big { font-size: 3.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-visual .label { color: #dce8f4; margin-top: 10px; font-size: 0.95rem; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; color: var(--primary); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(18,58,99,0.12); }
.card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .icon {
  width: 48px; height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.92rem; }

/* Product cards */
.product-img {
  background: var(--bg-alt);
  border-radius: var(--radius);
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.split .visual-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: 12px;
}
.hero-visual img { width: 100%; object-fit: contain; }

/* 产品分类区块 */
.category-block { margin-bottom: 52px; }
.category-block h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.category-block .cat-desc { color: var(--text-muted); margin-bottom: 22px; font-size: 0.94rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--primary);
  color: #fff;
  padding: 34px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid .num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.trust-grid .lbl { font-size: 0.9rem; color: #dce8f4; margin-top: 4px; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual-box {
  background: var(--bg-alt);
  border-radius: 12px;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.split h2 { font-size: 2rem; color: var(--primary); margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }
.check-list { list-style: none; margin: 20px 0 28px; }
.check-list li { padding: 8px 0 8px 30px; position: relative; color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-alt);
  padding: 54px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); max-width: 700px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.spec-table th, .spec-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.94rem;
}
.spec-table th { background: var(--bg-alt); color: var(--primary); }
.spec-table tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { color: var(--primary); font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); }

/* ---------- Inquiry form ---------- */
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
.contact-info .info-item { margin-bottom: 26px; }
.contact-info .info-item strong { display: block; color: var(--primary); margin-bottom: 4px; }
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(27,84,136,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-band p { color: #dce8f4; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2740; color: #b9c8d8; padding: 54px 0 24px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b9c8d8; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* ---------- Placeholder helper (only for template stage) ---------- */
.ph { background: #fff6e5; border: 1px dashed #e0a94a; border-radius: 4px; padding: 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .form-wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 4%;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 12px; }
  .header-inner .nav-cta .btn { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0; }
  section { padding: 56px 0; }
  .grid-3, .grid-4, .trust-grid { grid-template-columns: 1fr; }
  .section-head h2, .split h2, .cta-band h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
