/* ========================================
   双创实验室宣传网站 — 全局样式
   ======================================== */

/* --- CSS 变量 --- */
:root {
  color-scheme: dark;
  /* 色彩 */
  --color-bg: #0a0a0a;
  --color-card: #1a1a1a;
  --color-card-hover: #222222;
  --color-text: #ffffff;
  --color-text-dim: #aaaaaa;
  --color-accent: #ffffff;
  --color-nav: #0d0d0d;
  --color-footer: #111111;
  --color-link: #cccccc;
  --color-link-hover: #ffffff;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;

  /* 其他 */
  --max-width: 1200px;
  --nav-height: 64px;
  --card-radius: 12px;
  --btn-radius: 6px;

  /* 内容区顶部间距 */
  --hero-top: 5rem;   /* 首页轮播 + 关于我们合影 */
  --page-top: 0rem;   /* 其他页面标题区 */
}

/* --- CSS Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- 滚动条美化 --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  display: block;
}

.beian-icon {
  display: inline;
  width: 18px;
  height: 20px;
  vertical-align: middle;
  margin-right: 3px;
  border-radius: 2px;
  padding: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.03);
}

/* --- 导航栏 --- */
.navbar {
  background-color: var(--color-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  position: relative;
  color: var(--color-text-dim);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-text);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Hero 区域 --- */
.hero {
  text-align: center;
  padding: clamp(4rem, 12vh, 10rem) var(--space-md) clamp(2rem, 8vh, 6rem);
}

.hero-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-dim);
  max-width: 600px;
  margin: 0 auto var(--space-sm);
}

.hero-advisor {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  margin: 0 auto var(--space-md);
}

/* --- Hero 轮播 --- */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin: var(--hero-top) auto 0;
  overflow: hidden;
  background-color: #0a0a0a;
  /* === 流体高度：屏幕宽度自适应 === */
  height: clamp(280px, 40vw, 800px);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  background-color: #0a0a0a;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 轮播中的 hero 文字 slide，居中适配固定高度 */
.carousel-slide .hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

