﻿/* ============================================
   YILON - 东莞市翼隆实业有限公司 企业网站
   Style Sheet
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
  --primary: #1A56DB;
  --primary-dark: #1344b0;
  --primary-light: #e8effd;
  --primary-rgb: 26, 86, 219;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-nav: #ffffff;
  --dark-footer: #0f172a;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #f0f2f5;
  --gray: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Section --- */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { text-align: center; font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto 48px; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark-nav); height: var(--header-height);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 8px; color: var(--dark); font-size: 1.25rem; font-weight: 700; text-decoration: none; height: 56px; overflow: hidden; }
.navbar-brand:hover { color: var(--primary); }
.navbar-brand img { height: 140px; width: auto; margin-top: 11px; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a { color: var(--text-light); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.96rem; font-weight: 500; transition: all 0.2s; text-decoration: none; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: rgba(26,86,219,0.06); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

/* --- Lang Switch --- */
.lang-switch { display: flex; gap: 4px; margin-left: 12px; }
.lang-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: 1px solid var(--gray); background: transparent; color: var(--text-light); transition: all 0.2s; text-transform: uppercase; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* --- Hero Carousel --- */
/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-align: center; white-space: normal; cursor: pointer; transition: all 0.3s; text-decoration: none; border: 2px solid transparent; background-clip: padding-box; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3); }
.btn-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* --- Products Grid --- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { display: block; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card-img { width: 100%; aspect-ratio: 1/1; max-height: 280px; background: #f5f5f5; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.spec-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: var(--primary-light); color: var(--primary); }
.product-card-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* --- Product Detail Page --- */
.product-detail-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.product-detail-gallery {
  position: relative;
  background: #f8f9fa;
  border-radius: var(--radius-md);
  overflow: visible;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-gallery img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 20px;
  transition: opacity 0.3s;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  z-index: 2;
}
.gallery-nav:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.gallery-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* ============================================
   Image Zoom (JD/Taobao-style magnifying glass)
   ============================================ */
.img-zoom-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-zoom-lens {
  position: absolute;
  border: 2px solid #2563eb;
  width: 100px;
  height: 100px;
  background: rgba(59, 130, 246, 0.06);
  pointer-events: none;
  z-index: 10;
  display: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.7);
}
.img-zoom-result {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  width: 260px;
  height: 260px;
  border: 2px solid #e2e8f0;
  background-repeat: no-repeat;
  z-index: 20;
  display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  border-radius: 6px;
  background-color: #fff;
}
/* Hide zoom on smaller screens */
@media (max-width: 1024px) {
  .img-zoom-result { display: none !important; }
  .img-zoom-lens { display: none !important; }
}
.product-detail-info { min-width: 0; display: flex; flex-direction: column; height: 100%; }
.product-detail-info h1 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.product-detail-tags .spec-tag { font-size: 0.85rem; padding: 5px 16px; }
.product-detail-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }
/* Product Detail Params Table */
.product-params { width: 100%; border-collapse: collapse; flex: 1; }
.product-params th {
  text-align: left;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.product-params td {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray);
}
.product-params tr:nth-child(even) td { background: var(--bg-light); }
.product-params td:first-child { font-weight: 600; color: var(--dark); width: 35%; white-space: nowrap; }
.product-params td:last-child { color: var(--text-light); }
/* Scene section */

.product-detail-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray); }
.product-detail-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.detail-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray); }
.detail-section h2 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.detail-section .detail-grid { grid-template-columns: repeat(2, 1fr); }
.product-detail-left .detail-section .detail-grid { grid-template-columns: repeat(2, 1fr); }
.product-detail-left .detail-card-img { height: 200px; }
.detail-card { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.detail-card-img { width: 100%; height: 140px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }


/* --- Spec Images (product 9) --- */
.spec-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.spec-image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  background: #fff;
  transition: box-shadow 0.2s;
}
.spec-image-card:hover {
  box-shadow: var(--shadow-md);
}
.spec-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Spec Images (product 9) --- */
.spec-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.spec-image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray);
  background: #fff;
  transition: box-shadow 0.2s;
}
.spec-image-card:hover {
  box-shadow: var(--shadow-md);
}
.spec-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Product Scene Groups (Homepage) --- */

/* --- Homepage Scene Grid (4 images) --- */
.home-scenes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-scene-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-scene-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.home-scene-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  display: block;
  background: #f5f5f5;
}
@media (max-width: 768px) {
  .home-scenes-grid { grid-template-columns: repeat(2, 1fr); }}

.product-scene-group {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray);
}
.product-scene-group:last-child {
  margin-bottom: 0;
}
.product-scene-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.product-scene-title[data-lang="en"] {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.product-scene-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.scene-text-block {
  grid-column: 1 / -1;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin: 8px 0;
}
.scene-text-block h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.scene-text-block p {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 768px) {
  .product-scene-group { padding: 20px; }
  .scene-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scene-text-block { padding: 14px 16px; }
}

.product-scenes { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray); }

