/* ALiGN意联 官网 · 共享样式
   依据：品牌手册 2.0（05 色彩系统 / 06 字体与 UI 基线 / 08 版面网格）
   主色 #129BFF · 8px 网格 · 2px 微圆角 · 容器零圆角
*/

:root {
  --blue: #129BFF;
  --blue-deep: #1368E1;
  --blue-light: #E3F7FF;
  --blue-sky: #15BAFF;

  --ink: #111111;
  --ink-2: rgba(17, 17, 17, 0.62);
  --ink-3: rgba(17, 17, 17, 0.42);
  --line: rgba(17, 17, 17, 0.10);
  --line-2: rgba(17, 17, 17, 0.06);

  --paper: #FFFFFF;
  --paper-2: #F8F8F6;
  --night: #051833;
  --night-2: #0A2547;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --nav-h: 68px;
  --maxw: 1280px;

  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-en: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* --paper-2 新版色值：oklch(98.4% .003 247.858)
   说明：自定义属性不支持「后者失效自动回退前者」，故用 @supports 判定 ——
   支持 oklch 的浏览器用新色值，不支持的旧浏览器继续用 #F8F8F6 兜底 */
@supports (background-color: oklch(98.4% .003 247.858)) {
  :root { --paper-2: oklch(98.4% .003 247.858); }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ============ 布局 ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--night { background: var(--night); color: #fff; }
.section--blue { background: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .section { padding: var(--s7) 0; }
  .section--tight { padding: var(--s6) 0; }
  .wrap { padding: 0 var(--s3); }
}

/* ============ 排版 ============ */
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s3);
}
.eyebrow--onDark { color: rgba(255, 255, 255, 0.62); }

.display {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.h4 { font-size: 16px; font-weight: 500; line-height: 1.6; }

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 680px;
}
.lead--onDark { color: rgba(255, 255, 255, 0.72); }

.body { font-size: 15px; line-height: 1.9; color: var(--ink-2); font-weight: 400; }
.body--onDark { color: rgba(255, 255, 255, 0.72); }
.small { font-size: 13px; line-height: 1.7; color: var(--ink-3); font-weight: 400; }

.num-en {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* 强调：正文用 500，不用 700 */
em, .em { font-style: normal; font-weight: 500; color: var(--blue-deep); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  height: 46px;
  padding: 0 var(--s3);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghostDark { border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; }
.btn--ghostDark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--onBlue { background: #fff; color: var(--blue-deep); }
.btn--onBlue:hover { background: rgba(255, 255, 255, 0.88); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-deep);
}
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s4);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.nav__logo img { height: 26px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: var(--s4); margin-left: auto; }
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); border-bottom-color: var(--blue); }
.nav__cta { height: 36px; padding: 0 var(--s2); font-size: 14px; }

/* 导航下拉菜单 */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; left: -8px;
  min-width: 180px; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 24px rgba(17,17,17,.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
  display: block; padding: 10px var(--s3); font-size: 14px;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.nav__dropdown a:hover { background: var(--blue-light); color: var(--ink); }
.nav__dropdown .is-active { color: var(--blue-deep); font-weight: 500; }
.nav__caret {
  display: inline-block; margin-left: 4px; font-size: 10px;
  transition: transform .15s;
}
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* 菜单按钮：细描边圆钮 + 加号，展开时旋转成关闭态 */
.nav__burger {
  display: none; margin-left: auto; width: 36px; height: 36px;
  position: relative; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); cursor: pointer; flex: none;
  transition: border-color .2s, background .2s;
}
.nav__burger:hover { border-color: var(--ink-3); }
.nav__burger span {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: var(--ink); border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nav__burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg); }
.nav.is-open .nav__burger { border-color: var(--ink); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(135deg); }

.nav__mobile {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: var(--s2) var(--s3) var(--s4);
}
.nav__mobile a {
  display: block; padding: 12px 0; font-size: 16px;
  border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.nav__mobile a.btn {
  margin-top: var(--s3); width: 100%;
  display: inline-flex; justify-content: center; align-items: center;
  padding: 0 var(--s3); border-bottom: 0;
}
.nav__mobile__group {
  font-size: 12px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 16px 0 8px; margin-top: 8px;
  border-top: 1px solid var(--line-2);
}
.nav__mobile__group:first-of-type { margin-top: 0; border-top: 0; padding-top: 8px; }

@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  /* 菜单面板固定悬挂在导航下方：无论滚动到哪，点击按钮都能当场弹出 */
  .nav.is-open + .nav__mobile {
    display: block;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 48px rgba(17, 17, 17, .10);
    z-index: 99;
  }
}

/* 菜单展开时锁住页面滚动 */
body.nav-locked { overflow: hidden; }