/* 箭头按钮 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* 圆点指示器 */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* 手机端箭头缩小 */
@media (max-width: 768px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* --- 页面标题区域（子页面通用） --- */
.page-header {
  text-align: center;
  margin-top: var(--page-top);
  padding: clamp(3rem, 8vh, 8rem) var(--space-md) clamp(1.5rem, 4vh, 4rem);
}

.page-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.page-desc {
  color: var(--color-text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 卡片 --- */
.card {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: clamp(0.8rem, 1.5vw, 2rem);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  background-color: var(--color-card-hover);
  transform: translateY(-2px);
}

.card:focus,
.card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* 锚点跳转偏移：防止被固定导航栏遮挡 */
.card[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--color-text-dim);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.6;
  text-indent: 2em;
  margin-bottom: 10px;
}

/* --- 加粗高亮 --- */
b {
  color: #ffffff;
  font-weight: 900;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  justify-content: center;
}

/* 招新页面 — 负责人联系方式网格 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.contact-card .card-title {
  margin-bottom: var(--space-xs);
}

/* --- 图片占位 --- */
.image-placeholder {
  background-color: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.875rem;
  min-height: 200px;
  width: 100%;
}

/* --- 按钮 --- */
.btn {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.5rem 1.5rem;
  border-radius: var(--btn-radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* --- 主内容区 --- */
.main-content {
  flex: 1 0 auto;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 汉堡菜单按钮 — 桌面端隐藏 */
.nav-hamburger {
  display: none;
}

/* 下拉箭头按钮 — 桌面端隐藏 */
.dropdown-arrow {
  display: none;
}

/* --- 下拉菜单 --- */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-card);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.2rem;
  color: var(--color-text-dim);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.dropdown-menu li a:hover {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.04);
}

/* --- 底部 --- */
.footer {
  background-color: var(--color-footer);
  padding: var(--space-lg) var(--space-md);
  flex-shrink: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xs);
  max-width: 900px;
  margin: 0 auto;
}

.footer-col {
  text-align: left;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-contact {
  color: var(--color-text-dim);
  font-size: 0.95rem;
  line-height: 2;
}

.footer-contact p {
  margin: 0;
}

/* --- 内容区块 --- */
.section {
  padding: clamp(2rem, 5vh, 6rem) var(--space-md);
}

.section-title {
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- 成果列表 --- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- 奖项卡片网格 --- */
.direction-section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.achievement-card {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.achievement-card:hover {
  background-color: var(--color-card-hover);
  transform: translateY(-2px);
}

/* 如需调整图片区域宽高比，修改下方 aspect-ratio 值即可（例如 4/3、1/1） */
.achievement-img {
  width: 100%;
  display: block;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background-color: #fff;
}

.achievement-name {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text);
  text-align: center;
}

/* 合影照片 */
.group-photo {
  width: 100%;
  border-radius: var(--card-radius);
  opacity: 0.75;
  filter: blur(2px);
}

/* --- 关于我们头部（图片 + 标题叠加） --- */
.about-hero {
  margin-top: var(--hero-top);
  padding: 0 var(--space-md);
}

.about-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--card-radius);
  cursor: pointer;
}

.about-hero-img {
  width: 100%;
  display: block;
  opacity: 0.7;
  filter: blur(2px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.about-hero-inner:hover .about-hero-img {
  transform: scale(1.05);
  opacity: 0.85;
}

.about-hero-overlay {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

/* --- 灯箱 --- */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.35s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #aaa;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.card-list .card-time {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
}

/* --- 步骤卡片 --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}


/* --- 登录弹窗 --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  width: 360px;
  max-width: 90vw;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-md);
}

.modal-field {
  margin-bottom: var(--space-sm);
}

.modal-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.modal-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-btn {
  display: block;
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.6rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-btn:hover {
  background-color: #ddd;
}

/* --- 时光碎片 feed --- */
.moments-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.moment-card {
  display: flex;
  gap: var(--space-sm);
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-md);
}

.moment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #333;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.moment-body {
  flex: 1;
  min-width: 0;
}

.moment-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.moment-time {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
}

.moment-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  word-break: break-word;
}

/* 如需调整图片区域宽高比，修改下方 aspect-ratio 值即可（例如 4/3、1/1） */
.moment-img {
  margin-top: var(--space-sm);
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background-color: #fff;
}

/* --- 文档预览弹窗 --- */
.doc-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doc-overlay.active {
  opacity: 1;
  visibility: visible;
}

.doc-modal {
  width: 90vw;
  height: 90vh;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.doc-download {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
}

.doc-delete {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  color: #ff6464;
  border-color: rgba(255, 100, 100, 0.5);
  margin-right: auto;
}

.doc-delete:hover {
  background-color: rgba(255, 100, 100, 0.15);
  color: #ff6464;
}

.doc-close {
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.doc-close:hover {
  color: var(--color-text);
}

.doc-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.doc-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.doc-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 1rem;
}

/* --- 负责人卡片点击态 --- */
.contact-card {
  cursor: default;
}

.contact-card[data-qr]:not([data-qr=""]),
.contact-card[data-qr-default]:not([data-qr-default=""]) {
  cursor: pointer;
}

/* --- QQ二维码弹窗 --- */
.qr-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90vw;
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.qr-close:hover {
  color: var(--color-text);
}

.qr-img {
  /* 如需调整二维码最大尺寸，修改下方 max-width / max-height 值即可 */
  max-width: 80vw;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.qr-hint {
  margin-top: var(--space-sm);
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* --- 二维码负责人选择器 --- */
.qr-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.qr-selector-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-dim);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.qr-selector-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.qr-selector-btn.active {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* --- 视频区域 --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.video-card {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.video-card:hover {
  background-color: var(--color-card-hover);
  transform: translateY(-2px);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #000;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-wrapper img,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-wrapper video {
  object-fit: contain;
}

.video-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.video-card:hover .video-play-icon {
  background: rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card {
  text-decoration: none;
}

.video-name {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text);
  text-align: center;
}

/* --- 会员内容门控 --- */

/* 未登录：会员区视频模糊 + 禁止交互 */
body:not(.logged-in) .member-gate video {
  filter: blur(12px);
  transition: filter 0.4s ease;
  pointer-events: none;
}

body.logged-in .member-gate video {
  filter: none;
}

/* 未登录：会员区图片禁止交互 */
body:not(.logged-in) .member-gate img {
  pointer-events: none;
}

/* 门控容器 */
.member-gate {
  position: relative;
  margin-top: 12px;
}

/* 未登录遮罩层 */
.member-gate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4),
    rgba(10, 10, 10, 0.9)
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--card-radius);
  min-height: 360px;
  pointer-events: auto;
}

body.logged-in .member-gate-overlay {
  display: none;
}

/* 封禁全页遮罩 */
.banned-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4),
    rgba(10, 10, 10, 0.95)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}

body.role-banned .banned-overlay {
  display: flex;
}

/* 门控遮罩内的提示文字 */
.member-gate-hint {
  text-align: center;
  color: var(--color-text);
}

.member-gate-hint .lock-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.member-gate-hint p {
  font-size: 1.05rem;
  opacity: 0.7;
}

