/* ============================================
   商米风格首页样式 - homepage.css
   ============================================ */

/* === 全局变量 === */
:root {
  --primary-color: #5764ec;
  --bg-color: #F0F0F0;
  --bg-white: #FFFFFF;
  --bg-dark: #272727;
  --bg-black: #000000;
  --text-color: #333333;
  --text-dark: #222222;
  --text-light: #F1F1F1;
  --text-muted: rgba(255,255,255,0.7);
  --section-gap: 16px;
  --transition: all 0.3s ease;
  --font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* === 首页 body 重置 === */
body.homepage {
  background: var(--bg-color);
  font-family: var(--font-family);
  overflow-x: hidden;
}

/* === 导航栏 === */
.sunmi-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.sunmi-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}
.sunmi-nav .nav-inner {
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sunmi-nav .nav-logo img {
  height: 28px;
}
.sunmi-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sunmi-nav .nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.sunmi-nav.scrolled .nav-links a {
  color: var(--text-color);
}
.sunmi-nav .nav-links a:hover {
  color: #fff;
}
.sunmi-nav.scrolled .nav-links a:hover {
  color: var(--primary-color);
}
.sunmi-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 移动端汉堡菜单 */
.sunmi-nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.sunmi-nav .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}
.sunmi-nav.scrolled .nav-toggle span {
  background: var(--text-color);
}

/* === 轮播 Banner === */
.hero-carousel {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
}
.hero-carousel .swiper {
  width: 100%;
  height: 100%;
}
.hero-carousel .swiper-slide {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-carousel .slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* fade 模式下隐藏非活跃 slide 的文字内容 */
.hero-carousel .swiper-slide:not(.swiper-slide-active) .slide-content {
  opacity: 0;
  visibility: hidden;
}
.hero-carousel .slide-content {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  color: #fff;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}
.hero-carousel .slide-content h2 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.hero-carousel .slide-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

/* 轮播指示器 */
.hero-carousel .carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-start;
  z-index: 15;
  list-style: none;
  padding: 0 24px;
  margin: 0;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}
.hero-carousel .carousel-indicators li {
  cursor: pointer;
  width: 130px;
  position: relative;
  margin: 0 4px;
  list-style: none;
  /* 覆盖 Bootstrap carousel-indicators li 默认样式 */
  height: auto;
  background: none;
  border: none;
  border-top: none;
  border-bottom: none;
  opacity: 1;
  text-indent: 0;
  box-sizing: border-box;
  flex: none;
  transition: none;
  padding: 20px 0;
}
.hero-carousel .carousel-indicators li:not(:first-child) {
  margin-left: 8px;
}
.hero-carousel .carousel-indicators .indicator-inner {
  width: 130px;
  position: relative;
}
.hero-carousel .carousel-indicators .indicator-text {
  position: absolute;
  bottom: 100%;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.hero-carousel .carousel-indicators li:hover .indicator-text {
  opacity: 1;
}
.hero-carousel .carousel-indicators .indicator-text span {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  padding-bottom: 6px;
}
.hero-carousel .carousel-indicators .indicator-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}
.hero-carousel .carousel-indicators .indicator-progress-bar {
  width: 0;
  height: 100%;
  background: #fff;
  transition: none;
}
.hero-carousel .carousel-indicators li.active .indicator-progress-bar {
  width: 100%;
  transition: width 5s linear;
}

/* Swiper 自定义 */
.hero-carousel .swiper-pagination {
  display: none;
}

/* === 产品展示区 === */
.product-section {
  padding: 0;
  margin: 16px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-card {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: #1a1a1a;
  cursor: pointer;
}
.product-card-wide {
  grid-column: span 2;
  height: 560px;
}
.product-card:last-child {
  margin-bottom: 0;
}
.product-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .card-bg {
  transform: scale(1.03);
}
.product-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.product-card .card-content {
  position: absolute;
  bottom: 40px;
  left: 48px;
  z-index: 2;
  color: #fff;
}
.product-card .card-label {
  font-size: 14px;
  color: #FF6602;
  opacity: 1;
  margin-bottom: 4px;
}
.product-card .card-title {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.product-card .card-desc {
  font-size: 16px;
  color: #fff;
  opacity: 1;
  margin-bottom: 20px;
  max-width: 500px;
}
.product-card .card-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* 按钮样式 */
.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.85;
}
.btn-link-arrow:hover {
  opacity: 1;
  color: inherit;
}
.btn-link-arrow .arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.btn-link-arrow:hover .arrow {
  transform: translateX(4px);
}
.btn-link-arrow .arrow::after {
  content: '→';
  font-size: 16px;
}

/* === 解决方案区 === */
.solution-section {
  margin: 0;
  margin-top: 16px;
  position: relative;
}
.solution-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 640px;
  background: #1a1a1a;
}
.solution-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solution-card .card-content {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  max-width: 420px;
}
.solution-card .card-content h3 {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.solution-card .card-content p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 24px;
}
.solution-tabs {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.solution-tabs .tab-item {
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.3);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, transform 0.25s ease;
  border: none;
  position: relative;
}
.solution-tabs .tab-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}
.solution-tabs .tab-item.active {
  color: #fff;
  background: rgba(255,255,255,0.2);
}
.solution-tabs .tab-item.active::after {
  width: 100%;
  left: 0;
}
.solution-tabs .tab-item:hover {
  transform: translateY(-1px);
}