/* ============ 卡片 ============ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--s4);
  border-radius: 10px;
}
.card--flat { background: var(--paper-2); border: none; padding: var(--s4); }
.card--topline { border: 1px solid var(--line); padding: var(--s3) var(--s4) var(--s4); background: none; border-radius: 10px; }
.card--topline.is-blue { border-top-color: var(--blue); }

/* ============ 网格 ============ */
.grid { display: grid; gap: var(--s3); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ============ 章节头 ============ */
.shead { margin-bottom: var(--s5); }
.shead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.shead .h2 + .lead { margin-top: var(--s3); }
.shead__title { max-width: 720px; }

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-deep);
}
.tag--line { background: none; border: 1px solid var(--line); color: var(--ink-3); }
.tag--live { background: var(--blue); color: #fff; }
.tag--wip { background: none; border: 1px solid var(--line); color: var(--ink-3); }

/* ============ 客户 logo 墙 ============ */
.wall { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wall__row { display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.wall__row--3 { grid-template-columns: repeat(3, 1fr); }
.wall__row--4 { grid-template-columns: repeat(4, 1fr); }
.wall div { background: var(--paper); height: 96px; display: flex; align-items: center; justify-content: center; padding: var(--s3); border-radius: 10px; }
.wall img { max-height: 34px; width: auto; opacity: .62; filter: grayscale(100%); transition: opacity .25s, filter .25s; }
.wall div:hover img { opacity: 1; filter: none; }
@media (max-width: 860px) { .wall { display: grid; grid-template-columns: repeat(2, 1fr); } .wall__row { display: contents; } }

/* ============ 分隔线 ============ */
.rule { height: 1px; background: var(--line); border: 0; }
.rule--dark { background: rgba(255, 255, 255, 0.16); }

/* ============ 数据块 ============ */
.stat__num {
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.42em; font-weight: 500; margin-left: 4px; color: var(--ink-2); }
.stat__label { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-top: var(--s1); }

/* ============ 页脚 ============ */
.footer { background: var(--ink); color: #fff; padding: var(--s7) 0 var(--s4); }
.footer a { color: rgba(255, 255, 255, 0.62); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--s5);
  padding-bottom: var(--s6);
}
.footer__col h4 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42); margin-bottom: var(--s3);
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; font-size: 14px; font-weight: 400; }
.footer__brand img { height: 24px; margin-bottom: var(--s3); }
.footer__brand p { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, 0.52); line-height: 1.9; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s3);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.42);
}
/* 社交图标：与 aialign.cn 官方页脚同款 —— 24px 灰白图标，hover 换高亮图标并在上方弹出 100px 二维码 */
.footer__social { display: flex; gap: 30px; align-items: center; }
.share {
  position: relative; width: 24px; height: 24px; cursor: pointer;
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
.share.wx   { background-image: url('../img/social/icon-wx.png'); }
.share.sph  { background-image: url('../img/social/icon-sph.png'); }
.share.zh   { background-image: url('../img/social/icon-zh.png'); }
.share.dy   { background-image: url('../img/social/icon-dy.png'); }
.share.bili { background-image: url('../img/social/icon-bili.png'); }
.share:hover.wx   { background-image: url('../img/social/icon-hover-wx.png'); }
.share:hover.sph  { background-image: url('../img/social/icon-hover-sph.png'); }
.share:hover.zh   { background-image: url('../img/social/icon-hover-zh.png'); }
.share:hover.dy   { background-image: url('../img/social/icon-hover-dy.png'); }
.share:hover.bili { background-image: url('../img/social/icon-hover-bili.png'); }
.share .er {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: none; width: 100px; height: 100px; padding: 6px;
  background: #fff; border-radius: 8px;
}
.share:hover .er { display: block; }
.share .er img { width: 100%; height: 100%; }

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============ 滚动动画 ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== 横向无缝循环 logo 墙（index 与 cases 共用） ===== */
/* 横向无缝循环 logo 墙 */
.marquee {
  position: relative;
  overflow: hidden;
  padding: calc(var(--s3) / 2) 0;
  /* 两端渐隐，制造「跑马灯」感 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 70s linear infinite;
  animation-delay: 1.2s;  /* 让初始的 5 张企业 logo 停留 1.2 秒再开始动 */
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.marquee__i {
  flex: 0 0 auto;              /* 不再用固定宽槽位，避免图片宽窄不一导致间距不均 */
  height: 88px;                /* 原 116px，垂直留白减半 */
  display: flex; align-items: center; justify-content: center;
  padding: var(--s2) 0;
  margin-right: 30px;          /* 每个 logo 之间的间距统一 30px */
  position: relative;
}
.marquee__i img {
  max-height: 56px; max-width: 100%;
  width: auto; opacity: .92;
  transition: opacity .2s, transform .25s;
}
.marquee__i:hover img { opacity: 1; transform: scale(1.04); }
.marquee__i.univ { background: transparent; }  /* 学校不加底，靠小角标区分 */
