/* ==========================================================================
   首页样式
   ========================================================================== */

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 620px at 12% 8%, rgba(147, 197, 253, .30), transparent 62%),
    radial-gradient(ellipse 760px 520px at 92% 78%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
  50% { box-shadow: 0 0 0 7px rgba(59, 130, 246, .06); }
}

.hero-text h1 {
  margin-top: 20px;
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: -.6px;
  color: var(--ink-900);
}
.hero-text .sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-500);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-700);
}
.chip i { color: var(--brand-600); }

.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-500);
}
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .meta i { color: var(--brand-600); }

/* 数据中心插画 */
.hero-visual { display: flex; justify-content: center; }
.dc-wrap { position: relative; width: 100%; max-width: 360px; }
.dc-svg { width: 100%; height: auto; }
.dc-info {
  position: absolute;
  left: 0;
  bottom: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
}
.dc-info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}
.dc-info-text b { display: block; font-size: 13px; color: var(--ink-900); }
.dc-info-text span { font-size: 12px; color: var(--ink-300); }

/* 快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}
.quick-item {
  position: relative;
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.quick-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-grad);
}
.quick-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--card-shadow-hover);
}
.quick-title { display: block; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.quick-desc { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.quick-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--brand-600);
  background: var(--brand-50);
}

/* banner 模式首屏 */
.hero-banner { padding: 0; }
.hero-banner .hero-swiper { height: 460px; }
.hero-banner .hero-swiper img { width: 100%; height: 460px; object-fit: cover; }
.hero-banner-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(11, 18, 38, .72) 0%, rgba(11, 18, 38, .25) 60%, transparent 100%);
}
.hero-banner-text { color: #fff; }
.hero-banner-text .eyebrow { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-banner-text h1 { color: #fff; font-size: 44px; }
.hero-banner-text h1 .grad { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.hero-banner-text .sub { color: rgba(255, 255, 255, .85); max-width: 560px; margin-top: 16px; }
.hero-banner .swiper-pagination { bottom: 22px; }

/* ---------------- 产品卡片 ---------------- */
.product-card { display: block; overflow: hidden; }
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-link {
  margin-top: 20px;
  font-size: 14px;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link i { transition: transform .2s ease; }
.product-card:hover .card-link i { transform: translateX(4px); }

/* ---------------- 技术架构 ---------------- */
.tech-stack { display: grid; gap: 14px; }
.tech-layer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.tech-layer:hover { transform: translateX(4px); border-color: var(--brand-200); }
.tech-layer-head { display: flex; align-items: center; gap: 14px; min-width: 170px; }
.tech-layer-head h3 { font-size: 17px; color: var(--ink-900); }
.layer-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.tech-items { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
}

/* ---------------- 客户案例 ---------------- */
.case-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.case-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 22px;
}
.case-industry { font-size: 13px; color: var(--ink-300); margin-top: 2px; }
.case-card h3 { font-size: 17px; color: var(--ink-900); }
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--brand-700);
}
.case-metrics span { display: inline-flex; align-items: center; gap: 6px; }
.case-metrics i { color: #f59e0b; }
.case-detail { margin-top: 16px; }

/* ---------------- 新闻 / 公告 ---------------- */
.news-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.news-col {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.news-title { font-size: 18px; font-weight: 600; color: var(--ink-900); }
.news-more { font-size: 13px; color: var(--ink-300); display: inline-flex; align-items: center; gap: 4px; }
.news-more:hover { color: var(--brand-600); }
.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-item .number {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
}
.news-item .title { flex: 1; font-size: 14px; color: var(--ink-700); }
.news-item a:hover .title { color: var(--brand-600); }
.news-item .time { font-size: 13px; color: var(--ink-300); flex-shrink: 0; }
.news-empty { padding: 26px 0; text-align: center; color: var(--ink-300); font-size: 14px; }

/* ---------------- 解决方案更多 ---------------- */
.solution-more { text-align: center; margin-top: 40px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-layer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-text h1 { font-size: 34px; }
  .news-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-banner .hero-swiper { height: 380px; }
  .hero-banner .hero-swiper img { height: 380px; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 36px; }
  .hero-text h1 { font-size: 28px; }
  .hero-text .sub { font-size: 14px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 30px; }
  .hero-banner .hero-swiper { height: 300px; }
  .hero-banner .hero-swiper img { height: 300px; }
  .hero-banner-text h1 { font-size: 26px; }
  .hero-banner-mask { background: linear-gradient(90deg, rgba(11, 18, 38, .80), rgba(11, 18, 38, .45)); }
  .news-col { padding: 20px 18px; }
}
