/* ============================================
   宁波力拓农机有限公司 - 外贸企业官网
   Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --red: #CC0000;
  --red-dark: #A00000;
  --red-light: #E60000;
  --gray-dark: #1a1a1a;
  --gray-mid: #333333;
  --gray-light: #666666;
  --gray-lighter: #999999;
  --gray-bg: #f5f5f5;
  --gray-section: #3a3a3a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 4px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Floating Header (overlay on banner) --- */
body { padding-top: 0; }

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1002;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* 首页 header 悬浮在 banner 上一层 */
body.is-home .top-bar,
body.is-home .main-nav {
  z-index: 1100;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .top-bar-text { color: inherit; }
.top-bar .lang-switch a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0 4px;
  cursor: pointer;
  transition: color var(--transition);
}
.top-bar .lang-switch a:hover,
.top-bar .lang-switch a.active-lang {
  color: var(--red-light);
}
.top-bar .lang-switch span { color: rgba(255, 255, 255, 0.35); margin: 0 2px; }

/* Main Nav */
.main-nav {
  position: fixed;
  top: 35px;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 1001;
  transition: background 0.35s ease, top 0.35s ease, box-shadow 0.35s ease;
  padding: 10px 0;
}
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }
.main-nav .logo {
  color: var(--white);
  text-decoration: none;
  transition: color 0.35s ease;
}
.main-nav .logo img { height: 48px; }
.main-nav .logo .text-primary {
  color: var(--white) !important;
  transition: color 0.35s ease;
}
.main-nav .logo .text-gray-600 {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.35s ease;
}
.main-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.main-nav .nav-links > li { position: relative; }
.main-nav .nav-links > li > a {
  display: block;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}
.main-nav .nav-links > li > a:hover,
.main-nav .nav-links > li:hover > a{
  background: var(--red);
  color: var(--white);
}
.main-nav .search-btn { color: rgba(255, 255, 255, 0.92); transition: color 0.35s ease; }
.main-nav .search-btn:hover { color: var(--red-light); }
.main-nav .mobile-nav-toggle { color: rgba(255, 255, 255, 0.92); }
.main-nav .mobile-nav-toggle:hover { color: var(--red-light); }

