@font-face {
  font-family: "InterVar";
  src: local("Inter"), local("Inter Regular");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 浅色主题 */
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --text: #1e2430;
  --text-muted: #374151;
  --brand: #2563eb; /* 蓝 */
  --brand-2: #10b981; /* 绿 */
  --card: #ffffff;
  --card-2: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --timing: cubic-bezier(0.22, 1, 0.36, 1);

  /* 终端主题 */
  --term-bg: #0b1020;
  --term-panel: #0f152b;
  --term-border: rgba(46, 61, 98, 0.55);
  --term-shadow: 0 24px 70px rgba(3, 8, 20, 0.7);
  --term-text: #e6edf3;
  --term-muted: #7d8fb3;
  --term-green: #22c55e;
  --term-cyan: #06b6d4;
  --term-yellow: #f59e0b;
  --term-red: #ef4444;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: InterVar, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* 使用自定义鼠标 */
}

.hidden { display: none; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../statics/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(1.05);
  transform: scale(1.06);
}

/* 流动大字特效 */
.flow-bands {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: overlay;
}
.flow-bands.on-hero { z-index: 1200; mix-blend-mode: normal; }
.flow-bands.on-main { z-index: 0; mix-blend-mode: normal; opacity: 0.55; }

.band {
  position: absolute;
  overflow: hidden;
}
.band-top {
  left: 0; right: 0; top: 22px;
  height: clamp(64px, 10vw, 120px);
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.band-left {
  top: 0; bottom: 0; left: 16px;
  width: clamp(120px, 14vw, 220px);
  display: flex; justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}
.band-right {
  top: 0; bottom: 0; right: 16px;
  width: clamp(120px, 14vw, 220px);
  display: flex; justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.band-inner {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  gap: 0;
  opacity: 0.8;
  backface-visibility: hidden;
}

.band-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  padding-inline: 4vw; /* 让两个 track 拼接处更自然 */
  color: rgba(37,99,235,0.16);
  text-shadow: 0 4px 12px rgba(17,24,39,0.18);
  font-weight: 800;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.16);
  backface-visibility: hidden;
}

