/* prototype-v10 · 全站样式补充
   仅放 Tailwind utility 不便表达的部分（动效、滚动条、装饰图案） */

/* ----- 全局横向溢出兜底（移动端守门）----- */
html, body { overflow-x: hidden; }

/* ----- 移动端抽屉菜单 ----- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: #FFFFFF;
  box-shadow: -8px 0 32px -12px rgba(13, 27, 42, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0D1B2A;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover { background: rgba(48, 107, 171, 0.06); color: #306BAB; }
.mobile-nav-link.active {
  background: rgba(48, 107, 171, 0.10);
  color: #306BAB;
}

/* drawer 打开时禁止 body 滚动 */
body.drawer-open { overflow: hidden; }

/* ----- 滚动条隐藏 ----- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ----- 导航固态效果 (一直保持淡色浅主题) ----- */
#navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(48, 107, 171, 0.08), 0 8px 24px -16px rgba(13, 27, 42, 0.08);
}

/* 导航链接 */
.nav-link {
  color: #0D1B2A;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #306BAB; }
.nav-link.active { color: #306BAB; font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: #306BAB;
  border-radius: 2px;
}

/* 品牌名颜色 — 默认用 logo 主色 */
.navbar-brand { color: #306BAB; transition: color 0.2s ease; }

/* ----- 渐入动画 ----- */
.fade-up { opacity: 0; transform: translateY(24px); }

/* ----- Hero 深色视频舱 ----- */
.hero-dark {
  background: #05080F;          /* 深空底色, 与视频深色边角融为一体 */
  color: #FFFFFF;
}
.hero-media-poster {
  transition: opacity 0.6s ease;
}
.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* 容器与视频同比, cover ≡ contain, 不裁切 */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-media-video.is-ready { opacity: 1; }

/* index hero 视频/海报旋转 180° (素材原始方向上下颠倒) */
#hero-media .hero-media-video,
#hero-media .hero-media-poster {
  transform: rotate(180deg);
  transform-origin: center center;
}

/* Hero 标题强调色 — 在深底上, 主色 #306BAB 偏暗, 改用品牌浅蓝 */
.hero-accent { color: #7FB2E8; }

/* ----- Hero 装饰背景 (历史浅色版, 保留供其它页面复用) ----- */
.hero-bg-decor {
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(201, 219, 238, 0.55) 0%, transparent 60%),
    radial-gradient(60% 50% at 20% 80%, rgba(229, 238, 246, 0.7) 0%, transparent 60%),
    linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%);
}
.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(48, 107, 171, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 107, 171, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 75%);
}

/* ----- 业务梯队 · 第一梯队大卡 ----- */
.tier1-card-meta {
  background: linear-gradient(135deg, rgba(31, 75, 122, 0.7) 0%, rgba(48, 107, 171, 0.8) 100%), url('https://shenteng-website-assets.oss-cn-shanghai.aliyuncs.com/v10/assets/biz/bg-metaverse.jpg') center/cover no-repeat;
}
.tier1-card-ai {
  background: linear-gradient(135deg, rgba(48, 107, 171, 0.7) 0%, rgba(31, 75, 122, 0.8) 100%), url('https://shenteng-website-assets.oss-cn-shanghai.aliyuncs.com/v10/assets/biz/bg-ai.jpg') center/cover no-repeat;
}

/* ----- 业务梯队 · 第二梯队短卡背景 ----- */
.tier2-card-computing {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.5) 0%, rgba(31, 75, 122, 0.8) 100%), url('https://shenteng-website-assets.oss-cn-shanghai.aliyuncs.com/v10/assets/biz/bg-computing.jpg') center/cover no-repeat;
}
.tier2-card-integration {
  background: linear-gradient(135deg, rgba(31, 75, 122, 0.8) 0%, rgba(13, 27, 42, 0.5) 100%), url('https://shenteng-website-assets.oss-cn-shanghai.aliyuncs.com/v10/assets/biz/bg-integration.jpg') center/cover no-repeat;
}
.tier2-card-agency {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.6) 0%, rgba(48, 107, 171, 0.6) 100%), url('https://shenteng-website-assets.oss-cn-shanghai.aliyuncs.com/v10/assets/biz/bg-agency.jpg') center/cover no-repeat;
}
.tier1-card-meta::before,
.tier1-card-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.45), transparent),
    radial-gradient(2px 2px at 35% 75%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.5), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.tier1-card-ai::before {
  background-image:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 40%);
  opacity: 1;
}

