:root {
    color-scheme: light;
    --ink: #152b45;
    --muted: #536479;
    --blue: #2558d9;
    --paper: #fffefb;
    --line: #dde3e8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: #dbe6ff; color: var(--ink); }
.section-shell { width: min(100% - 64px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 16px; padding: 12px 20px; transform: translateY(-160%); border-radius: 6px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 64px; padding-block: 76px 88px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.eyebrow-divider { margin-inline: 3px; color: #8591a0; }
h1 { margin-block: 26px 28px; font-size: clamp(42px, 4.5vw, 66px); font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
h1 span { color: var(--blue); }
.hero-intro { max-width: 530px; font-size: 14px; line-height: 1.95; color: var(--muted); }
.hero-intro p + p { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; transition: background-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #1948bd; }
.button-secondary { border-color: #d8dfe7; background: transparent; }
.button-secondary:hover { background: #edf2fc; }
.hero-media { position: relative; isolation: isolate; padding: 30px; border-radius: 16px 16px 80px 16px; background: #e9eff5; }
.media-corner { position: relative; z-index: 1; margin-bottom: 24px; color: #49617c; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.campus-video { position: relative; z-index: 1; width: 100%; height: 330px; border-radius: 6px; object-fit: cover; background: #b6c4cd; }
.hero-media-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 16px; color: #49617c; font-size: 11px; letter-spacing: .12em; }
.video-toggle { min-height: 44px; padding: 8px 10px; border: 1px solid #c9d4df; border-radius: 5px; background: #f8fafc; color: var(--ink); font-size: 11px; letter-spacing: 0; cursor: pointer; }
.video-toggle span { margin-left: 7px; }
.video-toggle:hover { background: #fff; }
.video-toggle[hidden] { display: none; }
.media-grid { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: inherit; background-image: linear-gradient(#9baec021 1px, transparent 1px), linear-gradient(90deg, #9baec021 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(135deg, transparent 40%, black); }
.projects { padding-block: 32px 88px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.3; }
.heading-dot { margin-left: 2px; color: var(--blue); }
.section-index { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #62758b; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { min-width: 0; }
.project-image { position: relative; overflow: hidden; border-radius: 8px; background: #e9eff5; }
.project-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-number { position: absolute; bottom: 12px; left: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fffefbea; color: var(--ink); font-size: 11px; font-weight: 600; }
.project-copy { padding: 22px 0 0; }
.project-copy h3 { margin-bottom: 10px; font-size: 21px; font-weight: 600; }
.project-copy p { max-width: 33em; color: var(--muted); font-size: 14px; line-height: 1.85; }
.showcase { padding-block: 64px; background: #142b45; color: white; }
.showcase-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; align-items: stretch; }
.showcase-heading { display: flex; flex-direction: column; align-items: flex-start; }
.showcase-heading .section-index { color: #a2b6cf; }
.showcase-heading h2 { margin-top: 22px; }
.showcase-heading .heading-dot { color: #95b8ff; }
.showcase-line { width: 40px; height: 1px; margin-block: 28px; background: #69809d; }
.showcase-wordmark { margin-top: auto; color: #a9bdd3; font-size: 36px; font-weight: 650; letter-spacing: .04em; line-height: 1.1; }
.showcase-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; align-self: center; min-width: 0; }
.showcase-viewport { overflow: hidden; border: 1px solid #496079; border-radius: 10px; background: #102036; box-shadow: 0 20px 45px #071c3038; }
.showcase-track { display: flex; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
.showcase-player { flex: 0 0 100%; min-width: 0; }
.showcase-frame { display: block; width: 100%; height: auto; aspect-ratio: 854 / 480; border: 0; }
.showcase-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #496079; border-radius: 50%; background: transparent; color: #cbd8e6; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.showcase-arrow::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.showcase-arrow[data-step="-1"]::before { margin-left: 4px; transform: rotate(-135deg); }
.showcase-arrow[data-step="1"]::before { margin-left: -4px; transform: rotate(45deg); }
.showcase-arrow:hover { border-color: #95b8ff; background: #1d3a5c; color: #fff; }
.showcase-arrow[data-step="-1"]:hover { transform: translateX(-2px); }
.showcase-arrow[data-step="1"]:hover { transform: translateX(2px); }
/* 圆点由 JS 生成并挂在格子的第二行，正好落在视频正下方 */
.showcase-dots { grid-area: 2 / 2; display: flex; align-items: center; justify-content: center; }
.showcase-dot { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.showcase-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f5674; transition: background-color .2s ease, box-shadow .2s ease; }
.showcase-dot:hover::before { background: #6d89ab; }
.showcase-dot[aria-current="true"]::before { background: #95b8ff; box-shadow: 0 0 0 3px #95b8ff38; }
.showcase-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #102036; cursor: pointer; }
.showcase-facade img { width: 100%; height: auto; aspect-ratio: 854 / 480; object-fit: cover; }
.showcase-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 66px; height: 66px; transform: translate(-50%, -50%); border-radius: 50%; background: #fffefbd9; box-shadow: 0 10px 28px #071c3047; transition: transform .22s ease, background-color .22s ease; }
.showcase-play::after { content: ""; margin-left: 5px; border-left: 17px solid var(--blue); border-block: 10px solid transparent; }
.showcase-facade:hover .showcase-play { transform: translate(-50%, -50%) scale(1.08); background: #fffefb; }
.awards { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; padding-block: 88px 96px; }
.awards-heading h2 { margin-block: 22px; }
.awards-range { font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.awards-archive { min-width: 0; border-top: 1px solid var(--ink); }
.award-year { border-bottom: 1px solid var(--line); }
.award-year summary { display: flex; align-items: center; gap: 20px; min-height: 88px; padding: 20px 8px; cursor: pointer; list-style: none; }
.award-year summary::-webkit-details-marker { display: none; }
.award-year summary:hover { color: var(--blue); }
.award-year-number { font-size: 28px; font-weight: 650; letter-spacing: -.025em; line-height: 1; }
.award-count { color: var(--muted); font-size: 12px; }
.expand-icon { position: relative; width: 28px; height: 28px; margin-left: auto; border: 1px solid #c9d4df; border-radius: 50%; }
.expand-icon::before, .expand-icon::after { position: absolute; top: 12px; left: 8px; width: 10px; height: 1px; background: currentColor; content: ""; }
.expand-icon::after { transform: rotate(90deg); }
.award-year[open] .expand-icon::after { transform: rotate(0); }
.award-year[open] .award-year-number { color: var(--blue); }
.award-list { margin: 0; padding: 0 8px 12px; list-style: none; }
.award-item { padding-block: 22px; border-top: 1px solid #e7ebee; }
.paper-title { font-size: 16px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.paper-author { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: #f2f5f7; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; min-height: 108px; padding-block: 28px; }
.footer-brand { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 750; letter-spacing: .13em; }
.footer-brand span { font-size: 20px; color: var(--blue); }
.footer-inner p { color: var(--muted); font-size: 11px; }

@media (min-width: 1500px) { .hero { padding-block: 96px 108px; } }
@media (max-width: 1000px) {
    .hero { gap: 36px; padding-block: 56px 64px; }
    .hero-media { padding: 22px; }
    .campus-video { height: 340px; }
    .project-grid { gap: 20px; }
    .showcase-grid, .awards { gap: 40px; grid-template-columns: 1fr 2.4fr; }
}
@media (max-width: 767px) {
    html { scroll-padding-top: 92px; }
    .section-shell { width: calc(100% - 40px); }
    .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 48px; }
    .eyebrow { font-size: 10px; }
    h1 { font-size: clamp(42px, 9vw, 58px); margin-block: 22px; }
    .hero-intro { max-width: 100%; }
    .hero-actions { margin-top: 24px; }
    .hero-media { padding: 20px; border-radius: 12px 12px 48px 12px; }
    .media-corner { margin-bottom: 16px; }
    .campus-video { width: 100%; height: auto; aspect-ratio: 854 / 480; }
    .hero-media-bottom { margin-top: 10px; }
    .projects { padding-block: 28px 48px; }
    .section-heading { margin-bottom: 24px; }
    .project-grid { grid-template-columns: 1fr; gap: 32px; }
    .project-copy { padding-top: 18px; }
    .project-copy h3 { font-size: 21px; }
    .project-copy p { max-width: none; }
    .showcase { padding-block: 36px 40px; }
    .showcase-grid, .awards { grid-template-columns: 1fr; gap: 28px; }
    .showcase-carousel { gap: 8px; }
    .showcase-arrow { width: 34px; height: 34px; }
    .showcase-heading { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
    .showcase-heading .section-index { order: 1; margin-left: auto; }
    .showcase-heading h2 { margin: 0; }
    .showcase-line, .showcase-wordmark { display: none; }
    .awards { padding-block: 44px 52px; }
    .awards-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
    .awards-heading h2 { margin: 0; }
    .awards-heading .section-index { order: 2; margin-left: auto; }
    .awards-range { font-size: 11px; }
    .award-year summary { min-height: 76px; padding-inline: 0; }
    .award-year-number { font-size: 26px; }
    .award-list { padding-inline: 0; }
    .paper-title { font-size: 15px; }
    .footer-inner { gap: 12px; }
}
/* 滚动进场。reveal.js 主动加上 .reveal 才会隐藏，所以没有 JS 时内容照常显示 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .65s cubic-bezier(.4, 0, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* 跨页面过渡。不支持的浏览器直接忽略这几条，跳转行为完全不变。
   注意 view-transition-name 不能嵌套：给 .site-header 命名的话，
   里面的胶囊会被判定为失效，所以只给胶囊自己命名。 */
@view-transition { navigation: auto; }
.site-nav-pill { view-transition-name: nav-pill; }
::view-transition-old(root) { animation: vt-fade-out .18s ease both; }
::view-transition-new(root) { animation: vt-fade-in .22s ease both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
/* 默认 0.25s，蓝色胶囊要滑得比页面本身更明显一点 */
::view-transition-group(nav-pill) { animation-duration: .34s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .button:hover, .project-card:hover img, .showcase-arrow:hover { transform: none; }
    /* 上面那条过渡对视图过渡的伪元素无效（它们用的是 animation），得单独压掉 */
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .01s !important; }
}
