/* ============================================
   Binobie - LED Busy Board Landing Page
   Clean CRM-style · 清爽专业
   ============================================ */

:root {
  --brand: #4F46E5;
  --brand-hover: #4338CA;
  --brand-light: #EEF2FF;
  --brand-bg: #F8FAFC;
  --brand-dark: #3730A3;
  --brand-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);

  --cta: #4F46E5;
  --cta-hover: #4338CA;
  --cta-shadow: rgba(79,70,229,0.3);

  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-compare: #F1F5F9;
  --bg-section-alt: #EEF2FF;

  --text-heading: #1E293B;
  --text-body: #475569;
  --text-muted: #94A3B8;
  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: #94A3B8;

  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --color-good: #059669;
  --color-good-bg: #D1FAE5;
  --color-bad: #DC2626;
  --color-bad-bg: #FEE2E2;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-hero: 0 8px 32px var(--cta-shadow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'Inter', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===== Nav ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  gap: 12px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-cta:hover { background: var(--brand-hover); box-shadow: var(--shadow-sm); }

/* ===== Nav: toggle + hamburger ===== */
.nav-toggle { display: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: 0.25s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--brand); }

@media (max-width: 700px) {
  .navbar { position: relative; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a:last-of-type { border-bottom: none; }

  .nav-links .nav-cta {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav-links { display: flex; }

  .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(2.5px, 2.5px);
  }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
  }
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 60px 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4F46E5 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(79,70,229,0.12);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(124,58,237,0.08);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.hero-overlay {
  max-width: 680px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.hero-overlay .badge {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-on-dark);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-overlay h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 18px;
}

.hero-overlay h1 .highlight {
  color: #A5B4FC;
  background: linear-gradient(to right, #F59E0B, #F59E0B) no-repeat left bottom / 100% 4px;
  padding-bottom: 4px;
}

.hero-overlay p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-on-dark);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-overlay .btn-hero {
  background: #fff;
  color: var(--brand);
  padding: 14px 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  transition: 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
}

.hero-overlay .btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.hero-overlay .sub-text {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

.hero-overlay .sub-text span { white-space: nowrap; }

/* ===== Section Headers ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.section-title.icon-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-title.icon-title svg {
  flex-shrink: 0;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Section Divider ===== */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 4px;
  margin: 0 auto 32px;
}

/* ===== Certifications ===== */
.cert-section {
  padding: 70px 0 50px;
  text-align: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.cert-item {
  background: var(--bg-card);
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.cert-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cert-item .icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cert-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
  line-height: 1.2;
}
.cert-item .label { color: var(--text-body); font-size: 0.9rem; font-weight: 500; }
.cert-item .note { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.cert-footnote {
  margin: 36px auto 0;
  color: var(--text-body);
  font-size: 0.9rem;
  background: var(--bg-section-alt);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid var(--border-light);
}

/* ===== Product Features ===== */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card .img-box {
  height: 200px;
  background: var(--bg-compare);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.feature-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card .info { padding: 18px 22px 22px; }
.feature-card .info h4 { font-weight: 600; margin-bottom: 4px; color: var(--text-heading); font-size: 1rem; }
.feature-card .info p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Product Detail Block ===== */
.products-section {
  padding: 40px 0 60px;
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.product-block + .product-block {
  border-top: 1px solid var(--border-light);
}

.product-block:nth-child(even) .product-image { order: 2; }
.product-block:nth-child(even) .product-info { order: 1; }

.product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.product-info .subtitle {
  font-size: 0.95rem;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 500;
}

.product-info .desc {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.specs-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
  font-weight: 600;
  min-width: 100px;
  color: var(--text-heading);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.product-info .btn-inquire {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 11px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

.product-info .btn-inquire:hover { background: var(--brand-hover); }

.product-info .btn-inquire.outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.product-info .btn-inquire.outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ===== Comparison ===== */
.compare-section {
  background: var(--bg-compare);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  margin: 20px 0 60px;
}

.compare-section > h2 {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.compare-box {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.compare-box.bad { border-top: 5px solid var(--color-bad); }
.compare-box.good { border-top: 5px solid var(--color-good); }

.compare-box h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-heading);
}

.compare-box ul { list-style: none; }

.compare-box li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-size: 0.9rem;
}

.compare-box li:last-child { border-bottom: none; }
.compare-box .cross { color: var(--color-bad); font-weight: 700; font-size: 1.1rem; }
.compare-box .check { color: var(--color-good); font-weight: 700; font-size: 1.1rem; }

/* ===== Factory ===== */
.factory-section {
  padding: 20px 0 60px;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.factory-item {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow: hidden;
  transition: 0.2s;
  position: relative;
}

.factory-item img { width: 100%; height: 100%; object-fit: cover; }

.factory-item::after {
  content: 'Binobie';
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  user-select: none;
}

.factory-item img[src*="data:image/svg+xml"] { opacity: 0; }

.factory-item .factory-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
}

.factory-note {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Blog Teaser ===== */
.blog-teaser {
  padding: 60px 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.teaser-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.teaser-card .teaser-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-compare);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.teaser-card .teaser-body {
  padding: 16px 18px 18px;
}

.teaser-card .teaser-body .teaser-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.teaser-card .teaser-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.teaser-card .teaser-body h4 a {
  color: var(--text-heading);
  text-decoration: none;
}

.teaser-card .teaser-body h4 a:hover {
  color: var(--brand);
}

.teaser-card .teaser-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teaser-card .teaser-body .teaser-meta {
  font-size: 0.77rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .blog-teaser { padding: 40px 0; }
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 50px 0 70px;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.btn-cta {
  background: var(--brand);
  color: #fff;
  padding: 16px 48px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 8px 30px rgba(79,70,229,0.3);
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.4);
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  position: relative;
  animation: fadeUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.1s;
}

.modal-close:hover { color: var(--text-heading); background: var(--bg-main); }

.modal-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-heading);
}

.modal-box .modal-sub {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.modal-box .form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-box .form-group input,
.modal-box .form-group select,
.modal-box .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-main);
  transition: 0.15s;
  width: 100%;
}

.modal-box .form-group input:focus,
.modal-box .form-group select:focus,
.modal-box .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.modal-box .form-group textarea {
  min-height: 70px;
  resize: vertical;
}

.modal-box .form-group .btn-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 4px;
}

.modal-box .form-group .btn-submit:hover { background: var(--brand-hover); }

.modal-box .form-msg {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.modal-box .form-msg.success {
  display: block;
  background: var(--color-good-bg);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.modal-box .form-msg.error {
  display: block;
  background: var(--color-bad-bg);
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== Inside Modal: Dynamic Form Renderer (dr-*) ===== */
.contact-form-box .dr-fields,
.modal-box .dr-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-form-box .dr-field,
.modal-box .dr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form-box .dr-field[data-type="textarea"],
.contact-form-box .dr-field[data-type="select"],
.modal-box .dr-field[data-type="textarea"],
.modal-box .dr-field[data-type="select"] {
  grid-column: 1 / -1;
}
.contact-form-box .dr-label,
.modal-box .dr-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-heading);
}
.contact-form-box .dr-req,
.modal-box .dr-req {
  color: #DC2626;
  margin-left: 2px;
}
.contact-form-box .dr-field input,
.contact-form-box .dr-field select,
.contact-form-box .dr-field textarea,
.modal-box .dr-field input,
.modal-box .dr-field select,
.contact-form-box .dr-field textarea,
.modal-box .dr-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-body);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-sizing: border-box;
}
.contact-form-box .dr-field input:focus,
.contact-form-box .dr-field select:focus,
.contact-form-box .dr-field textarea:focus,
.modal-box .dr-field input:focus,
.modal-box .dr-field select:focus,
.modal-box .dr-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.contact-form-box .dr-field textarea,
.modal-box .dr-field textarea {
  min-height: 72px;
  resize: vertical;
}
.contact-form-box .dr-privacy,
.modal-box .dr-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 2px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.contact-form-box .dr-privacy input,
.modal-box .dr-privacy input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.contact-form-box .dr-privacy a,
.modal-box .dr-privacy a {
  color: var(--brand);
  text-decoration: none;
}
.contact-form-box .dr-privacy a:hover,
.modal-box .dr-privacy a:hover {
  opacity: 0.85;
}
.contact-form-box .dr-privacy .dr-req,
.modal-box .dr-privacy .dr-req {
  color: #DC2626;
}
.contact-form-box .dr-submit,
.modal-box .dr-submit {
  width: 100%;
  padding: 12px 20px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 8px;
}
.contact-form-box .dr-submit:hover,
.modal-box .dr-submit:hover {
  opacity: 0.9;
}
.contact-form-box .dr-submit:disabled,
.modal-box .dr-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.contact-form-box .dr-msg,
.modal-box .dr-msg {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.contact-form-box .dr-msg.success,
.modal-box .dr-msg.success {
  display: block;
  background: var(--color-good-bg);
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.contact-form-box .dr-msg.error,
.modal-box .dr-msg.error {
  display: block;
  background: var(--color-bad-bg);
  color: #991B1B;
  border: 1px solid #FECACA;
}
.contact-form-box .form-error,
.modal-box .form-error {
  color: #DC2626;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 36px 24px 0;
  margin-top: 24px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-heading);
  flex-shrink: 0;
}
.footer-brand span { color: var(--brand); }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: 0.1s;
}
.footer-nav a:hover { color: var(--brand); }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  /* 图标与文字用 flex 垂直居中，不依赖字体基线（移动端浏览器渲染更稳） */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-contact a svg {
  flex: 0 0 auto;
}
.footer-contact a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 16px 24px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-bottom .footer-policy { margin-left: 10px; }
.footer-bottom .footer-policy a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: 0.2s;
}
.footer-bottom .footer-policy a:hover { color: var(--brand); border-bottom-color: var(--brand); }

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-bottom: 12px;
  }
  .footer-nav { gap: 20px; justify-content: center; }
  .footer-contact { flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
}

