/* =========================================================
   块织类脑 · 全局样式
   主色：深空蓝 #0B1B2B   强调：品牌紫 #783178
   ========================================================= */

:root {
  --ink: #0B1B2B;
  --ink-2: #13293C;
  --ink-3: #1E3A50;
  --cyan: #783178;
  --cyan-dark: #5E265E;
  --accent-light: #D48BD4; /* 深底/图片上使用的亮紫，保证可见度 */
  --muted: #6B7C8C;
  --line: #E3E9EF;
  --radius: 2px;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C6D2DC; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9FB0BE; }

/* ---------------- 占位媒体块 ---------------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1B2B 0%, #13304A 48%, #0E3A40 100%);
  border: 1px dashed rgba(120, 49, 120, .5);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ph-label {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border: 1px dashed rgba(255, 255, 255, .38);
  background: rgba(11, 27, 43, .35);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.6;
  text-align: center;
}
/* 浅色占位（二维码 / LOGO 等） */
.ph-light {
  background: linear-gradient(135deg, #EDF2F7 0%, #F8FAFC 100%);
  border: 1px dashed rgba(11, 27, 43, .3);
}
.ph.hidden { display: none; }
.ph-light::before { background-image: none; }
.ph-light .ph-label {
  border: 1px dashed rgba(11, 27, 43, .32);
  background: rgba(255, 255, 255, .72);
  color: #5A6B7C;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--cyan); color: #FFFFFF; font-weight: 600; }
.btn-primary:hover {
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(120, 49, 120, .34);
}
.btn-outline { border: 1px solid rgba(11, 27, 43, .28); color: var(--ink); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .48); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
/* 咨询 CTA（全局组件） */
.btn-consult { position: relative; overflow: hidden; }
.btn-consult::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-consult:hover::after { transform: translateX(120%); }

/* ---------------- 顶部导航 ---------------- */
#site-header { color: #fff; }
#site-header .logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (min-width: 768px) { #site-header .logo-img { height: 44px; } }
/* 白底页头的 logo 变色由 main.js 切换 logo-purple.png（品牌紫 #783178），不再用滤镜压黑 */
#site-header .nav-link { color: rgba(255, 255, 255, .9); }
#site-header .nav-link:hover { color: var(--cyan); }
#site-header .nav-caret { stroke: rgba(255, 255, 255, .75); }
/* is-solid：首页滚动后触发；always-solid：内页常驻白底，保证顶部立即可见 */
#site-header.is-solid,
#site-header.always-solid {
  background: #fff;
  box-shadow: 0 6px 26px rgba(11, 27, 43, .1);
}
#site-header.is-solid .nav-link,
#site-header.always-solid .nav-link { color: #24384A; }
#site-header.is-solid .nav-link:hover,
#site-header.always-solid .nav-link:hover { color: var(--cyan-dark); }
#site-header.is-solid .nav-caret,
#site-header.always-solid .nav-caret { stroke: #24384A; }
#site-header.is-solid .nav-link.is-current,
#site-header.always-solid .nav-link.is-current { color: var(--cyan-dark); }
/* 所有选中 tab 下划线统一锚定文字垂直中心（下拉触发链接 h-[84px] 与普通链接文字中心一致） */
#site-header.is-solid .nav-link.is-current::after,
#site-header.always-solid .nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(50% + 15px);
  height: 2px;
  background: var(--cyan);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: .04em;
  transition: color .22s;
}
.nav-drop { position: relative; }
.nav-drop .dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 580px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
}
.nav-drop:hover .dropdown-panel,
.nav-drop:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-drop .dropdown-panel.w-narrow { width: 380px; }
.nav-drop .dropdown-panel.w-xs { width: 200px; }
.nav-drop .dropdown-panel.w-xs .dropdown-inner { padding: 14px 12px; }
.dropdown-inner {
  background: #fff;
  border-top: 2px solid var(--cyan);
  box-shadow: 0 24px 60px rgba(11, 27, 43, .18);
  padding: 22px 24px;
}
.drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius);
  transition: background .2s;
}
.drop-item:hover { background: #F2F6F9; }
.drop-item .d-ico {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(120, 49, 120, .12);
  color: var(--cyan-dark);
}
.drop-item:hover .d-ico { background: var(--cyan); color: #FFFFFF; }

/* 移动抽屉 */
#mobile-menu { pointer-events: none; }
#mobile-menu.is-open { pointer-events: auto; }
#mobile-menu .menu-overlay {
  position: absolute; inset: 0;
  background: rgba(11, 27, 43, .6);
  opacity: 0;
  transition: opacity .3s ease;
}
#mobile-menu .menu-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 430px;
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto;
}
#mobile-menu.is-open .menu-overlay { opacity: 1; }
#mobile-menu.is-open .menu-panel { transform: translateX(0); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: #1B2F42;
}
.m-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.m-sub.is-open { max-height: 460px; }
.m-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px 11px 18px;
  font-size: 14.5px;
  color: #43586B;
  border-bottom: 1px dashed var(--line);
}
/* 汉堡描边跟随导航底色：透明态白、白底态深蓝（覆盖 svg 上的内联 stroke 继承值） */
#menu-btn .bar { stroke: #fff; transition: transform .3s ease, opacity .2s ease, stroke .22s ease; }
#site-header.is-solid #menu-btn .bar,
#site-header.always-solid #menu-btn .bar { stroke: var(--ink); }
#menu-btn.is-active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-btn.is-active .bar:nth-child(2) { opacity: 0; }
#menu-btn.is-active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- 一网统飞 · 关键词叠加层 ---------------- */
.kw-cell {
  transition: background-color .28s ease;
}
.kw-cell:hover { background-color: rgba(11, 27, 43, .52); }
.kw-main {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  line-height: 1.4;
}
.kw-sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .6);
}
@media (min-width: 768px) {
  .kw-main { font-size: 27px; }
  .kw-sub  { font-size: 13.5px; }
}
/* 关键词条（替代关键词卡片） */
.kw-term {
  font-size: clamp(17px, 2.1vw, 26px);
  color: #fff;
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
}
.kw-dot {
  font-size: clamp(13px, 1.5vw, 19px);
  color: var(--cyan);
  margin: 0 .55em;
}