/* === 品牌体验区 (双栏) === */
.brand-section {
  margin: var(--section-gap) var(--section-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
}
.brand-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 480px;
  background: #1a1a1a;
}
.brand-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.brand-card:hover .card-bg {
  transform: scale(1.03);
}
.brand-card .card-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  color: #fff;
}
.brand-card .card-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.brand-card .card-content p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* === 新闻动态区 === */
.news-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 80px 0;
  position: relative;
}
.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87,100,236,0.2), transparent);
}
.news-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.news-section .section-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 40px;
}
.news-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 24px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.news-tab-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--primary-color);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}
.news-tab-item:first-child {
  border-top: 1px solid #eee;
}
.news-tab-item:hover {
  background: linear-gradient(90deg, rgba(87,100,236,0.04), transparent);
  padding-left: 24px;
}
.news-tab-item:hover::after {
  height: 100%;
}
.news-tab-item.active {
  background: linear-gradient(90deg, rgba(87,100,236,0.04), transparent);
  padding-left: 24px;
}
.news-tab-item.active::after {
  height: 100%;
}
.news-tab-item .news-title {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 500;
  flex: 1;
  transition: var(--transition);
}
.news-tab-item:hover .news-title {
  color: var(--primary-color);
}
.news-tab-item.active .news-title {
  color: var(--primary-color);
}
.news-tab-item .news-detail {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.news-tab-item.active .news-detail {
  display: block;
}
.news-tab-item .news-date {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
  margin-left: 24px;
}
.news-section .news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}
.news-section .news-more:hover {
  color: var(--primary-color);
}

/* === 品牌视频区 === */
.tvc-section {
  background: var(--bg-black);
  height: 700px;
  position: relative;
  overflow: hidden;
}
.tvc-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.tvc-content {
  color: #fff;
  max-width: 500px;
  z-index: 2;
}
.tvc-content .tvc-label {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 12px;
}
.tvc-content .tvc-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.tvc-content .tvc-subtitle {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 32px;
}
.tvc-content .tvc-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.tvc-content .btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
}
.tvc-content .btn-play:hover {
  opacity: 1;
}
.tvc-content .btn-play .play-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.tvc-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
}
.tvc-indicators .tvc-dot {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid transparent;
}
.tvc-indicators .tvc-dot.active {
  opacity: 1;
  border-color: var(--primary-color);
}
.tvc-indicators .tvc-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tvc-bg-video {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* === Hardware Capabilities 硬件能力区 === */
.hw-section {
  background: #141722;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
/* 多层纹理背景：网格 + 光晕 + 噪点 */
.hw-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 左下角主色光晕 */
    radial-gradient(ellipse 55% 55% at 0% 100%, rgba(87,100,236,0.18) 0%, transparent 65%),
    /* 右上角青色光晕 */
    radial-gradient(ellipse 45% 45% at 100% 0%, rgba(56,189,248,0.10) 0%, transparent 55%),
    /* 中心微弱紫光 */
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(139,92,246,0.06) 0%, transparent 50%),
    /* 精密网格线 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(87,100,236,0.045) 79px,
      rgba(87,100,236,0.045) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(87,100,236,0.045) 79px,
      rgba(87,100,236,0.045) 80px
    );
  pointer-events: none;
}
/* 顶部渐变分割线 */
.hw-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(87,100,236,0.3) 50%, transparent 90%);
}
.hw-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hw-header {
  text-align: center;
  margin-bottom: 64px;
}
.hw-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(87,100,236,0.85);
  margin-bottom: 16px;
}
.hw-title {
  font-size: 36px;
  font-weight: 700;
  color: #e8eaf0;
  margin-bottom: 12px;
}
.hw-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hw-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(87,100,236,0.12);
  border-radius: 6px;
  padding: 36px 28px 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hw-card:hover {
  background: rgba(87,100,236,0.08);
  border-color: rgba(87,100,236,0.28);
  transform: translateY(-4px);
  box-shadow:
    0 0 30px rgba(87,100,236,0.12),
    0 16px 48px rgba(0,0,0,0.3);
}
.hw-card:hover::before {
  opacity: 1;
}
.hw-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(87,100,236,0.10);
  border: 1px solid rgba(87,100,236,0.18);
  border-radius: 8px;
  transition: all 0.35s ease;
}
.hw-card:hover .hw-card-icon {
  background: rgba(87,100,236,0.18);
  border-color: rgba(87,100,236,0.35);
  box-shadow: 0 0 20px rgba(87,100,236,0.15);
}
.hw-card-icon svg {
  width: 22px;
  height: 22px;
  color: rgba(87,100,236,0.9);
}
.hw-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #e0e2ea;
  margin-bottom: 12px;
}
.hw-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin: 0;
}

