/* ========================================
   合兴照明 - 山东省高端灯具品牌运营商
   极简低饱和风格 | #B93A3A #F7F7F7 #333333 #666666
   ======================================== */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #B93A3A;
  --red-dark: #992F2F;
  --red-light: #F8E8E8;
  --light: #F7F7F7;
  --dark: #333333;
  --gray: #666666;
  --white: #ffffff;
  --border: #e0e0e0;
}

html { scroll-behavior: smooth; }

/* ==================== UTILITY CLASSES ==================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-red { color: var(--red); }
.text-muted { font-size: 12px; color: #999; }
.text-center { text-align: center; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }
.section-subtitle { font-size: 18px; color: var(--red); margin-bottom: 20px; text-align: center; }
.brand-section-alt-2 { background: #FAFAFA; }
.form-note { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.qr-box { background: var(--light); padding: 24px; text-align: center; border: 1px solid var(--border); }
.qr-placeholder { width: 120px; height: 120px; background: var(--white); margin: 0 auto 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; }
.breadcrumb-sep { margin: 0 4px; color: #999; }
.about-closing-text { margin-top: 48px; text-align: center; font-size: 15px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--dark);
  line-height: 1.8;
  background: var(--white);
  font-size: 15px;
  overflow-x: hidden;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.section-title p {
  font-size: 14px;
  color: var(--gray);
}
.section-title .en-sub {
  display: block;
  font-size: 12px;
  color: #bbb;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 44px;
  height: 44px;
  display: block;
}
.logo-text .logo-title {
  font-size: 26px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
}
.logo-text .logo-subtitle {
  font-size: 12px;
  color: #999;
  letter-spacing: 2.5px;
  display: block;
  line-height: 1.2;
}

.nav-list { display: flex; gap: 8px; }
.nav-list a {
  display: block;
  padding: 10px 28px;
  color: var(--dark);
  font-size: 15px;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--red);
}

.mobile-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 4px 0;
  transition: 0.2s;
}


/* ==================== BANNER CAROUSEL ==================== */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--white);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image strip */
.banner-slide .slide-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 100%;
  padding: 32px 80px;
  width: 100%;
}
.banner-slide .slide-images img {
  flex: 1;
  min-width: 0;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  background: rgba(255,255,255,0.9);
  color: #999;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-arrow:hover { border-color: var(--red); color: var(--red); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.banner-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.banner-dots .dot.active {
  background: var(--red);
  transform: scale(1.25);
}

/* ==================== OUR BRANDS ==================== */
.brands-section { background: var(--white); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

.brand-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.brand-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--red);
}
.brand-item .brand-logo-area {
  width: 100%;
  max-width: 320px;
  height: 140px;
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
}
.brand-item .brand-logo-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.brand-item .brand-en-name {
  font-size: 11px;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
}


/* ==================== PRODUCT CATEGORY NAV ==================== */
.cat-section { background: var(--light); }

.cat-scroll-wrap {
  position: relative;
}
.cat-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(247,247,247,0.9));
  pointer-events: none;
  z-index: 2;
}
.cat-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 20px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  margin: 0 -20px;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  cursor: pointer;
  transition: color 0.2s;
  color: var(--dark);
  min-width: 80px;
  text-align: center;
  border-bottom: 2px solid transparent;
}
.cat-item:hover,
.cat-item.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.cat-item .cat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-item .cat-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.cat-item .cat-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}


/* ==================== HOT PRODUCTS CAROUSEL ==================== */
.hot-section { background: var(--white); }