/* ========================================
   用户管理页面
   ======================================== */

.mgmt-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mgmt-header .page-title {
  font-size: 1.5rem;
}

/* 用户表格 */
.mgmt-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.mgmt-table th,
.mgmt-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mgmt-table th {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.03);
}

.mgmt-table td {
  font-size: 0.95rem;
  color: var(--color-text);
}

.mgmt-table tr:last-child td {
  border-bottom: none;
}

.mgmt-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* 管理页头像 */
.mgmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-text-dim);
  overflow: hidden;
}

/* 角色徽章 */
.role-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-dim);
}

.role-badge.role-admin {
  border-color: rgba(255, 200, 60, 0.5);
  color: #ffc83c;
}

.role-badge.role-member {
  border-color: rgba(100, 200, 255, 0.5);
  color: #64c8ff;
}

.role-badge.role-intern {
  border-color: rgba(150, 255, 150, 0.5);
  color: #96ff96;
}

/* 管理页操作按钮 */
.btn-sm {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  margin-right: 0.4rem;
}

.btn-edit {
  border: 1px solid rgba(100, 200, 255, 0.5);
  color: #64c8ff;
}

.btn-edit:hover {
  background-color: rgba(100, 200, 255, 0.15);
}

.btn-delete {
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: #ff6464;
}

.btn-delete:hover {
  background-color: rgba(255, 100, 100, 0.15);
}

.btn-eye {
  border: 1px solid rgba(200, 200, 200, 0.4);
  color: #ccc;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
}

.btn-eye:hover {
  background-color: rgba(200, 200, 200, 0.12);
  color: #fff;
}

/* 状态切换按钮 */
.btn-sm.status-online,
.btn-sm.status-active {
  border: 1px solid rgba(100, 200, 100, 0.6);
  color: #64c864;
}
.btn-sm.status-online:hover,
.btn-sm.status-active:hover {
  background-color: rgba(100, 200, 100, 0.12);
}

.btn-sm.status-offline {
  border: 1px solid rgba(150, 150, 150, 0.4);
  color: #999;
}
.btn-sm.status-offline:hover {
  background-color: rgba(150, 150, 150, 0.12);
  color: #bbb;
}

.btn-sm.status-hidden {
  border: 1px solid rgba(150, 150, 150, 0.4);
  color: #999;
}
.btn-sm.status-hidden:hover {
  background-color: rgba(150, 150, 150, 0.12);
  color: #bbb;
}

.btn-sm.status-banned {
  border: 1px solid rgba(255, 100, 100, 0.5);
  color: #ff6464;
}
.btn-sm.status-banned:hover {
  background-color: rgba(255, 100, 100, 0.12);
}

/* 状态下拉菜单 */
.status-dropdown-wrapper {
  display: inline-block;
}

.status-dropdown-menu {
  position: absolute;
  z-index: 9999;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  padding: 4px 0;
  min-width: 90px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-dropdown-item {
  display: block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  border-radius: 3px;
  margin: 2px 6px;
}

.status-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.status-dropdown-item.status-active {
  color: #96ff96;
}

.status-dropdown-item.status-online,
.status-dropdown-item.status-active {
  color: #64c864;
}

.status-dropdown-item.status-offline {
  color: #999;
}

.status-dropdown-item.status-hidden {
  color: #999;
}

.status-dropdown-item.status-banned {
  color: #ff6464;
}

.btn-add {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.5rem 1.2rem;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-add:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* 空状态 */
.mgmt-empty {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-dim);
  font-size: 0.95rem;
}

/* ========================================
   时光碎片 — 动态发布 & 评论
   ======================================== */

/* 发布表单 */
.moment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-md);
  max-width: 680px;
  margin: 0 auto var(--space-md);
}

body:not(.logged-in) .moment-form {
  display: none;
}

.moment-form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.moment-form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.moment-form-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.moment-file-input {
  display: none;
}

.moment-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--btn-radius);
  color: var(--color-text-dim);
  font-size: 0.85rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.moment-upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.moment-submit-btn {
  padding: 0.4rem 1.5rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--btn-radius);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.moment-submit-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.moment-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 文件预览 */
.moment-media-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.moment-media-preview img,
.moment-media-preview video {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background-color: #000;
  border-radius: 8px;
}

.moment-media-preview .remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 动态操作按钮 */
.moment-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.moment-delete {
  background: none;
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ff6464;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}

.moment-delete:hover {
  background-color: rgba(255, 100, 100, 0.15);
}

