/* 具身智能实验室官网样式（源码入仓：原 index.html 内联 <style> 1:1 抽出）*/
  /* ══════════ 设计令牌（对齐 Seedance 2.0 渲染后真实样式） ══════════ */
  :root {
    --bg: #F8F8F8;
    --card: #FFFFFF;
    --text: #212121;
    --text-dim: rgba(33, 33, 33, 0.8);
    --text-faint: #62636C;
    --text-soft: #1E1F24;
    --border: rgba(33, 33, 33, 0.08);
    --content-width: calc(100vw - 32px);
    --content-margin: 16px;
    --nav-pad-x: clamp(20px, 5.73vw, 44px);
    /* ── 媒体位规范：后台「主页管理」按同一套 spec 下发这四个变量 ──
       --hp-fit      cover | contain（注意：不在 :root 设默认值，
                                  这样桌面规则可默认 cover、手机规则可默认 contain）
       --hp-focus-x/y  焦点位置 → object-position，决定 cover 裁切时保留画面哪一部分
       --hp-zoom     构图微缩放（1 = 原始，>1 只用于微调，不再承担"裁切"职责）*/
    --hp-focus-x: 50%;
    --hp-focus-y: 50%;
    --hp-zoom: 1;
  }
  @media (min-width: 768px) {
    :root { --content-width: calc(100vw - 88px); --content-margin: 44px; }
  }
  @media (min-width: 1280px) {
    :root { --content-width: 1200px; --content-margin: calc(50vw - 600px); }
  }
  @media (min-width: 1680px) {
    :root { --content-width: 1400px; --content-margin: calc(50vw - 700px); }
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "PingFang SC", "PingFang TC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
  }
  ::selection { background: rgba(33,33,33,.12); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: rgba(33,33,33,.18); border-radius: 99px; }
  ::-webkit-scrollbar-track { background: var(--bg); }

  /* ══════════ Hero 骨架（flex column + 底部标题块） ══════════ */
  .hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
  }
  /* 固定全屏媒体层（对齐原站 carousel: position fixed, 100vh, z-index -2） */
  /* 注意：黑底必须放在本层——若放在 .hero 上，会盖住 z-index 为负的固定视频层 */
  .hero-media { position: fixed; inset: 0; height: 100vh; z-index: -2; background: #000; }
  /* 视频按原始画面输出：不做整体透明度压暗，也不再叠加黑色渐晕蒙版 */
  .hero-media img.bg, .hero-media video.bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: var(--hp-fit, cover);
    object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%);
  }
  /* 后台「实时预览」态（/?preview=1）：隐藏背景音乐启动卡，被编辑的位加虚线描边 */
  .hp-preview .bgm-gate { display: none; }
  .hp-hl { outline: 3px dashed #3DE0FF; outline-offset: 3px; }
  /* 手机竖版 Hero 素材（hero.portrait）：脚本注入，仅在 ≤767px 顶替横版；
     未上传时元素不存在，回退下面的 contain。基准规则必须先于媒体查询，否则被 display:none 压掉 */
  .hero-media .hp-portrait { display: none; }
  /* 手机竖屏：优先用竖版素材；
     没配竖版素材时不再硬裁横版画面（原实测 1918×1080 在 390×844 下只剩 26%、主体被裁没），
     改为完整显示 + 深色底，宁可留边也不丢主体 */
  @media (max-width: 767px) {
    .hero-media img.bg, .hero-media video.bg { object-fit: var(--hp-fit, contain); }
    /* 关键：只有脚本真的注入了竖版素材（.has-portrait）才隐藏横版，
       否则没配竖版素材时会把唯一素材藏掉 —— Hero 只剩黑底 */
    .hero-media.has-portrait .bg:not(.hp-portrait) { display: none; }
    /* 竖版素材按 cover 铺满：选择器要比上一行的 object-fit 规则更具体才生效 */
    .hero-media.has-portrait .bg.hp-portrait { display: block; object-fit: cover; }
  }

  /* ── 顶部导航（透明、in-flow、pt-40px、居中链接） ── */
  .top-bar {
    position: relative; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; flex-shrink: 0;
    padding: 40px var(--nav-pad-x) 0;
    letter-spacing: -0.01em;
    color: #FCFCFD;
  }
  @media (min-width: 1280px) {
    .top-bar { width: var(--content-width); margin: 0 auto; padding: 40px 0 0; }
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #FCFCFD;
    font-weight: 600; font-size: 16px; letter-spacing: .01em;
    line-height: 30px; height: 30px;
    /* 中文 min-content = 单字宽：不加这两条会被右侧 .nav-pill 挤成一字一行 */
    white-space: nowrap; min-width: max-content; flex-shrink: 0;
  }
  /* 学校官方组合标（白色版，提取自 huse.edu.cn），深色导航直接使用 */
  .school-logo {
    height: 30px; width: auto; display: block;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,.4));
  }
  .brand .divider {
    width: 1px; height: 16px; margin: 0 2px; flex-shrink: 0;
    background: rgba(255,255,255,.3);
  }
  .nav-links {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 20px; font-size: 16px;
  }
  .nav-links a {
    position: relative; overflow: hidden; white-space: pre;
    border-radius: 16px; padding: 0 26px; line-height: 32px;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: background .2s, color .2s;
  }
  .nav-links a:hover { color: #FCFCFD; background: rgba(255,255,255,0.1); }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .nav-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 30px; padding: 0 clamp(10px, 2.4vw, 16px); border: 0; border-radius: 80px;
    background: rgba(249,249,251,0.14); color: #FCFCFD;
    font-size: clamp(13px, 3.4vw, 16px); font-weight: 400; line-height: 24px; letter-spacing: 0.02em;
    font-family: inherit; text-decoration: none; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: background .2s;
  }
  .nav-pill:hover { background: rgba(249,249,251,0.24); }
  .nav-pill svg { width: 8px; height: 5px; transition: transform .3s; }
  .nav-burger {
    display: none; width: 28px; height: 24px; border: 0; border-radius: 8px;
    background: rgba(249,249,251,0.14); cursor: pointer;
    align-items: center; justify-content: center;
  }
  .nav-burger svg { width: 28px; height: 24px; }
  .mobile-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 39;
    background: linear-gradient(180deg, #171719 0%, rgba(23,23,25,.6) 100%);
    padding: 30px var(--nav-pad-x) 40px;
  }
  .mobile-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-radius: 8px;
    font-size: 14px; font-weight: 400; line-height: 24px; letter-spacing: .02em;
    color: #FCFCFD; text-decoration: none;
  }
  .mobile-menu a svg { width: 20px; height: 20px; }
  .mobile-menu.open { display: block; }
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
  }

  /* ── Hero 中部空隙（flex-1，视频区） ── */
  .hero-spacer { flex: 1 1 0%; width: 100%; }

  /* ── Hero 标题块（底部对齐，100px 大标题） ── */
  .hero-content { padding: 56px 0; width: 100%; user-select: none; }
  .hero-inner { width: var(--content-width); margin: 0 auto; }
  .hero-text { max-width: 694px; }
  .hero h1 {
    color: #FFF; font-weight: 600; line-height: 100%;
    margin: 0 0 12px; word-break: break-word;
    letter-spacing: -2px; white-space: nowrap;
    font-size: clamp(28px, 8.4vw, 100px);
    font-family: "Stack Sans Headline", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  }
  @media (max-width: 1279px) {
    /* 原先这里把 nowrap 改成 normal，导致手机上标题被挤成一字一行；只缩字号，不放开换行 */
    .hero h1 { font-size: clamp(28px, 8.4vw, 56px); letter-spacing: -1px; }
    .hero-content { padding: 40px 0 88px; }
  }
  .hero .description {
    color: #FFF; font-size: 16px; font-weight: 400;
    line-height: 22px; margin-bottom: 32px;
  }
  .hero .button-group { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 0;
    padding: 13px 20px; border-radius: 999px;
    border: 1px solid hsla(0,0%,100%,.25);
    font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none;
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    background: linear-gradient(120deg, hsla(0,0%,100%,.24), hsla(0,0%,100%,.12));
    color: #fff;
    transition: all .3s ease;
  }
  .btn:hover { background: linear-gradient(120deg, hsla(0,0%,100%,.34), hsla(0,0%,100%,.2)); transform: translateY(-1px); }
  .btn svg { width: 16px; height: 16px; margin-left: 6px; }

  /* 轮播关键词 */
  .rotator { display: inline-block; height: 1.55em; overflow: hidden; vertical-align: bottom; }
  .rotator i {
    display: block; font-style: normal; height: 1.55em; line-height: 1.55em;
    font-weight: 700; letter-spacing: .02em;
    background: linear-gradient(120deg, #6FA0FF, #3DE0FF);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rotWords 10s cubic-bezier(.7,0,.3,1) infinite;
  }
  @keyframes rotWords {
    0%, 18%   { transform: translateY(0); }
    25%, 43%  { transform: translateY(-1.55em); }
    50%, 68%  { transform: translateY(-3.1em); }
    75%, 93%  { transform: translateY(-4.65em); }
    100%      { transform: translateY(-6.2em); }
  }

  /* ══════════ 主内容容器（浅灰底，盖过固定视频层） ══════════ */
  .main-container {
    background-color: #F8F8F8;
    position: relative; z-index: 1;
  }

  /* ── 通用 Section ── */
  section { padding: 120px var(--content-margin); position: relative; }
  .container { width: var(--content-width); margin: 0 auto; }
  .sec-head {
    display: flex; align-items: end; justify-content: space-between;
    margin-bottom: 32px; gap: 24px; flex-wrap: wrap;
    width: var(--content-width); margin-left: auto; margin-right: auto;
  }
  .sec-head h2 {
    font-size: 32px; font-weight: 500; line-height: 44px;
    color: #212121; letter-spacing: -.01em; margin-bottom: 8px;
  }
  .sec-head p {
    color: var(--text-dim); font-size: 16px; line-height: 28px;
    max-width: 720px;
  }
  .sec-head .arrow-group { display: flex; gap: 8px; flex-shrink: 0; }
  .arrow-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #212121;
    transition: background .2s, color .2s, border-color .2s;
  }
  .arrow-btn:hover { background: #212121; color: #fff; border-color: #212121; }
  .arrow-btn:disabled { opacity: .35; cursor: not-allowed; }
  .arrow-btn:disabled:hover { background: #fff; color: #212121; border-color: var(--border); }
  .arrow-btn svg { width: 16px; height: 16px; }

  /* 渐入动效（全站统一：轻位移 + 微缩放，克制不浮夸） */
  .reveal { opacity: 0; transform: translateY(26px) scale(.988); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
  .reveal.visible { opacity: 1; transform: none; }
  /* 板块标题入场（对齐原站 text-animation：translateY(44px) → 0） */
  .sec-head.reveal, .bench-header.reveal, .bench-title-block.reveal { transform: translateY(44px); }
  .sec-head.reveal.visible, .bench-header.reveal.visible, .bench-title-block.reveal.visible { transform: none; }
  /* 横向轮播卡片：从右侧滑入，呼应轮播方向 */
  .showcase-track .showcase-card.reveal { transform: translateX(48px); }
  .showcase-track .showcase-card.reveal.visible { transform: none; }
  /* 瀑布流卡片：稍大幅度上浮 */
  .gallery-masonry .g-item.reveal { transform: translateY(34px) scale(.97); }
  /* 标题下划线：随板块入场展开 */
  .sec-head, .bench-header { position: relative; }
  .sec-head::after, .bench-header::after {
    content: ""; position: absolute; left: 0; bottom: -14px; height: 2px; width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #4D7DFF, #3DE0FF);
    transition: width .8s cubic-bezier(.66,0,.34,1) .2s;
  }
  .sec-head.visible::after, .bench-header.visible::after { width: 72px; }

  /* ══════════ 展示区（横向轮播 + 混合宽度视频卡，600px 高） ══════════ */
  .showcase { overflow: hidden; }
  .showcase-track {
    display: flex; gap: 20px;
    transition: transform .6s cubic-bezier(.66,0,.34,1);
    will-change: transform;
  }
  .showcase-card {
    flex-shrink: 0; position: relative;
    /* 比例由 --hp-ar 决定（.sc-wide 16:9 / .sc-tall 9:16），高度 600px 是版式基准 */
    height: 600px; width: auto; aspect-ratio: var(--hp-ar, 16 / 9);
    border-radius: 20px; overflow: hidden;
    background: #000;
  }
  .sc-wide { --hp-ar: 16 / 9; }
  .sc-tall { --hp-ar: 9 / 16; }
  /* 整幅宽的图卡（无人机/实物）：宽度铺满，高度按比例推导 */
  .sc-fluid { width: 100%; height: auto; }
  .showcase-card :is(img, video) {
    width: 100%; height: 100%; display: block;
    object-fit: var(--hp-fit, cover);
    object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%);
    opacity: .92; transition: opacity .3s, transform .6s;
    transform: scale(var(--hp-zoom, 1));
  }
  .showcase-card:hover :is(img, video) { opacity: 1; transform: scale(calc(var(--hp-zoom, 1) * 1.03)); }
  .showcase-card .v-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 60%, rgba(0,0,0,.5) 100%);
    pointer-events: none;
  }
  .showcase-card .v-tag {
    position: absolute; left: 18px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #fff;
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px; border-radius: 999px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .showcase-card .v-tag::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #3DE0FF;
  }

  /* ══════════ 行业前景（3 张白卡横向滚动，gap 12px） ══════════ */
  .bench-section { padding-bottom: 80px; }
  .bench-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 80px; width: var(--content-width); margin-left: auto; margin-right: auto;
  }
  .bench-header h2 { font-size: 32px; font-weight: 500; line-height: 44px; color: #212121; margin-bottom: 8px; }
  .bench-header p { color: var(--text-dim); font-size: 16px; line-height: 28px; }
  .bench-title-block { width: var(--content-width); margin: 0 auto 20px; }
  .bench-title-block h3 {
    font-size: 24px; font-weight: 600; line-height: 32px;
    color: #1E1F24; margin-bottom: 8px;
  }
  .bench-title-block p { color: #62636C; font-size: 16px; line-height: 28px; }
  .charts-row {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 0 var(--content-margin) 20px;
    scrollbar-width: thin;
  }
  .charts-row::-webkit-scrollbar { height: 6px; }
  .chart-card {
    flex: 1 1 0; min-width: 320px;
    background: #fff; border-radius: 16px; padding: 28px;
    box-sizing: border-box;
  }
  .chart-card h4 {
    font-size: 16px; font-weight: 600; line-height: 20px;
    color: #1E1F24; margin-bottom: 18px;
  }
  .chart-card .chart-desc {
    font-size: 12.5px; color: var(--text-faint); margin-top: 16px; line-height: 20px;
  }

  /* 横向条形图（人才缺口） */
  .bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .bar-row:last-of-type { margin-bottom: 0; }
  .bar-row .bar-label {
    width: 92px; flex-shrink: 0; text-align: right;
    font-size: 12.5px; line-height: 1.4; color: #62636C;
  }
  .bar-row .bar-track {
    flex: 1; height: 24px; border-radius: 7px;
    background: rgba(33,33,33,.05); overflow: hidden;
  }
  .bar-row .bar-fill {
    height: 100%; width: 0; border-radius: 7px;
    background: linear-gradient(90deg, #4D7DFF, #3DE0FF);
    transition: width 1.1s cubic-bezier(.66,0,.34,1) .15s;
  }
  .bar-row .bar-val {
    width: 52px; flex-shrink: 0;
    font-size: 13px; font-weight: 600; color: #1E1F24;
    font-variant-numeric: tabular-nums;
  }

  /* 折线图（市场规模） */
  .line-wrap svg { width: 100%; height: 220px; display: block; }
  .line-wrap .line-path {
    fill: none; stroke: #4D7DFF; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .line-wrap .line-area { opacity: .9; }
  .line-wrap .line-dot {
    fill: #fff; stroke: #4D7DFF; stroke-width: 2.5;
    opacity: 0; transition: opacity .4s ease;
  }
  .line-wrap.animate .line-dot { opacity: 1; }
  .line-wrap .year-labels { display: flex; justify-content: space-between; margin-top: 8px; }
  .line-wrap .year-labels span { font-size: 11px; color: #9B9CA3; font-variant-numeric: tabular-nums; }

  /* 就业去向列表 */
  .career-list { list-style: none; }
  .career-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px; color: #1E1F24; line-height: 24px;
  }
  .career-list li:last-child { border-bottom: 0; }
  .career-list li::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    margin-top: 9px;
    background: linear-gradient(135deg, #4D7DFF, #3DE0FF);
  }
  .career-list li small { display: block; font-size: 12px; color: #9B9CA3; }

  /* ══════════ 作品集（3 列瀑布流，列宽~458px，gap 12px） ══════════ */
  .gallery-section { padding-top: 0; }
  /* 作品集：统一比例网格（原多列瀑布流高度随原图 → 参差 + 加载抖动） */
  .gallery-masonry { position: relative; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  @media (max-width: 600px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
  .g-item {
    position: relative;
    aspect-ratio: var(--hp-ar, 4 / 3);
    border-radius: 20px; overflow: hidden;
    background: #000;
  }
  .g-item :is(img, video) {
    width: 100%; height: 100%; display: block;
    object-fit: var(--hp-fit, cover);
    object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%);
    opacity: .92; transition: opacity .35s, transform .6s;
    transform: scale(var(--hp-zoom, 1));
  }
  .g-item:hover :is(img, video) { opacity: 1; transform: scale(calc(var(--hp-zoom, 1) * 1.04)); }
  .g-item .v-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 60%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
  }
  .g-item .v-cap {
    position: absolute; left: 14px; bottom: 12px; right: 14px;
    display: flex; align-items: end; justify-content: space-between; gap: 10px;
  }
  .g-item .v-cap .name {
    font-size: 13.5px; font-weight: 600; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
  }
  .g-item .v-cap .idx {
    font-size: 11px; color: rgba(255,255,255,.7);
    letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap;
  }

  /* ══════════ 技术方向（白卡网格） ══════════ */
  .research-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .r-card {
    background: #fff; border-radius: 16px; padding: 28px;
    transition: transform .2s, box-shadow .2s;
    position: relative; overflow: hidden;
  }
  .r-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(33,33,33,.08); }
  .r-card .icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(77,125,255,.1), rgba(61,224,255,.1));
  }
  .r-card .icon svg { width: 24px; height: 24px; stroke: #4D7DFF; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .r-card h3 { font-size: 17px; font-weight: 600; color: #1E1F24; margin-bottom: 8px; }
  .r-card h3 small { color: #62636C; font-weight: 400; font-size: 12px; margin-left: 8px; }
  .r-card p { font-size: 14px; color: var(--text-dim); line-height: 24px; }

  /* ── 最新动态 ── */
  .news-wrap { max-width: 820px; margin: 0 auto; position: relative; }
  .news-wrap::before {
    content: ""; position: absolute; left: 92px; top: 12px; bottom: 12px;
    width: 1px; background: linear-gradient(180deg, #4D7DFF, rgba(77,125,255,.08));
  }
  .news-item { display: flex; gap: 26px; margin-bottom: 32px; align-items: flex-start; }
  .news-item:last-child { margin-bottom: 0; }
  .news-date {
    width: 76px; flex-shrink: 0; text-align: right;
    color: #9B9CA3; font-size: 13px; padding-top: 4px;
    font-variant-numeric: tabular-nums;
  }
  .news-item .dot {
    width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg); border: 2px solid #4D7DFF;
    margin-top: 7px; position: relative; z-index: 2;
  }
  .news-item:first-child .dot { background: #4D7DFF; box-shadow: 0 0 12px rgba(77,125,255,.6); }
  .news-body {
    flex: 1; background: #fff; border-radius: 14px; padding: 18px 22px;
    transition: box-shadow .2s, transform .2s;
  }
  .news-body:hover { box-shadow: 0 8px 28px rgba(33,33,33,.07); transform: translateX(4px); }
  .news-body .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
  .news-body .n-tag { font-size: 11.5px; padding: 2px 12px; border-radius: 999px; letter-spacing: .06em; }
  .n-award  { background: rgba(77,125,255,.1);  color: #4D7DFF; }
  .n-comp   { background: rgba(61,224,255,.1);  color: #1AA8C7; }
  .n-news   { background: rgba(139,92,246,.1);  color: #7B5CD9; }
  .n-join   { background: rgba(255,166,87,.1);  color: #C97A2E; }
  .news-body h4 { font-size: 15.5px; font-weight: 600; color: #212121; margin-bottom: 4px; }
  .news-body p { font-size: 13.5px; color: var(--text-dim); }
  /* 动态配图 */
  .news-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; overflow: hidden; }
  .news-photos :is(img, video) { width: 100%; height: auto; aspect-ratio: var(--hp-ar, 3 / 2); object-fit: var(--hp-fit, cover); object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%); border-radius: 10px; display: block; transform: scale(var(--hp-zoom, 1)); }

  /* ── 团队 ── */
  /* 个人介绍（bio）与获奖履历（awards）分两块渲染；折叠态用 max-height 裁切，
     便于 site.js 用 scrollHeight 实测是否真的溢出，只在溢出时挂「展开全部」。 */
  .leader-card {
    display: flex; gap: 36px; align-items: flex-start;
    background: #fff; border-radius: 16px; padding: clamp(26px, 4vw, 44px);
    margin-bottom: 40px; flex-wrap: wrap;
  }
  .avatar {
    width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #4D7DFF, #3DE0FF);
    object-fit: cover; overflow: hidden;  /* 上传头像时 <img> 按圆裁切铺满 */
  }
  .leader-info { flex: 1; min-width: 260px; }
  .leader-info h3 { font-size: 20px; font-weight: 600; color: #212121; margin-bottom: 2px; }
  .leader-info .title { color: #4D7DFF; font-size: 13.5px; letter-spacing: .06em; margin-bottom: 12px; }
  .leader-info p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; max-width: 620px; margin-bottom: 4px; max-height: 6.8em; overflow: hidden; }  /* 折叠态 4 行 */
  .leader-info .mail { display: inline-block; color: #4D7DFF; font-size: 13.5px; text-decoration: none; margin-top: 12px; }
  /* 获奖履历：项目符号列表 */
  .awards-head { font-size: 11.5px; letter-spacing: .06em; color: #9B9CA3; margin: 12px 0 4px; }
  .awards { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.7; }
  .awards li { position: relative; padding-left: 14px; color: var(--text-dim); }
  .awards li::before {
    content: ''; position: absolute; left: 2px; top: .68em;
    width: 4px; height: 4px; border-radius: 50%; background: #4D7DFF; opacity: .5;
  }
  /* 折叠态按「条数」截断（老师 5 条 / 学生 3 条），每条都允许换行看全，
     不再用省略号把文字糊掉；条数是确定的，展开按钮的显隐也按条数判断。 */
  .leader-card .awards li:nth-child(n+6) { display: none; }
  .card-toggle {
    display: block; margin-top: 10px; padding: 0; border: 0; background: none; font: inherit;
    font-size: 11.5px; color: #4D7DFF; cursor: pointer;
  }
  .card-toggle:hover { text-decoration: underline; }
  .team-grid {
    display: grid; gap: 12px;
    /* auto-fit：空轨道会折叠，卡片铺满整行（auto-fill 会在末尾留一格空位，白丢横向空间）。
       items 用 start 而非 stretch：成员内容多少不一，拉伸会在内容少的卡里留出大片白块，
       自然高度下"空白"落在卡片外的页面底色上，观感更正常。 */
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .member {
    background: #fff; border-radius: 16px; padding: 26px 18px; text-align: center;
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column; align-items: center;
  }
  .member:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(33,33,33,.07); }
  .member .avatar { width: 60px; height: 60px; font-size: 22px; margin: 0 auto 14px; }
  .member h4 { font-size: 15px; font-weight: 600; color: #212121; margin-bottom: 4px; }
  .member .role { font-size: 12px; color: #9B9CA3; letter-spacing: .04em; }
  /* 折叠态 3 行；用 -webkit-line-clamp 自带「…」，末尾省略号就是"还有内容"的提示。
     量是否被裁时用 .is-measuring 临时解除裁切（见 site.js），所以不必牺牲省略号。 */
  .member .bio {
    align-self: stretch; font-size: 12.5px; color: var(--text-dim); line-height: 1.65; margin-top: 8px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  }
  .member .bio.is-measuring { display: block; -webkit-line-clamp: unset; }
  .member .awards-head { align-self: stretch; text-align: left; margin: 10px 0 2px; }
  .member .awards { align-self: stretch; text-align: left; font-size: 11.5px; }
  .member .awards li:nth-child(n+4) { display: none; }   /* 折叠态露 3 条 */
  .member .card-toggle { align-self: center; }

  /* 展开后解除裁切（介绍与履历一并展开）；并把该卡撑满整行，
     避免同排其他卡片被一起拉高、底部留下大片空白 */
  .leader-card.expanded .leader-info p,
  .member.expanded .bio { max-height: none; overflow: visible; -webkit-line-clamp: unset; display: block; }
  .leader-card.expanded .awards li:nth-child(n+6),
  .member.expanded .awards li:nth-child(n+4) { display: block; }
  .member.expanded { grid-column: 1 / -1; }
  .member.expanded .bio,
  .member.expanded .awards-head,
  .member.expanded .awards { align-self: center; width: 100%; max-width: 760px; }

  /* ── 加入我们 ── */
  .join-flex { display: flex; gap: clamp(30px, 5vw, 70px); align-items: center; flex-wrap: wrap; }
  .join-text { flex: 1.2; min-width: 300px; }
  .join-text p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
  .join-text ul { list-style: none; margin-bottom: 26px; }
  .join-text li { color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; padding-left: 24px; position: relative; }
  .join-text li::before { content: "▸"; position: absolute; left: 4px; color: #4D7DFF; }
  .join-img { flex: 1; min-width: 280px; overflow: hidden; border-radius: 20px; aspect-ratio: var(--hp-ar, 3 / 2); }
  .join-img :is(img, video) { width: 100%; height: 100%; object-fit: var(--hp-fit, cover); object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%); border-radius: 20px; display: block; transform: scale(var(--hp-zoom, 1)); }
  .btn-solid {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px;
    background: #212121; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: background .2s, transform .2s;
  }
  .btn-solid:hover { background: #000; transform: translateY(-2px); }
  /* 报名材料下载：后台没传任何文档时整块 hidden（display:flex 会盖掉 hidden 属性，必须显式覆盖） */
  .join-docs { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
  .join-docs[hidden] { display: none !important; }
  .join-docs-label { font-size: 13px; letter-spacing: .04em; color: var(--text-dim); }
  .join-docs-list { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn-doc { padding: 10px 20px; font-size: 14px; }

  /* ══════════ Footer（480px 径向渐变 + 左品牌 + 右链接列） ══════════ */
  .site-footer {
    position: relative; height: 480px; overflow: hidden;
    background: #F8F8F8; color: #212121;
  }
  .site-footer::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(134.01% 77.59% at 50% 20.04%, rgba(200,221,233,0) 51.85%, rgba(165,197,230,.57) 100%);
  }
  .footer-inner {
    position: relative; top: 43px; z-index: 1;
    width: var(--content-width); margin: 0 auto;
    height: 400px; display: flex; flex-direction: column; justify-content: space-between;
  }
  .footer-top { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
  .footer-brand-col { display: flex; flex-direction: column; justify-content: space-between; height: 250px; flex-shrink: 0; }
  .footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 17px; color: #212121;
  }
  .footer-brand .school-logo {
    height: 26px; width: auto; display: block;
    filter: invert(1); opacity: .88; /* 白色组合标在浅色背景上反色为深色 */
  }
  .footer-brand .divider {
    width: 1px; height: 14px; margin: 0 2px; flex-shrink: 0;
    background: rgba(33,33,33,.25);
  }
  .footer-slogan {
    width: 345px; white-space: pre-line; text-align: left;
    font-size: 16px; line-height: 24px; font-weight: 400; color: rgba(33,33,33,.8);
  }
  .footer-qr { display: flex; flex-direction: column; gap: 14px; width: 160px; align-items: center; }
  .footer-qr .qr-box {
    width: 140px; height: 140px; flex-shrink: 0;
    border-radius: 8px; background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  /* 二维码必须完整可扫：筹码位一律 contain（原先 cover，换非方形图就会被裁） */
  .footer-qr .qr-box :is(img, video) { width: 100%; height: 100%; object-fit: contain; object-position: var(--hp-focus-x, 50%) var(--hp-focus-y, 50%); display: block; transform: scale(var(--hp-zoom, 1)); }
  .footer-qr .qr-note {
    white-space: nowrap; text-align: left;
    font-size: 14px; line-height: 32px; letter-spacing: .02em; font-weight: 400; color: rgba(33,33,33,.5);
  }
  .footer-nav { display: flex; justify-content: space-between; width: 400px; flex-shrink: 0; }
  .footer-col { display: flex; flex-direction: column; gap: 16px; width: 180px; flex-shrink: 0; }
  .footer-col .col-title {
    height: 20px; font-size: 16px; line-height: 28px; letter-spacing: .02em;
    font-weight: 500; color: #212121;
  }
  .footer-col .col-links { font-size: 14px; line-height: 32px; letter-spacing: .02em; font-weight: 400; }
  .footer-col .col-links a {
    display: block; white-space: nowrap; text-decoration: none;
    color: #212121; opacity: .5; transition: opacity .3s ease-in-out;
  }
  .footer-col .col-links a:hover { opacity: .8; }
  .footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; line-height: 32px; letter-spacing: .02em;
    color: rgba(33,33,33,.5); flex-wrap: wrap; gap: 8px;
  }
  .footer-bottom a { color: rgba(33,33,33,.5); text-decoration: none; }
  .footer-bottom a:hover { color: rgba(33,33,33,.8); }
  @media (max-width: 900px) {
    .site-footer { height: auto; padding: 60px 20px 30px; }
    .footer-inner { top: 0; height: auto; gap: 40px; }
    .footer-nav { width: 100%; }
    .footer-slogan { width: auto; }
  }

  /* ── 图片灯箱（所有配图点击查看大图） ── */
  .lightboxable { cursor: zoom-in; }
  .lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 12, 18, .92);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .lightbox.open { opacity: 1; pointer-events: auto; }
  .lightbox :is(img, video) {
    max-width: min(92vw, 1600px); max-height: 88vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
  }
  .lightbox #lightboxVideo { display: none; }
  .lightbox .lb-close {
    position: absolute; top: 18px; right: 18px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
    color: #fff; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
  }
  .lightbox .lb-close:hover { background: rgba(255,255,255,.2); }

  /* ── Toast ── */
  #toast {
    position: fixed; bottom: 34px; left: 50%;
    transform: translateX(-50%) translateY(16px); z-index: 200;
    padding: 12px 22px; border-radius: 12px;
    background: rgba(33,33,33,.95); color: #fff;
    font-size: 13.5px; box-shadow: 0 12px 40px rgba(0,0,0,.2);
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
    max-width: min(86vw, 560px); text-align: center;
  }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ── 背景音乐开关（右下角悬浮） ── */
  .bgm-btn {
    position: fixed; right: 18px; bottom: 18px; z-index: 150;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25); cursor: pointer;
    background: rgba(20,22,30,.72); color: #fff;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(0,0,0,.35);
    transition: transform .2s, background .2s;
  }
  .bgm-btn:hover { transform: translateY(-2px); background: rgba(40,44,58,.82); }
  .bgm-btn svg { width: 20px; height: 20px; }
  .bgm-btn.playing {
    color: #3DE0FF; border-color: rgba(61,224,255,.5);
    animation: bgmPulse 2.4s ease-in-out infinite;
  }
  @keyframes bgmPulse {
    0%, 100% { box-shadow: 0 8px 26px rgba(61,224,255,.18); }
    50%      { box-shadow: 0 8px 32px rgba(61,224,255,.45); }
  }

  /* ── 背景音乐启动卡（按键型磨砂玻璃，点击解除静音后消失） ── */
  .bgm-gate {
    position: absolute; left: 50%; top: 50%; z-index: 5;
    transform: translate(-50%, -50%);
    cursor: pointer; user-select: none; -webkit-user-select: none;
    transition: opacity .5s ease, transform .5s ease;
  }
  .bgm-gate.hide {
    opacity: 0; pointer-events: none;
    transform: translate(-50%, -50%) scale(1.12);
  }
  .bgm-gate-row {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 15px 30px 15px 18px; border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(120deg, hsla(0,0%,100%,.09), hsla(0,0%,100%,.03));
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 14px 44px rgba(0,0,0,.2);
    transition: transform .25s ease, background .25s ease;
    /* 呼吸辉光必须挂在带圆角的这一层，否则会出现方形光晕穿帮 */
    animation: gateBreath 3s ease-in-out infinite;
  }
  .bgm-gate:hover .bgm-gate-row {
    transform: translateY(-2px);
    background: linear-gradient(120deg, hsla(0,0%,100%,.16), hsla(0,0%,100%,.06));
  }
  .bgm-gate-row .ic {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  }
  .bgm-gate-row .ic svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
  .bgm-gate-row .tx {
    font-size: 15px; font-weight: 600; letter-spacing: .18em; text-indent: .18em;
    color: rgba(255,255,255,.92);
  }
  @keyframes gateBreath {
    0%, 100% { box-shadow: 0 14px 44px rgba(0,0,0,.2); }
    50%      { box-shadow: 0 14px 44px rgba(0,0,0,.2), 0 0 30px rgba(61,224,255,.13); }
  }

  /* ── Hero 入场（对齐原站 text-animation：translateY(44px) → 0） ── */
  /* fill: both —— 延迟期间保持 from 态（隐藏），结束后保持 to 态（显示）；
     基础样式不写 opacity:0，否则 JS 摘除动画后元素会隐身 */
  .hero-text, .hero .button-group {
    animation: heroIn 1s cubic-bezier(.66,0,.34,1) both;
  }
  .hero-text { animation-delay: .1s; }
  .hero .button-group { animation-delay: .3s; }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(44px); }
    to   { opacity: 1; transform: none; }
  }

  /* ── 响应式 ── */
  @media (max-width: 720px) {
    section { padding: 80px var(--content-margin); }
    .news-wrap::before { left: 12px; }
    .news-date { display: none; }
    .news-item .dot { position: absolute; margin-left: 8px; }
    .news-item { position: relative; padding-left: 32px; }
  }
  @media (max-width: 480px) {
    /* 小屏收一档：品牌名与"进入管理系统"必须同排且各自单行；
       flex-wrap 是兜底——真放不下时整体换行，而不是逐个字换行或横向溢出 */
    .top-bar { padding-top: 24px; gap: 6px; flex-wrap: wrap; row-gap: 8px; }
    .brand { font-size: 13px; gap: 6px; }
    .brand .divider { display: none; }
    .school-logo { height: 20px; }
    .nav-right { gap: 12px; }
    .nav-pill { height: 28px; padding: 0 8px; font-size: 12px; gap: 4px; }
    .hero-content { padding: 32px 0 72px; }
    .hero .description { font-size: 14px; line-height: 21px; }
    /* 只压轮播卡的高度基准；.sc-fluid（无人机/实物整幅宽卡）必须继续按 --hp-ar 推高，
       否则手机上会变成 353×420 的竖框，16:9 素材被裁掉一半 */
    .showcase-card:not(.sc-fluid) { height: 420px; }
  }
  @media (max-width: 380px) {
    .brand { font-size: 12px; }
    .school-logo { height: 18px; }
    .nav-pill { font-size: 11px; padding: 0 6px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .sec-head::after, .bench-header::after { width: 72px; transition: none; }
    .rotator i { animation: none; }
    .bar-row .bar-fill { transition: none; }
    .hero-text, .hero .button-group { animation: none !important; opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
  }
