/* ==========================================================
   HomePageV2 全站样式
   设计基调：年轻活力 · 圆角卡片 · 绿色主色 #42b983
   ========================================================== */

:root {
  --primary: #42b983;
  --primary-dark: #369a6c;
  --primary-bg: rgba(66, 185, 131, 0.08);
  --primary-border: rgba(66, 185, 131, 0.28);
  --text: #34495e;
  --text-light: #7f8c9b;
  --text-muted: #a0aab5;
  --bg: #f8faf9;
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(66, 185, 131, 0.15);
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Source Sans Pro", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- 全局滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(66, 185, 131, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(66, 185, 131, 0.5);
}

/* ==========================================================
   导航栏
   ========================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 14px 16px 0;
  pointer-events: none;
}

/* 首页：彻底去掉顶部导航栏（入口已全部卡片化） */
.is-home .site-nav {
  display: none;
}

/* 浮动胶囊导航（子页面） */
.nav-inner {
  position: relative;
  pointer-events: auto;
  height: 50px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.2), inset 0 0 16px rgba(255, 255, 255, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.nav-logo:hover {
  color: var(--primary);
}
.nav-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-auth {
  position: relative;
}

/* 移动端汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#siteNav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#siteNav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
#siteNav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 登录按钮 */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  background: transparent;
  transition: all 0.2s;
}
.nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 已登录用户名 */
.auth-user-trigger {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  transition: background 0.15s;
}
.auth-user-trigger:hover {
  background: var(--primary-bg);
}

/* 登录下拉 */
.auth-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 100;
}
.auth-nav-dropdown.open {
  display: block;
}
.auth-nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s;
}
.auth-nav-dropdown-item:hover {
  background: var(--primary-bg);
}
.auth-nav-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 0;
}
.auth-nav-logout {
  color: #e74c3c !important;
}
.auth-nav-logout:hover {
  background: rgba(231, 76, 60, 0.08) !important;
}

/* ==========================================================
   首页浮动板块（参考 yysuni 的自由浮动卡片面板）
   ========================================================== */
