/* ============================================================
   四川华货优电子商务有限公司 · 官网样式 (商务蓝)
   Desktop-first, clean, corporate blue theme
   ============================================================ */

:root {
  --primary: #0f5aa8;
  --primary-dark: #0a437f;
  --primary-deep: #07335f;
  --primary-light: #3b82c4;
  --primary-soft: #e8f1fa;
  --accent: #f0a500;
  --accent-dark: #d68d00;
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --text: #24303f;
  --text-muted: #63707f;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 90, 168, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 90, 168, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 90, 168, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.28); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 36px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-mark {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav { display: flex; gap: 6px; }
.nav-link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); font-weight: 700; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--primary-dark); font-size: 15px; }
.nav-toggle {
  display: none;
  background: none; border: none; font-size: 26px; cursor: pointer; color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-light) 100%);
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.22), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  max-width: 720px;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.hero-stat b { font-size: 30px; display: block; color: #fff; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ---------- Section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- Feature cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.card .card-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link:hover { color: var(--primary-dark); }

/* ---------- About / intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px;
  color: #fff;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual .big { font-size: 40px; font-weight: 800; }
.split-visual .sub { margin-top: 12px; color: rgba(255,255,255,0.85); font-size: 15px; }
.split-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.split-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; color: var(--text); font-size: 15px;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 18px;
}

/* ---------- Steps (定制流程) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 26px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-muted); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; font-weight: 800;
}
.product-cover.alt1 { background: linear-gradient(135deg, #0a437f, #3b82c4); }
.product-cover.alt2 { background: linear-gradient(135deg, #07335f, #1a5fb4); }
.product-cover.alt3 { background: linear-gradient(135deg, #1a5fb4, #5aa4e0); }
.product-body { padding: 22px; }
.product-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-tag {
  display: inline-block; font-size: 12px; padding: 3px 10px;
  border-radius: 999px; background: var(--primary-soft); color: var(--primary);
  font-weight: 600; margin-bottom: 12px;
}
.product-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.product-body .card-link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  border-radius: var(--radius);
  padding: 48px 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta h2 { font-size: 30px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.9); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-note {
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 22px;
}
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .ci-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item .ci-label { font-size: 13px; color: var(--text-muted); }
.contact-item .ci-value { font-size: 16px; font-weight: 600; color: var(--text); word-break: break-all; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,90,168,0.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-tip { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #f0faf3; border: 1px solid #b7e4c7; color: #1a7f37;
  padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px;
}
.form-success.show { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 680px; margin: 0 auto; font-size: 17px; }
.breadcrumb { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.8); }
.breadcrumb a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep);
  color: #dbe6f1;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 24px;
}
.footer-brand .logo-mark { color: #fff; font-size: 26px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #b9c9db; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #b9c9db; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}
.footer-bottom p { margin-bottom: 6px; color: #9fb3c8; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 24px;
}
.legal h1 { font-size: 28px; margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.legal h2 { font-size: 20px; color: var(--primary); margin: 28px 0 12px; }
.legal p, .legal li { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal .notice {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  padding: 14px 18px; border-radius: 6px; margin: 18px 0; font-size: 14px;
}

/* ---------- Under development badge ---------- */
.dev-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff7e6; border: 1px solid #ffe0a3; color: #a56700;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.dev-badge::before {
  content: "⏳";
  font-size: 15px;
}
.dev-section {
  border: 2px dashed #ffd591; background: #fffdf7; border-radius: var(--radius);
  padding: 48px; text-align: center; margin: 24px 0;
}
.dev-section h3 { color: #a56700; font-size: 20px; margin-bottom: 8px; }
.dev-section p { color: #8a6d3b; font-size: 15px; }

/* ---------- Reveal animation ---------- */
/* Only hide content when JS is available (html.js added by main.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  background: var(--primary-soft); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* ---------- Responsive (still desktop-first, degrade gracefully) ---------- */
@media (max-width: 1024px) {
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 20px; gap: 4px; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .cards-grid, .cards-grid.cols-4, .product-grid, .steps, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cta, .form-row { grid-template-columns: 1fr; }
  .hero-stats, .footer-grid { grid-template-columns: 1fr; }
}
