/* 智谋科技 - 首页样式 */

/* ========== Hero ========== */
.home-hero {
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

.home-hero .flexslider {
  margin: 0;
  border: none;
  background: transparent;
}

/* 轮播：固定适中高度，避免占满屏幕 */
.home-hero .flex-viewport {
  width: 100%;
  height: clamp(160px, 22vw, 260px) !important;
  max-height: 260px !important;
  background: #0a1628;
  overflow: hidden;
}

.home-hero .flexslider,
.home-hero .slides,
.home-hero .slides > li {
  max-height: 700px !important;
}

.home-hero .slides {
  height: 100% !important;
}

.home-hero .slides > li {
  height: 100%;
  overflow: hidden;
}

.home-hero .slides img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.home-hero .flex-control-nav {
  bottom: 24px;
  z-index: 5;
}

.home-hero .flex-control-paging li a {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  width: 8px;
  height: 8px;
}

.home-hero .flex-control-paging li a.flex-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.2) 45%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.home-hero-overlay .container {
  pointer-events: auto;
}

.home-hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.home-hero-desc {
  margin: 0 0 28px;
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.home-hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.home-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ========== 数据概览 ========== */
.home-stats {
  background: var(--primary);
  padding: 0;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.85;
}

/* ========== 通用区块 ========== */
.home-section {
  padding: 64px 0;
}

.home-section:nth-child(even) {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-left {
  text-align: left;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--text);
}

.section-header p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.section-more {
  text-align: center;
  margin-top: 32px;
}

/* ========== 数字化平台 ========== */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.platform-card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.platform-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.platform-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.platform-link {
  font-size: 13px;
  color: var(--primary);
}

/* ========== 关于我们 ========== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.about-summary {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.value-card-img {
  height: 100px;
  background-size: cover;
  background-position: center;
}

.value-card-body {
  padding: 16px;
}

.value-card-body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.value-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== 产品服务 ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  color: var(--text);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.service-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== 企业荣誉 ========== */
.honor-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.honor-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.honor-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.honor-item span {
  display: block;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 品牌 ========== */
.brand-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-item {
  text-align: center;
}

.brand-item img {
  width: 160px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.brand-item span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 实用工具 ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.25s ease;
  color: var(--text);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.tool-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== 联系我们 ========== */
.home-contact {
  padding-bottom: 80px;
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
}

.contact-company {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
}

.contact-addr {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.85;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  opacity: 0.9;
}

.contact-logo {
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo img {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-strip { grid-template-columns: repeat(3, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .home-section { padding: 48px 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }

  .home-hero-overlay {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.4) 100%);
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .home-hero .flex-viewport,
  .home-hero .flexslider,
  .home-hero .slides,
  .home-hero .slides > li {
    height: clamp(140px, 38vw, 200px) !important;
    max-height: 200px !important;
  }

  .platform-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .platform-card { padding: 20px 12px; }

  .about-values { grid-template-columns: 1fr; }

  .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 16px; }

  .honor-strip { grid-template-columns: repeat(2, 1fr); }

  .tools-grid { grid-template-columns: 1fr; }

  .contact-banner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .contact-details { justify-content: center; }

  .contact-logo img {
    width: 160px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .platform-cards { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