.hp-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.hp-track {
  display: flex;
  transition: transform 0.5s ease;
}
.hp-card {
  flex: 0 0 calc(25% - 12px);
  min-width: calc(25% - 12px);
  margin-right: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hp-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.hp-card .hp-img {
  height: 200px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
}
.hp-card .hp-body {
  padding: 20px;
}
.hp-card .hp-body .hp-brand {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.hp-card .hp-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.hp-card .hp-body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hp-card .hp-body .hp-btn {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.hp-card .hp-body .hp-btn:hover {
  background: var(--red);
  color: var(--white);
}

.hp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-arrow:hover { border-color: var(--red); color: var(--red); }
.hp-arrow.prev { left: 0; }
.hp-arrow.next { right: 0; }

.hp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.hp-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hp-dots .dot.active {
  background: var(--red);
  transform: scale(1.2);
}


/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-white:hover {
  background: var(--red);
  color: var(--white);
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-submitted { background: var(--red-dark) !important; }
.btn-full { width: 100%; }


/* ==================== PRODUCT CATS (legacy) ==================== */
.product-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-cat {
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.product-cat:hover { border-color: var(--red); }

.product-cat .cat-img {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
}

.product-cat .cat-body { padding: 20px; }
.product-cat .cat-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.product-cat .cat-body p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.6;
}
.product-cat .cat-body .tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--light);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

/* ==================== ADVANTAGES ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.adv-card {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid var(--border);
}
.adv-card:last-child { border-right: none; }

.adv-card .adv-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.adv-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.adv-card p { font-size: 13px; color: var(--gray); }

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-area {
  height: 360px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.about-content .highlight {
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}
.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.about-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--dark);
}
.about-features li::before {
  content: '/';
  color: var(--red);
  font-weight: 700;
  margin-right: 8px;
}

/* ==================== CONTACT ITEMS ==================== */
.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-item .ci-label {
  font-size: 12px;
  color: #999;
  min-width: 56px;
  padding-top: 2px;
}
.contact-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-item p { font-size: 13px; color: var(--gray); }

/* ==================== FORMS ==================== */
.contact-form {
  background: var(--light);
  padding: 32px;
}
.contact-form h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: var(--light);
  padding: 48px 0;
  text-align: center;
  color: var(--dark);
}
.cta-banner h2 {
  color: var(--red);
}
.cta-banner p {
  color: var(--dark);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--light);
  color: var(--gray);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: var(--gray);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ==================== PAGE BANNER ==================== */
.page-banner {
  background: var(--light);
  padding: 48px 0;
  text-align: center;
}
.page-banner h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}
.page-banner p { font-size: 14px; color: var(--gray); }
.page-banner .breadcrumb {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}
.page-banner .breadcrumb a { color: var(--dark); }
.page-banner .breadcrumb a:hover { color: var(--red); }

/* ==================== SIDEBAR ==================== */
.sidebar {
  background: var(--white);
  padding: 24px;
  position: sticky;
  top: 84px;
  border: 1px solid var(--border);
}
.sidebar h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.sidebar-nav li { margin-bottom: 2px; }
.sidebar-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--dark);
  transition: color 0.2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: var(--red); }

/* ==================== PRODUCT GRID ==================== */
.products-page-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--red); }

.product-card .p-img {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
}
.product-card .p-body { padding: 16px; }
.product-card .p-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.product-card .p-body .p-specs {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}
.product-card .p-body .p-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
}

/* ==================== CONTACT PAGE GRID ==================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.map-placeholder {
  height: 280px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  border: 1px solid var(--border);
}

/* ==================== BRAND DETAIL (about page) ==================== */
.brand-detail {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
}
.brand-detail .bd-icon {
  width: 160px;
  height: 100px;
  background: var(--white);
  border: 1px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
}

