/* ================================================================
   佳蔓 Jemma 个人网站 — 融合版样式
   亮色/暗色双主题 · 毛玻璃美学 · 响应式
   ================================================================ */

/* 乐米像素体 */
@font-face {
  font-family: 'LemiPixel';
  src: url('./fonts/LemiPixel.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------
   1. CSS 变量 & Reset
   -------------------------------- */
:root {
  /* 亮色模式 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);

  /* 强调色 */
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --pink: #f472b6;
  --purple: #c084fc;
  --gradient-1: #6366f1;
  --gradient-2: #8b5cf6;
  --gradient-3: #ec4899;

  /* 毛玻璃 */
  --glass-bg: rgba(255, 255, 255, 0.8);

  /* 布局 */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

[data-theme="dark"] {
  --bg-primary: #0c0612;
  --bg-secondary: #1a0e24;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #fdf2f8;
  --text-secondary: #e9d5ff;
  --text-muted: #c4b5d0;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #c084fc;
  --accent-hover: #a855f7;
  --glass-bg: rgba(12, 6, 18, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'LemiPixel', 'Caveat', 'ZCOOL KuaiLe', 'Ma Shan Zheng', cursive;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

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

/* --------------------------------
   2. 背景效果（暗色模式毛玻璃）
   -------------------------------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  background:
    radial-gradient(ellipse 100% 60% at 30% 0%, rgba(196, 132, 252, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(244, 114, 182, 0.15), transparent 45%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(244, 114, 182, 0.1), transparent 40%);
}

[data-theme="dark"] .bg-gradient {
  opacity: 1;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

[data-theme="dark"] .grid-overlay {
  opacity: 1;
}

/* --------------------------------
   3. 导航栏
   -------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding-top: 10px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 按钮通用（主题切换、汉堡） */
.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
}

/* 主题切换图标 */
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* 语言切换器 */
.lang-switcher {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
}

[data-theme="dark"] .lang-dropdown {
  background: var(--bg-secondary);
}

.lang-dropdown.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-option.active {
  color: var(--accent);
  font-weight: 600;
}

/* --------------------------------
   4. 移动端侧边菜单
   -------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  z-index: 2000;
  transition: left var(--transition-base);
  overflow-y: auto;
}

[data-theme="dark"] .mobile-menu {
  background: var(--bg-secondary);
}

.mobile-menu.active {
  left: 0;
  box-shadow: var(--shadow-xl);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

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

.mobile-menu-nav {
  padding: 24px;
}

.mobile-menu-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.mobile-menu-link:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.mobile-menu-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-left: 16px;
}

.mobile-menu-social {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.mobile-menu-social:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --------------------------------
   5. Hero 区
   -------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* 频道描述（从 YouTube API 加载） */
.channel-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.channel-desc.loading {
  color: var(--text-muted);
}

/* 社交链接 */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-link:hover svg {
  transform: scale(1.1);
  transition: transform var(--transition-fast);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero 动画光球 */
.hero-visual {
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
  transition: opacity var(--transition-slow);
}

[data-theme="dark"] .glow-orb {
  opacity: 0.3;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-1);
  top: 0;
  right: 0;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--gradient-2);
  top: 150px;
  right: 200px;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--gradient-3);
  top: 300px;
  right: 100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

/* --------------------------------
   6. Section 通用
   -------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 16px;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.view-all:hover {
  color: var(--accent-hover);
}

/* --------------------------------
   7. 项目卡片
   -------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.project-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: transform var(--transition-base);
}

.project-card:hover .project-icon {
  transform: scale(1.15) rotate(-3deg);
}

.project-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

[data-theme="dark"] .project-tag {
  background: rgba(192, 132, 252, 0.15);
}

/* --------------------------------
   8. 视频区
   -------------------------------- */

/* 最新视频（特色卡片 + 骨架屏） */
.latest-video-wrap {
  margin-bottom: 48px;
}

.latest-video-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.latest-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .latest-video-card:hover {
  box-shadow: 0 12px 32px rgba(196, 132, 252, 0.18);
}

.latest-video-thumb-wrap {
  flex: 0 0 55%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.latest-video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-video-thumb-wrap .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.latest-video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.latest-video-info {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-video-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.latest-video-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.latest-video-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, rgba(255, 255, 255, 0.06) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-thumb {
  width: 100%;
  height: 100%;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 视频网格 */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base);
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-secondary);
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-wrap .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.video-card:hover .play-icon {
  opacity: 1;
}

.play-icon svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.video-info {
  padding: 4px 0;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
}

.video-fallback a {
  color: var(--accent);
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}

/* CTA 按钮 */
.cta-center {
  text-align: center;
  margin-top: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition-base);
}

.cta-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------
   9. 文章区
   -------------------------------- */
.articles {
  background: var(--bg-secondary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.article-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-date {
  font-size: 13px;
  color: var(--text-muted);
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.article-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  transition: gap var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.article-card:hover .article-link {
  letter-spacing: 0.5px;
}

/* --------------------------------
   10. 联系区
   -------------------------------- */
.contact-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --------------------------------
   11. Footer
   -------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-right a:hover {
  color: var(--text-primary);
}

/* --------------------------------
   12. 动画
   -------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------
   13. 响应式
   -------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .latest-video-card {
    flex-direction: column;
  }

  .latest-video-thumb-wrap {
    flex: none;
  }

  .latest-video-info {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }

  .projects-grid,
  .articles-grid,
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-visual {
    right: -300px;
    top: -100px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------
   14. 资源下载区块
   -------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

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

.resource-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

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

.resource-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.resource-download {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.resources-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --------------------------------
   15. 社区区块
   -------------------------------- */
.community-content {
  text-align: center;
  padding: 40px 0;
}

.community-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.discord-btn {
  background: #5865F2;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* --------------------------------
   16. 单个项目卡片样式
   -------------------------------- */
.projects-single {
  display: flex;
  justify-content: center;
}

.project-card-large {
  max-width: 500px;
  text-align: center;
}

.project-card-large .project-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.project-icon-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  overflow: visible;
}

.spinning-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin 10s linear infinite;
}

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

.project-card-large .project-tags {
  justify-content: center;
}

.project-hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------------------
   17. 文章链接样式
   -------------------------------- */
.articles-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.articles-divider {
  color: var(--text-muted);
}

.wechat-hint {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --------------------------------
   18. 简洁手绘风格导航
   -------------------------------- */
.paper-nav {
  display: flex;
  gap: 20px;
}

.paper-link {
  font-family: 'LemiPixel', cursive;
  font-size: 16px;
  padding: 6px 14px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.paper-link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .paper-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 选中状态 */
.paper-link.expanded {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.paper-link.expanded:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* 像素字体 */
.paper-link,
.section-title,
.project-name,
.article-title {
  font-family: 'LemiPixel', cursive;
}

/* 简洁背景 */
body {
  background: #ffffff;
  min-height: 100vh;
}

[data-theme="dark"] body {
  background: #0a0a0a;
}

/* Logo 像素风格 */
.paper-logo {
  font-family: 'LemiPixel', cursive !important;
  font-size: 24px !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--text-primary) !important;
  padding: 6px 16px !important;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  transition: all 0.2s ease;
}

.paper-logo:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .paper-logo:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 内容卡片保持普通样式 */

/* 首页内容隐藏 */
.hero.hidden {
  display: none;
}

/* 单页应用模式：默认隐藏所有 section */
.section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

/* section 展开状态 */
.section.expanded {
  max-height: 3000px;
  opacity: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: visible;
}

/* 全局社交链接栏 - 始终显示 */
.global-social-bar {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.social-links-centered {
  justify-content: center;
}

/* Footer 也默认隐藏 */
.footer {
  display: none;
}

.footer.show {
  display: block;
}
