/* ============================================================
   MOSINTER GROUP - Global Cosmetic Ingredients Website Styles
   Home page specific responsive layout
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:      #1a5c3a;
  --color-primary-dark: #134530;
  --color-primary-mid:  #2d7a4f;
  --color-primary-light:#4caf50;
  --color-primary-bg:   #e8f5e9;
  --color-primary-bg2:  #f1f8f4;
  --color-text:         #222222;
  --color-text-mid:     #555555;
  --color-text-light:   #888888;
  --color-border:       #e0e0e0;
  --color-white:        #ffffff;
  --color-bg:           #f8f9fa;
  --color-dark:         #1a2e1a;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
  --header-h:   68px;

  /* Content max-width — scales with viewport */
  --content-max: 1440px;
  --content-pad: clamp(24px, 4vw, 80px);
}
/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
/* ---------- Full-width container ---------- */
/*
  .container  = full viewport width,
with responsive horizontal padding
  .container--inner = same but capped at --content-max for readability
*/
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
/* Sections that bleed edge-to-edge use width:100% on the section itself */

/* ---------- Section Common ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-header { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-title {
  font-size: clamp(25px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding: 0 clamp(16px, 2vw, 28px);
}
.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(28px, 3vw, 48px);
  height: 1.5px;
  background: var(--color-primary-mid);
}
.section-title::before { right: 100%; margin-right: -clamp(16px,2vw,28px); }
.section-title::after { left:  100%; margin-left:  -clamp(16px,2vw,28px); }
.section-sub {
  margin-top: 12px;
  color: var(--color-text-mid);
  font-size: clamp(13px, 1.1vw, 15px);
}
.section-title.white { color: var(--color-white); }
.section-title.white::before,
.section-title.white::after { background: rgba(255,255,255,0.55); }
.section-sub.white { color: rgba(255,255,255,0.8); }
.section-btn-wrap { text-align: center; margin-top: clamp(28px, 3vw, 44px); }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(10px,1vw,14px) clamp(22px,2vw,32px);
  border-radius: var(--radius-sm);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.link-more {
  font-size: 13px;
  color: var(--color-primary-mid);
  font-weight: 500;
  transition: color var(--transition);
}
.link-more:hover { color: var(--color-primary); }
/* ============================================================
   HERO BANNER — full-width bleed
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7f1 0%, #e4f2e8 60%, #f0f8f2 100%);
  width: 100%;
  min-height: 1000px;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
  transform: translateX(60px);
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}
/* Slide transition: slide out to left */
.hero-slide.slide-out-left {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-60px);
  transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
  z-index: 0;
}
/* Slide content entrance animations - only play once when first activated */
.hero-slide.active .hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroContentIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-slide.active .hero-sub { animation-delay: 0.05s; }
.hero-slide.active .hero-title { animation-delay: 0.15s; }
.hero-slide.active .hero-desc { animation-delay: 0.28s; }
.hero-slide.active .hero-features { animation-delay: 0.38s; }
.hero-slide.active .hero-features + .btn,
.hero-slide.active .btn { animation-delay: 0.50s; }

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Individual feature items stagger animation - only play once */
.hero-slide.active .hero-feature {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFeatureIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-slide.active .hero-feature:nth-child(1) { animation-delay: 0.38s; }
.hero-slide.active .hero-feature:nth-child(2) { animation-delay: 0.44s; }
.hero-slide.active .hero-feature:nth-child(3) { animation-delay: 0.50s; }
.hero-slide.active .hero-feature:nth-child(4) { animation-delay: 0.56s; }

@keyframes heroFeatureIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Feature icons bounce effect - only play once */
.hero-slide.active .hero-feature-icon {
  animation: heroIconBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
.hero-slide.active .hero-feature:nth-child(1) .hero-feature-icon { animation-delay: 0.42s; }
.hero-slide.active .hero-feature:nth-child(2) .hero-feature-icon { animation-delay: 0.48s; }
.hero-slide.active .hero-feature:nth-child(3) .hero-feature-icon { animation-delay: 0.54s; }
.hero-slide.active .hero-feature:nth-child(4) .hero-feature-icon { animation-delay: 0.60s; }

@keyframes heroIconBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(140px, 16vw, 220px);
  padding-bottom: clamp(160px, 18vw, 260px);
}
.hero-content { z-index: 2; }
.hero-title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: clamp(12px, 1.5vw, 20px);
}
.hero-title span { color: var(--color-primary); }
.hero-title--allgreen { color: var(--color-primary); }
.hero-sub {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--color-primary-mid);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.hero-desc {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--color-text-mid);
  margin-bottom: clamp(24px, 3vw, 36px);
  line-height: 1.8;
}
.hero-sub--icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--color-primary-mid);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.hero-feature-icon {
  width: clamp(48px, 4.5vw, 68px);
  height: clamp(48px, 4.5vw, 68px);
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 10px;
}
.hero-feature-icon svg { width: 100%; height: 100%; }
.hero-feature-text { display: flex; flex-direction: column; gap: 3px; }
.feature-cn { font-size: clamp(13px, 1.1vw, 17px); font-weight: 600; color: var(--color-text); }
.feature-en { font-size: clamp(9px, 0.75vw, 12px); color: var(--color-text-light); letter-spacing: 0.3px; }
.hero-image {
  position: relative;
  height: clamp(560px, 62vw, 800px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}
/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(45,122,79,0.3);
  transition: all var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--color-primary);
  width: 26px;
  border-radius: 5px;
}
/* ============================================================
   PRODUCTS — full-width section,
content max-width
   ============================================================ */