/* === SDK 下载区 === */
.sdk-section {
  background: var(--bg-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.sdk-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(87,100,236,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sdk-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(87,100,236,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.sdk-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.sdk-header {
  text-align: center;
  margin-bottom: 64px;
}
.sdk-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.sdk-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.sdk-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sdk-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 48px 36px 40px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sdk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sdk-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(87,100,236,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(87,100,236,0.06);
}
.sdk-card:hover::before {
  opacity: 1;
}
.sdk-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: rgba(87,100,236,0.1);
  border: 1px solid rgba(87,100,236,0.15);
  transition: all 0.35s ease;
}
.sdk-card:hover .sdk-card-icon {
  background: rgba(87,100,236,0.18);
  border-color: rgba(87,100,236,0.3);
}
.sdk-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}
.sdk-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.sdk-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
  flex: 1;
}
.sdk-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sdk-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.sdk-download-btn:hover {
  background: #6873f0;
  border-color: #6873f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(87,100,236,0.35);
  color: #fff;
}
.sdk-download-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}
.sdk-download-btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: none;
}
.sdk-download-btn svg {
  flex-shrink: 0;
}

/* === 生态入口区 === */
.ecosystem-section {
  margin: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg-color);
}
.eco-card {
  background: #ddd;
  border-radius: 0;
  padding: 56px 40px;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 336px;
  position: relative;
  border-left: 3px solid transparent;
}
.eco-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-left-color: var(--primary-color);
}
.eco-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.eco-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}
.eco-card .eco-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}
.eco-card .eco-link:hover {
  color: var(--primary-color);
}