/* --- Product Features --- */
.product-features {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray);
}
.product-features h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.features-list {
  list-style: none;
  padding: 0;
}
.features-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-mark {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}
.product-scenes h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.scenes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.scene-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.scene-card-img { width: 100%; height: 200px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scene-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.scene-card-desc { padding: 16px; }
.scene-card-desc h4 { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.scene-card-desc p { font-size: 0.86rem; color: var(--text-light); line-height: 1.5; }
.scene-icon { font-size: 3rem; text-align: center; padding: 20px; color: var(--text-lighter); }
@media (max-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .scenes-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-heading { font-size: 1.4rem; }
  .product-params td:first-child { width: 40%; }
}
@media (max-width: 480px) {
  .scenes-grid { grid-template-columns: 1fr; }
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature-card { background: var(--white); border-radius: var(--radius-md); padding: 0; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.3s; overflow: hidden; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.feature-icon img[src*="品质保障"] { object-position: center top; }
.feature-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary, #c00);
  margin: 14px auto 0;
  border-radius: 2px;
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  padding: 28px 20px 0;
  text-align: center;
  position: relative;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 12px 20px 28px;
  text-align: center;
}

.feature-card .card-text { padding: 20px 20px 24px; }



/* --- Apps Grid --- */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.app-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.app-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.app-card-img { width: 100%; height: 200px; overflow: hidden; }
.app-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.app-card:hover .app-card-img img { transform: scale(1.05); }
.app-card h3 { font-size: 1rem; font-weight: 600; color: var(--dark); padding: 16px 20px; text-align: center; }

/* --- Page Header --- */
.page-header { position: relative; background-size: cover; background-position: center; min-height: 280px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.page-header-content { position: relative; z-index: 1; padding: 60px 24px; }
.page-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 12px; }
.page-header p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* --- Footer --- */
.footer { background: var(--dark-footer); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { padding-top: 38px; }

.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,0.55); }
.footer-brand img { margin-top: -40px; }
.footer-links h4, .footer-contact h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 10px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; color: rgba(255,255,255,0.55); }

/* --- Footer QR Codes --- */
.footer-qrcodes {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: block;
  margin-bottom: 4px;
  border: 1px solid var(--gray);
}
.qrcode-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}


/* Contact + QR side by side */


.footer .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-info {
  width: 100%;
}

.footer-qrcodes {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 4px;
}


/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card,
.contact-form-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray);
}
.contact-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-subtitle {
  font-size: 0.94rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-item strong {
  font-size: 0.95rem;
  color: var(--dark);
  display: block;
  margin-bottom: 2px;
}
.contact-item p {
  font-size: 0.94rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}
.contact-qrcodes {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray);
}
.contact-qr-item {
  text-align: center;
}
.contact-qr-item img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  border: 1px solid var(--gray);
  display: block;
  margin-bottom: 6px;
}
.contact-qr-item span {
  font-size: 0.86rem;
  color: var(--text-light);
}
.contact-form .form-group {
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  justify-content: center;
  text-align: center;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card,
  .contact-form-card { padding: 24px; }
  .contact-qrcodes { justify-content: center; }
}

.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.86rem; color: rgba(255,255,255,0.35); }

/* --- Language buttons always visible --- */
.lang-switch button { display: inline-block !important; }
.lang-switch { display: flex; gap: 4px; align-items: center; }

/* --- Bilingual --- */
[data-lang] { display: none; }
[data-lang="zh"] { display: revert; }
html.en [data-lang="zh"] { display: none; }
html.en [data-lang="en"] { display: revert; }
html.zh [data-lang="en"] { display: none; }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .navbar-nav { position: fixed; top: var(--header-height); right: -100%; width: 280px; height: calc(100vh - var(--header-height)); background: var(--dark-nav); flex-direction: column; padding: 24px; transition: right 0.3s; z-index: 999; border-left: 1px solid #e2e8f0; }
  .navbar-nav.open { right: 0; }
  .navbar-toggle { display: flex; }
  .navbar-brand img { height: 95px; margin-top: 13px; }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .products-grid, .features-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .products-grid, .features-grid, .apps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
}

/* Scene Image Lightbox Modal */
.scene-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.scene-modal-content {
  max-width: 85vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.scene-modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 85vw;
  max-height: 90vh;
}
#scene-modal-img {
  max-width: 85vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.scene-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
  z-index: 10000;
  transition: opacity 0.2s;
  line-height: 1;
}
.scene-modal-close:hover { opacity: 1; }