/* Scrolled state — opaque white header */
body.header-scrolled .top-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--gray-light);
  border-bottom: 1px solid #e5e5e5;
}
body.header-scrolled .top-bar .top-bar-text { color: var(--gray-light); }
body.header-scrolled .top-bar .lang-switch a { color: var(--gray-light); }
body.header-scrolled .top-bar .lang-switch a:hover,
body.header-scrolled .top-bar .lang-switch a.active-lang { color: var(--red); }
body.header-scrolled .top-bar .lang-switch span { color: #ccc; }

body.header-scrolled .main-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  top: 25px;
  box-shadow: var(--shadow-sm);
}
body.header-scrolled .main-nav .logo .text-primary { color: var(--red) !important; }
body.header-scrolled .main-nav .logo .text-gray-600 { color: #4b5563 !important; }
body.header-scrolled .main-nav .nav-links > li > a { color: #222; }
body.header-scrolled .main-nav .nav-links > li > a:hover,
body.header-scrolled .main-nav .nav-links > li:hover > a {
  background: var(--red);
  color: var(--white);
}
body.header-scrolled .main-nav .search-btn { color: #555; }
body.header-scrolled .main-nav .search-btn:hover { color: var(--red); }
body.header-scrolled .main-nav .mobile-nav-toggle { color: #333; }
body.header-scrolled .main-nav .mobile-nav-toggle:hover { color: var(--red); }

/* --- Dropdown Menu --- */
.main-nav .nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  list-style: none;
  border-top: 2px solid var(--red);
  text-align: center;
}
.main-nav .nav-links > li:hover .dropdown { display: block; }
.main-nav .nav-links .dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: center;
}
.main-nav .nav-links .dropdown li a:hover {
  background: var(--red);
  color: var(--white);
}

/* --- Search --- */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #555;
  padding: 8px;
  transition: color var(--transition);
}
.search-btn:hover { color: var(--red); }
.search-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay .search-box {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  transform: translateY(-30px);
  transition: transform 0.4s ease;
}
.search-overlay.active .search-box {
  transform: translateY(0);
}
.search-overlay .search-box input {
  flex: 1;
  min-width: 400px;
  padding: 16px 24px;
  font-size: 18px;
  border: 2px solid var(--red);
  border-right: none;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search-overlay .search-box button {
  padding: 16px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
}
.search-overlay .search-box button:hover { background: var(--red-dark); }
.search-overlay .search-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}
.search-overlay .search-close:hover { color: var(--red); }

/* --- Banner Carousel --- */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #1a1a1a;
}
.banner-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.banner-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.banner-carousel .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.banner-carousel .carousel-slide img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner-carousel .carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.banner-carousel .carousel-slide .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  transform: translateY(-160px);
}
.banner-carousel .carousel-slide .slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.banner-carousel .carousel-slide .slide-content p {
  font-size: 20px;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.carousel-arrow:hover { background: rgba(255,255,255,0.4); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
.carousel-dot.active {
  background: rgba(255,255,255,1) !important;
}

/* --- Product & Series Carousel --- */
.product-carousel { position: relative; }
.product-carousel-track { position: relative; }
.product-carousel-slide { display: none; }
.product-carousel-slide.active { display: block; }

.series-carousel { position: relative; }
.series-carousel-track { position: relative; }
.series-carousel-slide { display: none; }
.series-carousel-slide.active { display: block; }

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.carousel-dots .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dots .dot.active {
  background: var(--red);
  border-color: var(--white);
}

/* --- Section Common --- */
.section { padding: 70px 0; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header .section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.section-header .section-subtitle {
  font-size: 14px;
  color: var(--gray-lighter);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* --- Product Center --- */
.product-category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.product-category-tabs button {
  padding: 10px 28px;
  font-size: 15px;
  border: 1px solid #ddd;
  background: var(--white);
  color: #555;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  border-radius: var(--radius);
}
.product-category-tabs button.active,
.product-category-tabs button:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card .product-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #e8e8e8;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-info {
  padding: 20px;
  text-align: center;
}
.product-card .product-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #222;
}
.product-card .product-info .btn-detail {
  display: inline-block;
  padding: 8px 24px;
  font-size: 13px;
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.product-card .product-info .btn-detail:hover {
  background: var(--red);
  color: var(--white);
}

/* --- About Section --- */
.about-section {
  background: #222;
}
.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.about-text p {
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 15px;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.about-section-label {
  margin-bottom: 80px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.about-label-sub {
  font-size: 16px;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.about-label-title {
  font-size: 26px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 3px;
}
.about-text .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.about-text .btn-outline:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* --- Advantages Section --- */
.advantages-section {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}
.advantages-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.advantages-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, transparent 65%);
  pointer-events: none;
}
.advantages-left {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 50px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.advantages-content {
  width: 100%;
  max-width: 760px;
}
.advantages-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.advantages-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 12px;
}
.advantages-subtitle {
  font-size: 15px;
  color: var(--gray-light);
  margin-bottom: 30px;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.advantage-card {
  text-align: center;
  padding: 26px 16px 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 1px solid rgba(204, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(160, 0, 0, 0.18);
}
.advantage-card .advantage-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease;
}
.advantage-card:hover .advantage-icon {
  background: #222;
}
.advantage-card .advantage-icon svg {
  width: 26px;
  height: 26px;
}
.advantage-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--red-dark);
}
.advantage-card p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.6;
}

/* --- Reviews Section --- */
.reviews-section {
  background: linear-gradient(180deg, #fdf6f6 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.reviews-section::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.reviews-carousel {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.reviews-track {
  display: flex;
  gap: 26px;
  align-items: stretch;
  justify-content: center;
  height: 440px;
}
.review-card {
  flex: 1 1 0;
  max-width: 340px;
  text-align: center;
  background: var(--white);
  padding: 44px 36px 36px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border-top: 3px solid #f5d4d4;
  opacity: 0.58;
  transform: scale(0.9);
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
  top: auto;
  left: auto;
  width: auto;
  animation: none;
  cursor: pointer;
}
.review-card:hover,
.review-card:active {
  opacity: 1;
  border-top-color: var(--red);
  box-shadow: 0 24px 56px rgba(204, 0, 0, 0.18);
  z-index: 3;
}
.review-card.active {
  max-width: 380px;
  opacity: 1;
  transform: scale(1.06);
  z-index: 2;
  border-top: 5px solid var(--red);
  box-shadow: 0 26px 64px rgba(204, 0, 0, 0.16);
}
.review-card.active:hover,
.review-card.active:active {
  transform: scale(1.1);
}
.review-card .review-quote {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 100px;
  line-height: 1;
  color: var(--red);
  opacity: 0.12;
  font-weight: 700;
  user-select: none;
  pointer-events: none;
}
.review-card .review-quote-open {
  top: 14px;
  left: 26px;
}
.review-card .review-quote-close {
  bottom: 60px;
  right: 26px;
  transform: scale(-1);
}
.review-card.active .review-quote {
  font-size: 116px;
  opacity: 0.16;
}
.review-card .review-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  display: block;
  border: 4px solid #fef0f0;
  box-shadow: 0 0 0 3px var(--red), 0 6px 18px rgba(204, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}
.review-card.active .review-avatar {
  width: 100px;
  height: 100px;
  margin-bottom: 26px;
  border-width: 5px;
  box-shadow: 0 0 0 3px var(--red), 0 10px 24px rgba(204, 0, 0, 0.22);
}
.review-card .review-text {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.85;
  margin: 0 0 28px;
  font-style: italic;
  position: relative;
  z-index: 2;
}
.review-card.active .review-text {
  font-size: 16px;
  margin-bottom: 12px;
}
.review-card .review-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.review-card .review-meta::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--red);
  margin-bottom: 12px;
}
.review-card.active .review-meta::before {
  width: 44px;
  height: 2px;
  margin-bottom: 14px;
}
.review-card .review-author {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: 0.5px;
}
.review-card.active .review-author {
  font-size: 19px;
}
.review-card .review-role {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.review-card.active .review-role {
  font-size: 13px;
}
.review-card .review-role:empty {
  display: none;
}
.reviews-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}
.reviews-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.reviews-arrow:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.08);
}
.reviews-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.reviews-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.35s;
}
.reviews-dots .dot.active {
  background: var(--red);
  width: 36px;
  border-radius: 6px;
}