.products { background: var(--color-white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
}
/* Row 2: 4 cards — we use a nested wrapper injected by JS */
.product-grid-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  grid-column: 1 / -1;
}
.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  background: var(--color-white);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}
.product-img {
  height: clamp(100px, 12vw, 160px);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info { padding: clamp(10px, 1.2vw, 16px); }
.product-info h3 { font-size: clamp(16px, 1vw, 15px); font-weight: 700; margin-bottom: 5px; }
.product-info p { font-size: clamp(13px, 0.8vw, 13px); color: var(--color-text-light); margin-bottom: 8px; line-height: 1.5; }
/* ============================================================
   SOLUTIONS — full-width dark green bleed
   ============================================================ */
.solutions {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(48px, 6vw, 80px) 0;
}
.solutions-bg {
  position: absolute;
  inset: 0;
}
.solutions-bg img { width: 100%; height: 100%; object-fit: cover; }
.solutions-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  background: rgba(0, 0, 0, 0.4);
  padding: clamp(24px, 3vw, 48px);
  border-radius: 12px;
}
.solutions-content .section-title { text-align: left; }
.solutions-content .section-title::before { display: none; }
.solutions-content .section-title::after { left: calc(100% + 8px); margin-left: 0; }
.solutions-content .section-sub { text-align: left; margin-bottom: clamp(20px, 2.5vw, 32px); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
/* Row 2: 4 items */
.solutions-grid .solution-item:nth-child(6),
.solutions-grid .solution-item:nth-child(7),
.solutions-grid .solution-item:nth-child(8),
.solutions-grid .solution-item:nth-child(9) {
  /* Let them naturally flow */
}
.solution-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--transition);
}
.solution-item:hover { transform: translateY(-3px); }
.solution-icon {
  width: clamp(40px, 4vw, 58px);
  height: clamp(40px, 4vw, 58px);
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background var(--transition);
}
.solution-item:hover .solution-icon { background: rgba(255,255,255,0.22); }
.solution-icon svg { width: clamp(22px,2.5vw,30px); height: clamp(22px,2.5vw,30px); }
.solution-item span {
  font-size: clamp(10px, 0.8vw, 13px);
  color: rgba(255,255,255,0.9);
  text-align: center;
  white-space: nowrap;
}
/* Right side image */
.solutions-image {
  height: clamp(220px, 25vw, 360px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.solutions-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #a5d6a7, #81c784);
}
/* ============================================================
   APPLICATIONS — full-width
   ============================================================ */
.applications { background: var(--color-bg); }
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.app-card {
  position: relative;
  height: clamp(140px, 16vw, 220px);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.app-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #c8e6c9, #81c784);
}
.app-card:hover img { transform: scale(1.08); }
.app-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: rgb(0, 0, 0);
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 600;
  text-align: center;
}
.app-card--active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  pointer-events: none;
}
/* ============================================================
   FORMULA CENTER
   ============================================================ */
