/* ===== Yongle Lighting - English B2B Site ===== */
:root {
  --primary: #0d2b4e;
  --primary-light: #1a4477;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #059669;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== Top Bar ===== */
.topbar {
  background: #081d36;
  color: #94a3b8;
  font-size: 13px;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: var(--accent); }

/* ===== Navbar ===== */
.navbar {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.nav-logo span { color: var(--accent); }
.nav-logo small { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }
.btn-inquiry {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 6px; font-weight: 600;
}
.btn-inquiry:hover { background: var(--accent-dark); color: #fff !important; }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(13,43,78,0.92) 0%, rgba(26,68,119,0.88) 100%),
    repeating-linear-gradient(45deg, #0d2b4e 0, #0d2b4e 40px, #0f3057 40px, #0f3057 80px);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: 40px; margin-bottom: 14px; font-weight: 700; letter-spacing: -0.5px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 760px; margin: 0 auto 24px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 32px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 30px; font-weight: 700; color: var(--accent); }
.hero-stat .label { font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }

.section-title {
  font-size: 28px; color: var(--primary);
  margin-bottom: 8px; position: relative; padding-left: 16px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; background: var(--accent); border-radius: 2px;
}
.section-sub { color: var(--text-muted); margin-bottom: 32px; padding-left: 16px; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.product-card .img-wrap {
  background: #fff; height: 220px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--border); padding: 12px;
}
.product-card .img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: 12px; margin-bottom: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; width: fit-content;
}
.tag.street { background: #dbeafe; color: #1e40af; }
.tag.garden { background: #dcfce7; color: #166534; }
.product-card h3 { font-size: 20px; color: var(--primary); margin-bottom: 6px; }
.product-card .desc {
  font-size: 14px; color: var(--text-muted); margin-bottom: 14px;
  flex: 1;
}
.product-card .meta-row {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px; flex-wrap: wrap;
}
.product-card .meta-row span { background: #f1f5f9; padding: 3px 8px; border-radius: 4px; }
.btn-detail {
  display: inline-block; padding: 9px 18px;
  background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 14px; font-weight: 600;
  transition: background 0.2s; text-align: center;
}
.btn-detail:hover { background: var(--accent-dark); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: #fff; padding: 14px 24px;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ===== Product Detail ===== */
.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.detail-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: #fff; padding: 32px; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.gallery-main {
  background: #fafafa; border-radius: 10px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border); padding: 10px;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 80px; height: 80px; object-fit: contain;
  background: #fafafa; border: 2px solid var(--border);
  border-radius: 6px; cursor: pointer; padding: 4px;
  transition: border-color 0.2s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--accent); }

.detail-info h1 { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.detail-info .sub-model { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }
.desc-block {
  background: #f8fafc; padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px; font-size: 15px;
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14.5px;
}
.spec-table th {
  background: #f1f5f9; color: var(--primary);
  font-weight: 600; width: 38%;
}

/* ===== Detail Images ===== */
.detail-section { margin-top: 40px; }
.detail-section h2 {
  font-size: 22px; color: var(--primary);
  margin-bottom: 20px; padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.detail-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.detail-imgs .di {
  background: #fff; border-radius: 10px; padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.detail-imgs .di img {
  width: 100%; height: 200px; object-fit: contain;
  background: #fafafa; border-radius: 6px;
}
.detail-imgs .di p {
  text-align: center; font-size: 13px;
  color: var(--text-muted); margin-top: 10px;
}

/* ===== CTA Box ===== */
.cta-box {
  margin-top: 40px; padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.cta-box h3 { font-size: 22px; margin-bottom: 6px; }
.cta-box p { opacity: 0.85; font-size: 14px; }
.cta-box .btn {
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 6px; font-weight: 700;
  font-size: 15px;
}
.cta-box .btn:hover { background: var(--accent-dark); }

/* ===== Pager ===== */
.pager {
  display: flex; justify-content: space-between;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pager a {
  padding: 10px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; color: var(--primary);
  transition: all 0.2s;
}
.pager a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Footer ===== */
.footer {
  background: var(--primary); color: #cbd5e1;
  padding: 48px 24px 20px; margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; margin-bottom: 6px; }
.footer ul { list-style: none; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 28px auto 0;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .detail-top { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ===== Lightbox ===== */
.lb-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lb-backdrop.open { display: flex; }
.lb-backdrop img {
  max-width: 92vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
}
.lb-close {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 36px; font-weight: 300;
  cursor: pointer; line-height: 1;
  user-select: none;
}
.lb-close:hover { color: var(--accent); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 48px; cursor: pointer;
  padding: 16px 12px; user-select: none;
  opacity: 0.6; transition: opacity 0.2s;
}
.lb-nav:hover { opacity: 1; color: var(--accent); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; opacity: 0.7;
}
/* 提示可点击 */
.gallery-main img, .detail-imgs .di img { cursor: zoom-in; }
.gallery-main img:hover, .detail-imgs .di img:hover { opacity: 0.92; }

/* 隐藏 Netlify 标签 */
.netlify-badge, a[href*="netlify.com"][target="_blank"][class*="badge"],
iframe#nl-badge-frame, iframe[src*="netlify"] {
  display: none !important;
}