/* 顶部水平流动（通过 inner 做无缝滚动） */
.band-top .band-inner {
  font-size: clamp(48px, 9vw, 108px);
  will-change: transform;
  transform: translateZ(0);
  animation-name: marquee-x;
  animation-duration: var(--band-speed, 24s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  contain: layout paint;
}

/* 侧边竖向流动（通过 inner 做无缝滚动） */
.band-left .band-inner, .band-right .band-inner {
  flex-direction: column;
  align-items: center;
  will-change: transform;
  transform: translateZ(0);
  animation-name: marquee-y;
  animation-duration: var(--side-speed, 24s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  contain: layout paint;
}
.band-left .band-track, .band-right .band-track {
  padding-block: 6vh;
  color: rgba(37,99,235,0.24);
  -webkit-text-stroke: 0.6px rgba(255,255,255,0.20);
  text-shadow: 0 6px 16px rgba(17,24,39,0.22);
}
.band-left .band-text, .band-right .band-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 1vh 0; /* 覆盖全局横向内边距，避免宽度过大 */
}

/* 加载阶段减轻两侧绘制开销，缓解快速流动卡顿 */
.flow-bands.on-hero .band-left .band-track,
.flow-bands.on-hero .band-right .band-track {
  color: rgba(37,99,235,0.16);
  -webkit-text-stroke: 0 rgba(255,255,255,0);
  text-shadow: none;
}

/* 加载阶段禁用侧边遮罩，减少合成开销 */
.flow-bands.on-hero .band-left,
.flow-bands.on-hero .band-right {
  -webkit-mask-image: none;
          mask-image: none;
}
.band-left .band-track, .band-right .band-track { padding-block: 6vh; }
.band-right .band-inner { animation-direction: reverse; }
.band-left .band-inner { font-size: clamp(40px, 8vh, 92px); }
.band-right .band-inner { font-size: clamp(40px, 8vh, 92px); }

.band-text { opacity: 1; padding: 0 2vw; }
.band-sep { opacity: 0.5; }

@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 使用更平滑的分段，以减轻某些浏览器在超快速线性滚动下的掉帧 */
@keyframes marquee-y {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -25%, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

/* 开场动画层 */
.hero {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 1200ms var(--timing);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../statics/bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  filter: blur(0px);
  transition: filter 2000ms var(--timing), transform 2400ms var(--timing), opacity 1200ms var(--timing);
}
.intro-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(55vw, 560px);
  max-width: 90vh;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: opacity 1600ms var(--timing), transform 2000ms var(--timing);
}

.hero.ready .intro-logo { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero.blur .hero-bg { filter: blur(16px); transform: scale(1.06); }
.hero.fade-out { opacity: 0; pointer-events: none; }
/* LOGO 上移过渡，使转入主页更平滑 */
.hero.move-up .intro-logo { transform: translate(-50%, -140%) scale(0.9); }

/* 头部与导航 */
.site-header {
  position: relative;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-top: 10vh;
}
.brand-logo {
  /* 放大约 3 倍，并避免横向溢出；使用固定高度以确保实际放大 */
  height: clamp(330px, 60vh, 720px);
  width: auto;
  max-width: 95vw;
  display: block;
  transition: transform 200ms ease, filter 200ms ease; /* 悬停反馈 */
}
.brand-logo:hover {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 10px 20px rgba(16,24,40,0.18)) saturate(1.04);
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nav-item {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, background-color 160ms ease, color 160ms ease;
}
.nav-item:hover { transform: translateY(-1px); }
.nav-item.is-active {
  background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(16,185,129,0.08));
  border-color: rgba(37,99,235,0.35);
}

/* 主内容与区块 */
.main { max-width: 1080px; margin: 20px auto; padding: 0 20px 40px; }
.main { position: relative; z-index: 10; }
.section { display: none; animation: sectionIn 360ms var(--timing); }
.section.section-active { display: block; }
@keyframes sectionIn { from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none;} }
.container { padding: 8px 0 18px; }
.muted { color: var(--text-muted); }

/* 介绍类板块：统一内容与文字居中（不影响新闻） */
#section-intro .container,
#section-research .container,
#section-members .container,
#section-join .container { text-align: center; }

/* 新闻卡片列表 */
.news-list { display: grid; gap: 14px; }
/* 让新闻列表也使用卡片网格对齐 */
.news-list { grid-template-columns: repeat(12, 1fr); }
.news-card { grid-column: span 12; }
@media (min-width: 640px) { .news-card { grid-column: span 12; } }
@media (min-width: 960px) { .news-card { grid-column: span 12; } }
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card-grid.centered { text-align: center; }
.glass-card {
  grid-column: span 12;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 46px rgba(17,24,39,0.14);
  border-color: rgba(37,99,235,0.35);
  background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(255,255,255,0.04));
}
@media (min-width: 640px) { .glass-card { grid-column: span 6; } }
@media (min-width: 960px) { .glass-card { grid-column: span 4; } }

/* Intro：一行一个且更大，文字居中 */
.intro-grid .glass-card { grid-column: span 12; text-align: center; padding: 24px 24px; }

/* News：一行一个且文字居中 */
.news-list { text-align: center; }
.news-card { text-align: center; }
.news-content { align-items: center; }
.news-title { text-align: center; }