.moment-comment-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-dim);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.moment-comment-toggle:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.moment-like {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-dim);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.moment-like:hover {
  background-color: rgba(255, 100, 120, 0.1);
  border-color: rgba(255, 100, 120, 0.4);
}

.moment-like .like-heart {
  font-size: 1rem;
}

.moment-like.liked {
  color: #ff5e7a;
  border-color: rgba(255, 94, 122, 0.4);
}

/* 点赞用户列表 */
.moment-likers {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-top: 4px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

/* 评论区 */
.comment-section {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-card {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #333;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.comment-time {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  margin-left: var(--space-xs);
}

.comment-text {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 2px;
  word-break: break-word;
}

.comment-delete {
  background: none;
  border: none;
  color: #ff6464;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
  margin-left: var(--space-xs);
}

.comment-delete:hover {
  opacity: 1;
}

/* 评论输入 */
.comment-form {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 0.45rem 0.7rem;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.comment-submit {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.comment-submit:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* 空动态 */
.moments-empty {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text-dim);
  font-size: 0.95rem;
}

/* 视频灯箱 */
.lightbox-video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  outline: none;
}

/* ========================================
   角色徽章 — root
   ======================================== */

.role-badge.role-root {
  border-color: rgba(255, 80, 80, 0.6);
  color: #ff5050;
}

/* 状态徽章（非 root 查看用户列表时的只读状态） */
.status-badge-online,
.status-badge-active {
  border-color: rgba(100, 200, 100, 0.5) !important;
  color: #64c864 !important;
}

.status-badge-offline {
  border-color: rgba(150, 150, 150, 0.4) !important;
  color: #999 !important;
}

.status-badge-hidden {
  border-color: rgba(150, 150, 150, 0.4) !important;
  color: #999 !important;
}

.status-badge-banned {
  border-color: rgba(255, 100, 100, 0.5) !important;
  color: #ff6464 !important;
}

/* ========================================
   封禁用户 — 隐藏导航
   ======================================== */

body.role-banned #navMoments,
body.role-banned #navAdmin,
body.role-banned #navProfile,
body.role-banned #navInventory {
  display: none !important;
}

/* ========================================
   个人中心
   ======================================== */

.profile-container {
  display: flex;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.profile-sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-upload {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--btn-radius);
  color: var(--color-text-dim);
  font-size: 0.85rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.profile-avatar-upload:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.profile-avatar-input {
  display: none;
}

.profile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profile-section {
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-md);
}

.profile-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-field {
  margin-bottom: var(--space-sm);
}

.profile-field:last-child {
  margin-bottom: 0;
}

.profile-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.profile-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.profile-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-input:disabled {
  opacity: 0.5;
}

.profile-hint {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.profile-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--btn-radius);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  margin-top: var(--space-sm);
}

.profile-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.profile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-role-info {
  display: inline-block;
  margin-top: var(--space-xs);
}

/* ========================================
   密码显隐切换
   ======================================== */

.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper .modal-input,
.password-field-wrapper .profile-input {
  padding-right: 2.5rem;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--color-text);
}

/* ========================================
   响应式
   ======================================== */

/* 中等屏幕：导航栏居中堆叠，避免链接偏右换行 */
@media (max-width: 950px) {
  .navbar-inner {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }

  .nav-links {
    justify-content: center;
    gap: var(--space-sm);
  }
}

/* 平板：768px - 1024px */
@media (max-width: 1024px) {
  /* 由 clamp() 和 auto-fill 流体处理，仅保留必要的覆盖 */
}

/* 手机：< 768px */
@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .navbar {
    height: auto;
    padding: var(--space-sm) var(--space-md);
  }

  .navbar-inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* 汉堡菜单按钮 */
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 0;
  }

  /* 手机端导航默认可见，多行横向排列 */
  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 2px 8px;
    align-items: center;
  }

  .nav-links.collapsed {
    display: none;
  }

  .nav-links > li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-links .nav-link {
    padding: 0.35rem 0.5rem;
    display: inline-block;
  }

  /* 下拉箭头按钮 */
  .dropdown-arrow {
    display: inline-block;
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
    vertical-align: middle;
    margin-left: -2px;
  }

  .dropdown-arrow:hover {
    color: var(--color-text);
  }

  /* 手机端下拉菜单浮层展开 */
  .nav-dropdown .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: var(--color-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    text-align: center;
    z-index: 100;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-links {
    overflow: visible;
  }

  .member-gate-overlay { min-height: 280px; }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    font-size: 0.75rem;
  }

  .footer-col {
    text-align: center;
  }

  /* 个人中心手机端纵向堆叠 */
  .profile-container {
    flex-direction: column;
  }
  .profile-sidebar {
    flex-direction: row;
    gap: var(--space-sm);
    align-items: center;
  }
  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }

  /* 编辑面板手机端适配 */
  .qr-edit-scroll {
    min-width: 0;
    max-height: 40vh;
  }

  /* 管理表格横向滚动 */
  .mgmt-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ========================================
   头像裁剪弹窗
   ======================================== */