/* --- News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .news-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e8e8e8;
}
.news-card .news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-info { padding: 16px; }
.news-card .news-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--gray-lighter);
}
.news-card .news-meta .news-date { color: var(--gray-lighter); }
.news-card .news-meta a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.news-card .news-meta a:hover { text-decoration: underline; }

/* --- Subscribe Section --- */
.subscribe-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 60px 0;
  text-align: center;
}
.subscribe-section .subscribe-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.subscribe-section .subscribe-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}
.subscribe-form {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  gap: 0;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  border: none;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: #333;
}
.subscribe-form input::placeholder { color: #bbb; }
.subscribe-form button {
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-left: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover { background: rgba(255,255,255,0.15); }

/* --- Footer --- */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 16px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--red); }
.footer-col .qr-img {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 4px;
  margin-bottom: 8px;
  display: block;
}
.footer-col .qr-text { font-size: 13px; color: #aaa; }
.footer-col .contact-info p {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-col .contact-info .iconfont { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 16px;
  color: #888;
}

/* --- Fixed Sidebar --- */
.fixed-sidebar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fixed-sidebar .sidebar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  font-size: 20px;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}
.fixed-sidebar .sidebar-btn:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: scale(1.08);
}
.fixed-sidebar .sidebar-btn .sidebar-tooltip {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.fixed-sidebar .sidebar-btn:hover .sidebar-tooltip,
.fixed-sidebar .sidebar-tooltip:hover {
  opacity: 1;
  visibility: visible;
}
.fixed-sidebar .sidebar-btn .qr-popup {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--white);
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
}
.fixed-sidebar .sidebar-btn .qr-popup img {
  width: 160px;
  height: auto;
  display: block;
  max-width: none;
}
.fixed-sidebar .sidebar-btn:hover .qr-popup {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- Back to Top --- */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Nav Toggle --- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  padding: 8px;
}

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

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .banner-carousel { height: 630px; }
  .banner-carousel .carousel-slide .slide-content h1 { font-size: 36px; }
  .banner-carousel .carousel-slide .slide-content p { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-section { min-height: auto; }
  .advantages-bg { position: relative; height: 300px; }
  .advantages-bg::after { display: none; }
  .advantages-left { padding: 40px 30px; }
  .advantages-content { max-width: none; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav .nav-links > li > a { padding: 14px 10px; font-size: 13px; }
  .reviews-track { gap: 18px; height: 360px; }
  .review-card { padding: 36px 28px 30px; }
  .review-card.active { transform: scale(1.04); }
  .review-card:hover,
  .review-card:active { transform: scale(0.94); }
  .review-card.active:hover,
  .review-card.active:active { transform: scale(1.07); }
  .review-card .review-avatar { width: 78px; height: 78px; }
  .review-card.active .review-avatar { width: 90px; height: 90px; }
  .review-card .review-quote { font-size: 80px; }
  .review-card.active .review-quote { font-size: 90px; }
  .review-card .review-quote-open { left: 18px; }
  .review-card .review-quote-close { right: 18px; }

  /* Mobile nav */
  .main-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-md);
  }
  .main-nav .nav-links.open { display: flex; }
  .main-nav .nav-links > li > a { padding: 12px 20px; border-bottom: 1px solid #eee; }
  .main-nav .nav-links .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #f9f9f9;
    padding-left: 10px;
  }
  .mobile-nav-toggle { display: block; }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 640px) {
  .top-bar { font-size: 11px; }
  .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
  .banner-carousel { height: 450px; }
  .banner-carousel .carousel-slide .slide-content h1 { font-size: 24px; }
  .banner-carousel .carousel-slide .slide-content p { font-size: 14px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 20px; }
  .section { padding: 40px 0; }
  .section-header .section-title { font-size: 24px; }
  .product-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .advantages-section { min-height: auto; }
  .advantages-bg { position: relative; height: 220px; }
  .advantages-left { padding: 30px 18px; }
  .advantages-title { font-size: 24px; }
  .advantages-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .reviews-track { flex-direction: column; gap: 16px; height: auto; }
  .review-card,
  .review-card.active {
    max-width: none;
    transform: none;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--red);
  }
  .review-card:hover,
  .review-card:active {
    transform: scale(1.02);
    box-shadow: 0 14px 36px rgba(204, 0, 0, 0.12);
    border-top-width: 4px;
  }
  .review-card.active:hover,
  .review-card.active:active {
    transform: scale(1.03);
  }
  .review-card .review-avatar,
  .review-card.active .review-avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-width: 4px;
  }
  .review-card .review-text,
  .review-card.active .review-text {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .review-card .review-author,
  .review-card.active .review-author {
    font-size: 16px;
  }
  .reviews-controls { margin-top: 28px; gap: 18px; }
  .reviews-arrow { width: 40px; height: 40px; font-size: 14px; }
  .about-content { flex-direction: column; gap: 30px; }
  .about-text h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .subscribe-section .subscribe-title { font-size: 24px; }
  .subscribe-form { flex-direction: column; gap: 10px; }
  .subscribe-form input { border-radius: var(--radius); }
  .subscribe-form button { border-radius: var(--radius); border-left: 2px solid var(--white); }
  .product-category-tabs button { padding: 8px 18px; font-size: 13px; }
  .search-overlay .search-close { top: 16px; right: 20px; font-size: 28px; }
}