/* ---------------- Hero 轮播 ---------------- */
.hero-shell { height: 88vh; min-height: 560px; }
@media (max-width: 767px) { .hero-shell { height: 45vh; min-height: 340px; } }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .hero-inner {
  text-shadow: 0 2px 18px rgba(11, 27, 43, .55), 0 1px 3px rgba(11, 27, 43, .45);
  transform: translateY(24px);
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}
.hero-slide.is-active .hero-inner { transform: translateY(0); }
.hero-slide .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-dot {
  width: 26px; height: 3px;
  background: rgba(255, 255, 255, .38);
  transition: background .3s, width .3s;
}
.hero-dot.is-active { background: var(--cyan); width: 46px; }
.hero-arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  background: rgba(11, 27, 43, .25);
  transition: background .25s, border-color .25s, color .25s;
}
.hero-arrow:hover { background: var(--cyan); border-color: var(--cyan); color: #FFFFFF; }

/* ---------------- 通用卡片 hover ---------------- */
.card-lift {
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), box-shadow .32s ease;
}
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11, 27, 43, .14); }
.card-lift .zoom-img { transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
/* .card-lift:hover .zoom-img { transform: scale(1.055); } */ /* 图片悬停放大暂时注释 */

/* ---------------- 行业 Tab ---------------- */
.ind-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px 18px 20px;
  color: #24384A;
  border-left: 3px solid transparent;
  background: transparent;
  transition: all .28s ease;
}
.ind-tab:hover { background: #F5F8FA; }
.ind-tab.is-active {
  border-left-color: var(--cyan);
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 27, 43, .08);
}
.ind-tab.is-active .ind-tab-name { color: var(--ink); }
.ind-tab.is-active .ind-tab-ico { background: var(--cyan); color: #FFFFFF; }
.ind-tab-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: #EEF2F6;
  color: #4A5E71;
  transition: all .28s ease;
}
@media (min-width: 1280px) {
  .ind-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
  }
  .ind-panel.is-active { opacity: 1; visibility: visible; }
  .ind-panel.is-active .ind-panel-media .zoom-img { transform: scale(1); }
}
/* .ind-panel-media .zoom-img { transform: scale(1.06); transition: transform 1.1s cubic-bezier(.22,.61,.36,1); } */ /* 图片悬停放大暂时注释 */
/* .ind-panel:hover .ind-panel-media .zoom-img { transform: scale(1.1); } */ /* 图片悬停放大暂时注释 */