/* ==================== FAQ ==================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border);
}
.faq-item h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.faq-item p { font-size: 13px; color: var(--gray); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .banner-carousel { height: 380px; }
  .banner-slide .slide-images { gap: 16px; padding: 24px 56px; }
  .banner-arrow { width: 36px; height: 36px; font-size: 14px; }
  .banner-arrow.prev { left: 10px; }
  .banner-arrow.next { right: 10px; }

  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .brand-item { padding: 36px 20px; }

  .cat-scroll { justify-content: flex-start; }
  .cat-item { min-width: 100px; padding: 20px 16px; }

  .hp-card { flex: 0 0 calc(50% - 8px); min-width: calc(50% - 8px); margin-right: 12px; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-area { height: 240px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .products-page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 24px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .sidebar-nav li { margin-bottom: 0; }
  .brand-detail .bd-icon { width: 100%; height: 80px; }

  .nav-list {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 8px 20px;
    border-top: 1px solid var(--border);
  }
  .nav-list.open { display: flex; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .mobile-btn { display: block; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .header .container { height: 64px; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 24px; }

  .banner-carousel { height: 320px; }
  .banner-slide .slide-images { gap: 10px; padding: 20px 50px; }

  .brand-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand-item { padding: 28px 16px; }
  .brand-item .brand-logo-area { max-width: 240px; height: 100px; font-size: 12px; }

  .cat-item { min-width: 90px; padding: 16px 12px; }
  .cat-item .cat-icon { width: 36px; height: 36px; }
  .cat-item .cat-icon svg { width: 28px; height: 28px; }
  .cat-item .cat-label { font-size: 11px; }

  .hp-card { flex: 0 0 100%; min-width: 100%; margin-right: 0; }
  .hp-card .hp-img { height: 180px; }
  .hp-arrow { width: 32px; height: 32px; font-size: 12px; background: rgba(255,255,255,0.95); border-radius: 50%; }
  .hp-arrow.prev { left: 6px; }
  .hp-arrow.next { right: 6px; }

  .page-banner { padding: 36px 0; }
  .page-banner h1 { font-size: 24px; }
  .product-cats { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .adv-card { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .nav-list { top: 64px; }
  .contact-form { padding: 24px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .header .container { height: 56px; }
  .logo-img { width: 36px; height: 36px; }
  .logo-text .logo-title { font-size: 20px; }

  .banner-carousel { height: 260px; }
  .banner-slide .slide-images { gap: 6px; padding: 12px 36px; }
  .banner-dots { bottom: 20px; }
  .banner-arrow { width: 28px; height: 28px; font-size: 12px; }
  .banner-arrow.prev { left: 4px; }
  .banner-arrow.next { right: 4px; }
  .nav-list { top: 56px; }
  .brand-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-features { grid-template-columns: 1fr; }
  .page-banner { padding: 32px 0; }
  .page-banner h1 { font-size: 22px; }
}


/* ================================================================
   BRAND PAGE COMPONENTS
   ================================================================ */