.crop-modal {
  width: 420px;
  max-width: 95vw;
}

.crop-area {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
}

.crop-area:active {
  cursor: grabbing;
}

.crop-area canvas {
  display: block;
  position: absolute;
}

.crop-mask {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.crop-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.crop-controls label {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

.crop-controls input[type="range"] {
  width: 120px;
  accent-color: var(--color-text);
}

/* ========================================
   拖拽上传高亮
   ======================================== */

.drop-zone {
  position: relative;
}

.drop-zone.drag-over {
  outline: 2px dashed rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.drop-zone.drag-over::after {
  content: '松开以添加文件';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

.profile-sidebar.drop-zone.drag-over {
  border-radius: var(--card-radius);
  outline: 2px dashed rgba(255, 255, 255, 0.5);
  outline-offset: 8px;
}

.profile-sidebar.drop-zone.drag-over::after {
  content: '松开以上传头像';
  border-radius: var(--card-radius);
}

/* ========================================
   招新题目上传
   ======================================== */

.exam-upload {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.exam-upload-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.exam-upload-status {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-left: auto;
}

.exam-upload-status.ready {
  color: #96ff96;
}

.exam-upload .btn-sm {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

.exam-upload input[type="file"] {
  display: none;
}

.exam-upload-hint {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  opacity: 0.55;
}

.contact-card.drop-zone.drag-over::after {
  content: '松开上传题目';
  border-radius: var(--card-radius);
}

/* ========================================
   用户资料弹窗（点击头像）
   ======================================== */

.profile-popup {
  position: absolute;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: profileFadeIn 0.15s ease-out;
}

@keyframes profileFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-popup-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #333;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-popup-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.profile-popup-role {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}

.profile-popup-status {
  display: inline-block;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.profile-popup-status.status-online {
  color: #64c864;
  background: rgba(100, 200, 100, 0.1);
}

.profile-popup-status.status-offline {
  color: #999;
  background: rgba(150, 150, 150, 0.1);
}

.profile-popup-status.status-hidden {
  color: #999;
  background: rgba(150, 150, 150, 0.1);
}

.profile-popup-status.status-banned {
  color: #ff6464;
  background: rgba(255, 100, 100, 0.1);
}

.profile-popup-lastseen {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ========================================
   学习路线 — 空状态提示
   ======================================== */

.empty-hint {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-md);
}

/* ========================================
   底部栏 — 可点击联系方式
   ======================================== */

.footer-link {
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-accent);
}

/* ========================================
   路线指引弹窗
   ======================================== */

.route-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.route-overlay.active {
  opacity: 1;
  visibility: visible;
}

.route-modal {
  background: var(--color-card);
  border-radius: var(--card-radius);
  padding: var(--space-md);
  max-width: 90vw;
  width: 500px;
  text-align: center;
  position: relative;
}

.route-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 1.5rem;
  color: var(--color-text-dim);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 2;
}

.route-close:hover {
  color: var(--color-text);
}

.route-img-wrapper {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 6px;
  object-fit: contain;
}

.route-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.route-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.route-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.route-prev {
  left: 4px;
}

.route-next {
  right: 4px;
}

.route-step {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: var(--space-sm);
}

.route-step-current {
  color: var(--color-text);
  font-weight: 600;
}

.route-hint {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: var(--space-xs);
  padding: 0 var(--space-sm);
}

/* ========================================
   QQ群二维码弹窗（复用 qr-overlay）
   footer-link 触发时显示
   ======================================== */

/* ========================================
   QQ号点击复制样式
   ======================================== */

.qq-copy {
  cursor: pointer;
  transition: color 0.15s;
}

.qq-copy:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ========================================
   联系人编辑面板
   ======================================== */

.qr-edit-scroll {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: var(--space-sm);
  text-align: left;
  min-width: 500px;
}

.qr-edit-field {
  margin-bottom: var(--space-sm);
}

.qr-edit-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.qr-edit-field .modal-input {
  width: 100%;
}

.qr-edit-lead-block {
  padding: var(--space-sm) 0;
}

.qr-edit-preview {
  max-width: 120px;
  margin-top: 6px;
  border-radius: 4px;
}

.qr-edit-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.edit-lead-transfer-btn {
  margin-top: var(--space-xs);
}

.qr-transfer-list {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-align: left;
}
