/* ============================================================
   JMJ International - Global Stylesheet
   Modern Minimal Design · Brand Teal（品牌青绿色 #2a9d8f）
   ============================================================ */

:root {
  /* Neutral surfaces */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --line: #e2e8f0;

  /* Text */
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;

  /* Brand accent (from JMJ logo teal) */
  --accent: #2a9d8f;
  --accent-hover: #21867a;
  --accent-soft: rgba(42, 157, 143, 0.09);
  --accent-ring: rgba(42, 157, 143, 0.20);
  --accent-light: #8adccc;

  /* Dark sections */
  --dark: #0f172a;
  --dark-2: #1e293b;

  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  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: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42, 157, 143, 0.30); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--accent-light); font-weight: 500; }
.topbar span { margin-right: 22px; letter-spacing: 0.2px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.logo { display: flex; align-items: center; gap: 13px; }
.logo img { height: 50px; width: auto; }
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav .nav-cta .btn { padding: 10px 22px; border-radius: 8px; }
.main-nav .nav-cta a::after { display: none; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 15, 28, 0.85) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.25) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 660px; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero .kicker::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats Bar ---------- */
.stats-bar { background: var(--dark); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center;
  padding: 40px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat-label { color: rgba(255, 255, 255, 0.55); font-size: 13.5px; letter-spacing: 0.3px; margin-top: 6px; }

/* ---------- Category / Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.product-card .img-wrap { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card .card-body { padding: 24px 24px 28px; }
.product-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }
.card-link::after { content: '→'; }

/* ---------- Strengths ---------- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.strength-item {
  background: var(--bg);
  border-radius: 16px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  transition: 0.25s;
}
.strength-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.strength-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.strength-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.strength-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.strength-item p { color: var(--muted); font-size: 14px; }

/* ---------- Split Section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .img-side { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.split .text-side h2 { font-size: 32px; font-weight: 700; margin-bottom: 18px; }
.split .text-side > p { color: var(--muted); margin-bottom: 22px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 21px; height: 21px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Market Pills ---------- */
.market-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.market-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  transition: 0.2s;
}
.market-pill:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.market-pill::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* ---------- Process Timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.process-step { text-align: center; padding: 0 6px; position: relative; }
.step-num {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 23px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line);
  z-index: 0;
}
.process-step:first-child::before { display: none; }
.process-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--muted); }

/* ---------- Value Photos (About page) ---------- */
.value-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-photo {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  transition: 0.25s;
}
.value-photo:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.value-photo img { width: 100%; display: block; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 { color: #fff; font-size: 32px; font-weight: 700; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; font-size: 17px; }

/* ---------- Page Banner (inner pages) ---------- */
.page-banner {
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
  position: relative;
  color: #fff;
  text-align: center;
}
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(10, 15, 28, 0.66); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-banner p { color: rgba(255, 255, 255, 0.78); max-width: 620px; margin: 0 auto; font-size: 17px; }
.breadcrumb { font-size: 12.5px; font-weight: 600; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 16px; text-transform: uppercase; }

/* ---------- Products Page ---------- */
.category-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 56px 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.category-title:first-of-type { margin-top: 0; }
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.category-block .product-row:last-child { border-bottom: none; }
.product-row:nth-child(even) .row-img { order: 2; }
.row-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--bg-alt); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.row-text p { color: var(--muted); margin-bottom: 20px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.spec-tag {
  font-size: 12.5px;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- About Page ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.about-grid .text-side h2 { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.about-grid .text-side p { color: var(--muted); margin-bottom: 16px; }
.about-imgs { display: grid; gap: 20px; }
.about-imgs img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 26px; }
.info-line { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.info-line .info-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(42, 157, 143, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.info-line .info-icon svg { width: 19px; height: 19px; stroke: var(--accent-light); fill: none; stroke-width: 1.8; }
.info-line h4 { font-size: 12.5px; font-weight: 600; color: var(--accent-light); letter-spacing: 1.5px; margin-bottom: 4px; text-transform: uppercase; }
.info-line p, .info-line a { font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
.info-line a:hover { color: var(--accent-light); }

.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  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(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.65); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; margin-bottom: 6px; display: block; }
.footer-tagline { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; display: block; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col p { font-size: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; transition: 0.2s; }
.footer-col ul a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .fc-icon { color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255, 255, 255, 0.65); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 19px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(42, 157, 143, 0.35);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--accent-hover); }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .products-grid, .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .process-step:nth-child(4)::before { display: none; }
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar span { display: none; }
  .topbar .container { justify-content: center; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 14px 0; }
  .main-nav ul li { width: 100%; text-align: center; }
  .main-nav ul a { display: block; padding: 13px 0; }
  .main-nav .nav-cta { margin: 10px 0 6px; }
  .hero { min-height: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .products-grid, .strengths-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none; }
  .section { padding: 64px 0; }
  .product-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .product-row:nth-child(even) .row-img { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .value-photo-grid { grid-template-columns: 1fr 1fr; }
}