/* Join：前两张一行一个，展开内容分栏 */
.join-grid > .glass-card { grid-column: span 12; text-align: center; }
/* 折叠区域作为网格子项需占满整行，避免内容被挤压 */
.card-grid > .collapsible { grid-column: span 12; }
.collapsible { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 420ms var(--timing), opacity 260ms ease; margin-top: 0; }
.collapsible.open { max-height: 4000px; opacity: 1; margin-top: 10px; }
.dept-grid .glass-card { grid-column: span 12; }
@media (min-width: 640px) { .dept-grid .glass-card { grid-column: span 6; } }
@media (min-width: 960px) { .dept-grid .glass-card { grid-column: span 4; } }
.news-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 160ms ease, box-shadow 160ms ease, background 300ms ease;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(17,24,39,0.12); }
.news-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.news-content { display: flex; flex-direction: column; gap: 6px; }
.news-title { font-size: 18px; margin: 0; }
.news-meta { color: var(--text-muted); font-size: 12px; }
.news-excerpt { color: var(--text); opacity: 1; margin: 0; }

@media (max-width: 640px) {
  .news-card { grid-template-columns: 1fr; }
  .news-cover { height: 220px; }
}

/* 新闻详情抽屉 */
.news-detail {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(0,0,0,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 60;
}
.news-detail[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.news-detail-panel {
  width: min(880px, 96vw);
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.9));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 20px 60px rgba(17,24,39,0.15);
  transform: translateY(24px);
  transition: transform 320ms var(--timing);
  overflow: hidden;
}
.news-detail[aria-hidden="false"] .news-detail-panel { transform: translateY(0); }
.icon-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 24px;
  cursor: pointer;
}
.news-detail-content { padding: 22px 20px 24px; overflow: auto; max-height: 80vh; }
.news-detail-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 28px rgba(2,6,23,0.18); }
.news-detail-meta { color: var(--text-muted); }
.news-detail-body { line-height: 1.75; }

/* 进入主站时头部与主体淡入（更平滑更久） */
.site-header.fade-in, .main.fade-in { animation: fadeIn 1000ms var(--timing) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }

/* 角落箭头层 */
.corner-arrows {
  position: fixed;
  inset: 0;
  z-index: 1250;
  pointer-events: none;
}
.corner-arrow {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid transparent;
  opacity: 0;
  transform: translate3d(0,0,0) scale(0.8);
}
.corner-arrow.tl { left: 16px; top: 16px; border-left-color: var(--term-cyan); border-top-color: var(--term-cyan); }
.corner-arrow.tr { right: 16px; top: 16px; border-right-color: var(--term-cyan); border-top-color: var(--term-cyan); }
.corner-arrow.bl { left: 16px; bottom: 16px; border-left-color: var(--term-cyan); border-bottom-color: var(--term-cyan); }
.corner-arrow.br { right: 16px; bottom: 16px; border-right-color: var(--term-cyan); border-bottom-color: var(--term-cyan); }
.corner-arrows.show .corner-arrow { opacity: 1; animation: arrowPulse 1200ms ease both; }
.corner-arrows.show .corner-arrow.tr { animation-delay: 60ms; }
.corner-arrows.show .corner-arrow.bl { animation-delay: 120ms; }
.corner-arrows.show .corner-arrow.br { animation-delay: 180ms; }
@keyframes arrowPulse {
  0% { opacity: 0; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* 终端抽屉 */
.terminal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--timing);
  z-index: 1300;
}
.terminal-overlay[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.terminal-panel {
  width: min(1000px, 96vw);
  height: min(70vh, 680px);
  background: radial-gradient(120% 120% at 0% 0%, rgba(6,182,212,0.06), transparent 30%),
              radial-gradient(120% 120% at 100% 0%, rgba(34,197,94,0.06), transparent 30%),
              var(--term-panel);
  border: 1px solid var(--term-border);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--term-shadow);
  transform: translateY(100%);
  transition: transform 420ms var(--timing);
  overflow: hidden;
}
.terminal-overlay[aria-hidden="false"] .terminal-panel { transform: translateY(0); }
.terminal-body {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}
.terminal-output {
  padding: 16px 18px 10px;
  color: var(--term-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
}
.terminal-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px 12px;
  border-top: 1px solid var(--term-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
}
.prompt { color: var(--term-green); font-weight: 600; }
.terminal-input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--term-text);
  font: inherit;
}
.terminal-output .info { color: var(--term-muted); }
.terminal-output .ok { color: var(--term-green); }
.terminal-output .warn { color: var(--term-yellow); }
.terminal-output .err { color: var(--term-red); }

