/* ============================================================
   大熊物联科技 — index.css  首页专属样式
   ============================================================ */

/* =================================================================
   HERO BANNER / SWIPER
   ================================================================= */
.hero-swiper { width: 100%; height: 80vh; min-height: 520px; max-height: 860px; position: relative; }
.hero-slide {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.swiper-slide-active .hero-bg { transform: scale(1); }

/* 渐变遮罩 */
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(13,58,110,0.80) 0%, rgba(26,111,196,0.50) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff; max-width: 640px;
  padding: 0 0 0 10%;
}
.hero-tag {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; margin-bottom: 20px; text-transform: uppercase;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.22;
  margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-content p  {
  font-size: clamp(0.96rem, 2vw, 1.13rem); line-height: 1.75;
  opacity: 0.9; max-width: 500px; margin-bottom: 34px;
}
.hero-btns        { display: flex; gap: 14px; flex-wrap: wrap; }

/* 自定义分页点 */
.hero-swiper .swiper-pagination { bottom: 28px; }
.hero-swiper .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.5);
  opacity: 1; transition: background 0.3s, width 0.3s;
}
.hero-swiper .swiper-pagination-bullet-active { background: #fff; width: 44px; }

/* 箭头 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 48px; height: 48px; background: rgba(255,255,255,0.15);
  border-radius: 50%; backdrop-filter: blur(6px);
  --swiper-navigation-size: 18px; color: #fff;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { background: rgba(255,255,255,0.32); }

/* ---- Hero Split Layout ---- */
.hero-split {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; align-items: center;
  padding: 0 5% 0 15%;
  gap: 0;
}
.hero-text {
  flex: 0 0 auto; max-width: 480px; color: #fff; margin-right: 10px;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.22;
  margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-model-label {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 14px; letter-spacing: 0.04em;
}
.hero-text p {
  font-size: clamp(0.9rem, 1.7vw, 1.05rem); line-height: 1.8;
  opacity: 0.9; margin-bottom: 18px;
}
.hero-p2 {
  font-size: 0.88rem !important; opacity: 0.75 !important;
  margin-top: -8px;
}
.hero-text .hero-btns { margin-top: 8px; }
.hero-visual {
  flex: 1; display: flex; align-items: center; align-content: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.hero-prod-main {
  max-height: 420px; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  animation: heroFloat 4s ease-in-out infinite;
}
.hero-prod-duo {
  width: 46%; max-height: 300px; object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.45));
  animation: heroFloat 4s ease-in-out infinite;
}
/* 单图幻灯片图片放大居中 */
.hero-visual > .hero-prod-duo:only-child {
  width: 60%; max-height: 420px;
}
.hero-prod-duo:nth-child(2) { animation-delay: 0.9s; }

/* ---- Hero Triple (Slide 3: 6 应用场景) ---- */
.hero-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
  align-items: center;
  justify-items: center;
}
.hero-triple-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFloat 4s ease-in-out infinite;
  cursor: default;
}
.hero-triple-item:nth-child(2) { animation-delay: 0.4s; }
.hero-triple-item:nth-child(3) { animation-delay: 0.8s; }
.hero-triple-item:nth-child(4) { animation-delay: 1.2s; }
.hero-triple-item:nth-child(5) { animation-delay: 1.6s; }
.hero-triple-item:nth-child(6) { animation-delay: 2.0s; }
.hero-triple-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(251, 251, 251, 0.432);
  border: 2.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(0,0,0,0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-triple-item:hover .hero-triple-img {
  transform: scale(1.1);
  box-shadow: 0 18px 48px rgba(0,0,0,0.7);
  border-color: var(--accent);
}
.hero-triple-img img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.hero-triple-item > span {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  text-align: center;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.swiper-slide-active .hero-text   { animation: heroFadeUp 0.75s cubic-bezier(.22,.68,0,1.2) both; }
.swiper-slide-active .hero-visual { animation: heroFadeUp 0.85s 0.2s cubic-bezier(.22,.68,0,1.2) both; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .hero-split { flex-direction: column; justify-content: center; padding: 100px 6% 20px; gap: 16px; }
  .hero-text  { flex: none; text-align: center; }
  .hero-text .hero-btns { justify-content: center; }
  .hero-prod-main { max-height: 200px; }
  .hero-prod-duo  { max-height: 160px; width: 44%; }
  .hero-triple { gap: 16px; }
  .hero-triple-img { width: 88px; height: 98px; }
  .hero-triple-item > span { font-size: 0.88rem; }
}
@media (max-width: 540px) {
  .hero-visual { display: none; }
}

/* =================================================================
   STATS COUNT BAR
   ================================================================= */
.stats-bar { background: var(--primary-dark); padding: 44px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  text-align: center; color: #fff;
  padding: 0 20px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%;
  width: 1px; background: rgba(255,255,255,0.15);
}
.stat-num {
  font-size: 2.8rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit { font-size: 1.1rem; font-weight: 600; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 6px; }

/* =================================================================
   产品系列
   ================================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card { cursor: pointer; }
.product-card-img {
  position: relative; overflow: hidden;
  height: 220px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.product-card-img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,58,110,0.65) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card-overlay span {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em;
}
.product-card-body { padding: 22px 24px 26px; }
.product-card-icon {
  width: 46px; height: 46px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary); margin-bottom: 14px;
}
.product-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.product-card-body p  { font-size: 0.88rem; color: var(--text-gray); line-height: 1.75; }
.product-card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 0.88rem; font-weight: 600; color: var(--primary);
}
.product-card-link i { font-size: 0.75rem; transition: transform 0.25s; }
.product-card:hover .product-card-link i { transform: translateX(4px); }

/* =================================================================
   关于我们亮点
   ================================================================= */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.about-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; display: block; }
.about-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 18px 24px; text-align: center; box-shadow: var(--shadow);
}
.about-badge-float strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge-float span   { font-size: 0.82rem; opacity: 0.9; }

.about-text .label {
  display: inline-block; color: var(--accent); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 18px; line-height: 1.35; }
.about-text > p { color: var(--text-gray); line-height: 1.9; margin-bottom: 28px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.about-feature { display: flex; gap: 12px; align-items: flex-start; }
.about-feature i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; width: 20px; flex-shrink: 0; }
.about-feature div h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.about-feature div p  { font-size: 0.84rem; color: var(--text-gray); }

/* =================================================================
   解决方案 — Mosaic 1大4小
   ================================================================= */
.sol-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 580px;
}
.sol-smalls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.sol-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.sol-card:hover { transform: scale(1.015); box-shadow: 0 16px 48px rgba(0,0,0,0.28); }
.sol-card-big  { height: 100%; }
.sol-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,12,45,0.88) 0%, rgba(3,12,45,0.38) 50%, rgba(3,12,45,0.1) 100%);
  transition: background 0.35s;
}
.sol-card:hover .sol-overlay {
  background: linear-gradient(to top, rgba(3,12,45,0.94) 0%, rgba(3,12,45,0.55) 65%, rgba(3,12,45,0.15) 100%);
}
/* large accent icon (watermark) */
.sol-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  font-size: 4.5rem;
  color: rgba(255,255,255,0.13);
  pointer-events: none;
  line-height: 1;
}
.sol-inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 22px 24px;
  color: #fff;
}
.sol-card-big .sol-inner { padding: 32px 30px 34px; }
.sol-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.sol-inner h3 {
  font-size: 1.08rem; font-weight: 700;
  margin-bottom: 6px; line-height: 1.3;
}
.sol-card-big .sol-inner h3 { font-size: 1.62rem; margin-bottom: 10px; }
.sol-inner p {
  font-size: 0.83rem; opacity: 0.85; line-height: 1.65;
  margin-bottom: 14px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.sol-card-big .sol-inner p { max-height: 80px; }
.sol-card:hover .sol-inner p { max-height: 80px; }
.sol-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.84rem; font-weight: 600;
  transition: background 0.25s, border-color 0.25s;
}
.sol-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Small card gradient themes */
.sol-bg-1 { background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%); }
.sol-bg-2 { background: linear-gradient(135deg, #00838f 0%, #26c6da 100%); }
.sol-bg-3 { background: linear-gradient(135deg, #1a2332 0%, #2e4057 100%); }
.sol-bg-4 { background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%); }
/* Responsive */
@media (max-width: 900px) {
  .sol-mosaic { grid-template-columns: 1fr; height: auto; }
  .sol-card-big { height: 340px; }
  .sol-smalls   { grid-template-columns: 1fr 1fr; }
  .sol-card-sm  { height: 210px; }
}
@media (max-width: 480px) {
  .sol-smalls  { grid-template-columns: 1fr; }
  .sol-card-sm { height: 180px; }
}

/* =================================================================
   新闻资讯
   ================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-light); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body  { padding: 22px 24px 26px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-date { font-size: 0.82rem; color: var(--text-gray); display: flex; align-items: center; gap: 5px; }
.news-card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.55; margin-bottom: 10px; color: var(--text-dark); }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p  { font-size: 0.87rem; color: var(--text-gray); line-height: 1.75; }

/* =================================================================
   合作伙伴 LOGO 滚动带
   ================================================================= */
.partners-bar { padding: 56px 0; border-top: 1px solid var(--border); }
.partners-bar .section-title { margin-bottom: 36px; }
.partner-scroll-wrap { overflow: hidden; position: relative; }
.partner-scroll-wrap::before,
.partner-scroll-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.partner-scroll-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.partner-scroll-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }
.partner-track {
  display: flex; align-items: center; gap: 40px;
  animation: partnerScroll 26s linear infinite;
  width: max-content;
}
.partner-track:hover { animation-play-state: paused; }
.partner-logo {
  width: 130px; height: 64px; border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 12px 18px;
  flex-shrink: 0; filter: grayscale(60%); transition: all 0.3s;
  background: #fff;
}
.partner-logo:hover { filter: grayscale(0%); box-shadow: var(--shadow-sm); }
.partner-logo span  { font-size: 0.82rem; font-weight: 600; color: var(--text-gray); text-align: center; }
@keyframes partnerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =================================================================
   CTA 横幅
   ================================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 72px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(244,121,32,0.18) 0%, transparent 60%);
}
.cta-band h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-band p  { font-size: 1.05rem; opacity: 0.82; max-width: 500px; margin: 0 auto 32px; position: relative; }
.cta-btns    { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =================================================================
   响应式
   ================================================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item + .stat-item::before { display: none; }
}
@media (max-width: 768px) {
  .hero-content    { padding: 0 5%; }
  .hero-content h1 { font-size: 1.9rem; }
  .about-split     { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap  { max-width: 540px; margin: 0 auto; }
  .about-features  { grid-template-columns: 1fr; }
  .news-grid       { grid-template-columns: 1fr; }
  .product-grid    { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .about-badge-float { bottom: 12px; right: 12px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns  { flex-direction: column; }
}
