:root {
  /* 主色彩系统 */
  --bg: #fafbff;
  --bg-secondary: #f4f6fc;
  --panel: #ffffff;
  --text: #1a1d29;
  --text-secondary: #4a5568;
  --muted: #6b7280;
  
  /* 品牌色彩 */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #10b981;
  --accent-light: #34d399;
  --success: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* 渐变色彩 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* 尺寸系统 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --space: 24px;
  /* 视频分集单行高度 */
  --episode-row-height: 40px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS 安全区变量占位（可按需复用） */
:root { --safe-bottom: env(safe-area-inset-bottom, 0px); }

.container { max-width: 85%; margin: 0 auto; padding: 24px; }

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

h1 { font-size: 32px; margin: 0 0 16px; font-weight: 700; color: var(--text); }
h2 { font-size: 24px; margin: 24px 0 16px; font-weight: 600; color: var(--text); }
h3 { font-size: 20px; margin: 16px 0 8px; font-weight: 600; color: var(--text); }
p { color: var(--text-secondary); margin: 0 0 16px; }

.site-header { 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: sticky; 
  top: 0; 
  z-index: 100; 
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.site-header.gradient { 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 12px 0;
}

.header-left { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
}

/* 汉堡按钮（默认桌面隐藏） */
.hamburger {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}

/* 顶部导航：让“课程分类”和“论坛”等并排显示 */
.nav.categories {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav.categories .nav-link {
  display: inline-flex;
  align-items: center;
}

.brand { 
  display: inline-flex;
  align-items: center;
  color: var(--primary); 
  text-decoration: none; 
  font-weight: 800; 
  font-size: 20px;
  letter-spacing: -0.5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 防止logo加载时布局跳动 */
  min-width: 126px;
  min-height: 28px;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 品牌：桌面端显示文字，移动端显示图标 */
.brand-mobile { display: none; align-items: center; }
.brand-mobile img { display: block; height: 26px; width: auto; }
.brand-desktop { display: inline; }

@media (max-width: 968px) {
  .site-header .brand-desktop { display: none; }
  .site-header .brand-mobile { display: none; }
  /* 隐藏手机端页眉左上的文字 Logo */
  .site-header .brand { display: none; }
}

/* 仅在移动端显示的左上返回按钮 */
.mobile-back { display: none; }
@media (max-width: 768px) {
  .mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-back:active { transform: scale(0.98); }
}

.categories .nav-link { 
  padding: 8px 16px; 
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.categories .nav-link:hover { 
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.header-center { 
  flex: 1; 
  display: flex; 
  justify-content: flex-end; 
  max-width: 320px;
}

.search { 
  display: flex; 
  align-items: center; 
  gap: 0; 
  width: 280px;
  transition: all 0.2s ease;
}

/* 移除搜索容器的focus样式，改为单独处理输入框 */

.search-input { 
  flex: 1; 
  height: 36px; 
  padding: 0 16px; 
  border: 1px solid #d1d5db;
  border-radius: 4px 0 0 4px;
  border-right: none;
  background: white;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 隐藏浏览器默认的清除按钮 */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration,
.search-input::-ms-clear,
.search-input::-ms-reveal {
  display: none !important;
  -webkit-appearance: none;
}

.search-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.search-input:focus { 
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn { 
  background: #f8f9fa;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-left: none;
  padding: 8px 12px; 
  height: 36px;
  border-radius: 0 !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.actions { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  flex-wrap: nowrap;
}

/* 抽屉与遮罩（默认隐藏） */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 360px);
  background: #ffffff;
  border-right: 1px solid #eef2f8;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
  /* 让关闭按钮固定在屏幕右上角，避免落在面板中间 */
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1101;
  display: none;
}
/* 仅在抽屉打开时显示关闭按钮 */
body.drawer-open .drawer-close { display: inline-flex; align-items: center; justify-content: center; }
.drawer-nav {
  padding: 12px 12px 24px;
  overflow-y: auto;
}
.drawer-group { margin-top: 8px; }
.drawer-expander {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #eef2f8;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.drawer-expander:active { transform: scale(0.99); }
.drawer-collapse { margin-top: 6px; }
.drawer-sublink { padding-left: 16px; }
.drawer-expander[aria-expanded="true"] .expander-arrow { transform: rotate(180deg); }
.expander-arrow { transition: transform .2s ease; }
.drawer-section-title {
  margin: 16px 6px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.drawer-link {
  display: block;
  padding: 12px 10px;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
}
.drawer-link:hover {
  background: #f8fafc;
  border-color: #eef2f8;
}
.drawer-cta {
  display: block;
  margin: 12px 10px 0;
  padding: 12px 14px;
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

/* 抽屉搜索栏 */
.mobile-search { padding: 12px; gap: 0; }
.mobile-search .search-input { height: 40px; }
.mobile-search .search-btn { height: 40px; width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0 4px 4px 0 !important; border-left: 1px solid #d1d5db; background: #ffffff; color: #6b7280; }
.mobile-search .search-btn svg { width: 18px; height: 18px; stroke: currentColor; display: block; }

/* 打开状态 */
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

/* 响应式：小屏显示汉堡，隐藏桌面导航与部分动作 */
@media (max-width: 968px) {
  .container { width: 97%; max-width: none; margin: 0 auto; padding: 16px 0; }
  .header-left { gap: 12px; }
  .hamburger { display: inline-flex; }
  .nav.categories { display: none; }
  .header-center { display: none; }
  .actions .search { display: none; }
  /* 移动端汉堡按钮去边框去背景，仅显示三条线 */
  .hamburger { border: none; background: transparent; width: 36px; height: 36px; padding: 6px; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
  .hamburger:hover { background: rgba(0,0,0,0.06); border-radius: 10px; }
  .hamburger-icon { color: #6b7280; }
  .hamburger:hover .hamburger-icon { color: #374151; }
}

@media (max-width: 768px) {
  .container { width: 97%; max-width: none; margin: 0 auto; padding: 14px 0; }
}

/* 移除底部导航相关样式 */

/* 登录/注册按钮样式 */
.login-register-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
}

.login-register-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.login-text {
  font-size: 14px;
  color: inherit;
}

.user-icon {
  color: #9ca3af;
  transition: color 0.2s ease;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  padding: 2px;
  background: white;
}

.login-register-btn:hover .user-icon {
  color: var(--primary);
  border-color: var(--primary);
}

/* 用户下拉菜单样式 */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.user-tag:hover .user-avatar {
  transform: scale(1.05);
}

.dropdown-arrow {
  color: #374151;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 12px;
  color: #9ca3af;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.4;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
}

.logout-item {
  color: #ef4444;
}

.logout-item:hover {
  background: #fef2f2;
  color: #dc2626;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}



.chip { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  padding: 8px 12px; 
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-xl);
  background: var(--panel);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.avatar { 
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  background: var(--gradient-primary);
  color: white; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 700;
  font-size: 12px;
}
/* 按钮系统 */
.btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
  color: var(--text-secondary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active { 
  transform: translateY(0);
}

.btn.primary { 
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow);
}

.btn.primary:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.flash-list { list-style: none; padding: 0; margin: 16px 0; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: #f3f8ff; border: 1px solid #e2e8f0; color: #2b3b5f; }
.flash.success { border: 1px solid #1e8f6f; }
.flash.error { border: 1px solid var(--danger); }

/* 视频卡片网格 */
.video-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 24px; 
  margin: 32px 0;
}

/* 小屏卡片栅格与尺寸优化 */
@media (max-width: 968px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
  .video-card .meta { padding: 14px; }
  .meta .title { font-size: 16px; }
  .meta .desc { height: auto; -webkit-line-clamp: 2; line-clamp: 2; }
  .meta .time { display: none; }
}
@media (max-width: 480px) {
  /* 手机端：一行两列 */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-card .meta { padding: 10px; }
  .meta .title { font-size: 14px; margin-bottom: 6px; }
  .meta .desc { display: none; }
  .meta .time { display: none; }
}

.video-card { 
  display: block; 
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.video-card:hover::before {
  transform: scaleX(1);
}

.video-card:hover { 
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card.elevate { 
  box-shadow: var(--shadow);
}

.thumb { 
  aspect-ratio: 16/9; 
  background: linear-gradient(135deg, var(--bg-secondary), #e0e7ff);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  overflow: hidden;
}

.thumb.shimmer::after { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(110deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0)); 
  transform: translateX(-100%); 
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer { 
  100% { transform: translateX(100%); } 
}

.thumb-placeholder { 
  font-size: 48px; 
  opacity: 0.6;
}

.meta { 
  padding: 20px; 
}

.meta .title { 
  margin: 0 0 8px 0; 
  font-size: 18px; 
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.meta .desc { 
  margin: 0 0 12px 0; 
  color: var(--text-secondary); 
  line-height: 1.5;
  height: 44px; 
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta .time { 
  margin: 0; 
  color: var(--muted); 
  font-size: 13px;
  font-weight: 500;
}


.video-page .video-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-page .player { background: #ffffff; border: 1px solid #eaeef5; border-radius: var(--radius); padding: 12px; box-shadow: 0 14px 44px -18px rgba(0,0,0,.15); }
.video-page .player .media { aspect-ratio: 16 / 9; background: #0f172a; border-radius: 12px; overflow: hidden; }
.video-page .player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-page .player .player-actions { margin-top: 12px; }
.video-page .player .nav-buttons { display: flex; gap: 12px; }

/* 美化 上一集/下一集 导航 */
/* 恢复为基础按钮布局，保留占位（若后续需要） */
.video-page .desc { color: var(--muted); }
.video-page .back a { color: var(--brand); text-decoration: none; }

/* 课程分集布局 */
.video-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.episodes { background: #ffffff; border: 1px solid #eaeef5; border-radius: var(--radius); padding: 8px; position: sticky; top: 88px; max-height: calc(100vh - 120px); overflow: hidden; }
.episode-scroll { max-height: calc(var(--episode-row-height) * 11); overflow-y: auto; padding-right: 4px; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-item { border-radius: 10px; margin: 0; }
.episode-item + .episode-item { margin-top: 0; }
.episode-item a { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #2b3b5f; text-decoration: none; line-height: 1.0; min-height: var(--episode-row-height); }
.episode-item:hover { background: #f7faff; }
.episode-item.active { background: #f0f6ff; box-shadow: inset 0 0 0 1px #d6e4ff; border: none; }
.episode-item .title { flex: 1; font-size: 12px; line-height: 1.1; }
.episode-item .meta { color: var(--muted); margin-left: 6px; font-size: 10px; line-height: 1.1; }

/* 视频页响应式：小屏改为上下布局，侧栏置底为可滚动区域 */
@media (max-width: 968px) {
  .video-layout { grid-template-columns: 1fr; }
  .episodes { position: static; max-height: none; }
  .episode-scroll { max-height: calc(var(--episode-row-height) * 11); }
}

/* 自定义滚动条（WebKit） */
.episode-scroll::-webkit-scrollbar { width: 8px; }
.episode-scroll::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 10px; }
.episode-scroll::-webkit-scrollbar-thumb { background: #c7c9d9; border-radius: 10px; }
.episode-scroll::-webkit-scrollbar-thumb:hover { background: #aeb2c7; }

/* 表单系统 */
.admin-header {
  margin-bottom: 32px;
  text-align: center;
}

.admin-header h1 {
  margin: 0 0 8px;
  color: var(--text);
}

.admin-header p {
  color: var(--text-secondary);
  margin: 0;
}

.form { 
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
}

.label-text {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.required {
  color: var(--danger);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--panel);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

button, .button { 
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

button:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.secondary { 
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-decoration: none;
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer { color: var(--muted); border-top: 1px solid #eef2f8; margin-top: 24px; padding: 24px 0; }
.site-footer p { text-align: center; margin: 0; }

/* Hero 分栏布局样式 */
.hero-split {
  display: flex;
  min-height: 320px;
  margin: 8px 0 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

/* 移动端全新 m-hero：仅小屏显示 */
.m-hero { display: none; }
/* 渐变描边 + 轻玻璃质感“画框” */
.m-hero .m-hero-inner {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 14px;
  /* 双背景制造渐变描边 */
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(99,102,241,.25), rgba(16,185,129,.2)) border-box;
  border: 1px solid transparent;
  color: var(--text);
  box-shadow: 0 12px 30px -18px rgba(17,24,39,0.18);
  overflow: hidden;
}
/* 移除左侧色带 */
.m-hero .m-hero-inner::before { content: none; }
/* 柔和装饰光斑 */
.m-hero .m-hero-inner::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -34px;
  width: 160px;
  height: 160px;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0));
  border-radius: 50%;
  pointer-events: none;
}
.m-hero .m-hero-badge { display: none; }
/* 标题更紧凑，颜色更深 */
.m-hero .m-hero-title { margin: 4px 0 6px; font-size: 22px; line-height: 1.18; letter-spacing: -0.01em; color: #0f172a; }
.m-hero .m-hero-title .line-1 { display: block; opacity: .9; }
.m-hero .m-hero-title .line-2 { display: block; font-weight: 800; color: #111827; }
.m-hero .m-hero-sub { margin: 0 0 6px; color: #6b7280; }
.m-hero .m-hero-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin: 4px 0 8px; }
.m-hero .m-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #ffffff; color: #334155; border: 1px solid #e8ecff; font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px -10px rgba(99,102,241,.35); }
.m-hero .m-chip:hover { background: #f7faff; border-color: #dbe4ff; }
.m-hero .m-chip:active { transform: scale(0.98); }
.m-hero .m-hero-actions { display: none; }

@media (max-width: 968px) {
  /* 小屏时显示 m-hero，并隐藏旧 hero */
  .m-hero { display: block; margin: 6px 0 8px; }
  .hero-split { display: none; }
}

/* 左侧分类导航 */
.hero-left {
  width: 300px;
  background: rgba(52, 58, 70, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
  overflow-y: auto;
}

.category-nav {
  height: 100%;
}

.nav-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-content {
  flex: 1;
  min-width: 0;
}

.nav-label {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.nav-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.nav-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-arrow {
  color: white;
  transform: translateX(2px);
}

.nav-item.special {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.nav-item.special:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

/* 右侧海报区域 */
.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.poster-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-slide.active {
  opacity: 1;
}

.poster-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.poster-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.poster-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.shape-ai {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  font-size: 180px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.shape-circle {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-triangle {
  position: absolute;
  bottom: 30%;
  right: 25%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid rgba(255, 255, 255, 0.08);
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.poster-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 32px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.poster-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.poster-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.poster-title .title-main {
  display: block;
  font-size: 1em;
}

.poster-title .title-sub {
  display: block;
  font-size: 0.7em;
  opacity: 0.9;
  margin-top: 8px;
}

.poster-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-check {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.feature-check::before {
  content: '✓';
  margin-right: 8px;
  color: #10b981;
  font-weight: bold;
}

/* 海报指示器 */
.poster-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.poster-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.poster-indicators .indicator.active {
  background: white;
  transform: scale(1.2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 图片轮播 */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.3), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.2), transparent 50%);
  z-index: 1;
}

.bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -50px;
  background: linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 15%;
  background: linear-gradient(225deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  min-height: 480px;
  text-align: center;
}

.hero-text {
  color: white;
  max-width: 900px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  position: relative;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.title-line-1 {
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.9);
  animation-delay: 0.2s;
}

.title-line-2 {
  background: linear-gradient(135deg, #ffffff, #a5b4fc, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation-delay: 0.4s;
}

.title-line-2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  border-radius: 2px;
}

.title-line-3 {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.95);
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 18px;
}

.feature-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  line-height: 1.6;
  font-weight: 500;
}

.subtitle-highlight {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn.large {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.btn.primary.large {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn.primary.large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn.primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* 统计相关样式已移除 */

/* 响应式调整 */
@media (max-width: 968px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-left {
    width: 100%;
    padding: 24px;
  }
  
  .nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
  }
  
  .hero-right {
    min-height: 400px;
  }
  
  .poster-content {
    padding: 32px 24px;
  }
  
  .poster-title {
    font-size: 28px;
  }
  
  .poster-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-left {
    padding: 16px;
  }
  
  .nav-list {
    grid-template-columns: 1fr;
  }
  
  .nav-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #eef2f8;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  }

  .hero-left { background: #ffffff; border-right: none; }

  .nav-label { color: #111827; }
  .nav-desc { color: #6b7280; }
  .nav-arrow { color: #9ca3af; }

  .nav-item:hover,
  .nav-item.active {
    background: #f8faff;
    border-color: #e5e7eb;
    transform: translateY(-2px);
  }
  
  .nav-label { font-size: 14px; }
  .nav-desc { font-size: 12px; }
  
  .poster-content {
    padding: 20px 16px;
  }
  
  .poster-title {
    font-size: 22px;
    line-height: 1.35;
  }
  
  .shape-ai {
    font-size: 120px;
    right: 5%;
  }
  
  .poster-features { gap: 8px; margin-bottom: 16px; }
  .feature-check { font-size: 13px; padding: 6px 0; }
  .poster-badge { margin-bottom: 14px; padding: 6px 12px; font-size: 12px; }
}

/* 更小屏的紧凑优化 */
@media (max-width: 420px) {
  .poster-title { font-size: 20px; }
  .feature-check { font-size: 12px; }
  .nav-item { padding: 10px; }
}

/* 首页视频区在移动端的留白和卡片阴影微调（不影响桌面） */
@media (max-width: 768px) {
  /* 手机与小平板：强制两列布局 */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 8px; }
  .video-card { border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.18); }
  .thumb { border-bottom: 1px solid #eef2f8; }
}

/* 顶部导航在小屏也水平排列，溢出时滚动 */
@media (max-width: 768px) {
  .nav.categories {
    overflow-x: auto;
    gap: 12px;
  }
}

/* 旧的轮播控制器样式已移除，使用新的海报指示器 */

/* 下拉菜单 */
.dropdown { position: relative; }
.dropdown .menu { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; border: 1px solid #eaeef5; border-radius: 12px; padding: 8px; min-width: 180px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.15); }
.dropdown:hover .menu { display: block; }
.dropdown .menu a { display: block; padding: 8px 10px; color: #2b3b5f; border-radius: 8px; }
.dropdown .menu a:hover { background: #f2f6ff; }

/* 移除旧统计卡片样式，使用新的杂志风格 */

/* 分类展示 */
.categories-section { 
  margin: 48px 0; 
}

.category-cards { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 24px; 
  margin: 24px 0; 
}

.category-card { 
  display: block; 
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover { 
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.category-card h3 { 
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.category-card p { 
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.category-badge { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* 分类头部 */
.category-header { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 24px; padding: 16px; background: #ffffff; border: 1px solid #eaeef5; border-radius: 12px; }
.category-info h1 { margin: 0 0 6px; }
.category-info .desc { margin: 0; color: #5b6b80; }

/* 课程卡片分类标签 */
.category-tag { 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

/* 提升层级统一阴影 */
.elevate { box-shadow: 0 14px 44px -18px rgba(0, 0, 0, 0.15); }

/* ========== 论坛样式 ========== */

/* 视频下方额外信息区 */
.video-extras { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.section-card { background: var(--panel); border: 1px solid rgba(99, 102, 241, 0.1); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.section-card h3 { margin: 0 0 8px; }
/* 反馈列表样式 */
.feedback-list { list-style: none; margin: 0 0 12px; padding: 0; }
.feedback-item { padding: 10px 12px; border: 1px solid #eef2f8; border-radius: 10px; margin-bottom: 8px; background: #fff; }
.feedback-item .fb-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.feedback-item .fb-user { font-weight: 600; color: #475569; }
.feedback-item .fb-content { white-space: pre-wrap; color: var(--text); }

/* Tabs */
.tabs { gap: 12px; }
.tabs .tab-nav { display: flex; gap: 8px; }
.tabs .tab-btn { 
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.06); color: var(--text);
  cursor: pointer; font-weight: 600;
}
.tabs .tab-btn.active { background: rgba(99,102,241,0.12); color: var(--primary); border-color: rgba(99,102,241,0.4); }
.tabs .tab-panels { margin-top: 4px; }
.tabs .tab-panel { display: none; }
.tabs .tab-panel.active { display: block; }

/* 论坛首页 */
.forum-header {
  text-align: center;
  padding: 32px 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.forum-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.forum-desc {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.forum-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-section-card {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.forum-section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.section-icon {
  font-size: 32px;
  margin-right: 20px;
  opacity: 0.8;
}

.section-content {
  flex: 1;
}

.section-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

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

.section-name a:hover {
  color: var(--primary);
}

.section-desc {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section-stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.stat-icon {
  font-size: 14px;
}

.stat-value {
  font-weight: 600;
  color: var(--text);
}

.section-action {
  margin-left: 20px;
}

/* 面包屑导航 */
.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 0;
  font-size: 14px;
}

.forum-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forum-breadcrumb a:hover {
  color: var(--primary-dark);
}

.separator {
  color: var(--muted);
  font-weight: 300;
}

.current {
  color: var(--text);
  font-weight: 500;
}

/* 版块页面 */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.section-info {
  flex: 1;
}

.section-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.section-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.section-actions {
  margin-left: 24px;
}

/* 帖子列表 */
.posts-container {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.posts-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.posts-count {
  font-size: 14px;
  color: var(--muted);
}

.posts-list {
  border-top: 1px solid #f3f4f6;
}

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.05);
  transition: background-color 0.2s ease;
}

.post-item:hover {
  background: var(--bg-secondary);
}

.post-item.pinned {
  background: rgba(16, 185, 129, 0.02);
  border-left: 4px solid var(--accent);
}

.post-icon {
  font-size: 20px;
  margin-top: 4px;
  opacity: 0.7;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

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

.post-title a:hover {
  color: var(--primary);
}

.pin-badge, .lock-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  font-weight: 500;
}

.pin-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.lock-badge {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.post-excerpt {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.post-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.last-reply {
  font-size: 12px;
  color: var(--muted);
}

/* 帖子详情页 */
.post-container {
  max-width: 800px;
  margin: 0 auto;
}

.post-main {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.post-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.post-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  font-weight: 600;
  color: var(--text);
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time {
  color: var(--muted);
  font-size: 14px;
}

.content-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* 回复区域 */
.replies-container {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.replies-header {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.replies-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.replies-list {
  border-top: 1px solid #f3f4f6;
}

.reply-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.reply-author {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 80px;
}

.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
}

.author-details {
  text-align: center;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.reply-time {
  font-size: 12px;
  color: var(--muted);
}

.reply-content {
  flex: 1;
  min-width: 0;
}

.reply-body {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text);
}

.reply-actions {
  display: flex;
  gap: 12px;
}

.reply-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.reply-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* 回复表单 */
.reply-form-container {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.reply-form-container h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.reply-form .form-group {
  margin-bottom: 16px;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reply-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--primary);
}

.cancel-reply {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* 发新帖页面 */
.new-post-container {
  max-width: 800px;
  margin: 0 auto;
}

.new-post-header {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.new-post-header h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.new-post-form {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 发帖指南 */
.posting-tips {
  background: var(--bg-secondary);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.posting-tips h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.posting-tips ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.posting-tips li {
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.empty-replies {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* 状态提示 */
.locked-notice, .login-prompt {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.notice-icon, .prompt-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.6;
}

.locked-notice p, .login-prompt p {
  margin: 0;
  color: var(--text-secondary);
}

.login-prompt a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.login-prompt a:hover {
  text-decoration: underline;
}

/* 论坛响应式 */
@media (max-width: 768px) {
  .forum-section-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .section-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .section-action {
    margin-left: 0;
  }
  
  .section-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .section-actions {
    margin-left: 0;
  }
  
  .post-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .post-stats {
    flex-direction: row;
    justify-content: space-around;
    min-width: auto;
    width: 100%;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .reply-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .reply-author {
    flex-direction: row;
    align-items: center;
    min-width: auto;
  }
  
  .author-details {
    text-align: left;
  }
  
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .reply-info {
    order: 2;
  }
}

/* ========== 客服按钮组样式 ========== */

.customer-service-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* 小屏时避让底部导航高度 */
/* 恢复客服按钮默认位置（底部导航已移除） */

/* ========== 客服微信悬浮按钮样式 ========== */

.wechat-float-btn {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 8px 25px rgba(7, 193, 96, 0.25));
}

.wechat-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 12px 35px rgba(7, 193, 96, 0.4));
}

.wechat-float-btn:hover .wechat-icon {
  background: #e6f7f0;
  border-color: #d1f2eb;
  color: #059669;
  box-shadow: 
    0 6px 20px rgba(7, 193, 96, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wechat-float-btn .wechat-icon {
  width: 52px;
  height: 52px;
  background: #f0f9f5;
  border: 2px solid #e6f7f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #07c160;
  box-shadow: 
    0 4px 15px rgba(7, 193, 96, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.wechat-float-btn .wechat-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.wechat-float-btn:hover .wechat-icon::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.wechat-float-btn .wechat-text {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
}

.wechat-qr-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  left: auto;
  background: #ffffff !important;
  border: 1px solid rgba(7, 193, 96, 0.2);
  border-radius: 14px;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(7, 193, 96, 0.06);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 150px;
  white-space: nowrap;
  z-index: 10000;
}

.wechat-float-btn:hover .wechat-qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.qr-image {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto 10px auto;
  border: 1px solid rgba(7, 193, 96, 0.15);
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


.qr-fallback {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid rgba(7, 193, 96, 0.15);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.qr-fallback .qr-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.qr-fallback .qr-icon {
  font-size: 48px;
  margin: 8px 0;
  opacity: 0.8;
}

.qr-fallback .qr-subtitle {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.qr-text {
  font-size: 12px;
  color: #2d3748;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.1px;
  white-space: normal;
}

.qr-arrow {
  position: absolute;
  bottom: -7px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qr-arrow::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(7, 193, 96, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wechat-float-btn {
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .wechat-float-btn .wechat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background: #f0f9f5;
    border: 2px solid #e6f7f0;
    color: #07c160;
  }
  
  .wechat-float-btn .wechat-text {
    font-size: 10px;
  }
  
  .wechat-qr-popup {
    bottom: 65px;
    right: -5px;
    min-width: 130px;
    padding: 12px;
    white-space: normal;
    border-radius: 12px;
  }
  
  .telegram-float-btn .telegram-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    background: #f0f8ff;
    border: 2px solid #e6f3ff;
    color: #0088cc;
  }
  
  .telegram-float-btn .telegram-text {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    letter-spacing: 0.3px !important;
  }
  
  .qr-image {
    width: 90px;
    height: 90px;
    padding: 4px;
    margin-bottom: 8px;
  }
  
  .qr-fallback {
    width: 90px;
    height: 90px;
    padding: 4px;
    margin-bottom: 8px;
  }
  
  .qr-text {
    font-size: 11px;
    white-space: normal;
  }
  
  .qr-arrow {
    right: 16px;
    bottom: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
  }
  
  .qr-arrow::before {
    left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(7, 193, 96, 0.1);
  }
}

/* ========== 认证页面样式 ========== */

.auth-container {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.auth-card {
  background: var(--panel);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.auth-form {
  margin-bottom: 24px;
}

.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form .form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
  background: var(--bg);
}

.auth-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: var(--panel);
}

.auth-form .form-input:invalid {
  border-color: var(--danger);
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* 表单内联错误提示（小红字） */
.form-error {
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444; /* 红色 */
}

.full-width {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.auth-switch {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.auth-back {
  margin: 0;
  font-size: 14px;
}

.auth-back a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-back a:hover {
  color: var(--text);
}

/* 注册页面特有样式 */
.auth-features {
  background: var(--bg-secondary);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-features h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 登录页面特有样式 */
.auth-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tip-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.tip-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.tip-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.tip-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 认证页面响应式 */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px auto;
    padding: 0 20px;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
  
  .auth-form .form-input {
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .full-width {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ========== Telegram客服按钮样式 ========== */

.telegram-float-btn {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 8px 25px rgba(0, 136, 204, 0.25));
}

.telegram-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 12px 35px rgba(0, 136, 204, 0.4));
}

.telegram-float-btn:hover .telegram-icon {
  background: #e6f3ff;
  border-color: #b3d9ff;
  color: #0088cc;
  box-shadow: 
    0 6px 20px rgba(0, 136, 204, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.telegram-float-btn .telegram-icon {
  width: 52px;
  height: 52px;
  background: #f0f8ff;
  border: 2px solid #e6f3ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0088cc;
  box-shadow: 
    0 4px 15px rgba(0, 136, 204, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.telegram-float-btn .telegram-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.telegram-float-btn:hover .telegram-icon::before {
  animation: shimmer 1.5s ease-in-out;
}

.telegram-float-btn .telegram-text {
  display: block !important;
  text-align: center !important;
  font-size: 11px !important;
  color: #4a5568 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
}