/* 自定义鼠标与拖尾 */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 1400;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #22d3ee, #0ea5e9);
  box-shadow: 0 0 10px rgba(56,189,248,0.8), 0 0 20px rgba(56,189,248,0.4);
}
.cursor-ring {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(56,189,248,0.7);
  box-shadow: inset 0 0 20px rgba(56,189,248,0.25);
  transition: transform 140ms ease, opacity 140ms ease;
}
.cursor-ring.active { transform: scale(0.82); }
.cursor-ring.hide, .cursor-dot.hide { opacity: 0; }

/* 可点击元素高亮时放大环 */
[role="button"], button, a, .brand-logo { cursor: none; }
.is-clickable { outline: none; }

/* 点击粒子画布 */
.click-canvas {
  position: fixed;
  inset: 0;
  z-index: 1399; /* 在自定义光标之下 */
  pointer-events: none;
}

/* 成员卡片网格与样式 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.member-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.member-card:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(17,24,39,0.14); border-color: rgba(37,99,235,0.35); }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.22); }
.member-info { display: grid; gap: 4px; }
.member-name { font-weight: 700; }
.member-desc { color: var(--text-muted); font-size: 14px; }
/* 会长期：在名称右侧小筹标展示年份 */
.member-badge { font-size: 12px; color: #2563eb; background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.25); padding: 2px 6px; border-radius: 999px; margin-left: 8px; }
@media (min-width: 640px) { .member-card { grid-column: span 6; } }
@media (min-width: 960px) { .member-card { grid-column: span 4; } }

/* ===== 移动端响应式优化 ===== */

/* 基础移动端优化 */
@media (max-width: 768px) {
  /* 调整根字体大小，确保移动端可读性 */
  html { font-size: 14px; }
  
  /* 优化容器间距 */
  .container { padding: 6px 0 14px; }
  .main { padding: 0 16px 30px; margin: 16px auto; }
  
  /* 调整卡片间距 */
  .card-grid { gap: 12px; }
  .glass-card { padding: 14px 16px; }
  
  /* 优化头部布局 */
  .header-inner { 
    padding: 12px 16px; 
    margin-top: 8vh;
    gap: 8px;
  }
  
  /* 调整LOGO大小 */
  .brand-logo { 
    height: clamp(280px, 50vh, 600px);
    max-width: 90vw;
  }
  
  /* 优化导航按钮 */
  .main-nav { 
    gap: 4px; 
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  .nav-item {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
  }
  
  /* 调整流动文字特效在移动端的表现 */
  .band-top {
    top: 16px;
    height: clamp(48px, 8vw, 80px);
  }
  
  .band-left, .band-right {
    width: clamp(80px, 10vw, 160px);
  }
  
  .band-top .band-inner {
    font-size: clamp(36px, 7vw, 72px);
  }
  
  .band-left .band-inner, .band-right .band-inner {
    font-size: clamp(32px, 6vh, 64px);
  }
  
  /* 优化新闻卡片在移动端的布局 */
  .news-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  
  .news-cover {
    height: 200px;
    width: 100%;
  }
  
  .news-content {
    text-align: center;
    gap: 8px;
  }
  
  .news-title {
    font-size: 16px;
    margin: 0 0 4px 0;
  }
  
  /* 优化成员卡片在移动端的布局 */
  .member-card {
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .member-avatar {
    width: 60px;
    height: 60px;
  }
  
  .member-name {
    font-size: 14px;
  }
  
  .member-desc {
    font-size: 12px;
  }
  
  /* 优化终端在移动端的显示 */
  .terminal-panel {
    width: 96vw;
    height: 80vh;
    border-radius: 16px 16px 0 0;
  }
  
  .terminal-output {
    padding: 12px 14px 8px;
    font-size: 13px;
  }
  
  .terminal-form {
    padding: 6px 10px 12px 10px;
  }
  
  /* 优化新闻详情在移动端的显示 */
  .news-detail-panel {
    width: 96vw;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
  
  .news-detail-content {
    padding: 18px 16px 20px;
  }
  
  .news-detail-image {
    max-height: 280px;
  }
  
  /* 优化角落箭头在移动端的位置 */
  .corner-arrow {
    width: 20px;
    height: 20px;
  }
  
  .corner-arrow.tl { left: 12px; top: 12px; }
  .corner-arrow.tr { right: 12px; top: 12px; }
  .corner-arrow.bl { left: 12px; bottom: 12px; }
  .corner-arrow.br { right: 12px; bottom: 12px; }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  html { font-size: 13px; }
  
  .main { padding: 0 12px 24px; margin: 12px auto; }
  .container { padding: 4px 0 12px; }
  
  .header-inner {
    padding: 10px 12px;
    margin-top: 6vh;
  }
  
  .brand-logo {
    height: clamp(240px, 45vh, 500px);
    max-width: 85vw;
  }
  
  .nav-item {
    padding: 5px 10px;
    font-size: 12px;
    min-width: 50px;
  }
  
  .glass-card {
    padding: 12px 14px;
  }
  
  .card-grid {
    gap: 10px;
  }
  
  /* 进一步优化流动文字特效 */
  .band-top {
    top: 12px;
    height: clamp(40px, 6vw, 64px);
  }
  
  .band-left, .band-right {
    width: clamp(60px, 8vw, 120px);
  }
  
  .band-top .band-inner {
    font-size: clamp(28px, 5.5vw, 56px);
  }
  
  .band-left .band-inner, .band-right .band-inner {
    font-size: clamp(24px, 5vh, 48px);
  }
  
  /* 优化新闻卡片 */
  .news-card {
    padding: 10px;
    gap: 10px;
  }
  
  .news-cover {
    height: 180px;
  }
  
  .news-title {
    font-size: 15px;
  }
  
  /* 优化成员卡片 */
  .member-card {
    grid-template-columns: 50px 1fr;
    gap: 8px;
    padding: 8px 10px;
  }
  
  .member-avatar {
    width: 50px;
    height: 50px;
  }
  
  .member-name {
    font-size: 13px;
  }
  
  .member-desc {
    font-size: 11px;
  }
  
  /* 优化终端 */
  .terminal-panel {
    width: 98vw;
    height: 85vh;
  }
  
  .terminal-output {
    padding: 10px 12px 6px;
    font-size: 12px;
  }
  
  .terminal-form {
    padding: 5px 8px 10px 8px;
  }
  
  /* 优化新闻详情 */
  .news-detail-panel {
    width: 98vw;
    max-height: 90vh;
  }
  
  .news-detail-content {
    padding: 16px 14px 18px;
  }
  
  .news-detail-image {
    max-height: 240px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
  html { font-size: 12px; }
  
  .main { padding: 0 10px 20px; margin: 10px auto; }
  
  .header-inner {
    padding: 8px 10px;
    margin-top: 5vh;
  }
  
  .brand-logo {
    height: clamp(200px, 40vh, 400px);
    max-width: 80vw;
  }
  
  .nav-item {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 45px;
  }
  
  .glass-card {
    padding: 10px 12px;
  }
  
  .card-grid {
    gap: 8px;
  }
  
  /* 流动文字特效最小化 */
  .band-top {
    top: 8px;
    height: clamp(32px, 5vw, 48px);
  }
  
  .band-left, .band-right {
    width: clamp(50px, 6vw, 100px);
  }
  
  .band-top .band-inner {
    font-size: clamp(24px, 4.5vw, 44px);
  }
  
  .band-left .band-inner, .band-right .band-inner {
    font-size: clamp(20px, 4vh, 40px);
  }
  
  .news-card {
    padding: 8px;
    gap: 8px;
  }
  
  .news-cover {
    height: 160px;
  }
  
  .member-card {
    grid-template-columns: 45px 1fr;
    gap: 6px;
    padding: 6px 8px;
  }
  
  .member-avatar {
    width: 45px;
    height: 45px;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .header-inner {
    margin-top: 4vh;
    gap: 6px;
  }
  
  .brand-logo {
    height: clamp(200px, 35vh, 400px);
  }
  
  .main-nav {
    gap: 3px;
  }
  
  .nav-item {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .main {
    margin: 12px auto;
    padding: 0 16px 20px;
  }
  
  .section {
    margin-bottom: 16px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 禁用自定义鼠标在触摸设备上 */
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  
  /* 恢复默认光标 */
  body {
    cursor: auto;
  }
  
  [role="button"], button, a, .brand-logo {
    cursor: pointer;
  }
  
  /* 优化触摸交互 */
  .nav-item, .glass-card, .news-card, .member-card {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    touch-action: manipulation;
  }
  
  /* 触摸反馈效果 */
  .nav-item:active,
  .glass-card:active,
  .news-card:active,
  .member-card:active {
    transform: scale(0.98);
    transition: transform 100ms ease;
  }
  
  /* 优化触摸滚动 */
  .terminal-output,
  .news-detail-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* 触摸设备上的悬停效果替代 */
  .glass-card:hover,
  .news-card:hover,
  .member-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(17,24,39,0.08);
    border-color: rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  }
  
  .nav-item:hover {
    transform: none;
  }
  
  .brand-logo:hover {
    transform: none;
    filter: none;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass-card,
  .news-card,
  .member-card {
    border-width: 0.5px;
  }
  
  .nav-item {
    border-width: 0.5px;
  }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .flow-bands {
    animation-play-state: paused;
  }
  
  .corner-arrows.show .corner-arrow {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-2: #1e293b;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --card: rgba(30, 41, 59, 0.8);
    --card-2: rgba(15, 23, 42, 0.6);
    --border: rgba(148, 163, 184, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .glass-card,
  .news-card,
  .member-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.6));
    border-color: rgba(148, 163, 184, 0.2);
  }
  
  .news-detail-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.9));
  }
}



/* 打印样式优化 */
@media print {
  .flow-bands,
  .hero,
  .corner-arrows,
  .terminal-overlay,
  .cursor-dot,
  .cursor-ring,
  .click-canvas {
    display: none !important;
  }
  
  .page-bg {
    filter: none;
    transform: none;
  }
  
  .glass-card,
  .news-card,
  .member-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .site-header {
    min-height: auto;
    margin-bottom: 20px;
  }
  
  .brand-logo {
    height: 120px;
  }
}

/* 移动端触摸优化 */
.mobile-device .glass-card,
.mobile-device .nav-item,
.mobile-device .news-card,
.mobile-device .member-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.mobile-device .glass-card:active,
.mobile-device .nav-item:active,
.mobile-device .news-card:active,
.mobile-device .member-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}



/* 移动端PWA模式优化 */
.pwa-mode .site-header {
  padding-top: env(safe-area-inset-top);
}

.pwa-mode .main {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 低电量模式 */
.low-battery .flow-bands {
  opacity: 0.4;
}

.low-battery .corner-arrows {
  opacity: 0.3;
}

/* 慢网络模式 */
.slow-network .flow-bands {
  animation-play-state: paused;
}

.slow-network .corner-arrows {
  display: none;
}

/* 移动端滚动条优化 */
.mobile-device ::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.mobile-device ::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-device ::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 2px;
}

.mobile-device ::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* 移动端输入优化 */
.mobile-device input,
.mobile-device textarea {
  font-size: 16px; /* 防止iOS缩放 */
  -webkit-appearance: none;
  border-radius: 0;
}

.mobile-device .terminal-input {
  font-size: 14px;
}

/* 移动端触摸区域优化 */
.mobile-device .nav-item {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-device .glass-card[role="button"] {
  min-height: 60px;
  cursor: pointer;
}

/* 移动端动画性能优化 */
@media (max-width: 768px) {
  .flow-bands {
    will-change: auto;
  }
  
  .corner-arrows {
    will-change: auto;
  }
  
  .glass-card {
    will-change: auto;
  }
}

/* 移动端深色模式优化 */


/* 移动端横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-device .site-header {
    padding: 8px 16px;
  }
  
  .mobile-device .main {
    margin: 8px auto;
    padding: 0 16px 16px;
  }
  
  .mobile-device .flow-bands {
    opacity: 0.2;
  }
  
  .mobile-device .corner-arrows {
    display: none;
  }
}

/* 移动端超小屏幕优化 */
@media (max-width: 320px) {
  .mobile-device .header-inner {
    padding: 8px 12px;
  }
  
  .mobile-device .brand-logo {
    width: 32px;
    height: 32px;
  }
  
  .mobile-device .nav-item {
    font-size: 11px;
    padding: 6px 8px;
    min-width: 36px;
    min-height: 36px;
  }
  
  .mobile-device .main {
    padding: 0 8px 16px;
    margin: 8px auto;
  }
  
  .mobile-device .container {
    padding: 4px 0 8px;
  }
  
  .mobile-device .glass-card {
    padding: 12px 12px;
  }
  
  .mobile-device .card-grid {
    gap: 8px;
  }
}

/* 移动端触摸反馈动画 */
@keyframes touchRipple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.mobile-device .touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  pointer-events: none;
  animation: touchRipple 0.6s ease-out;
}

/* 移动端加载状态优化 */
.mobile-device .loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-muted);
}

.mobile-device .loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 移动端无障碍优化 */
.mobile-device .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 移动端焦点管理 */
.mobile-device .glass-card:focus-visible,
.mobile-device .nav-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 移动端触摸延迟优化 */
.mobile-device * {
  touch-action: manipulation;
}

/* 移动端字体渲染优化 */
.mobile-device {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 移动端图片优化 */
.mobile-device img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 移动端链接优化 */
.mobile-device a {
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.3);
}

/* 移动端表单优化 */
.mobile-device form {
  -webkit-user-select: none;
  user-select: none;
}

/* 移动端选择文本优化 */
.mobile-device .selectable {
  -webkit-user-select: text;
  user-select: text;
}

/* 移动端滚动优化 */
.mobile-device .smooth-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* 移动端性能监控提示 */
.mobile-device .performance-hint {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  z-index: 1000;
  opacity: 0.8;
}

/* 移动端网络状态提示 */
.mobile-device .network-status {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  z-index: 1000;
  opacity: 0.8;
}

/* 移动端电池状态提示 */
.mobile-device .battery-status {
  position: fixed;
  top: 40px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  z-index: 1000;
  opacity: 0.8;
}

.low-battery .battery-status {
  background: rgba(239, 68, 68, 0.9);
}

/* 离线状态样式 */
.offline .flow-bands {
  opacity: 0.2;
  animation-play-state: paused;
}

.offline .corner-arrows {
  opacity: 0.2;
}

.offline .glass-card {
  opacity: 0.8;
}

/* 错误提示样式 */
.error-hint {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 在线/离线提示样式 */
.online-hint,
.offline-hint {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 移动端触摸反馈增强 */
.mobile-device .glass-card:active::after,
.mobile-device .nav-item:active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* 移动端加载状态 */
.mobile-device .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mobile-device .loading-spinner-large {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 移动端无障碍增强 */
.mobile-device .focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 移动端深色模式适配 */
@media (prefers-color-scheme: dark) {
  .mobile-device .loading-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .mobile-device .error-hint,
  .mobile-device .online-hint,
  .mobile-device .offline-hint {
    backdrop-filter: blur(10px);
  }
}

/* 移动端打印样式 */
@media print {
  .mobile-device .mobile-status,
  .mobile-device .error-hint,
  .mobile-device .online-hint,
  .mobile-device .offline-hint {
    display: none !important;
  }
}

