/* ============================================================
   KTYJ Lab · 课题组主题主样式
   设计基调：深蓝 #0A2463 / 科技蓝 #1E6FF6 / 青蓝点缀 #00C2FF
   响应式断点：≥1200（桌面）/ 768–1199（平板）/ <768（手机）
   ============================================================ */

:root {
    --navy: #0A2463;
    --navy-deep: #061743;
    --blue: #1E6FF6;
    --blue-dark: #1557C8;
    --cyan: #00C2FF;
    --grad: linear-gradient(135deg, #0A2463 0%, #1E6FF6 55%, #00C2FF 100%);
    --grad-soft: linear-gradient(135deg, rgba(30,111,246,.12), rgba(0,194,255,.12));
    --ink: #16233F;
    --ink-2: #4A5B7C;
    --ink-3: #8A97B5;
    --bg: #F4F7FE;
    --bg-card: #FFFFFF;
    --line: #E3EAF7;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(10, 36, 99, .08);
    --shadow-hover: 0 18px 48px rgba(30, 111, 246, .18);
    --glow: 0 0 24px rgba(0, 194, 255, .35);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-num: "DIN Alternate", "Bahnschrift", "Segoe UI", var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* 用 clip 而非 hidden 抑制装饰元素横向溢出：不生成滚动容器，不影响 sticky 定位 */
    overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-dark); }

.container { width: min(1200px, 92%); margin: 0 auto; }

[v-cloak] { display: none !important; }

/* ---------- 通用 ---------- */
.section { padding: 88px 0; position: relative; }
.section:nth-of-type(even) { background: #fff; }

.kicker {
    font-size: 13px; letter-spacing: .35em; font-weight: 700;
    color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
    font-family: var(--font-num);
}
.kicker.center { text-align: center; }
.kicker.light { color: var(--cyan); }

.section-title {
    font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--navy);
    letter-spacing: .02em; margin-bottom: 24px; line-height: 1.3;
}
.section-title.center { text-align: center; }
.section-title.center::after {
    content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
    background: var(--grad); margin: 16px auto 0;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(30,111,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30,111,246,.45); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); padding: 10px 24px; }
.btn-line:hover { background: var(--blue); color: #fff; }
/* Hero 深色背景下的线条按钮 */
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn-line:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }

/* 滚动渐入动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.32,1); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; }
}

/* ---------- 头部导航（sticky 毛玻璃） ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-bottom: 1px solid rgba(227, 234, 247, .9);
    transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,36,99,.1); background: rgba(255,255,255,.9); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.site-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-logo { display: grid; place-items: center; }
.brand-logo img { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .22em; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    display: block; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600;
    color: var(--ink-2); position: relative; transition: color .25s, background .25s;
}
.nav-menu a:hover { color: var(--blue); background: rgba(30,111,246,.08); }
.nav-menu .current-menu-item a, .nav-menu a[aria-current="page"] { color: var(--blue); background: rgba(30,111,246,.1); }

/* 中英切换：分段式胶囊开关（中 | EN），当前语言高亮 */
.lang-switch {
    display: inline-flex; align-items: stretch;
    border-radius: 999px; overflow: hidden;
    border: 1px solid rgba(30,111,246,.35);
    background: linear-gradient(135deg, rgba(30,111,246,.06), rgba(0,194,255,.06));
    transition: box-shadow .25s, transform .25s;
}
.lang-switch:hover { box-shadow: 0 6px 18px rgba(30,111,246,.28); transform: translateY(-1px); }
.lang-opt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: 7px 12px;
    font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
    color: var(--blue); letter-spacing: .02em;
    transition: all .25s;
}
.lang-opt + .lang-opt { border-left: 1px solid rgba(30,111,246,.25); }
.lang-opt:hover { color: var(--blue-dark); background: rgba(30,111,246,.1); }
.lang-opt.active {
    color: #fff; background: var(--grad);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    cursor: default; pointer-events: none;
}

