/* ========================================
   千售科技官网 - 首页专用样式
   ======================================== */

/* ===== Hero 轮播区 ===== */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 流星粒子画布（在 slide-bg 上方、slide-content 下方） --- */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* 确保 slide-bg 在 canvas 下方 */
.slide-bg {
  z-index: -1 !important;
}

.swiper {
  width: 100%;
  height: 100%;
}

.hero .swiper-wrapper {
  height: 100%;
}

.hero .swiper-slide {
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.swiper-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg-1 {
  background:
    radial-gradient(ellipse at 35% 30%, rgba(65, 83, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 60%, rgba(10, 50, 140, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(5, 30, 80, 0.2) 0%, transparent 50%),
    linear-gradient(170deg, rgba(6,13,31,0.25) 0%, rgba(9,22,46,0.25) 20%, rgba(13,31,68,0.25) 45%, rgba(11,26,56,0.25) 65%, rgba(6,16,37,0.25) 100%);
}

.slide-bg-2 {
  background:
    radial-gradient(ellipse at 60% 25%, rgba(65, 83, 255, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 55%, rgba(15, 60, 160, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse at 55% 75%, rgba(8, 40, 100, 0.18) 0%, transparent 50%),
    linear-gradient(170deg, rgba(7,14,34,0.25) 0%, rgba(12,26,58,0.25) 25%, rgba(19,42,82,0.25) 50%, rgba(10,31,60,0.25) 70%, rgba(7,14,34,0.25) 100%);
}

.slide-bg-3 {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(65, 83, 255, 0.17) 0%, transparent 52%),
    radial-gradient(ellipse at 70% 65%, rgba(12, 45, 130, 0.13) 0%, transparent 45%),
    radial-gradient(ellipse at 45% 85%, rgba(6, 35, 90, 0.19) 0%, transparent 48%),
    linear-gradient(170deg, rgba(6,16,34,0.25) 0%, rgba(13,28,60,0.25) 30%, rgba(10,22,40,0.25) 55%, rgba(15,42,70,0.25) 78%, rgba(6,16,34,0.25) 100%);
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* 主星云 - 明亮蓝色 */
    radial-gradient(ellipse at 30% 40%, rgba(65, 83, 255, 0.10) 0%, rgba(10, 60, 180, 0.04) 30%, transparent 60%),
    /* 副星云 - 青色 */
    radial-gradient(ellipse at 68% 30%, rgba(0, 200, 180, 0.05) 0%, transparent 45%),
    /* 底部光晕 */
    radial-gradient(ellipse at 55% 85%, rgba(26, 80, 200, 0.06) 0%, transparent 55%),
    /* 左上角星团 */
    radial-gradient(circle at 15% 25%, rgba(80, 160, 255, 0.04) 0%, transparent 30%);
}

.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 1000px;
  padding: 0 24px;
}

/* 通用：直接显示，无入场动画 */
.s-line {
  opacity: 1;
}

/* ---- 第1行：蓝色发光标签 ---- */
.s-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #5b9bff;
  border: 1px solid rgba(91, 155, 255, 0.35);
  border-radius: 50px;
  margin-bottom: 20px;
  background: rgba(65, 120, 255, 0.08);
  text-shadow: 0 0 8px rgba(91, 155, 255, 0.5);
  box-shadow: 0 0 18px rgba(91, 155, 255, 0.15), inset 0 0 10px rgba(91, 155, 255, 0.04);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(91, 155, 255, 0.15); }
  50% { box-shadow: 0 0 30px rgba(91, 155, 255, 0.3); }
}

/* ---- 第2行：浅灰副标题 ---- */
.hero-secondary {
  font-size: 16px;
  font-weight: 400;
  color: rgb(201, 201, 208);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* ---- 第3行：白字大标题 ---- */
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0;
  color: rgb(238, 238, 240);
}

.hero-title .text-gradient {
  background: linear-gradient(90deg, #5b9bff, #34cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- 第4行：标语 + 闪烁光标 ---- */
.hero-tagline {
  font-size: 22px;
  font-weight: 400;
  color: rgb(238, 238, 240);
  margin-bottom: 24px;
}

.cursor-blink {
  display: inline-block;
  color: rgb(238, 238, 240);
  font-weight: 700;
  margin-left: 2px;
  visibility: hidden;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- 第5行：浅灰描述文字 ---- */
.hero-subtitle {
  font-size: 16px;
  color: rgb(201, 201, 208);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* ---- 第6行：按钮组 ---- */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #4153ff, #6b7dff);
  color: #fff;
  box-shadow: 0 4px 24px rgba(65, 83, 255, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(65, 83, 255, 0.55);
  color: #fff;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-primary-lg:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-scroll-hint {
  font-size: 14px;
  color: rgb(136, 136, 146);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-scroll-hint:hover {
  color: rgba(255, 255, 255, 0.75);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 轮播控制 */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 6px;
}

/* Swiper 导航按钮 */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  width: 56px;
  height: 56px;
  margin-top: -28px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
  font-weight: 700;
}

/* 装饰元素 - 星空轮播满屏，底部不加渐变过渡 */
/* ===== 数据统计区 ===== */
.stats-section {
  padding: 56px 0 72px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: rgba(13, 31, 68, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.stat-icon.blue { background: rgba(65, 83, 255, 0.18); color: #6b83ff; }
.stat-icon.green { background: rgba(0, 212, 170, 0.18); color: #00e6b8; }
.stat-icon.orange { background: rgba(255, 107, 53, 0.18); color: #ff8c5a; }
.stat-icon.purple { background: rgba(124, 58, 237, 0.18); color: #a78bfa; }

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-number .suffix {
  font-size: 24px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ===== 产品展示区 ===== */
.products-section {
  padding: 76px 0;
  background: var(--color-bg);
}

.product-showcase {
  display: flex;
  gap: 28px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

/* 左侧产品列表 */
.product-tabs {
  width: 310px;
  flex-shrink: 0;
  background: rgba(13, 31, 68, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.product-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}

.product-tab.active {
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

.product-tab .tab-index {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-light);
  min-width: 36px;
}

.product-tab.active .tab-index {
  color: var(--color-primary);
}

.product-tab .tab-info .tab-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-tab .tab-info span {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* 右侧产品详情 */
.product-detail-panel {
  flex: 1;
  background: rgba(13, 31, 68, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-detail {
  display: none;
}

.product-detail.active {
  display: block;
}

.product-detail h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.product-detail p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.product-detail .detail-image {
  margin-top: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 2 / 1;
}

.product-detail .detail-btns {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.product-detail .detail-btns .btn {
  font-size: 15px;
  padding: 10px 24px;
}

.product-bottom-cta {
  text-align: center;
  margin-top: 32px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

.product-bottom-cta a {
  color: var(--color-primary);
  font-weight: 500;
  margin-left: 8px;
  cursor: pointer;
}

.product-bottom-cta a:hover {
  text-decoration: underline;
}

/* ===== 核心优势区 ===== */
.advantages-section {
  padding: 76px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.adv-card {
  text-align: center;
  padding: 56px 32px;
  background: rgba(13, 31, 68, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(65, 83, 255, 0.3);
}

.adv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all var(--transition-fast);
}

.adv-card:hover .adv-icon {
  transform: scale(1.1);
}

.adv-icon.blue { background: linear-gradient(135deg, rgba(65, 83, 255, 0.25), rgba(65, 83, 255, 0.12)); color: #6b83ff; }
.adv-icon.green { background: linear-gradient(135deg, rgba(0, 212, 170, 0.25), rgba(0, 212, 170, 0.12)); color: #00e6b8; }
.adv-icon.orange { background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.12)); color: #ff8c5a; }
.adv-icon.purple { background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.12)); color: #a78bfa; }

.adv-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-text);
}

.adv-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ===== 客户案例区 ===== */
.cases-section {
  padding: 76px 0;
  background: var(--color-bg);
}

/* 标题 - 照搬云罗互动 style */
.cases-title {
  text-align: center;
  margin-bottom: 52px;
}

.cases-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.cases-title em {
  display: block;
  width: 100px;
  height: 3px;
  background: var(--color-primary);
  margin: 0 auto 6px;
  border-radius: 2px;
}

.cases-title i {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-text-light);
  margin: 0 auto;
  border-radius: 2px;
}

/* Logo 墙 - 照搬云罗互动 style */
.case-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.case-logo-grid li {
  width: 20%;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 31, 68, 0.85);
  border: 1px solid var(--color-border);
  margin: -1px 0 0 -1px;
  padding: 20px;
  transition: all var(--transition-fast);
}

.case-logo-grid li:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
  position: relative;
}

.case-logo-grid li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.case-logo-grid li img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all var(--transition-fast);
}

.case-logo-grid li:hover img {
  transform: scale(1.05);
}

.case-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== 资讯区 ===== */
.news-section {
  padding: 76px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}

/* 热门资讯 */
.hot-news .news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.hot-news .news-header .icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent), #ff9a6c);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.hot-news .news-header h3 {
  font-size: 20px;
}

.news-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-card:hover {
  padding-left: 8px;
}

.news-card + .news-divider {
  height: 1px;
  background: var(--color-border);
}

.news-card .news-image {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-text-light);
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-info .news-desc {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-info .news-date {
  font-size: 12px;
  color: var(--color-text-light);
}

/* 最新资讯 */
.latest-news {
  padding-left: 0;
}

.latest-news .news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.latest-news .news-header .icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #5b9bff);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.latest-news .news-header h3 {
  font-size: 20px;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.news-more-btn:hover {
  gap: 12px;
}

/* ===== 咨询区 ===== */
.consult-section {
  padding: 76px 0;
  background: linear-gradient(135deg, #0a1628 0%, #132347 100%);
  color: #fff;
}

.consult-section .section-title h2 {
  color: #fff;
}

.consult-section .section-title .subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* 首页板块间距优化 */
.products-section .section-title,
.cases-section .section-title,
.news-section .section-title {
  margin-bottom: 40px;
}

.consult-form-box {
  max-width: 500px;
  margin: 0 auto;
}

.consult-form-box .form-row {
  display: flex;
  gap: 16px;
}

.consult-form-box .form-row input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all var(--transition-fast);
}

.consult-form-box .form-row input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.consult-form-box .form-row input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
}

.consult-form-box .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ===== 客服二维码弹窗 ===== */
.qrcode-modal {
  max-width: 420px !important;
}

.qrcode-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 32px 32px;
}

.qrcode-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.qrcode-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.qrcode-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
  margin-bottom: 24px;
}

.qrcode-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