/* === 全球数据区 === */
.global-section {
  position: relative;
  height: 560px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 80%, rgba(87,100,236,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(56,189,248,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139,92,246,0.08) 0%, transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
}
.global-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,0.03) 79px,
      rgba(255,255,255,0.03) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255,255,255,0.03) 79px,
      rgba(255,255,255,0.03) 80px
    );
  pointer-events: none;
}
.global-section .section-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--text-light);
}
.global-section .global-title {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.global-section .global-desc {
  font-size: 15px;
  opacity: 0.8;
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.global-section .global-links {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}
.global-section .global-links a {
  color: #fff;
}
.global-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.global-stats .stat-item .stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.global-stats .stat-item .stat-label {
  font-size: 14px;
  opacity: 0.6;
}
.global-section .global-note {
  margin-top: 32px;
  font-size: 12px;
  opacity: 0.4;
}

/* === 页脚 === */

/* === 内容容器 === */
.sunmi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Contact Us 区 === */
.contact-section {
  background: var(--bg-color);
  padding: 0;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 640px;
}
/* 左侧深色面板 */
.contact-info {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: var(--primary-color);
  opacity: 0.08;
  transform: rotate(45deg);
}
.contact-info::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  opacity: 0.05;
  transform: rotate(45deg);
}
.contact-info-inner {
  position: relative;
  z-index: 1;
  padding: 72px 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.contact-heading {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 360px;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-detail-item:hover .contact-icon {
  background: var(--primary-color);
}
.contact-icon i {
  font-size: 16px;
  color: var(--primary-color);
  transition: var(--transition);
}
.contact-detail-item:hover .contact-icon i {
  color: #fff;
}
.contact-detail-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.contact-detail-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.6;
}
.contact-detail-item .contact-time {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
/* 右侧表单区 */
.contact-form-wrap {
  background: var(--bg-white);
  display: flex;
  align-items: center;
}
.contact-form-inner {
  width: 100%;
  padding: 72px 64px;
  max-width: 640px;
}
.form-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-subtext {
  font-size: 14px;
  color: #888;
  margin-bottom: 36px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--primary-color);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.contact-submit-btn:hover {
  opacity: 0.85;
  transform: translateX(4px);
}
.contact-submit-btn i {
  font-size: 13px;
  transition: transform 0.3s ease;
}
.contact-submit-btn:hover i {
  transform: translateX(4px);
}

/* === 通用动画 === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错入场延迟 */
.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.08s; }
.stagger-item:nth-child(3) { transition-delay: 0.16s; }
.stagger-item:nth-child(4) { transition-delay: 0.24s; }
.stagger-item:nth-child(5) { transition-delay: 0.32s; }
.stagger-item:nth-child(6) { transition-delay: 0.40s; }
.stagger-item:nth-child(7) { transition-delay: 0.48s; }
.stagger-item:nth-child(8) { transition-delay: 0.56s; }

/* 图标 hover 旋转 */
.hw-card-icon svg {
  width: 22px;
  height: 22px;
  color: rgba(87,100,236,0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}
.hw-card:hover .hw-card-icon svg {
  transform: scale(1.15) rotate(-6deg);
  color: rgba(120,130,255,1);
}

/* 生态卡片 hover 图标箭头滑动 */
.eco-card .eco-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.eco-card:hover .eco-link span {
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transition: none;
  }
  .stagger-item {
    transition-delay: 0s !important;
  }
  .hw-card,
  .hw-card-icon svg,
  .solution-tabs .tab-item,
  .eco-card,
  .eco-card .eco-link span {
    transition: none !important;
  }
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .hero-carousel {
    height: 500px;
  }
  .product-card {
    height: 380px;
  }
  .product-card-wide {
    height: 440px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card-wide {
    grid-column: span 1;
  }
  .solution-card {
    height: 500px;
  }
  .solution-card .card-content {
    right: 40px;
  }
  .brand-section {
    grid-template-columns: 1fr;
    margin: var(--section-gap);
  }
  .ecosystem-section {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-info-inner {
    padding: 48px 40px;
  }
  .contact-form-inner {
    padding: 48px 40px;
  }
  .global-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .tvc-section {
    height: 500px;
  }
  .hw-section {
    padding: 72px 0;
  }
  .hw-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hw-title {
    font-size: 30px;
  }
  .sdk-section {
    padding: 72px 0;
  }
  .sdk-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sdk-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .sunmi-nav .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .sunmi-nav .nav-links.open {
    display: flex;
  }
  .sunmi-nav .nav-links a {
    color: var(--text-color);
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .sunmi-nav .nav-toggle {
    display: block;
  }
  .hero-carousel {
    height: 400px;
  }
  .hero-carousel .slide-content h2 {
    font-size: 28px;
  }
  .hero-carousel .carousel-indicators {
    display: none;
  }
  .product-card {
    height: 320px;
  }
  .product-card-wide {
    height: 360px;
  }
  .product-card .card-content {
    bottom: 24px;
    left: 24px;
  }
  .product-card .card-title {
    font-size: 22px;
  }
  .solution-card {
    height: 400px;
    border-radius: 0;
  }
  .solution-card .card-content {
    right: 24px;
    max-width: 280px;
  }
  .brand-card {
    height: 320px;
    border-radius: 0;
  }
  .news-section {
    padding: 48px 0;
  }
  .news-section .section-title {
    font-size: 24px;
  }
  .tvc-section {
    height: 400px;
  }
  .tvc-content .tvc-title {
    font-size: 32px;
  }
  .hw-section {
    padding: 56px 0;
  }
  .hw-header {
    margin-bottom: 40px;
  }
  .hw-title {
    font-size: 26px;
  }
  .hw-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hw-card {
    padding: 28px 24px 24px;
  }
  .sdk-section {
    padding: 56px 0;
  }
  .sdk-header {
    margin-bottom: 40px;
  }
  .sdk-title {
    font-size: 26px;
  }
  .sdk-card {
    padding: 36px 28px 32px;
  }
  .sdk-card-desc {
    margin-bottom: 24px;
  }
  .sdk-card-links {
    flex-direction: column;
  }
  .global-section {
    height: auto;
    min-height: 480px;
  }
  .global-section .section-inner {
    padding: 48px 24px;
  }
  .global-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .global-stats .stat-item .stat-number {
    font-size: 32px;
  }
  .eco-card {
    padding: 32px 24px;
    height: auto;
  }
  .contact-section {
    padding: 0;
  }
  .contact-heading {
    font-size: 28px;
  }
  .contact-info-inner {
    padding: 40px 24px;
  }
  .contact-form-inner {
    padding: 40px 24px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 300px;
  }
  .product-card {
    height: 260px;
  }
  .global-stats {
    grid-template-columns: 1fr 1fr;
  }
}