@media (max-width: 600px) {
  .footer { padding: 28px 18px 0; }
  .footer-nav { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .footer-contact { flex-direction: column; align-items: center; gap: 4px; }
  .footer-bottom { padding: 12px 18px; font-size: 0.72rem; }

  /* 移动端版权与隐私链接改为纵向两行，避免同行拥挤/重叠 */
  .footer-bottom .footer-policy {
    display: block;
    margin: 6px 0 0;
  }
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 900px) {
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .product-block { gap: 32px; padding: 44px 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .navbar { padding: 12px 18px; }
  .nav-cta { padding: 8px 18px; font-size: 0.8rem; }

  .hero { min-height: 80vh; padding: 40px 0; }
  .hero-overlay .badge { font-size: 0.72rem; padding: 5px 14px; }
  .hero-overlay .btn-hero { font-size: 0.95rem; padding: 13px 32px; }
  .hero-overlay .sub-text { font-size: 0.82rem; gap: 4px 14px; }

  .cert-section { padding: 50px 0 30px; }
  .cert-grid { gap: 16px; }
  .cert-item { padding: 24px 16px; }

  .features-section { padding: 40px 0; }
  .features-grid { gap: 18px; }

  .products-section { padding: 20px 0 40px; }
  .product-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .product-block:nth-child(even) .product-image { order: 0; }
  .product-image { aspect-ratio: 1/1; }

  .compare-section { padding: 36px 20px; margin: 10px 0 40px; border-radius: 20px; }
  .compare-grid { gap: 20px; }
  .compare-box { padding: 22px 18px; }

  .factory-section { padding: 10px 0 40px; }
  .factory-grid { gap: 10px; }

  .cta-section { padding: 36px 0 50px; }
  .btn-cta { font-size: 1rem; padding: 14px 36px; }

  .modal-box { padding: 28px 20px; border-radius: 20px; }
  .modal-box h3 { font-size: 1.2rem; }
  .modal-box .form-group input,
  .modal-box .form-group select,
  .modal-box .form-group textarea { font-size: 16px; }

  .section-sub { margin-bottom: 32px; }
}

/* Mobile small */
@media (max-width: 480px) {
  .navbar { flex-wrap: wrap; gap: 8px; justify-content: center; }

  .hero { min-height: 75vh; padding: 32px 0; }
  .hero-overlay .badge { margin-bottom: 20px; }
  .hero-overlay p { margin-bottom: 24px; }

  .cert-grid { grid-template-columns: 1fr; max-width: 340px; }
  .cert-item .number { font-size: 1.7rem; }

  .compare-grid { grid-template-columns: 1fr; }
  .compare-section { border-radius: 16px; }
  .factory-grid { grid-template-columns: 1fr 1fr; }
}

/* Very small screens */
@media (max-width: 360px) {
  .navbar { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-overlay h1 { font-size: 1.6rem; }
}
