/* ==============================================
   Gallery v2 — 画廊轻展 高级版
   Bento Grid · 大留白 · 沉浸层次
   ============================================== */

.gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) var(--space-xl) var(--space-3xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-auto-rows: auto;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ─── 通用卡片（高级玻璃） ─── */
.gallery-card {
  background: var(--glass-base);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: var(--space-xl);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* 鼠标跟随光晕 */
.gallery-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,92,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
}
.gallery-card:hover::after { opacity: 1; }

/* 旋转光晕底纹 */
.gallery-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(124,92,255,0.02), transparent, rgba(251,191,36,0.015), transparent);
  animation: cardRotate 12s linear infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.gallery-card:hover::before { opacity: 1; }
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

@keyframes cardRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aurora-3);
  margin-bottom: var(--space-sm);
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dawn-300);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}
.card-link:hover { gap: 10px; }

/* ════════════════════════════════════ */
/* 品牌信标（Hero 级）                  */
/* ════════════════════════════════════ */
.card-brand {
  grid-column: 1 / 3;
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) var(--space-2xl);
  min-height: 340px;
  position: relative;
}

.card-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.15), rgba(251,191,36,0.10), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.card-brand:hover::before { opacity: 1; }

.brand-icon-area {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 28px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-icon-area img,
.brand-icon-area video {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  object-fit: cover;
}
.brand-icon-area video {
  border: none;
  outline: none;
  background: transparent;
  pointer-events: none;
  display: block;
}

/* 亮色：正常混合，视频底色已校正为 #faf8f5 */
[data-theme="light"] .brand-icon-area video {
  mix-blend-mode: normal;
}

[data-theme="dark"] .brand-icon-area video {
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* 品牌区域光晕（去除，视频自身提供视觉） */
.brand-icon-area::after { display: none; }

.brand-text-area { flex: 1; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(124,92,255,0.08);
  border: 1px solid var(--glass-border);
  color: var(--aurora-3);
  margin-bottom: var(--space-md);
}
.badge-pill svg { width: 12px; height: 12px; }

.brand-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-md);
}
.brand-headline .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 420px;
}

.brand-btns {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ════════════════════════════════════ */
/* 最新动态（轮播）                      */
/* ════════════════════════════════════ */
.card-news {
  grid-column: 3 / 4;
  display: flex;
  flex-direction: column;
}

.news-carousel-mini {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
  border-radius: 14px;
}
.news-track-mini {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.news-mini-slide {
  min-width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.news-mini-slide:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}
.news-mini-slide .nms-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-mini-slide .nms-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.news-placeholder {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px;
}

.news-dots-mini {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.news-dots-mini .ndot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}
.news-dots-mini .ndot.active {
  width: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3));
}

/* ════════════════════════════════════════════════
   浮动招新卡片 — 铃铛小球 → 抽屉展开
   ════════════════════════════════════════════════ */

/* ─── 铃铛小球（休眠态） ─── */
.recruit-float {
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(124,92,255,0.10));
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1.5px solid rgba(124,92,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(124,92,255,0.15), 0 1px 0 rgba(255,255,255,0.04) inset;
  user-select: none;
  -webkit-user-select: none;
}

.recruit-float .rf-bell {
  width: 22px;
  height: 22px;
  color: var(--aurora-3);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

/* 铃铛光晕脉冲 */
.recruit-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.08), transparent 70%);
  animation: rfPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rfPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
}

.recruit-float:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, rgba(124,92,255,0.32), rgba(124,92,255,0.14));
  border-color: rgba(124,92,255,0.28);
  box-shadow: 0 6px 28px rgba(124,92,255,0.25);
}
.recruit-float:active {
  transform: scale(0.90);
}