.home-canvas {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* 卡片定位包装器 */
.float-pos {
  position: absolute;
}

/* 统一卡片材质：半透明白 + 白边 + 轻 blur + 内高光 */
.float-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 32px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-card:hover {
  transform: scale(1.03);
  box-shadow: 0 36px 60px -30px rgba(0, 0, 0, 0.14), inset 0 0 24px rgba(255, 255, 255, 0.45);
}

/* 入场动画：按顺序淡入放大 */
.float-card,
.social-btn {
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes card-in {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 渐变文字 */
.text-gradient {
  background: linear-gradient(to right bottom, #42b983, #1fc9e7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* —— 问候卡（中心） —— */
.hi-pos { left: calc(50% - 180px); top: calc(45% - 160px); }
.hi-card {
  width: 360px;
  height: 320px;
  padding: 30px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hi-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 34px -8px rgba(0, 0, 0, 0.18);
  animation: float 4s ease-in-out infinite;
}
.hi-greeting { margin-top: 16px; font-size: 15px; color: #7b888e; font-weight: 500; }
.hi-name { font-size: 25px; font-weight: 700; margin-top: 4px; color: #34495e; }
.hi-o { font-size: 13px; font-weight: 400; color: #a0aab5; }
.hi-tagline { margin-top: 10px; font-size: 13px; color: #7b888e; }
.hi-hello { margin-top: 6px; font-size: 12px; color: #a0aab5; }

/* —— 站群导航卡（左） —— */
.nav-pos { left: calc(50% - 492px); top: 45%; transform: translateY(-50%); }
.nav-card { width: 280px; padding: 18px 16px 14px; }
.nav-card-head { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.nav-card-head:hover .nav-card-name { color: #42b983; }
.nav-card-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-card-name { font-weight: 700; font-size: 15px; color: #2c3e50; transition: color 0.15s; }
.nav-card-divider {
  margin: 14px 4px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}
.nav-card-list { position: relative; margin-top: 8px; }
.nav-card-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #34495e;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-card-item:hover { color: #42b983; }
.nav-card-item.active { color: #42b983; font-weight: 600; }
.nc-icon { width: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-card-pill {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: top 0.22s ease, height 0.22s ease, opacity 0.15s ease;
  z-index: 0;
}

/* —— 时钟卡（右上） —— */
.right-pos {
  left: calc(50% + 212px);
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.clock-card { width: 280px; padding: 18px 20px; text-align: center; }
.clock-time {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #2c3e50;
}
.clock-date { margin-top: 4px; font-size: 12px; color: #7b888e; }

/* —— 最近更新卡（右下） —— */
.updates-card { width: 280px; padding: 20px; }
.float-card-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.float-card-title:hover { color: var(--primary); }
.updates-list { list-style: none; margin: 0; padding: 0; }
.updates-list li {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
  color: #57606a;
  line-height: 1.4;
}
.updates-list li:last-child { border-bottom: none; }
.updates-date { font-size: 11px; color: #42b983; font-weight: 600; margin-bottom: 2px; }
.updates-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.updates-item-link,
.updates-item-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.updates-item-link {
  color: inherit;
  text-decoration: none;
}
.updates-item-link:hover { color: var(--primary); }
.updates-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* —— 社交图标行（问候卡下方） —— */
.social-pos { left: 50%; top: calc(45% + 168px); transform: translateX(-50%); z-index: 30; }
.social-row { display: flex; gap: 14px; }
.social-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
  transform: scale(1.1) translateY(-3px);
}
.social-bili {
  background: rgba(255, 255, 255, 0.65);
  color: #fb7299;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.15);
}
.social-github {
  background: rgba(255, 255, 255, 0.65);
  color: #24292f;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.15);
}
.social-email {
  background: rgba(255, 255, 255, 0.65);
  color: #42b983;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.15);
}

/* —— 社交行登录入口（未登录=按钮，已登录=头像下拉） —— */
.auth-btn { position: relative; }
/* 登录按钮由内层 button 处理 hover 位移，外层容器不再位移（避免双重抬起） */
.auth-btn.social-btn:hover { transform: none; }
.auth-home-login,
.auth-home-trigger {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.65);
  color: #1fc9e7;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-home-login:hover,
.auth-home-trigger:hover {
  transform: scale(1.1) translateY(-3px);
}
.auth-home-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-home-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1fc9e7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.auth-home-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 6px;
  z-index: 100;
}
.auth-home-dropdown.open { display: block; }
.auth-home-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #34495e;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s;
}
.auth-home-dropdown-item:hover { background: rgba(66, 185, 131, 0.1); }
.auth-home-dropdown-divider { height: 1px; background: rgba(0, 0, 0, 0.06); margin: 4px 0; }
.auth-home-logout { color: #e74c3c !important; }

/* —— 音乐卡（问候卡上方） —— */
.music-pos { left: 50%; top: calc(45% - 260px); transform: translateX(-50%); }
.music-card {
  width: 320px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.music-ico { color: #42b983; flex-shrink: 0; }
.music-main { flex: 1 1 auto; min-width: 0; }
.music-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-progress {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}
.music-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(to right, #42b983, #1fc9e7);
  transition: width 0.3s linear;
}
.music-playbtn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #42b983;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, opacity 0.15s;
}
.music-playbtn:hover { transform: scale(1.06); }
.music-playbtn:disabled { opacity: 0.4; cursor: not-allowed; }

/* —— 随机语录卡（社交行下方） —— */
.quote-pos { left: 50%; top: calc(45% + 240px); transform: translateX(-50%); }
.quote-card {
  width: 340px;
  padding: 18px 24px;
  text-align: center;
}
.quote-text { font-size: 14px; color: #2c3e50; line-height: 1.7; }
.quote-author { margin-top: 8px; font-size: 12px; color: #a0aab5; }

/* —— 点赞卡（左下，SVG 爱心，计数 hover 显示） —— */
.like-pos { left: calc(50% - 240px); top: calc(45% + 240px); }
.like-card {
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fda4af; /* 未赞：浅玫瑰描边 */
  transition: transform 0.15s, color 0.15s;
}
.like-btn:hover { transform: scale(1.12); }
.like-btn.liked { color: #fb7185; } /* 已赞：实心玫瑰 */
.like-heart { display: block; }
.like-btn.liked .like-heart { fill: currentColor; }
/* 点赞跳动动画 */
.like-btn.pop { animation: like-pop 0.45s ease; }
@keyframes like-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.4) rotate(-10deg); }
  70% { transform: scale(0.92) rotate(6deg); }
  100% { transform: scale(1); }
}
/* 统一卡片 tooltip（hover 显示，点赞/分享/社交/登录共用） */
.card-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
}
.like-card:hover .card-tooltip,
.share-card:hover .card-tooltip,
.social-btn:hover .card-tooltip,
.auth-home-login:hover .card-tooltip,
.auth-home-trigger:hover .card-tooltip {
  opacity: 1;
}

/* —— 分享卡（左下，点赞卡旁） —— */
.share-pos { left: calc(50% + 184px); top: calc(45% + 240px); }
.share-card {
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #5b9cf5; /* 分享蓝，与点赞玫瑰色区分 */
  transition: transform 0.15s, color 0.15s;
}
.share-btn:hover { transform: scale(1.12); }
.share-icon { display: block; }

/* —— 入场顺序（stagger） —— */
.music-pos .float-card { animation-delay: 0.08s; }
.hi-pos .float-card { animation-delay: 0.16s; }
.nav-pos .float-card { animation-delay: 0.24s; }
.right-pos .float-card:nth-child(1) { animation-delay: 0.32s; }
.right-pos .float-card:nth-child(2) { animation-delay: 0.40s; }
.social-row .social-btn:nth-child(1) { animation-delay: 0.52s; }
.social-row .social-btn:nth-child(2) { animation-delay: 0.58s; }
.social-row .social-btn:nth-child(3) { animation-delay: 0.64s; }
.social-row .social-btn:nth-child(4) { animation-delay: 0.70s; }
.like-pos .float-card { animation-delay: 0.76s; }
.share-pos .float-card { animation-delay: 0.82s; }
.quote-pos .float-card { animation-delay: 0.88s; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 185, 131, 0.3);
}

/* ==========================================================
   普通页面容器（games / comments / dev）
   ========================================================== */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 36px) 20px 90px;
  min-height: 100vh;
}

.page-head {
  text-align: center;
  margin-bottom: 36px;
}
.page-head h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}
.page-head p {
  color: var(--text-light);
  margin-top: 8px;
}

/* 居中浮动卡（coming 占位页） */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容垂直居中（games 等） */
.page-vert-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coming-card {
  width: 400px;
  padding: 46px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.15s;
}
.coming-icon { font-size: 52px; line-height: 1; }
.coming-card h1 { font-size: 1.5rem; font-weight: 700; color: #2c3e50; }
.coming-card p { font-size: 14px; color: #7b888e; }

/* ==========================================================
   游戏站卡片
   ========================================================== */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.game-card {
  position: relative;
  flex: 0 0 340px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.game-card:nth-child(1) { animation-delay: 0.15s; }
.game-card:nth-child(2) { animation-delay: 0.3s; }
.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 36px 60px -30px rgba(0, 0, 0, 0.16), inset 0 0 24px rgba(255, 255, 255, 0.45);
}
.game-card .icon {
  font-size: 42px;
  line-height: 1;
}
.game-card strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
}
.game-card .desc {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}
.game-card .action {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* 维护中遮罩 */
.game-card.maintenance-locked {
  cursor: not-allowed;
  pointer-events: none;
}
.game-card .maintenance-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 32px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(2px);
  z-index: 2;
  text-align: center;
  padding: 16px;
}
.game-card .maintenance-overlay .m-icon { font-size: 34px; line-height: 1; }
.game-card .maintenance-overlay .m-title { font-size: 20px; font-weight: 700; color: #fff; }
.game-card .maintenance-overlay .m-countdown {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fca5a5;
}
.game-card .maintenance-overlay .m-hint { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ==========================================================
   留言板壳
   ========================================================== */
.comment-shell {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  padding: 40px 32px;
  min-height: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.15s;
}
.comment-shell .cs-icon { font-size: 48px; }
.comment-shell .cs-title { font-size: 1.2rem; font-weight: 600; color: var(--text); }
.comment-shell .cs-desc { font-size: 14px; color: var(--text-light); }

/* ==========================================================
   更新帖页面
   ========================================================== */
.updates-page-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  padding: 24px 34px;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.15s;
}
.updates-page-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.updates-page-item:last-child { border-bottom: none; }
.updates-page-date {
  flex-shrink: 0;
  width: 92px;
  font-size: 12px;
  font-weight: 600;
  color: #42b983;
  font-variant-numeric: tabular-nums;
}
.updates-page-main {
  min-width: 0;
  padding-right: 78px; /* 给右上角图标留空间 */
}
.updates-page-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.updates-page-link:hover .updates-page-text { color: var(--primary); }
.updates-page-text {
  font-size: 14px;
  color: #34495e;
  line-height: 1.6;
  transition: color 0.15s;
}
.updates-page-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #a0aab5;
  line-height: 1.5;
}

/* 更新帖条目标题行 + 右上角图标 */
.updates-page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.updates-page-title-row .updates-page-link,
.updates-page-title-row .updates-page-text {
  flex: 1 1 auto;
  min-width: 0;
}
/* 右上角图标：绝对定位到条目右上角 */
.updates-page-icons {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.up-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.up-icon:hover {
  transform: scale(1.12);
  opacity: 0.85;
}
.up-bilibili {
  color: #fb7299;
  background: rgba(251, 114, 153, 0.1);
}
.up-download {
  /* 与 FileServer 下载站同配色：主蓝 #3b82f6 */
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}
.up-github {
  color: #24292f;
  background: rgba(36, 41, 47, 0.08);
}

/* ==========================================================
   开发站应用卡片网格
   ========================================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.1), inset 0 0 24px rgba(255, 255, 255, 0.35);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.app-card:hover {
  transform: scale(1.03);
  box-shadow: 0 36px 60px -30px rgba(0, 0, 0, 0.16), inset 0 0 24px rgba(255, 255, 255, 0.45);
}
.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
}
.app-card-name { font-size: 17px; font-weight: 700; color: #2c3e50; }
.app-card-desc {
  font-size: 13px;
  color: #7b888e;
  text-align: center;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card-action { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 4px; }
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }
.app-card:nth-child(n+7) { animation-delay: 0.7s; }

/* ==========================================================
   页脚 + 挂件
   ========================================================== */
.site-footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  z-index: 10;
  pointer-events: none;
}
.site-footer a {
  color: var(--primary);
  pointer-events: auto;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* 左下角角标（B站 蓝 / 邮箱 绿） */
.corner {
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.corner svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.15s ease;
}
.corner:hover svg {
  transform: scale(1.08);
}
.corner-bilibili {
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #00a1d6 50%, transparent 50%);
}
.corner-email {
  bottom: 0;
  left: 0;
}

/* PV/UV 徽标 */
.stats-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: #888;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  z-index: 10000;
}

/* ==========================================================
   响应式
   ========================================================== */
/* 首页浮动面板：桌面下方角标隐藏（B站/邮箱已并入社交卡片） */
.is-cover .corner {
  display: none;
}

/* 首页移动端：浮动卡堆叠为纵向列表 */
@media (max-width: 1080px) {
  .home-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: calc(var(--nav-h) + 24px) 16px 84px;
    overflow: visible;
  }
  .float-pos {
    position: static;
    transform: none !important;
  }
  .hi-card,
  .nav-card,
  .clock-card,
  .updates-card,
  .music-card,
  .quote-card {
    width: min(360px, 100%);
  }
  .social-pos {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* 汉堡菜单：链接折叠为下拉面板 */
  .nav-toggle {
    display: flex;
    margin-left: 10px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 6px 14px 10px;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.25);
  }
  #siteNav.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-auth {
    margin-left: auto;
  }
  .cover h1 {
    font-size: 2rem;
  }
}
