/* ============================
   index.css - 首页专用样式
   hbyv10syc1 IDC 基础业务模板
   ============================ */

/* ======================== Hero 主视觉 ======================== */

.hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #FFFFFF 55%, #F8FAFC 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Hero 左侧文字 */
.hero-text { flex: 1; max-width: 560px; }

.hero-sub {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .text-blue { color: var(--color-primary); }

.hero-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}

/* 主按鈕：如实蓝色，去渐变 */
.hero-btns .btn-gradient {
  background: var(--color-primary);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
}

.hero-btns .btn-gradient:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.hero-btns .btn-gradient:active,
.hero-btns .btn-gradient:visited,
.hero-btns .btn-gradient:focus {
  color: #fff;
}

/* 副按鈕：透明底 + 浅灰边框，不与浅色背景冲突 */
.hero-btns .btn-outline {
  color: #334155;
  background: rgba(255, 255, 255, 0.60);
  border: 1.5px solid #CBD5E1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-btns .btn-outline:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.90);
  border-color: var(--color-primary);
}

/* Hero 统计数据 */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 24px;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  padding-right: 0;
  border-right: none;
  padding-left: 24px;
}

.stat-item:not(:first-child):not(:last-child) {
  padding-left: 24px;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

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

/* ======================== Hero 右侧 IDC 标志 ======================== */

.hero-visual {
  flex-shrink: 0;
  width: 440px;
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idc-logo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.idc-logo-circle {
  width: 400px;
  height: 400px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  animation: idc-float 6s ease-in-out infinite;
}

.idc-logo {
  width: 100%;
  height: 100%;
  animation: idc-rotate 20s linear infinite;
}

@keyframes idc-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes idc-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 移除旧的 blob 动画 */
.blob-scene,
.blob {
  display: none;
}

/* ======================== 产品服务 ======================== */

.products { background: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: inherit;
}

.product-card:hover {
  border-color: #BFDBFE;
  background: #F8FBFF;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

/* 产品图标 */
.product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cloud   { background: #EFF6FF; }
.icon-server  { background: #EEF2FF; }
.icon-hosting { background: #ECFEFF; }
.icon-cabinet { background: #F0F9FF; }
.icon-domain  { background: #F0FDFA; }
.icon-ssl     { background: #F8FAFC; }

.icon-cloud::before   { content: '☁'; font-size: 22px; }
.icon-server::before  { content: '▤'; font-size: 18px; color: #4F46E5; }
.icon-hosting::before { content: '⛨'; font-size: 20px; color: #0891B2; }
.icon-cabinet::before { content: '⊞'; font-size: 20px; color: #0284C7; }
.icon-domain::before  { content: '◉'; font-size: 20px; color: #0D9488; }
.icon-ssl::before     { content: '➿'; font-size: 20px; color: #475569; }

/* 产品信息 */
.product-info {
  flex: 1;
  min-width: 0;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 箭头 */
.product-arrow {
  font-size: 16px;
  color: #CBD5E1;
  flex-shrink: 0;
  transition: var(--transition);
}

.product-card:hover .product-arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* ======================== 核心优势 ======================== */

.advantages .section-content { padding-bottom: 80px; }

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

.adv-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.adv-card:hover {
  border-color: #BFDBFE;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.adv-icon {
  margin-bottom: 20px;
}

.adv-icon svg {
  width: 48px;
  height: 48px;
}

.adv-card h5 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

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

/* ======================== 基础设施数据 ======================== */

.infra-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.infra-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%);
  opacity: 0.6;
  pointer-events: none;
}

.infra-section .section-content { position: relative; }

.infra-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.infra-stat {
  background: #fff;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.infra-stat:hover {
  background: var(--color-primary-light);
}

.infra-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.infra-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.infra-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ======================== 新闻区块 ======================== */

.news .section-content { padding-bottom: 80px; }

/* ======================== CTA 区块 ======================== */

.cta-section {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
}

.cta-section .section-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  flex: 1;
}

.cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cta-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.cta-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

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

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

/* 响应式调整 */
@media screen and (max-width: 1200px) {
  .hero-visual {
    width: 350px;
    height: 350px;
  }
  
  .idc-logo-circle {
    width: 320px;
    height: 320px;
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
  
  .idc-logo-circle {
    width: 260px;
    height: 260px;
  }
}