.formula { background: var(--color-white); }
.formula-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.formula-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(16px, 2vw, 28px) clamp(14px, 1.8vw, 24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: var(--color-white);
}
.formula-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
}
.formula-icon { width: clamp(36px, 3.5vw, 52px); height: clamp(36px, 3.5vw, 52px); flex-shrink: 0; }
.formula-icon svg { width: 100%; height: 100%; }
.formula-card-body h3 { font-size: clamp(13px, 1vw, 16px); font-weight: 700; margin-bottom: 6px; }
.formula-card-body p { font-size: clamp(11px, 0.8vw, 13px); color: var(--color-text-light); line-height: 1.6; }
/* Stats row */
.formula-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.stat-icon { width: clamp(32px, 3vw, 44px); height: clamp(32px, 3vw, 44px); margin-bottom: 4px; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-num { font-size: clamp(22px, 2.5vw, 34px); font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: clamp(12px, 0.9vw, 15px); font-weight: 600; color: var(--color-text); }
.stat-desc { font-size: clamp(10px, 0.75vw, 12px); color: var(--color-text-light); }
/* ============================================================
   NEWS
   ============================================================ */
.news { background: var(--color-bg); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
}
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-img {
  height: clamp(120px, 12vw, 180px);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: clamp(12px, 1.5vw, 20px); }
.news-date { font-size: 12px; color: var(--color-text-light); display: block; margin-bottom: 8px; }
.news-title { font-size: clamp(13px, 1vw, 16px); font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.news-excerpt {
  font-size: clamp(11px, 0.8vw, 13px);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.product-img img,
.hero-image img,
.app-card img,
.news-img img,
.solutions-bg img,
.solutions-image img {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large desktop ≥ 1600px: slightly more padding */
@media (min-width: 1600px) {
  :root { --content-pad: 80px; }
}
/* Medium desktop 1100–1440px */
@media (max-width: 1440px) {
  .solutions-grid { grid-template-columns: repeat(5, 1fr); }
}
/* Small desktop / large tablet 900–1100px */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-row2 { grid-template-columns: repeat(3, 1fr); }
  .formula-grid { grid-template-columns: repeat(3, 1fr); }
  .formula-stats { grid-template-columns: repeat(3, 1fr); }
  .solutions-grid { grid-template-columns: repeat(5, 1fr); }
  /* 1100px 以下由 1200px 断点处理，这里只处理其他元素 */
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet 768–900px */
@media (max-width: 900px) {
  :root { --content-pad: 24px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { height: 260px; }
  .hero-title { font-size: 28px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .solutions-inner { grid-template-columns: 1fr; }
  .solutions-image { display: none; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-row2 { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .formula-grid { grid-template-columns: repeat(2, 1fr); }
  .formula-stats { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
/* Mobile < 480px */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-grid-row2 { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .formula-grid { grid-template-columns: 1fr; }
  .formula-card { align-items: center; text-align: center; }
  .formula-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 22px; }
  .section-title { font-size: 20px; }
}
/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ripple { to { transform: scale(2.5); opacity: 0; } }
/* ---------- User Fix: unified hero carousel height and full-cover images ---------- */
/*
  轮播图统一说明：
  1. 三个 .hero-slide 使用同一高度来源，避免第二、第三张因内容较少而上下高度变短。
  2. 轮播图片使用背景图承载，因此通过 background-size: cover 填充铺满，不留白边。
  3. 仅修正轮播区域尺寸与图片填充方式。
*/
.hero {
  min-height: 1000px;
}
.hero-slides {
  position: relative;
  min-height: 1000px;
  height: 100%;
}
.hero-slide {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.hero-slide .hero-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  min-height: 1000px;
}
/* Mobile: stack layout,
reduced padding */
@media (max-width: 900px) {
  .hero {
    min-height: 720px;
  }
  .hero-slides,
  .hero-slide,
  .hero-slide .hero-inner {
    min-height: 720px;
  }
}
/* Small mobile */
@media (max-width: 520px) {
  .hero {
    min-height: 640px;
  }
  .hero-slides,
  .hero-slide,
  .hero-slide .hero-inner {
    min-height: 640px;
  }
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 12;
  width: clamp(42px, 3.8vw, 56px);
  height: clamp(42px, 3.8vw, 56px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(18, 58, 38, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.hero-arrow-prev {
  left: clamp(18px, 3vw, 52px);
}
.hero-arrow-next {
  right: clamp(18px, 3vw, 52px);
}
.hero-arrow span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 3.4vw, 52px);
  font-weight: 300;
  line-height: 0.82;
  margin-top: -2px;
}
.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 16px 38px rgba(26, 92, 58, 0.26);
  transform: translateY(-50%) scale(1.06);
  outline: none;
}
.hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

@media (max-width: 900px) {
.hero-arrow {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.82);
  }
.hero-arrow-prev {
    left: 12px;
  }
.hero-arrow-next {
    right: 12px;
  }
.hero-arrow span {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
.hero-arrow {
    width: 34px;
    height: 34px;
  }
.hero-arrow-prev {
    left: 10px;
  }
.hero-arrow-next {
    right: 10px;
  }
.hero-arrow span {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
.hero-arrow {
    transition: none !important;
  }
.hero-slide {
    transition: none !important;
    animation: none !important;
  }
.hero-slide .hero-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
.hero-slide.active .hero-feature,
.hero-slide.active .hero-feature-icon {
    opacity: 1 !important;
    animation: none !important;
  }
}
/* ============================================================
   User Fix 2026-05-14: 首页解决方案区块与移动端卖点布局修正
   1. 解决方案背景不再铺满屏幕，而是收进内容容器宽度内。
   2. 解决方案图标横向排列，取消深色遮罩层与白色文字样式。
   3. 移动端 hero-feature 改为紧凑网格，避免两列被拉得过宽。
   ============================================================ */
.section.solutions {
  position: relative;
  overflow: visible;
  width: 100%;
  background: transparent;
  padding: clamp(24px, 3vw, 42px) 0;
}
.section.solutions .solutions-bg {
  position: absolute;
  top: clamp(24px, 3vw, 42px);
  bottom: clamp(24px, 3vw, 42px);
  left: 50%;
  z-index: 0;
  width: min(calc(100% - (var(--content-pad) * 2)), calc(var(--content-max) - (var(--content-pad) * 2)));
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 12px;
  background: #f2f7f5;
}
.section.solutions .solutions-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.section.solutions .solutions-inner {
  position: relative;
  z-index: 1;
  display: block;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 46px) var(--content-pad);
  background: none !important;
  border-radius: 0;
}
.section.solutions .solutions-content {
  width: 100%;
  max-width: none;
}
.section.solutions .section-title.white,
.section.solutions .section-title {
  color: var(--color-text);
}
.section.solutions .section-title.white::before,
.section.solutions .section-title.white::after,
.section.solutions .section-title::before,
.section.solutions .section-title::after {
  background: var(--color-primary-mid);
}
.section.solutions .section-title::before {
  display: none;
}
.section.solutions .section-title::after {
  left: calc(100% + 8px);
  margin-left: 0;
}
.section.solutions .section-sub.white,
.section.solutions .section-sub {
  color: var(--color-text-mid);
}
.section.solutions .solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  align-items: start;
  gap: clamp(14px, 2.2vw, 34px);
  width: 100%;
  margin-top: clamp(18px, 2vw, 28px);
  margin-bottom: clamp(22px, 2.5vw, 34px);
}
.section.solutions .solution-item {
  min-width: 0;
  gap: 8px;
  cursor: pointer;
}
.section.solutions .solution-icon {
  width: clamp(42px, 3.2vw, 54px);
  height: clamp(42px, 3.2vw, 54px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(45, 122, 79, 0.18);
  box-shadow: 0 6px 18px rgba(26, 92, 58, 0.08);
}
.section.solutions .solution-item:hover .solution-icon {
  background: #ffffff;
  border-color: rgba(45, 122, 79, 0.32);
}
.section.solutions .solution-icon svg [stroke] {
  stroke: var(--color-primary-mid) !important;
}
.section.solutions .solution-icon svg [fill="white"] {
  fill: var(--color-primary-mid) !important;
}
.section.solutions .solution-item span {
  color: var(--color-text);
  font-size: clamp(11px, 0.86vw, 13px);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 900px) {
.section.solutions .solutions-bg {
    width: calc(100% - (var(--content-pad) * 2));
  }
.section.solutions .solutions-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 16px 22px;
  }
.hero-features {
    width: fit-content;
    max-width: 340px;
    grid-template-columns: repeat(2, minmax(100px, 128px));
    justify-content: start;
    justify-items: center;
    gap: 18px 28px;
  }
.hero-feature {
    width: 100%;
    max-width: 128px;
  }
}

@media (max-width: 520px) {
.hero-features {
    max-width: 300px;
    grid-template-columns: repeat(2, minmax(90px, 116px));
    gap: 16px 22px;
  }
.hero-feature {
    max-width: 116px;
  }
.hero-feature-icon {
    width: 48px;
    height: 48px;
  }
.feature-cn {
    font-size: 13px;
  }
.feature-en {
    font-size: 9px;
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
.section.solutions .solutions-grid {
    grid-template-columns: repeat(2, minmax(88px, 1fr));
  }
.hero-features {
    max-width: 276px;
    grid-template-columns: repeat(2, minmax(86px, 108px));
    gap: 14px 20px;
  }
}
/* ============================================================
   User Fix 2026-05-14 v2: 解决方案区块按图一紧凑横幅修正
   目标：低矮横幅、左侧标题、图标紧凑横排、按钮在左下，避免图二的大图标大间距。
   ============================================================ */
.section.solutions {
  padding: clamp(18px, 2.2vw, 30px) 0 !important;
}
.section.solutions .solutions-bg {
  top: clamp(18px, 2.2vw, 30px) !important;
  bottom: clamp(18px, 2.2vw, 30px) !important;
  width: min(calc(100% - (var(--content-pad) * 2)), 1360px) !important;
  border-radius: 8px !important;
}
.section.solutions .solutions-bg img {
  object-position: center right !important;
}
.section.solutions .solutions-inner {
  min-height: clamp(210px, 16vw, 260px);
  padding-top: clamp(30px, 2.8vw, 44px) !important;
  padding-bottom: clamp(26px, 2.4vw, 38px) !important;
  padding-left: calc(var(--content-pad) + clamp(18px, 2vw, 36px)) !important;
  padding-right: calc(var(--content-pad) + clamp(18px, 2vw, 36px)) !important;
}
.section.solutions .solutions-content {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}
.section.solutions .section-title {
  margin-bottom: 10px;
  padding-left: 0;
  padding-right: clamp(40px, 4vw, 62px);
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.2;
}
.section.solutions .section-title::after {
  left: auto !important;
  right: 0 !important;
  width: clamp(34px, 3vw, 52px) !important;
  margin-left: 0 !important;
}
.section.solutions .section-sub {
  max-width: 560px;
  margin-top: 0 !important;
  margin-bottom: clamp(18px, 1.8vw, 26px) !important;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.5;
}
.section.solutions .solutions-grid {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: auto !important;
  max-width: clamp(760px, 70vw, 1080px);
  gap: clamp(20px, 2.5vw, 46px) !important;
  margin-top: 0 !important;
  margin-bottom: clamp(18px, 1.8vw, 28px) !important;
}
.section.solutions .solution-item {
  flex: 0 0 auto;
  width: clamp(80px, 7vw, 108px);
  min-width: clamp(80px, 7vw, 108px) !important;
  max-width: 108px;
  text-align: center;
  gap: 7px !important;
}
.section.solutions .solution-icon {
  width: clamp(42px, 3.4vw, 54px) !important;
  height: clamp(42px, 3.4vw, 54px) !important;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(45, 122, 79, 0.12) !important;
  box-shadow: 0 8px 18px rgba(24, 88, 60, 0.08) !important;
}
.section.solutions .solution-icon svg {
  width: clamp(22px, 1.7vw, 28px) !important;
  height: clamp(22px, 1.7vw, 28px) !important;
}
.section.solutions .solution-item span {
  display: block;
  width: 100%;
  color: #26342d !important;
  font-size: clamp(13px, 0.88vw, 13px) !important;
  font-weight: 600 !important;
  line-height: 1.35;
  white-space: normal !important;
  word-break: break-word;
}
.section.solutions .btn.btn-primary {
  align-self: start;
  width: fit-content;
  min-width: clamp(150px, 10vw, 190px);
  height: clamp(40px, 3vw, 48px);
  justify-content: center;
  padding: 0 clamp(18px, 1.6vw, 26px) !important;
  border-radius: 3px;
  font-size: clamp(13px, 0.9vw, 15px);
  box-shadow: none;
}

@media (max-width: 1180px) {
.section.solutions .solutions-grid {
    max-width: 760px;
    gap: 18px !important;
  }
.section.solutions .solution-item {
    width: 80px;
    min-width: 80px !important;
  }
}

@media (max-width: 900px) {
.section.solutions {
    padding: 22px 0 !important;
  }
.section.solutions .solutions-bg {
    top: 22px !important;
    bottom: 22px !important;
    width: calc(100% - (var(--content-pad) * 2)) !important;
  }
.section.solutions .solutions-inner {
    min-height: auto;
    padding: 28px calc(var(--content-pad) + 16px) !important;
  }
.section.solutions .section-sub {
    max-width: 100%;
  }
.section.solutions .solutions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(70px, 1fr)) !important;
    max-width: 100%;
    gap: 16px 18px !important;
  }
.section.solutions .solution-item {
    width: auto;
    min-width: 0 !important;
    max-width: none;
  }
}

@media (max-width: 520px) {
.section.solutions .solutions-inner {
    padding: 24px calc(var(--content-pad) + 10px) !important;
  }
.section.solutions .solutions-grid {
    grid-template-columns: repeat(2, minmax(82px, 1fr)) !important;
  }
}
/* ============================================================
   用户需求优化：轮播点动画 / 解决方案间距 / 应用领域悬浮标签
   ============================================================ */
.hero-dots {
  align-items: center;
  gap: 10px;
}
.hero-dot {
  position: relative;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(45, 122, 79, 0.22);
  border: 1px solid rgba(45, 122, 79, 0.18);
  box-shadow: 0 0 0 0 rgba(26, 92, 58, 0);
  transform: scale(1);
  transition: width 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-mid));
  opacity: 0;
}
.hero-dot.active {
  width: 30px;
  background: rgba(26, 92, 58, 0.14);
  border-color: rgba(26, 92, 58, 0.34);
  box-shadow: 0 0 0 6px rgba(26, 92, 58, 0.08);
  transform: scale(1.06);
}
.hero-dot.active::after {
  opacity: 1;
  animation: heroDotProgress 5s linear forwards;
}

@keyframes heroDotProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
.hero-dot,
.hero-dot::after {
    transition: none;
    animation: none !important;
  }
.hero-dot.active::after {
    width: 100%;
  }
}
.section.solutions {
  margin-bottom: clamp(28px, 3.6vw, 58px) !important;
}
.app-label {
  left: 50% !important;
  right: auto !important;
  bottom: clamp(10px, 1.2vw, 16px) !important;
  width: calc(100% - clamp(18px, 2vw, 28px));
  padding: clamp(7px, 0.8vw, 10px) clamp(10px, 1vw, 14px) !important;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #1f352a !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.35;
  text-shadow: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover .app-label {
  background: rgba(255, 255, 255, 0.86) !important;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}
/* ---------- User Fix: desktop hero background upward alignment ---------- */
/*
  电脑端首屏顶部出现空白时，根因是 Hero 轮播背景使用居中定位，
  在当前 1000px 高度的首屏容器中会让图片视觉主体下沉。
  仅在电脑端将轮播背景整体向上偏移，补齐顶部空白；移动端保持原布局不变。
*/
@media (min-width: 901px) {
  .hero-slide {
    background-position: center -64px !important;
  }
}

@media (min-width: 1440px) {
.hero-slide {
    background-position: center -78px !important;
  }
}
