/* ====================== 2026 赛博动漫深色风格 - 最终优化版 ====================== */
:root {
  --bg: #0a0f1c;
  --card: rgba(15, 23, 42, 0.85);
  --accent: #3b82f6;
  --text: #e2e8f0;
  --text-light: #cbd5e1;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}

.layui-container { 
  max-width: 1280px !important; 
}

/* Hero 大图区 */
.hero {
  height: 560px !important;
  border-radius: 24px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6) !important;
  margin-bottom: 50px;
}

.hero .overlay {
  background: linear-gradient(to bottom, rgba(10,15,28,0.3), rgba(10,15,28,0.92)) !important;
}

.hero .content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  z-index: 2;
  max-width: 620px;
}

.hero h1 {
  font-size: 3.1rem !important;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

/* 卡片网格 - 玻璃态深色卡片 */
.grid, .section .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}

.card, .grid > div {
  background: var(--card) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 20px !important;
  padding: 26px 24px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
  transition: all 0.4s ease !important;
  backdrop-filter: blur(12px);
  color: var(--text) !important;
  min-height: 110px;
  display: flex;
  align-items: center;
}

.card:hover, .grid > div:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* 热门教程卡片优化 */
.hot-tutorial .grid {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
  gap: 16px !important;
}

.hot-tutorial .card {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
  min-height: 78px;
  backdrop-filter: blur(12px);
}

.hot-tutorial .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35) !important;
}

.hot-tutorial .card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.hot-tutorial .card .text a {
  color: #e2e8f0 !important;
  text-decoration: none;
}

.hot-tutorial .card .text a:hover {
  color: #60a5fa !important;
}

/* ==================== 右上角液化玻璃个人资料框 ==================== */
.user-profile-glass-topright {
  position: absolute;
  top: 35px;
  right: 40px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  z-index: 30;
}

.user-profile-glass-topright .user-avatar {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.user-profile-glass-topright .user-info strong {
  color: white;
  font-size: 1.05rem;
}

.user-profile-glass-topright .logout-btn {
  margin-left: 12px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  color: #cbd5e1;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.92rem;
}

.user-profile-glass-topright .logout-btn:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* 未登录时的按钮 */
.hero-right-buttons {
  position: absolute;
  top: 35px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 30;
}

.btn-login, .btn-register {
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-login { background: #3b82f6; color: white; }
.btn-register { background: rgba(30,41,59,0.85); color: white; border: 1px solid #475569; }

.btn-login:hover { background: #2563eb; }
.btn-register:hover { background: rgba(30,41,59,0.95); }

/* 开始学习按钮 */
.start-btn {
  display: inline-block;
  background: #3b82f6;
  color: white !important;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  margin-top: 20px;
}

.start-btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}

/* 移动端适配 */
@media (max-width: 992px) {
  .hero { height: 420px !important; }
  .hero h1 { font-size: 2.3rem !important; }
  .user-profile-glass-topright, .hero-right-buttons {
    top: 20px;
    right: 20px;
    padding: 8px 16px;
  }
}
/* ==================== 强制修复热门教程白底 + 加强玻璃效果 ==================== */
.hot-tutorial .card,
.hot-tutorial .grid > div {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.hot-tutorial .card:hover {
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35) !important;
}

.hot-tutorial .card .text a {
  color: #e2e8f0 !important;
}

.hot-tutorial .card img {
  background: #1e2937;
  padding: 4px;
  border-radius: 12px;
}
.hot-tutorial .card * {
  background: transparent !important;
}
/* ==================== 底部版权和说明文字优化 ==================== */
.site-footer, .footer, #footer, .copyright, .site-info {
  background: rgba(10, 15, 28, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #cbd5e1 !important;
  padding: 25px 0 !important;
  text-align: center !important;
  font-size: 0.92rem !important;
}

.site-footer a, .footer a {
  color: #60a5fa !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #93c5fd !important;
}

/* 强制覆盖可能残留的白底 */
footer, .footer-bottom, .copyright-area {
  background: rgba(10, 15, 28, 0.95) !important;
  color: #cbd5e1 !important;
}
/* ==================== 交流群卡片优化 ==================== */
.qq-group-card {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 16px !important;
  padding: 35px 20px !important;
  transition: all 0.4s ease !important;
  cursor: pointer !important;
}

.qq-group-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.qq-group-card strong {
  font-size: 1.35rem;
  transition: color 0.3s;
}