/* ============================
   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 右侧视觉 */
.hero-visual {
  flex-shrink: 0;
  width: 440px;
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================== 呼吸渐变 Blob 抽象图形 ======================== */

.blob-scene {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  position: absolute;
  opacity: 0.52;
  filter: blur(48px);
  will-change: transform, border-radius;
}

/* 主体 · 浅蓝 */
.blob-1 {
  width: 320px;
  height: 300px;
  background: #BAE6FD;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: breathe-1 9s ease-in-out infinite;
  animation-delay: 0s;
}

/* 浅紫 */
.blob-2 {
  width: 260px;
  height: 240px;
  background: #DDD6FE;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: breathe-2 11s ease-in-out infinite;
  animation-delay: -3s;
  top: 18%;
  right: 8%;
}

/* 浅粉 */
.blob-3 {
  width: 230px;
  height: 220px;
  background: #FBCFE8;
  border-radius: 70% 30% 50% 50% / 50% 40% 60% 50%;
  animation: breathe-3 10s ease-in-out infinite;
  animation-delay: -5s;
  bottom: 14%;
  left: 12%;
}

/* 浅靛 · 点缀 */
.blob-4 {
  width: 160px;
  height: 160px;
  background: #C7D2FE;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  animation: breathe-4 13s ease-in-out infinite;
  animation-delay: -1.5s;
  top: 8%;
  left: 16%;
  opacity: 0.42;
  filter: blur(36px);
}

/* 浅粉紫 · 角落点缀 */
.blob-5 {
  width: 130px;
  height: 130px;
  background: #F9A8D4;
  border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
  animation: breathe-2 7.5s ease-in-out infinite;
  animation-delay: -2s;
  bottom: 18%;
  right: 14%;
  opacity: 0.38;
  filter: blur(32px);
}

@keyframes breathe-1 {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  30% {
    transform: scale(1.14) translate(12px, -18px);
    border-radius: 30% 70% 60% 40% / 50% 60% 30% 60%;
  }
  65% {
    transform: scale(0.87) translate(-10px, 14px);
    border-radius: 50% 60% 40% 70% / 40% 50% 60% 50%;
  }
}

@keyframes breathe-2 {
  0%, 100% {
    transform: scale(0.96) translate(0, 0);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  38% {
    transform: scale(1.13) translate(-14px, 10px);
    border-radius: 70% 30% 40% 60% / 60% 40% 50% 40%;
  }
  72% {
    transform: scale(0.90) translate(10px, -14px);
    border-radius: 50% 40% 60% 50% / 30% 60% 40% 70%;
  }
}

@keyframes breathe-3 {
  0%, 100% {
    transform: scale(1.05) translate(0, 0);
    border-radius: 70% 30% 50% 50% / 50% 40% 60% 50%;
  }
  42% {
    transform: scale(0.88) translate(18px, 12px);
    border-radius: 40% 60% 30% 70% / 60% 50% 40% 50%;
  }
  78% {
    transform: scale(1.16) translate(-12px, -10px);
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
  }
}

@keyframes breathe-4 {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  }
  50% {
    transform: scale(1.20) translate(8px, 16px);
    border-radius: 30% 70% 60% 40% / 40% 60% 50% 50%;
  }
}

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

.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);
}