/* ----- LOGO 滚动跑马灯 ----- */
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
}
.marquee-track-1 { animation: marquee-left 60s linear infinite; }
.marquee-track-2 { animation: marquee-right 70s linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.logo-card {
  flex: 0 0 auto;
  width: 220px;
  height: 80px;
  background: #FFFFFF;
  border: 1px solid #E5EEF6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.logo-card:hover {
  border-color: var(--brand-glow, rgba(48, 107, 171, 0.4));
  transform: translateY(-4px);
  box-shadow: 0 16px 24px -12px var(--brand-glow, rgba(48, 107, 171, 0.3));
  position: relative;
  z-index: 10;
}
.logo-card-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-glow, #306BAB);
  font-size: 24px;
  overflow: visible;
  transition: all 0.3s ease;
}
.logo-card:hover .logo-card-icon i,
.logo-card:hover .logo-card-icon img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
.logo-card-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 0;
}
.logo-card-name {
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: rgba(13, 27, 42, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* ----- 代理服务页 · 主流品牌跑马灯 logo 卡 ----- */
.agency-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.agency-tile:hover {
  border-color: rgba(48, 107, 171, 0.35);
  box-shadow: 0 8px 18px -10px rgba(48, 107, 171, 0.3);
  transform: translateY(-1px);
}
.agency-tile-lg {
  width: 210px;
  height: 70px;
  padding: 4px 8px;
}
.agency-tile-sm {
  width: 168px;
  height: 56px;
  padding: 3px 6px;
}
.agency-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.agency-tile-text-lg {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #4B5563;
}
.agency-tile-text-sm {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #4B5563;
}

/* ----- 集成服务页 · 大项目流水账 垂直自动滚动 ----- */
.vertical-marquee-viewport {
  overflow: hidden;
  /* 即使内部需要滚动也彻底隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vertical-marquee-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.vertical-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: marquee-up 50s linear infinite;
  will-change: transform;
}
.vertical-marquee-viewport:hover .vertical-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .vertical-marquee-track { animation: none; }
}

/* ----- 算力服务页 · 合作厂商 logo 卡（原色直出，无 hover 切色） ----- */
.partner-logo-card {
  flex: 0 0 auto;
  width: 200px;
  height: 96px;
  background: #FFFFFF;
  border: 1px solid #E5EEF6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.partner-logo-card:hover {
  border-color: rgba(48, 107, 171, 0.35);
  box-shadow: 0 12px 24px -14px rgba(48, 107, 171, 0.35);
  transform: translateY(-2px);
}
.partner-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .partner-logo-card {
    width: 160px;
    height: 80px;
    padding: 14px 18px;
  }
}

/* ----- 业务子卡通用 hover ----- */
.tier2-card-computing,
.tier2-card-integration,
.tier2-card-agency {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tier2-card-computing:hover,
.tier2-card-integration:hover,
.tier2-card-agency:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.5);
}

/* ----- 数字带 ----- */
.metric-card {
  position: relative;
  overflow: hidden;
}
.metric-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201, 219, 238, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- 荣誉资质 徽章 ----- */
.honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E5EEF6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.honor-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 107, 171, 0.35);
  box-shadow: 0 12px 24px -16px rgba(48, 107, 171, 0.4);
}
.honor-badge-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C9DBEE 0%, #E5EEF6 100%);
  color: #1F4B7A;
  font-size: 15px;
}
.honor-badge-text {
  font-size: 13px;
  font-weight: 600;
  color: #1F4B7A;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* 移动端：荣誉徽章紧凑模式 */
@media (max-width: 640px) {
  .honor-badge {
    gap: 6px;
    padding: 6px 10px 6px 6px;
    border-radius: 10px;
  }
  .honor-badge-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .honor-badge-text {
    font-size: 11px;
    letter-spacing: 0;
  }
}

/* ----- 新闻卡 ----- */
.news-card {
  transition: all 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgba(13, 27, 42, 0.18);
}

/* ----- footer 顶部斜纹 ----- */
.bg-slanted-lines {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 12px
  );
}