[data-theme="light"] .recruit-float {
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(124,92,255,0.06));
  border-color: rgba(124,92,255,0.12);
  box-shadow: 0 4px 20px rgba(124,92,255,0.10);
}
[data-theme="light"] .recruit-float .rf-bell { color: #7c5cff; }

/* ─── 展开卡片（抽屉态） ─── */
.recruit-card {
  position: fixed;
  left: 24px;
  bottom: 84px;
  z-index: 59;
  width: 280px;
  max-width: calc(100vw - 48px);
  padding: 18px;
  border-radius: 18px;
  background: rgba(4,5,10,0.88);
  backdrop-filter: blur(32px) saturate(2);
  -webkit-backdrop-filter: blur(32px) saturate(2);
  border: 1px solid rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.03) inset;
  transform-origin: bottom left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.recruit-card.open {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="light"] .recruit-card {
  background: rgba(248,250,252,0.92);
  border-color: rgba(124,92,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

/* ─── 展开抽屉动画 ─── */
/* ─── 一镜到底抽屉展开 ───
    从铃铛按钮位置平滑抽出，单一连续运动 */
@keyframes rfDrawerIn {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.08);
    clip-path: inset(100% 30% 0 30% round 18px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateY(0) scale(1.03);
    clip-path: inset(0 0 0 0 round 18px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }
  72% {
    transform: translateY(-2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 18px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.03) inset;
  }
}

@keyframes rfDrawerOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    clip-path: inset(0 0 0 0 round 18px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(40px) scale(0.06);
    clip-path: inset(100% 20% 0 20% round 18px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

.recruit-card.open {
  animation: rfDrawerIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.recruit-card.closing {
  animation: rfDrawerOut 0.4s cubic-bezier(0.68, -0.15, 0.27, 1.15) forwards;
}

/* ─── 卡片内容 ─── */
.recruit-card .rc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.recruit-card .rc-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(124,92,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--aurora-3);
  flex-shrink: 0;
}
.recruit-card .rc-icon svg { width: 16px; height: 16px; }
.recruit-card .rc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.recruit-card .rc-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(124,92,255,0.10));
  color: var(--aurora-3);
  display: inline-block;
  margin-bottom: 8px;
}

.recruit-card .rc-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.recruit-card .rc-actions {
  display: flex;
  gap: 6px;
}
.recruit-card .rc-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  flex: 1;
}
.recruit-card .rc-btn-primary {
  background: linear-gradient(135deg, #5818c7, #7c5cff);
  color: #fff;
  box-shadow: 0 3px 12px rgba(124,92,255,0.2);
}
.recruit-card .rc-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 20px rgba(124,92,255,0.3);
}
.recruit-card .rc-btn-secondary {
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.recruit-card .rc-btn-secondary:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

[data-theme="light"] .recruit-card .rc-btn-primary {
  background: linear-gradient(135deg, #6d4aff, #7c5cff);
}

/* ─── 关闭按钮 ─── */
.recruit-card .rc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(124,92,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
  border: none;
}
.recruit-card .rc-close:hover {
  background: rgba(124,92,255,0.14);
  color: var(--text-primary);
  transform: rotate(90deg);
}
.recruit-card .rc-close svg { width: 14px; height: 14px; }

/* ─── 移动端适配 ─── */
@media (max-width: 480px) {
  .recruit-float {
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .recruit-float .rf-bell { width: 18px; height: 18px; }
  .recruit-card {
    left: 10px;
    bottom: 72px;
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 14px;
  }
  .recruit-card .rc-actions { flex-direction: column; gap: 4px; }
  .recruit-card .rc-body { font-size: 0.78rem; }
}

/* ════════════════════════════════════ */
/* 历程快照                              */
/* ════════════════════════════════════ */
.card-history {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
}

.timeline-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-sm) 0 var(--space-md);
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dawn-400);
  flex-shrink: 0;
}
.tl-year {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dawn-300);
  width: 44px;
  flex-shrink: 0;
}
.tl-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ════════════════════════════════════ */
/* 数字服务                              */
/* ════════════════════════════════════ */
.card-services {
  grid-column: 2 / 4;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}
.svc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.svc-btn:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.svc-btn svg { flex-shrink: 0; }
.svc-btn span { white-space: nowrap; }
.svc-more { color: var(--dawn-300); font-weight: 600; }

/* ════════════════════════════════════ */
/* 统计横条                              */
/* ════════════════════════════════════ */
.card-stats {
  grid-column: 1 / 4;
  padding: var(--space-lg) var(--space-2xl);
}

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stats-num {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-lbl { font-size: 0.75rem; color: var(--text-muted); }
.stats-sep {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
}

/* ════════════════════════════════════ */
/* 关于 + 开源                           */
/* ════════════════════════════════════ */
.card-about {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-blurb {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  flex: 1;
}

.card-oss {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.oss-badge {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: rgba(110,231,183,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #6ee7b7;
}
.card-oss h3 { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.card-oss p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.card-oss .btn-glass { margin-left: auto; flex-shrink: 0; }

/* ════════════════════════════════════ */
/* Footer                               */
/* ════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
  padding: 48px 24px 56px;
  text-align: center;
  color: var(--text-muted);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 600px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.footer-brand img { border-radius: 6px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 4px 0;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.6;
  transition: all 0.3s ease;
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--aurora-3);
  transform: translateY(-1px);
}
.footer-copyright {
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.footer-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.2px dashed rgba(124, 92, 255, 0.25);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.footer-copyright a:hover {
  color: var(--aurora-3);
  border-bottom-color: var(--aurora-3);
}
.footer-credits {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.55;
  margin-top: 2px;
}

/* ════════════════════════════════════ */
/* 响应式                                */
/* ════════════════════════════════════ */


/* ─── 新闻轮播增强（导航箭头+图标） ─── */
.news-carousel-mini {
  position: relative;
}
.news-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.news-carousel-mini:hover .news-nav-btn {
  opacity: 1;
  pointer-events: auto;
}
.news-carousel-mini:hover .news-nav-btn:hover {
  background: rgba(124,92,255,0.20);
  transform: translateY(-50%) scale(1.1);
}
.news-carousel-mini:hover .news-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
}
.news-nav-btn.prev { left: 4px; }
.news-nav-btn.next { right: 4px; }

.news-dots-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.news-dots-mini .ndot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(165,180,192,0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}
.news-dots-mini .ndot.active {
  width: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3));
  box-shadow: 0 0 6px rgba(124,92,255,0.3);
}

@media (max-width: 1024px) {
  .gallery-wrapper {
    gap: var(--space-md);
    padding: calc(var(--nav-h) + 24px) var(--space-lg) var(--space-2xl);
  }
  .card-brand { padding: var(--space-xl); gap: var(--space-lg); }
  .brand-icon-area { width: 90px; height: 90px; border-radius: 22px; background: transparent; border: none; }
  .brand-icon-area img,
  .brand-icon-area video { width: 76px; height: 76px; border-radius: 18px; }
  .stats-bar { gap: var(--space-md); }
}

@media (max-width: 768px) {
  .gallery-wrapper {
    padding: calc(var(--nav-h) + 20px) var(--space-md) var(--space-xl);
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  .card-brand {
    grid-column: 1 / 3;
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: var(--space-lg);
  }
  .card-brand .brand-tagline { max-width: 100%; }
  .card-brand .brand-btns { justify-content: center; }

  .card-news { grid-column: 1 / 2; }
  .card-history { grid-column: 1 / 3; }
  .card-services { grid-column: 1 / 3; }
  .card-stats { grid-column: 1 / 3; }
  .card-about { grid-column: 1 / 2; }
  .card-oss { grid-column: 2 / 3; }
  .card-oss { flex-wrap: wrap; }
  .card-oss .btn-glass { margin-left: 0; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-btn span { font-size: 0.78rem; }
  .stats-bar { gap: var(--space-sm); justify-content: center; }
  .site-footer { padding: 36px 16px 48px; }
}

@media (max-width: 480px) {
  .gallery-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: calc(var(--nav-h) + 16px) var(--space-sm) var(--space-lg);
  }
  .card-brand, .card-news, .card-history,
  .card-services, .card-stats, .card-about, .card-oss {
    grid-column: 1 / 2;
  }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-item { min-width: 70px; }
  .stats-sep { display: none; }
}

/* ════════════════════════════════════════════
   招新灵感 · 液态流光按钮
   移植自 2026 招新页
   ════════════════════════════════════════════ */

.btn-liquid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  border-radius: 40px;
  overflow: visible;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-liquid:hover { transform: scale(1.04); }
.btn-liquid:active { transform: scale(0.96); }

.btn-liquid .lb-bg {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(90,40,140,0.3) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 20%, rgba(60,40,100,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 100% 80% at 50% 50%, rgba(15,10,36,0.6) 0%, rgba(10,6,24,0.8) 100%);
  background-blend-mode: screen, normal, normal;
  animation: lbFlow 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.btn-liquid .lb-bg::after {
  content: ''; position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(ellipse 50% 40% at 30% 70%, rgba(120,80,200,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 40% 50% at 70% 30%, rgba(180,140,240,0.08) 0%, transparent 50%);
  filter: blur(18px); animation: lbFlow2 16s ease-in-out infinite alternate; mix-blend-mode: screen;
}

@keyframes lbFlow {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%; transform: scale(1) rotate(0deg); }
  25% { background-position: 10% 15%, 85% 10%, 0% 0%; transform: scale(1.02) rotate(0.5deg); }
  50% { background-position: 5% 70%, 90% 60%, 0% 0%; transform: scale(0.98) rotate(-0.3deg); }
  75% { background-position: 20% 40%, 75% 80%, 0% 0%; transform: scale(1.01) rotate(0.4deg); }
  100% { background-position: 0% 20%, 70% 10%, 0% 0%; transform: scale(1) rotate(-0.2deg); }
}
@keyframes lbFlow2 {
  0% { transform: translate(-5%, -5%) scale(1) rotate(0deg); }
  33% { transform: translate(8%, -10%) scale(1.1) rotate(3deg); }
  66% { transform: translate(-3%, 12%) scale(0.95) rotate(-2deg); }
  100% { transform: translate(5%, 5%) scale(1.05) rotate(1deg); }
}

.btn-liquid .lb-line {
  position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid transparent;
  border-left-color: rgba(210,190,160,0.5);
  border-bottom-color: rgba(210,190,160,0.5);
  box-shadow: inset 2px 2px 12px rgba(210,190,160,0.06);
  pointer-events: none; z-index: 2;
}
.btn-liquid .lb-line::before {
  content: ''; position: absolute; bottom: -3px; left: -3px;
  width: 60%; height: 60%; border-radius: inherit;
  background: radial-gradient(ellipse 60% 50% at 20% 80%, rgba(210,190,160,0.08), transparent 70%);
  filter: blur(6px);
}

.btn-liquid .lb-glow {
  position: absolute; top: -8%; right: -10%; width: 65%; height: 65%; border-radius: 50%;
  background: radial-gradient(ellipse 70% 70% at 45% 30%, rgba(180,140,240,0.20) 0%, rgba(220,180,255,0.08) 30%, rgba(100,80,200,0.02) 55%, transparent 75%);
  filter: blur(35px); z-index: 1; pointer-events: none; mix-blend-mode: screen;
}

.btn-liquid .lb-ripple {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle 40px at 20% 80%, rgba(180,200,255,0.03), transparent 60%),
              radial-gradient(circle 60px at 85% 30%, rgba(200,170,255,0.02), transparent 60%);
  animation: lbRipple 14s ease-in-out infinite alternate;
  mix-blend-mode: screen; z-index: 0; pointer-events: none;
}
@keyframes lbRipple {
  0% { background-position: 0% 0%, 0% 0%; background-size: 100% 100%, 100% 100%; }
  50% { background-position: 30% 70%, 70% 20%; background-size: 150% 150%, 130% 130%; }
  100% { background-position: 10% 40%, 90% 50%; background-size: 120% 120%, 140% 140%; }
}

.btn-liquid .lb-rim {
  position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: 0 0 20px rgba(100,130,220,0.03), inset 0 0 20px rgba(100,130,220,0.02);
  animation: lbRim 5s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes lbRim {
  0% { opacity: 0.4; box-shadow: 0 0 20px rgba(100,130,220,0.03), inset 0 0 20px rgba(100,130,220,0.02); }
  100% { opacity: 0.8; box-shadow: 0 0 40px rgba(140,160,255,0.06), inset 0 0 30px rgba(140,160,255,0.03); }
}

.btn-liquid .lb-text {
  position: relative; z-index: 3;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(235,225,210,0.9);
  text-shadow: 0 2px 12px rgba(10,14,30,0.5);
  transition: color 0.3s ease;
}
.btn-liquid:hover .lb-text { color: #fff; }

/* 亮色主题液态按钮 */
[data-theme="light"] .btn-liquid .lb-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(124,92,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 20%, rgba(167,139,250,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 100% 80% at 50% 50%, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.95) 100%);
}
[data-theme="light"] .btn-liquid .lb-text { color: rgba(15,23,42,0.85); }
[data-theme="light"] .btn-liquid:hover .lb-text { color: #0f172a; }
[data-theme="light"] .btn-liquid .lb-line {
  border-left-color: rgba(124,92,255,0.3);
  border-bottom-color: rgba(124,92,255,0.3);
}
[data-theme="light"] .btn-liquid .lb-glow {
  background: radial-gradient(ellipse 70% 70% at 45% 30%, rgba(124,92,255,0.10) 0%, rgba(167,139,250,0.04) 30%, transparent 75%);
}


.btn-liquid-sm { padding: 12px 28px; }
.btn-liquid-sm .lb-text { font-size: 0.85rem; letter-spacing: 1.5px; }

/* ════════════════════════════════════════════════
   Mini 新闻轮播 — 动态封面
   ════════════════════════════════════════════════ */

.news-mini-slide {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nms-cover {
  flex-shrink: 0;
  width: 60px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  margin-top: 2px;
  position: relative;
}
.nms-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.nms-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nms-cover-fallback svg { opacity: 0.4; }

/* ════════════════════════════════════════════════
   卡片居中选中 + 停留推荐
   ════════════════════════════════════════════════ */

/* 选中态：微光边框 + 轻微上浮 */
.gallery-card.card-selected {
  border-color: rgba(124, 92, 255, 0.25);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.10), 0 1px 0 rgba(124, 92, 255, 0.06) inset;
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card.card-selected::before {
  opacity: 0.6;
}

/* 推荐态：更亮的光晕 */
.gallery-card.card-recommending {
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.18), 0 1px 0 rgba(124, 92, 255, 0.08) inset;
  transform: translateY(-3px);
}

/* 推荐指示器浮条 */
.card-recommend {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(124,92,255,0.15), rgba(124,92,255,0.08));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(124,92,255,0.10);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 5;
  animation: crSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom;
  border-radius: 0 0 24px 24px;
}

@keyframes crSlideIn {
  0% {
    transform: translateY(100%) scaleY(0.5);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
}

.card-recommend .cr-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.card-recommend .cr-text {
  white-space: nowrap;
}

.card-recommend:hover {
  background: linear-gradient(90deg, rgba(124,92,255,0.22), rgba(124,92,255,0.12));
  color: var(--dawn-200);
}

/* 暗色主题适配 */
[data-theme="light"] .card-recommend {
  background: linear-gradient(90deg, rgba(124,92,255,0.10), rgba(124,92,255,0.05));
  border-top-color: rgba(124,92,255,0.08);
}
[data-theme="light"] .card-recommend:hover {
  background: linear-gradient(90deg, rgba(124,92,255,0.15), rgba(124,92,255,0.08));
}

@media (max-width: 480px) {
  .card-recommend {
    font-size: 0.72rem;
    padding: 6px 10px;
    gap: 4px;
  }
  .card-recommend .cr-icon { font-size: 0.8rem; }
}