.lang-toast {
    position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
    z-index: 200; padding: 10px 22px; border-radius: 999px;
    background: rgba(10,36,99,.92); color: #fff; font-size: 14px;
    box-shadow: 0 10px 30px rgba(10,36,99,.3); backdrop-filter: blur(8px);
    animation: toast-in .35s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
/* 切换动画：fade 淡入淡出（默认）/ slide 平移滑入 / zoom 缩放推进 */
.hero[data-effect="slide"] .hero-slide { transform: translateX(4%); transition: opacity 1.1s ease, transform 1.1s ease; }
.hero[data-effect="slide"] .hero-slide.active { transform: translateX(0); }
.hero[data-effect="zoom"] .hero-slide { transform: scale(1.06); transition: opacity 1.2s ease, transform 1.8s ease; }
.hero[data-effect="zoom"] .hero-slide.active { transform: scale(1); }
/* 底部阴影过渡（主题设置可开关） */
.hero-bottom-shadow { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(4,12,34,.5)); }
.hero-slide-1 { background: linear-gradient(125deg, #061743 0%, #0A2463 38%, #1E6FF6 78%, #00C2FF 115%); }
.hero-slide-2 { background: linear-gradient(125deg, #0A2463 0%, #123A8F 45%, #0FA3E8 100%); }
.hero-slide-3 { background: linear-gradient(125deg, #04102F 0%, #0A2463 45%, #1557C8 85%, #00C2FF 130%); }

.hero-grid-tex {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,194,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,194,255,.09) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 75%);
}
.hero-slide::after {
    content: ""; position: absolute; width: 46vw; height: 46vw; right: -10vw; top: -12vw;
    background: radial-gradient(circle, rgba(0,194,255,.28), transparent 65%);
    filter: blur(10px); pointer-events: none;
}
/* 主题设置：自定义背景图 + 遮罩 */
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide-mask { position: absolute; inset: 0; pointer-events: none; }

.hero-content { position: relative; z-index: 2; padding: 80px 0 120px; color: #fff; }
.hero-kicker { font-size: 13px; letter-spacing: .5em; color: var(--cyan); font-weight: 700; margin-bottom: 22px; font-family: var(--font-num); }
.hero-title {
    font-size: clamp(34px, 5.6vw, 64px); font-weight: 900; line-height: 1.18;
    letter-spacing: .03em; margin-bottom: 22px; max-width: 760px;
    text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero-subtitle { font-size: clamp(15px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 620px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-title-enter-active, .hero-title-leave-active { transition: opacity .45s ease, transform .45s ease; }
.hero-title-enter-from { opacity: 0; transform: translateY(24px); }
.hero-title-leave-to { opacity: 0; transform: translateY(-18px); }

.hero-indicators { position: absolute; z-index: 3; bottom: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot { width: 34px; height: 4px; border-radius: 3px; border: none; cursor: pointer; background: rgba(255,255,255,.3); transition: all .35s; }
.hero-dot.on { background: var(--cyan); width: 52px; box-shadow: var(--glow); }

.hero-scroll-hint {
    position: absolute; z-index: 3; bottom: 40px; right: 5%; color: rgba(255,255,255,.55);
    font-size: 12px; letter-spacing: .3em; display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl;
}
.hero-scroll-hint span { display: block; width: 1px; height: 44px; background: linear-gradient(to bottom, var(--cyan), transparent); animation: scroll-hint 1.8s ease infinite; }
@keyframes scroll-hint { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.5); opacity: .4; } }

/* ---------- 简介 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-body { color: var(--ink-2); font-size: 16.5px; margin-bottom: 28px; }
.about-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.point-check {
    display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--grad); color: #fff; font-size: 13px; flex-shrink: 0;
}

.about-visual { overflow: clip; }
/* 课题组合影：渐变描边卡片 */
.about-photo {
    position: relative; width: 100%; max-width: 560px; margin: 0 auto;
    border-radius: 18px; padding: 3px; background: var(--grad);
    box-shadow: 0 22px 50px rgba(10, 36, 99, .22), 0 0 40px rgba(0, 194, 255, .22);
}
.about-photo img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 15px; background: var(--bg);
}
.about-photo-tag {
    position: absolute; right: 16px; bottom: 16px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(6, 23, 67, .62); border: 1px solid rgba(0, 194, 255, .35);
    backdrop-filter: blur(6px);
    color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: .12em;
}
.about-photo-glow {
    position: absolute; inset: -12%; z-index: -1;
    background: radial-gradient(circle at 50% 45%, rgba(0, 194, 255, .25), transparent 70%);
    filter: blur(10px); pointer-events: none;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- PI 卡片 ---------- */
.pi-card {
    display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
    max-width: 900px; margin: 0 auto; padding: 48px;
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--line); position: relative; overflow: hidden;
}
.pi-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.pi-photo { position: relative; }
.pi-photo img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); position: relative; z-index: 1; }
.pi-photo-glow { position: absolute; inset: -12px; border-radius: 22px; background: var(--grad); opacity: .16; filter: blur(18px); }
.pi-info h3 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.pi-title { color: var(--blue); font-weight: 700; margin-bottom: 16px; }
.pi-bio { color: var(--ink-2); font-size: 15.5px; margin-bottom: 20px; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pi-tags span {
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--blue); background: rgba(30,111,246,.08); border: 1px solid rgba(30,111,246,.2);
}

/* ---------- 宣传视频 ---------- */
.section-video { background: linear-gradient(180deg, #fff, var(--bg)); }
.video-shell { position: relative; max-width: 880px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 64px rgba(10,36,99,.2); }
.lab-video { width: 100%; aspect-ratio: 16/9; background: var(--navy-deep); display: block; }
.lab-video[src=""], .lab-video:not([src]) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.video-shell video[src]:not([src=""]) + .video-poster { display: none; } /* 有真实视频源时隐藏封面占位 */
.video-poster {
    position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
    background: linear-gradient(125deg, #061743, #0A2463 50%, #1557C8 90%); color: #fff;
}
.video-grid-tex {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,194,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,194,255,.1) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}
.video-play {
    position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%;
    border: none; cursor: pointer; display: grid; place-items: center; color: #fff;
    background: var(--grad); box-shadow: 0 0 0 12px rgba(0,194,255,.18), 0 0 0 26px rgba(0,194,255,.07);
    transition: transform .3s; animation: pulse 2.6s ease infinite;
}
.video-play:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 12px rgba(0,194,255,.18), 0 0 0 26px rgba(0,194,255,.07); } 50% { box-shadow: 0 0 0 18px rgba(0,194,255,.12), 0 0 0 36px rgba(0,194,255,.04); } }
.video-desc { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 14px; }

/* 双视频卡片（宣传视频） */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1080px; margin: 0 auto; }
/* 数量自适应：1=居中单卡，3=三列；2 与 4+ 用默认两列 */
.video-grid[data-count="1"] { grid-template-columns: 1fr; max-width: 720px; }
.video-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.video-card { margin: 0; transition: transform .35s; }
.video-card:hover { transform: translateY(-5px); }
.video-frame {
    border-radius: var(--radius); overflow: hidden; background: var(--navy-deep);
    box-shadow: 0 20px 52px rgba(10,36,99,.2); border: 1px solid rgba(0,194,255,.16);
}
.video-frame .lab-video { width: 100%; aspect-ratio: 16/9; display: block; background: #050f2b; }
.video-card figcaption {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; color: var(--navy); font-weight: 700; font-size: 16px;
}
.video-card figcaption svg { color: var(--blue); flex-shrink: 0; }
@media (max-width: 767px) {
    .video-grid, .video-grid[data-count] { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 新闻卡片（主页 & 兜底列表） ---------- */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .35s, box-shadow .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-cat {
    position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #fff; backdrop-filter: blur(6px);
}
.cat-focus { background: rgba(230, 57, 70, .85); }
.cat-updates { background: rgba(30, 111, 246, .85); }
.cat-notice { background: rgba(10, 36, 99, .8); }
.news-card-body { padding: 22px 24px 26px; }
.news-date { font-size: 12.5px; color: var(--ink-3); font-family: var(--font-num); letter-spacing: .06em; }
.news-card-body h3 { font-size: 17.5px; line-height: 1.5; margin: 8px 0 10px; }
.news-card-body h3 a { color: var(--navy); }
.news-card-body h3 a:hover { color: var(--blue); }
.news-card-body p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; gap: 18px; align-content: center; }
.contact-card {
    display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 18px;
    padding: 22px 26px; background: var(--bg-card); border-radius: var(--radius-sm);
    border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.contact-icon {
    grid-row: span 2; align-self: center; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px; color: #fff; background: var(--grad);
    box-shadow: 0 8px 20px rgba(30,111,246,.3);
}
.contact-card h4 { color: var(--navy); font-size: 16px; align-self: end; }
.contact-card p { color: var(--ink-2); font-size: 14px; align-self: start; }

.contact-map {
    position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
    background: linear-gradient(135deg, #0A2463, #1557C8 70%, #00A3E0);
    display: grid; place-items: center; align-content: center; gap: 12px; color: rgba(255,255,255,.75);
}
.map-grid-tex { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,194,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,194,255,.12) 1px, transparent 1px); background-size: 40px 40px; }
.map-pin { position: relative; color: var(--cyan); filter: drop-shadow(0 0 12px rgba(0,194,255,.8)); animation: float 3.4s ease-in-out infinite; }
/* 主题设置：标注点位置可配置（left/top 百分比内联输出） */
.contact-map .map-pin { position: absolute; transform: translate(-50%, -50%); }
.contact-map p { position: relative; font-size: 13.5px; }
.contact-map .map-sub { font-size: 12px; opacity: .65; margin-top: -6px; }
/* 高德真实地图容器（配置 Key 后替换占位图） */
.contact-map:has(.amap-container) { display: block; background: #e8eef7; }
.amap-container { position: absolute; inset: 0; width: 100%; height: 100%; }
.amap-error { display: grid; place-items: center; height: 100%; color: #b91c1c; font-size: 14px; }

/* ---------- 友情链接 ---------- */
.friend-links { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
/* 数量自适应列数（data-cols 由 PHP 计算：≤4 一排 / 5-8 两排均分 / 更多 4 列） */
.friend-links[data-cols="1"] { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
.friend-links[data-cols="2"] { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.friend-links[data-cols="3"] { grid-template-columns: repeat(3, 1fr); max-width: 880px; margin: 0 auto; }
.friend-links[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.friend-links a {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 22px 12px; background: var(--bg-card); border-radius: var(--radius-sm);
    border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
    transition: all .3s; text-align: center;
}
.friend-links a:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--blue); border-color: rgba(30,111,246,.4); }
.fl-logo {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--grad-soft); color: var(--blue); font-size: 18px; font-weight: 800;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand-logo { height: 34px; width: auto; object-fit: contain; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: var(--glow); }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .05em; }
.footer-col p, .footer-contact li { font-size: 14px; }
.footer-menu { list-style: none; display: grid; gap: 8px; }
.footer-menu a { color: rgba(255,255,255,.72); font-size: 14px; }
.footer-menu a:hover { color: var(--cyan); }
.footer-contact { list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-powered { float: right; }
.footer-icp { color: rgba(255,255,255,.45); margin-left: 12px; }
.footer-icp:hover { color: var(--cyan); }

/* ---------- 内页横幅 ---------- */
.page-banner {
    position: relative; padding: 96px 0 72px; overflow: hidden;
    background: linear-gradient(125deg, #061743, #0A2463 55%, #1557C8 100%); color: #fff;
}
.page-banner-tex {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,194,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,194,255,.1) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 100% at 30% 50%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 30% 50%, #000 20%, transparent 75%);
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: .04em; margin-bottom: 12px; }
.banner-desc { color: rgba(255,255,255,.75); max-width: 640px; font-size: 16px; }

/* ---------- 研究方向（交错编辑式布局） ---------- */
.rs-section { padding-top: 72px; }
.rs-list { display: flex; flex-direction: column; }

.rs-row {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 72px);
    align-items: center; padding: clamp(40px, 5vw, 64px) 0; position: relative;
}
.rs-row + .rs-row { border-top: 1px solid var(--line); }
.rs-row + .rs-row::before {
    content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 120px;
    background: var(--grad);
}
.rs-rev .rs-body { order: 2; }
.rs-rev .rs-visual { order: 1; }

.rs-body { position: relative; }
.rs-num {
    position: absolute; top: -34px; right: 0; z-index: 0;
    font-family: var(--font-num); font-size: clamp(88px, 9vw, 128px); font-weight: 700; line-height: 1;
    background: linear-gradient(180deg, rgba(30,111,246,.16), rgba(0,194,255,.03));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    user-select: none; pointer-events: none;
}
.rs-en {
    position: relative; font-family: var(--font-num); font-size: 12.5px; font-weight: 700;
    letter-spacing: .28em; text-transform: uppercase; color: var(--cyan);
    margin-bottom: 10px;
}
.rs-title {
    position: relative; display: flex; align-items: center; gap: 14px;
    font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; color: var(--navy);
    letter-spacing: .01em; margin-bottom: 16px;
}
.rs-title-icon {
    flex: 0 0 auto; display: inline-block; padding: 9px; box-sizing: content-box;
    width: 26px; height: 26px; border-radius: 12px; color: var(--blue);
    background: var(--grad-soft); border: 1px solid var(--line);
    transition: all .35s;
}
.rs-row:hover .rs-title-icon {
    background: var(--grad); color: #fff; border-color: transparent;
    box-shadow: 0 10px 24px rgba(30,111,246,.35); transform: rotate(-6deg);
}
.rs-desc { position: relative; font-size: 15px; color: var(--ink-2); max-width: 58ch; }

.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rs-tag {
    font-size: 12.5px; font-weight: 600; color: var(--blue);
    padding: 5px 13px; border-radius: 999px;
    background: var(--grad-soft); border: 1px solid rgba(30,111,246,.18);
    transition: all .25s;
}
.rs-row:hover .rs-tag { border-color: rgba(30,111,246,.4); }

.rs-hls { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rs-hls li {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: #fff;
    padding: 7px 14px; border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    box-shadow: 0 6px 16px rgba(10,36,99,.22);
}
.rs-hls svg { color: var(--cyan); flex: 0 0 auto; }

.rs-visual {
    position: relative; border-radius: 20px; overflow: hidden;
    aspect-ratio: 4 / 3; box-shadow: var(--shadow);
    transition: transform .45s cubic-bezier(.22,.8,.32,1), box-shadow .45s;
}
.rs-visual::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px;
    border: 1px solid rgba(30,111,246,.22); pointer-events: none;
}
.rs-row:hover .rs-visual { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.rs-visual img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.22,.8,.32,1);
}
.rs-row:hover .rs-visual img { transform: scale(1.05); }
.rs-visual-chip {
    position: absolute; left: 16px; bottom: 16px; z-index: 2;
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
    color: #fff; background: rgba(10,36,99,.55); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
}
.rs-visual-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: rgba(255,255,255,.92); background: var(--grad); overflow: hidden;
}
.rs-visual-fallback::before {
    content: ""; position: absolute; inset: 0; opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 75%);
}
.rs-visual-rings {
    position: absolute; width: 340px; height: 340px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 0 0 46px rgba(255,255,255,.05), 0 0 0 96px rgba(255,255,255,.04);
    animation: rs-rings 9s ease-in-out infinite alternate;
}
@keyframes rs-rings { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }
.rs-visual-wave {
    position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
    background:
        radial-gradient(120% 130% at 50% 120%, rgba(0,194,255,.5), transparent 60%);
    pointer-events: none;
}
.rs-visual-fallback svg { position: relative; filter: drop-shadow(0 8px 20px rgba(6,23,67,.45)); }

/* ---------- 组内成果 ---------- */
.ach-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.ach-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
    border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font-size: 15.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
    font-family: var(--font); transition: all .3s;
}
.ach-tab em { font-style: normal; font-size: 12px; padding: 1px 9px; border-radius: 999px; background: rgba(30,111,246,.1); color: var(--blue); font-family: var(--font-num); }
.ach-tab:hover { border-color: var(--blue); color: var(--blue); }
.ach-tab.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(30,111,246,.35); }
.ach-tab.on em { background: rgba(255,255,255,.22); color: #fff; }

.fade-enter-active, .fade-leave-active { transition: opacity .3s ease, transform .3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(12px); }

.paper-list { list-style: none; display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.paper-item {
    display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
    padding: 22px 26px; background: var(--bg-card); border-radius: var(--radius-sm);
    border: 1px solid var(--line); border-left: 4px solid var(--blue);
    transition: transform .3s, box-shadow .3s;
}
.paper-item:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.paper-year { font-size: 22px; font-weight: 800; color: var(--blue); font-family: var(--font-num); }
.paper-main h3 { font-size: 16.5px; color: var(--navy); line-height: 1.5; margin-bottom: 6px; }
.paper-meta { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.paper-venue { font-style: italic; color: var(--blue-dark); font-weight: 600; }
.paper-doi {
    padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: var(--blue); border: 1.5px solid rgba(30,111,246,.4); white-space: nowrap;
    transition: all .25s;
}
.paper-doi:hover { background: var(--blue); color: #fff; }

.patent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.patent-card {
    position: relative; padding: 30px; background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.patent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.patent-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.patent-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--blue); background: var(--grad-soft); margin-bottom: 18px; }
.patent-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 16px; line-height: 1.55; }
.patent-card dl { display: grid; gap: 8px; }
.patent-card dl div { display: flex; gap: 10px; font-size: 14px; }
.patent-card dt { color: var(--ink-3); flex-shrink: 0; }
.patent-card dd { color: var(--ink); font-weight: 600; font-family: var(--font-num); letter-spacing: .03em; }

/* ---------- 成果页：统计卡 + 近10年柱状图 ---------- */
.ach-stats-section { padding-bottom: 40px; }
.ach-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.ach-stat {
    position: relative; padding: 30px 24px 26px; text-align: center;
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.ach-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.ach-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.ach-stat-num {
    display: block; font-size: clamp(36px, 4vw, 50px); font-weight: 900; line-height: 1.1;
    font-family: var(--font-num);
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ach-stat-label { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

.ach-chart {
    padding: 32px 36px 26px; background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ach-chart-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 24px; text-align: center; }
.ach-chart-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.ach-chart-bars {
    display: flex; align-items: flex-end; gap: 18px; min-width: 640px;
    height: 220px; padding: 0 8px; border-bottom: 2px solid var(--line);
}
.ach-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.ach-bars { flex: 1; display: flex; align-items: flex-end; gap: 5px; width: 100%; justify-content: center; }
.ach-bar {
    position: relative; width: 22px; max-width: 30px; border-radius: 5px 5px 0 0;
    height: var(--h); transform: scaleY(0); transform-origin: bottom;
    transition: transform .8s cubic-bezier(.22,.8,.32,1); transition-delay: var(--d, 0ms);
}
.ach-chart.in-view .ach-bar { transform: scaleY(1); }
.ach-bar-paper { background: linear-gradient(to top, var(--navy), var(--blue)); }
.ach-bar-patent { background: linear-gradient(to top, #0FA3E8, var(--cyan)); }
/* hover tooltip */
.ach-bar::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(4px); white-space: nowrap;
    padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
    color: #fff; background: rgba(10,36,99,.92); box-shadow: 0 6px 18px rgba(10,36,99,.3);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5;
}
.ach-bar:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.ach-bar:hover { filter: brightness(1.18); }
.ach-bar-label { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); font-family: var(--font-num); }
.ach-chart-legend { display: flex; justify-content: center; gap: 28px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ach-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-paper { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.dot-patent { background: linear-gradient(135deg, #0FA3E8, var(--cyan)); }

/* 论文按年份分组 */
.paper-year-block { margin-bottom: 36px; }
.paper-year-head {
    display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px;
    border-bottom: 2px solid var(--line); padding-bottom: 10px;
}
.paper-year-head span {
    font-size: 30px; font-weight: 900; font-family: var(--font-num);
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.paper-year-head em { font-style: normal; font-size: 13px; padding: 2px 12px; border-radius: 999px; background: rgba(30,111,246,.1); color: var(--blue); font-weight: 700; font-family: var(--font-num); }
.tier1-badge {
    display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 10px;
    border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
    color: #fff; background: linear-gradient(135deg, #F59E0B, #E63946);
    box-shadow: 0 3px 10px rgba(230,57,70,.3);
}

/* 专利卡（名称 + 类型 + 年份） */
.patent-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.patent-type-badge {
    padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 800;
    color: var(--blue); background: rgba(30,111,246,.09); border: 1px solid rgba(30,111,246,.25);
}
.patent-year { font-size: 20px; font-weight: 800; color: var(--ink-3); font-family: var(--font-num); }

/* ---------- 成员空状态 ---------- */
.member-empty {
    max-width: 560px; margin: 0 auto; text-align: center; padding: 52px 36px;
    border: 2px dashed rgba(30,111,246,.4); border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30,111,246,.04), rgba(0,194,255,.05));
}
.member-empty-icon {
    display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px;
    border-radius: 50%; color: var(--blue);
    background: var(--grad-soft); border: 1.5px solid rgba(30,111,246,.25);
}
.member-empty h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.member-empty p { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }

/* ---------- 新闻页多版式 ---------- */
.news-block-title { margin-bottom: 30px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border-radius: 999px; font-size: 16px; font-weight: 800; color: #fff; }
.cat-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.chip-focus { background: linear-gradient(135deg, #E63946, #B01E28); }
.chip-updates { background: var(--grad); }
.chip-notice { background: linear-gradient(135deg, #0A2463, #1557C8); }

.focus-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.focus-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.focus-card-lead { grid-row: span 2; }
.focus-thumb { display: block; position: relative; height: 100%; min-height: 240px; }
.focus-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .7s; }
.focus-card:hover .focus-thumb img { transform: scale(1.05); }
.focus-overlay {
    position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
    height: 100%; min-height: inherit; padding: 28px; color: #fff;
    background: linear-gradient(to top, rgba(6,23,67,.92) 0%, rgba(6,23,67,.35) 55%, transparent 100%);
}
.focus-overlay time { font-size: 12.5px; color: var(--cyan); font-family: var(--font-num); letter-spacing: .1em; margin-bottom: 8px; }
.focus-overlay h3 { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.focus-card-lead .focus-overlay h3 { font-size: 25px; }
.focus-overlay p { font-size: 13.5px; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-updates-section { background: #fff; }
.updates-list { display: grid; gap: 20px; max-width: 900px; }
.update-item {
    display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px;
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.update-item:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.update-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/2; }
.update-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.update-item:hover .update-thumb img { transform: scale(1.07); }
.update-body { padding: 6px 6px 6px 0; }
.update-body h3 { font-size: 18px; margin: 6px 0 8px; }
.update-body h3 a { color: var(--navy); }
.update-body h3 a:hover { color: var(--blue); }
.update-body p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.update-more { font-size: 13.5px; font-weight: 700; }

.notice-list { list-style: none; max-width: 860px; display: grid; gap: 12px; }
.notice-list a {
    display: flex; align-items: center; gap: 16px; padding: 18px 24px;
    background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--line);
    color: var(--ink); transition: all .3s;
}
.notice-list a:hover { border-color: rgba(30,111,246,.45); box-shadow: var(--shadow-hover); transform: translateX(6px); }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(30,111,246,.12); }
.notice-title { flex: 1; font-weight: 600; font-size: 15.5px; color: var(--navy); }
.notice-list time { color: var(--ink-3); font-size: 13px; font-family: var(--font-num); }

/* ---------- 成员页 ---------- */
.member-tabs-wrap {
    position: sticky; top: 72px; z-index: 90;
    background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.member-tabs-wrap.stuck { box-shadow: 0 8px 24px rgba(10,36,99,.1); }
.member-tabs {
    display: flex; gap: 4px; padding: 10px 0;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* 两端渐变遮罩，提示可横向滑动 */
    mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.member-tabs::-webkit-scrollbar { display: none; }
.member-tab {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
    font-size: 14.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
    scroll-snap-align: center; flex-shrink: 0;
    transition: all .3s;
}
.member-tab em { font-style: normal; font-size: 11.5px; padding: 0 8px; border-radius: 999px; background: rgba(30,111,246,.1); color: var(--blue); font-family: var(--font-num); }
.member-tab:hover { color: var(--blue); background: rgba(30,111,246,.07); }
.member-tab.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(30,111,246,.35); }
.member-tab.on em { background: rgba(255,255,255,.22); color: #fff; }

.member-section { padding: 64px 0; }
.member-group-title {
    display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800; color: var(--navy); margin-bottom: 36px;
}
.member-group-title em { font-style: normal; font-size: 14px; padding: 2px 12px; border-radius: 999px; background: rgba(30,111,246,.1); color: var(--blue); font-family: var(--font-num); }
.group-deco { width: 6px; height: 30px; border-radius: 3px; background: var(--grad); flex-shrink: 0; }

.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* PI 加宽横向专属版式 */
.pi-wide-list { display: grid; gap: 28px; max-width: 980px; margin: 0 auto; }
.pi-wide-card {
    position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center;
    padding: 44px 48px; background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.pi-wide-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.pi-wide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pi-wide-photo { position: relative; }
.pi-wide-photo img {
    width: 100%; height: auto; object-fit: contain; border-radius: var(--radius);
    position: relative; z-index: 1; box-shadow: 0 14px 34px rgba(10,36,99,.18);
}
.pi-wide-glow { position: absolute; inset: -14px; border-radius: 24px; background: var(--grad); opacity: .16; filter: blur(20px); }
.pi-wide-info h3 { font-size: 30px; color: var(--navy); margin-bottom: 4px; }
.pi-wide-title { color: var(--blue); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.pi-wide-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.pi-wide-tags span {
    padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--blue); background: rgba(30,111,246,.08); border: 1px solid rgba(30,111,246,.2);
}
.pi-wide-bio { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.pi-wide-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.pi-wide-link {
    display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
    color: var(--ink-2); transition: color .25s;
}
.pi-wide-link:hover { color: var(--blue); }
.member-card {
    position: relative; padding: 30px 20px 26px; text-align: center;
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.member-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.member-photo { position: relative; width: 108px; margin: 0 auto 18px; }
.member-photo img {
    width: 108px; height: 108px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1;
    border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(30,111,246,.3), 0 10px 24px rgba(10,36,99,.15);
    transition: transform .35s;
}
.member-card:hover .member-photo img { transform: scale(1.06); }
.member-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.member-sub { font-size: 13.5px; color: var(--blue); font-weight: 600; min-height: 1.4em; }
/* 光效扫过 */
.member-shine {
    position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(0,194,255,.16), rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .7s ease; pointer-events: none;
}
.member-card:hover .member-shine { left: 130%; }
.member-card-pi { padding: 38px 28px 32px; }
.member-card-pi .member-photo, .member-card-pi .member-photo img { width: 132px; height: 132px; }
/* 卡片辅助信息：细分隔线 + 研究方向 */
.member-divider {
    display: block; width: 44px; height: 1.5px; margin: 12px auto 10px;
    background: linear-gradient(to right, transparent, rgba(30,111,246,.45), transparent);
}
.member-field { font-size: 12.5px; color: var(--ink-3); letter-spacing: .03em; }

/* 往届毕业生时间轴 */
.alumni-timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 40px; }
.alumni-timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--cyan), var(--blue)); border-radius: 2px; }
.alumni-item { position: relative; padding-bottom: 22px; }
.alumni-item:last-child { padding-bottom: 0; }
.alumni-node {
    position: absolute; left: -37px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 4px solid var(--cyan); box-shadow: 0 0 0 5px rgba(0,194,255,.14);
}
.alumni-card {
    display: flex; align-items: center; gap: 20px; padding: 18px 24px;
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.alumni-card:hover { transform: translateX(8px); box-shadow: var(--shadow-hover); }
.alumni-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; box-shadow: 0 0 0 2px rgba(0,194,255,.35), 0 6px 16px rgba(10,36,99,.15); flex-shrink: 0; }
.alumni-info h3 { font-size: 17px; color: var(--navy); }
.alumni-year { font-size: 13px; color: var(--blue); font-weight: 700; font-family: var(--font-num); }
.alumni-dest { font-size: 14px; color: var(--ink-2); }

/* ---------- 相册 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
    border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3;
    transition: transform .35s, box-shadow .35s;
}
.gallery-item:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-hover); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff;
    background: linear-gradient(to top, rgba(6,23,67,.85), transparent);
    display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600;
    opacity: 0; transform: translateY(8px); transition: all .35s;
}
.gallery-item figcaption small { font-weight: 400; font-size: 11px; color: rgba(255,255,255,.6); }
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-zoom {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: rgba(10,36,99,.55); backdrop-filter: blur(6px);
    opacity: 0; transform: scale(.8); transition: all .35s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
    background: rgba(4, 16, 47, .92); backdrop-filter: blur(10px); outline: none;
}
.lb-stage { max-width: min(1000px, 88vw); text-align: center; }
.lb-stage img { max-height: 76vh; max-width: 100%; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.lb-stage figcaption { margin-top: 16px; color: #fff; font-size: 16px; font-weight: 600; }
.lb-stage figcaption em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 4px; font-family: var(--font-num); }
.lb-btn {
    position: absolute; z-index: 2; border: none; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border-radius: 50%;
    display: grid; place-items: center; transition: background .25s, transform .25s;
}
.lb-btn:hover { background: var(--blue); transform: scale(1.06); }
.lb-close { top: 26px; right: 26px; width: 46px; height: 46px; font-size: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 30px; line-height: 1; }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- 文章详情 ---------- */
/* 详情页 hero：badge / 标题 / 日期按文档流垂直排版（news-cat 全局为 absolute 角标，此处复位为静态） */
.single-banner .single-badge { margin-bottom: 18px; }
.single-banner .news-cat {
    position: static; display: inline-block; padding: 6px 16px; font-size: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.single-banner .single-title { margin-bottom: 14px; max-width: 900px; }
.single-banner .single-meta { color: rgba(255,255,255,.75); font-size: 14.5px; font-family: var(--font-num); letter-spacing: .08em; }
.single-container { max-width: 820px; }
.single-article { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; padding-bottom: 36px; }
.single-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.single-content { padding: 36px 44px 10px; font-size: 16.5px; color: var(--ink); }
.single-content p { margin-bottom: 1.2em; }
.single-back { margin: 20px 44px 0; }

/* ---------- 新闻正文（导入文章） ---------- */
.article-content { line-height: 1.85; }
.article-content h3 {
    margin: 1.6em 0 .8em; padding-left: 12px;
    border-left: 4px solid var(--blue); color: var(--navy); font-size: 20px;
}
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--blue-dark); }
.article-content .news-fig { margin: 1.6em auto; text-align: center; }
.article-content .news-fig img {
    max-width: 100%; height: auto; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(10, 36, 99, .12);
}
.article-content .news-fig figcaption {
    margin-top: 10px; color: var(--ink-2); font-size: 13.5px;
}
.article-content .news-source {
    margin-top: 2.2em; padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--ink-2); font-size: 13.5px;
}

/* ---------- 404 / 分页 ---------- */
.section-404 { min-height: 60vh; display: grid; place-items: center; }
.center-404 { text-align: center; }
.code-404 {
    font-size: clamp(90px, 16vw, 160px); font-weight: 900; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 16px; font-family: var(--font-num);
}
.center-404 h1 { color: var(--navy); margin-bottom: 10px; }
.center-404 p { color: var(--ink-2); margin-bottom: 28px; }
.pagination { margin-top: 40px; text-align: center; }
.empty-hint { color: var(--ink-3); text-align: center; padding: 60px 0; }

/* ============================================================
   响应式：平板 768–1199
   ============================================================ */
@media (max-width: 1199px) {
    .ach-stats { grid-template-columns: repeat(2, 1fr); }
    .news-cards { grid-template-columns: repeat(2, 1fr); }
    .rs-row { grid-template-columns: 1fr; gap: 28px; }
    .rs-rev .rs-body { order: 1; }
    .rs-rev .rs-visual { order: 2; }
    .rs-visual { aspect-ratio: 16 / 9; }
    .rs-num { top: -20px; }
    .member-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .friend-links, .friend-links[data-cols] { grid-template-columns: repeat(3, 1fr); max-width: none; }
    .about-grid { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-about { grid-column: span 2; }
    .focus-grid { grid-template-columns: 1fr; }
    .focus-card-lead { grid-row: auto; }
    .focus-thumb { min-height: 300px; }
    .pi-card { grid-template-columns: 240px 1fr; gap: 36px; padding: 36px; }
    .pi-wide-card { grid-template-columns: 220px 1fr; gap: 32px; padding: 36px; }
    .pi-wide-info h3 { font-size: 26px; }
}

/* ============================================================
   响应式：手机 <768
   ============================================================ */
@media (max-width: 767px) {
    .section { padding: 60px 0; }
    .ach-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ach-stat { padding: 22px 14px 18px; }
    .ach-chart { padding: 22px 16px 16px; }
    .ach-chart-bars { min-width: 560px; height: 180px; gap: 12px; }
    .ach-bar { width: 16px; }
    .paper-year-head span { font-size: 24px; }
    .header-inner { height: 62px; }
    .brand-text small { display: none; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; top: 62px; left: 0; right: 0; z-index: 150;
        /* 注意：不能用 bottom:0 —— sticky 毛玻璃 header 的 backdrop-filter 会创建包含块，
           使 fixed 相对 header 定位导致抽屉高度塌陷；改用视口高度显式计算 */
        height: calc(100dvh - 62px);
        flex-direction: column; align-items: stretch; gap: 0;
        /* 接近不透明的深色实底毛玻璃，彻底隔绝背后 hero 内容干扰 */
        background: rgba(10, 22, 50, .98);
        backdrop-filter: blur(28px) saturate(1.3);
        -webkit-backdrop-filter: blur(28px) saturate(1.3);
        border-bottom: 1px solid rgba(0,194,255,.18);
        box-shadow: 0 30px 60px rgba(4,16,47,.5);
        padding: 18px 6% 32px;
        overflow-y: auto; overscroll-behavior: contain;
        transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .3s ease;
    }
    .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-menu a {
        padding: 15px 18px; border-radius: var(--radius-sm); font-size: 16.5px;
        color: rgba(255,255,255,.92); /* 深底白字，对比度 > 7:1 */
        border: 1px solid transparent;
    }
    .nav-menu a:hover { color: #fff; background: rgba(30,111,246,.25); border-color: rgba(0,194,255,.25); }
    .nav-menu .current-menu-item a, .nav-menu a[aria-current="page"] {
        color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(30,111,246,.4);
    }
    .lang-switch { margin-top: 16px; align-self: center; }
    .lang-opt {
        min-width: 64px; padding: 13px 18px; font-size: 15px;
        color: #fff;
    }
    .lang-opt + .lang-opt { border-left-color: rgba(0,194,255,.35); }
    .lang-opt:hover { color: #fff; background: rgba(255,255,255,.08); }
    .lang-opt.active { color: #fff; }
    /* 抽屉打开时锁定页面滚动（JS 加类） */
    body.nav-drawer-open { overflow: hidden; }
    .member-tabs-wrap { top: 62px; }

    .hero { min-height: calc(100svh - 62px); }
    .hero-content { padding: 60px 0 110px; }
    .hero-scroll-hint { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .about-points { grid-template-columns: 1fr; }

    .pi-card { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .pi-photo { max-width: 200px; margin: 0 auto; }
    .pi-tags { justify-content: center; }
    .pi-wide-card { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; gap: 24px; }
    .pi-wide-photo { max-width: 200px; margin: 0 auto; }
    .pi-wide-tags, .pi-wide-links { justify-content: center; }

    .news-cards { grid-template-columns: 1fr; }
    .rs-section { padding-top: 48px; }
    .rs-row { padding: 36px 0; gap: 22px; }
    .rs-num { font-size: 64px; top: -12px; }
    .rs-title { flex-wrap: wrap; }
    .member-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .patent-grid { grid-template-columns: 1fr; }
    .friend-links, .friend-links[data-cols] { grid-template-columns: repeat(2, 1fr); max-width: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .update-item { grid-template-columns: 1fr; }
    .update-thumb { aspect-ratio: 16/9; }
    .paper-item { grid-template-columns: 1fr; gap: 10px; }
    .paper-doi { justify-self: start; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 32px; }
    .footer-about { grid-column: auto; }
    .footer-powered { float: none; display: block; margin-top: 6px; }
    .single-content { padding: 26px 22px 6px; }
    .single-back { margin: 16px 22px 0; }
    .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; }
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

@media (max-width: 420px) {
    .member-grid { grid-template-columns: 1fr 1fr; }
    .member-photo, .member-photo img { width: 88px; height: 88px; }
}