/* —— 兜底：禁用 HTML/Tailwind 类中的悬停放大（hover:scale-1.03、group-hover:scale 等）——
   覆盖 about.html / case-detail.html 内联的 hover:scale 类；恢复放大效果时删除本段即可 */
img[class*="hover:scale"]:hover,
img[class*="group-hover:scale"] { transform: none !important; }
[class*="cursor-zoom-in"] { cursor: default !important; } /* 灯箱已禁用，去掉放大镜指针（含 figure 容器上的 cursor-zoom-in） */
/* 图片占满卡片：右下角径向渐变遮罩 + 叠加内容 */
.ind-panel-scrim {
  background: radial-gradient(130% 130% at 100% 100%, rgba(11,27,43,.78) 0%, rgba(11,27,43,.32) 42%, rgba(11,27,43,0) 70%);
}
.ind-panel-ico {
  background: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(4px);
}
/* 1280 以下：焦点落到"展开的卡片流"，隐藏左侧 tab 列 */
@media (max-width: 1279px) {
  .ind-tab-col { display: none; }
}

/* 视频 tab 下划线动画 */
.vtab {
  position: relative;
  padding-bottom: 14px;
  font-size: 17px;
  color: #8A99A8;
  transition: color .25s;
}
.vtab.is-active { color: var(--ink); font-weight: 600; }
#vtab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transition: left .35s cubic-bezier(.22, .61, .36, 1), width .35s cubic-bezier(.22, .61, .36, 1);
}
/* 面板默认隐藏；用属性选择器压过 Tailwind .grid 工具类（CDN 注入顺序不可控，特异性必须更高） */
div[data-vpanel] { display: none; }
div[data-vpanel].is-active { display: grid; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 视频较少（≤3）时放大卡片：双列大卡，覆盖容器上的小卡栅格类 */
.vpanel.vpanel-lg { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .vpanel.vpanel-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.play-btn {
  width: 64px; height: 64px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(120, 49, 120, .92);
  color: #FFFFFF;
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover .play-btn { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(120, 49, 120, .18); }

/* 视频中心 · 统一小尺寸预览卡 */
.vcard:hover .play-btn-sm { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(120, 49, 120, .2); }
.vcard-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.vcard-desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.play-btn-sm { width: 46px; height: 46px; }

/* 行业应用 · 内联视频播放器 */
.inline-video:hover .play-btn { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(120, 49, 120, .18); }

/* ---------------- 模态框 ---------------- */
#video-modal { visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s; }
#video-modal.is-open { visibility: visible; opacity: 1; }
#video-modal .modal-box { transform: translateY(20px) scale(.98); transition: transform .32s cubic-bezier(.22,.61,.36,1); }
#video-modal.is-open .modal-box { transform: none; }
.modal-close {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .25s;
}
.modal-close:hover { background: var(--cyan); color: #FFFFFF; }

/* ---------------- 合作伙伴滚动条 ---------------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 合作伙伴 logo 占位（灰度虚线块，上线替换为真实 logo 图） */
.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 58px;
  padding: 0 34px;
  margin-right: 22px;
  border: 1px dashed #C4D0DA;
  background: #fff;
  color: #9AA9B6;
  font-size: 12.5px;
  letter-spacing: .18em;
  filter: grayscale(1);
}

/* ---------------- 其它细节 ---------------- */
.sec-title { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
@media (min-width: 768px) { .sec-title { font-size: 38px; } }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan-dark);
  font-weight: 500;
  transition: gap .25s;
}
.link-more:hover { gap: 14px; }
/* 行业面板「了解更多」位于深色图片上，改用白色保证可读 */
.ind-panel .link-more { color: #fff; }
.hover-reveal { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
.group:hover .hover-reveal { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* 案例详情页：内容/成效标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-teal {
  color: var(--cyan-dark);
  background: rgba(120, 49, 120, .10);
  border-color: rgba(120, 49, 120, .45);
}
.tag-gray {
  color: var(--muted);
  background: #F5F8FA;
  border-color: var(--line);
}