/* Brand Banner */
.brand-banner { padding: 56px 0; text-align: center; position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.brand-banner.ganxie { border-top: 4px solid #5c4a35; }
.brand-banner.lman { border-top: 4px solid #1e3342; }
.brand-banner.cosuo { border-top: 4px solid #353d4f; }
.brand-banner.tanghe { border-top: 4px solid #2a3d33; }
.brand-banner .brand-logo-img { display: block; margin: 0 auto; max-height: 140px; max-width: 90%; object-fit: contain; }
.brand-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 4px; margin-bottom: 12px; }
.brand-banner p { font-size: 15px; opacity: 0.8; max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* Brand Intro Grid */
.brand-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.brand-intro-img { background: var(--light); display: flex; align-items: center; justify-content: center; min-height: 340px; overflow: hidden; border: 1px solid var(--border); }
.brand-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-intro-content h2 { font-size: 26px; color: var(--red); font-weight: 700; margin-bottom: 16px; }
.brand-intro-content .highlight { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.brand-intro-content p { font-size: 14px; color: var(--gray); line-height: 1.9; margin-bottom: 10px; }

/* Brand Advantage Cards */
.advantage-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.advantage-card { background: var(--white); padding: 40px 24px; text-align: center; border-right: 1px solid var(--border); transition: background 0.2s; }
.advantage-card:last-child { border-right: none; }
.advantage-card:hover { background: var(--red-light); }
.advantage-card .adv-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.advantage-card .adv-icon svg { width: 36px; height: 36px; }
.advantage-card h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.advantage-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* Category Tabs */
.cat-tabs-wrap {
  position: relative;
}
.cat-tabs-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  z-index: 2;
}
.cat-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; padding: 12px 28px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; border: none; border-bottom: 2px solid transparent; background: none; font-family: inherit; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.cat-tab:hover, .cat-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* Tab Content */
.cat-tab-content { display: none; }
.cat-tab-content.active { display: block; }

/* Product Card v2 (with real images) */
.product-card-v2 { background: var(--white); border: 1px solid var(--border); transition: border-color 0.3s, box-shadow 0.3s; }
.product-card-v2:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.product-card-v2 .p-img-v2 { height: 220px; overflow: hidden; background: var(--light); display: flex; align-items: center; justify-content: center; }
.product-card-v2 .p-img-v2 img { width: 100%; height: 100%; object-fit: cover; }
.product-card-v2 .p-body-v2 { padding: 20px; }
.product-card-v2 .p-body-v2 h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.product-card-v2 .p-body-v2 .p-specs-v2 { font-size: 12px; color: var(--gray); line-height: 1.7; }
.product-card-v2 .p-body-v2 .p-brand-v2 { font-size: 11px; font-weight: 600; color: var(--red); margin-top: 8px; }

/* Contact Module (brand pages) */
.contact-module { background: var(--light); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; border: 1px solid var(--border); }
.contact-module h3 { font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 12px; }
.contact-module > div:first-child p { font-size: 14px; color: var(--gray); margin-bottom: 20px; }

/* Brand page section dividers */
.brand-section-alt { background: var(--light); }

/* Product Series List (for COSUO 15 series) */
.series-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.series-item { background: var(--white); border: 1px solid var(--border); padding: 20px 16px; text-align: center; font-size: 14px; font-weight: 600; color: var(--dark); transition: border-color 0.2s, color 0.2s; cursor: default; }
.series-item:hover { border-color: var(--red); color: var(--red); }
.series-item .series-num { display: block; font-size: 24px; font-weight: 700; color: var(--red); margin-bottom: 6px; }

/* Breadcrumb bar */
.breadcrumb-bar { background: var(--light); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13px; color: var(--gray); }
.breadcrumb-bar a { color: var(--gray); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar span { color: var(--dark); }

/* Product Matrix (about page) */
.product-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.product-matrix-item {
  display: block;
  background: var(--white);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: border-color 0.2s;
}
.product-matrix-item:hover { border-color: var(--red); }
@media (max-width: 768px) {
  .product-matrix { grid-template-columns: repeat(2, 1fr); }
  .product-matrix-item { padding: 18px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .product-matrix { grid-template-columns: 1fr; max-width: 280px; }
  .product-matrix-item { padding: 16px 12px; font-size: 14px; }
}

/* ================================================================
   RESPONSIVE - Brand Pages
   ================================================================ */
@media (max-width: 992px) {
  .brand-banner { padding: 48px 0; }
  .brand-banner h1 { font-size: 26px; letter-spacing: 3px; }
  .brand-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-intro-img { min-height: 260px; }
  .advantage-card-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-card:nth-child(2n) { border-right: none; }
  .series-list { grid-template-columns: repeat(2, 1fr); }
  .contact-module { grid-template-columns: 1fr; gap: 24px; }
  .cat-tab { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 768px) {
  .brand-banner { padding: 40px 0; }
  .brand-banner h1 { font-size: 22px; }
  .brand-banner .brand-logo-img { display: block; margin: 0 auto; max-height: 100px; }
  .brand-intro-content h2 { font-size: 22px; }
  .product-card-v2 .p-img-v2 { height: 180px; }
  .contact-module { padding: 24px; }
  .cat-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 40px; }
}

@media (max-width: 480px) {
  .brand-banner h1 { font-size: 20px; letter-spacing: 2px; }
  .brand-banner .brand-logo-img { display: block; margin: 0 auto; max-height: 80px; }
  .advantage-card-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .advantage-card { border-right: none; border-bottom: 1px solid var(--border); }
  .advantage-card:last-child { border-bottom: none; }
  .brand-intro-img { min-height: 200px; }
  .series-list { grid-template-columns: 1fr; }
  .cat-tab { padding: 8px 14px; font-size: 12px; }
  .contact-module { padding: 20px; }
  .cat-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 48px; -webkit-overflow-scrolling: touch; }
}

/* ================================================================
   PRODUCT GALLERY GRID (LED光源类单品)
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.gallery-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gallery-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-label {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
  border-top: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Lightbox ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay .lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  background: #fff;
  padding: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow:hover {
  opacity: 1;
  background: rgba(0,0,0,0.65);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  opacity: 0.7;
  z-index: 10000;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .gallery-img { padding: 10px; }
  .gallery-label { font-size: 11px; padding: 8px 10px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