/* Zoom controls on the left */
.scene-zoom-controls {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10000;
  background: rgba(0,0,0,0.4);
  padding: 8px 6px;
  border-radius: 8px;
}
.scene-zoom-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.scene-zoom-btn:hover { background: rgba(255,255,255,0.35); }
.scene-zoom-btn:active { background: rgba(255,255,255,0.5); }
.scene-zoom-reset { font-size: 1rem; margin-top: 2px; }
.scene-zoom-level {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-family: monospace;
  text-align: center;
  padding: 2px 0;
}


/* ============================================
   YILON Zipper Features Section (Homepage)
   ============================================ */
.section-yilon-features {
  background: var(--white);
}

.section-subtitle-wide {
  max-width: 900px;
}

/* YILON subtitle - matches .section-subtitle style */
.yilon-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* YILON intro paragraph block - align with cards */
.yilon-intro-block {
  margin: 30px auto 48px;
  max-width: 960px;
  padding: 0 20px;
}

.yilon-intro-text {
  text-align: left;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}

.yilon-intro-text:last-child {
  margin-bottom: 0;
}

.yilon-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 60px auto 0;
}

.yilon-feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.yilon-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.yilon-feature-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yilon-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yilon-feature-img img[src=""] {
  display: none;
}

.yilon-feature-body {
  padding: 20px 24px 28px;
}

.yilon-feature-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.yilon-feature-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .yilon-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   About Page - 3 Sections
   ============================================ */

/* --- Company Intro --- */
.about-intro {
  background: var(--bg-light);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  aspect-ratio: 4/3;
}

.about-img-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Certifications --- */
.about-certs {
  background: var(--white);
}

.cert-group {
  margin-bottom: 48px;
}

.cert-group:last-child {
  margin-bottom: 0;
}

.cert-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  line-height: 1.4;
}

.cert-grid {
  display: grid;
  gap: 16px;
}

.cert-grid-iso {
  grid-template-columns: repeat(3, 1fr);
}

.cert-grid-patents {
  grid-template-columns: repeat(5, 1fr);
}

.cert-grid-reports {
  grid-template-columns: repeat(4, 1fr);
}

.cert-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  min-height: 40px;
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cert-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* --- International Cooperation --- */
.about-intl {
  background: var(--bg-light);
}

.about-intl-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intl-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-intl-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-intl-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 2px dashed #ccc;
  border-radius: var(--radius-md);
  background: #fafafa;
  color: #aaa;
  cursor: default;
}
.about-intl-img-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  aspect-ratio: 4/3;
}
.about-intl-img-card:hover {
  transform: scale(1.03);
}
.about-intl-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.about-intl-placeholder span {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 12px;
}

.about-intl-placeholder p {
  font-size: 0.94rem;
  text-align: center;
  padding: 0 24px;
}

/* --- Responsive: About Page --- */
@media (max-width: 992px) {
  .cert-grid-iso {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid-reports {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid-patents {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .about-intro-grid,
  .about-intl-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-intro-images {
    grid-template-columns: 1fr 1fr;
  }

  .cert-grid-iso {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid-reports {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid-patents {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid-iso,
  .cert-grid-reports {
    grid-template-columns: 1fr 1fr;
  }
  .cert-grid-patents {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Contact Form Status */
.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}
.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* About: High-Tech Enterprise */
.about-hightech-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-hightech-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 16px;
}
.about-hightech-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-hightech-img-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  aspect-ratio: 4/3;
}
.about-hightech-img-card:hover {
  transform: scale(1.03);
}
.about-hightech-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .about-hightech-content { grid-template-columns: 1fr; }
  .about-hightech-images { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .about-hightech-images { grid-template-columns: 1fr; }
}




/* --- FAQ Page --- */
.faq-list { max-width: 900px; margin: 0 auto; }

.faq-block {
  background: var(--white);
  border: 1px solid var(--gray, #edf2f7);
  border-radius: var(--radius-md, 12px);
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.faq-block:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: var(--primary-light, #e8effd);
}

.faq-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  line-height: 1.4;
}

.faq-block h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 18px 0 10px;
}

.faq-block p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.96rem;
}

.faq-block ul {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}

.faq-block ul li {
  margin-bottom: 6px;
  line-height: 1.6;
  color: var(--text);
  font-size: 0.94rem;
  padding-left: 18px;
  position: relative;
}
.faq-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
}

.faq-block .btn { margin-right: 10px; margin-top: 4px; }

.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.86rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eef2f7;
}
.faq-table th {
  background: var(--primary-light, #f0f5ff);
  font-weight: 600;
  color: var(--dark);
  border: none;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.86rem;
}
.faq-table td {
  border: none;
  border-bottom: 1px solid #f0f2f5;
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}
.faq-table tr:last-child td { border-bottom: none; }
.faq-table tr:nth-child(even) { background: #fafbfc; }

@media (max-width: 768px) {
  .faq-list { max-width: 100%; }
  .faq-block { padding: 20px; }
  .faq-block-title { font-size: 1rem; }
  .faq-table { font-size: 0.8rem; }
  .faq-table th, .faq-table td { padding: 7px 10px; }
}
