/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #d946a8;
  --primary-light: #f0abce;
  --accent: #e879a8;
  --bg-dark: #1a0a18;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(30, 30, 30, 0.6);
  --pink: #f472b6;
  --green: #34d399;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: url('https://uploadstatic.mihoyo.com/bh3-wiki/2022/03/23/77124895/0603bf2766b215d52077161ab7861a35_8389848195103908588.png') center/cover no-repeat fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 70, 168, 0.4) transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(217, 70, 168, 0.4);
  border-radius: 3px;
}

body::after {
  content: '';
  position: fixed;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url('https://uploadstatic.mihoyo.com/bh3-wiki/2022/03/23/77124895/0603bf2766b215d52077161ab7861a35_8389848195103908588.png') center/cover no-repeat;
  filter: blur(var(--bg-blur, 0px));
  z-index: -1;
  transition: filter 0.1s ease;
}

/* ========== 背景 ========== */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(217, 70, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ========== 欢迎页 ========== */
.welcome-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.1s ease;
  background: rgba(15, 10, 26, 0.3);
}

.welcome-content {
  text-align: center;
}

.welcome-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin: 0;
  line-height: 1.3;
}

.welcome-title.accent {
  background: linear-gradient(135deg, #f0abce, #f472b6, #d946a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(217, 70, 168, 0.4));
}

.welcome-gif {
  display: block;
  width: 120px;
  margin: 20px auto 0;
  border-radius: 12px;
}

.scroll-hint {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 2px;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* 主页面容器 */
.main-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 150vh;
  padding-top: 55px;
  min-height: 100vh;
}

/* 背景粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(3px 3px at 20px 30px, rgba(240, 171, 206, 0.5), transparent),
    radial-gradient(4px 4px at 80px 70px, rgba(244, 114, 182, 0.5), transparent),
    radial-gradient(2px 2px at 150px 40px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(3px 3px at 60px 90px, rgba(240, 171, 206, 0.5), transparent),
    radial-gradient(4px 4px at 180px 20px, rgba(244, 114, 182, 0.5), transparent),
    radial-gradient(2px 2px at 120px 60px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 200px 100px;
  animation: sparkle 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sparkle {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

/* ========== 毛玻璃效果 ========== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: rgba(15, 10, 26, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: inherit;
}

.nav-logo .heart {
  color: var(--pink);
  margin: 0 2px;
}

.nav-logo .logo-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(217, 70, 168, 0.2);
}

.nav-links a.active {
  color: var(--primary-light);
}

/* ========== 搜索按钮 + 弹窗 ========== */
.search-fab {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-fab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.search-modal-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  padding: 14px 20px;
  gap: 12px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal.active .search-modal-box {
  transform: translateY(0);
}

.search-modal-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
}

.search-modal-box input::placeholder {
  color: var(--text-secondary);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

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

/* ========== 主内容区 ========== */
.main-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 24px auto;
  padding: 0 40px;
}

/* ========== 个人信息卡片 ========== */
.profile-card {
  padding: 28px;
}

.profile-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.avatar {
  flex-shrink: 0;
}

.avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  box-shadow: 0 0 20px rgba(217, 70, 168, 0.3);
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;

}

.profile-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;

}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ========== 音乐播放器 ========== */
.music-player {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.music-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-cover img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.music-title {
  font-size: 18px;
  font-weight: 600;

}

.music-artist {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.music-lyric {
  font-size: 13px;
  color: var(--primary-light);
  text-align: center;
  padding: 4px 0;
  min-height: 20px;
  transition: opacity 0.15s ease;
}

.music-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-current, .time-total {
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 35px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(217, 70, 168, 0.5);
  transition: left 0.3s ease;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.ctrl-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(217, 70, 168, 0.4);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(217, 70, 168, 0.6);
}

/* ========== 歌词弹幕区 ========== */
.danmaku-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 45px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #e879a8, #f472b6, #d946a8, #e879a8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(217, 70, 168, 0.4)) drop-shadow(0 0 20px rgba(244, 114, 182, 0.2));
  letter-spacing: 2px;
  will-change: transform;
  font-style: italic;
}

body.day-mode .danmaku-item {
  background: linear-gradient(135deg, #d946a8, #ec4899, #e879a8, #d946a8);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.8));
}

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

/* ========== 页面滑动切换 ========== */
.pages-container {
  position: relative;
  z-index: 10;
  display: flex;
  width: 300%;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pages-container[data-page="home"] {
  transform: translateX(0);
}

.pages-container[data-page="projects"] {
  transform: translateX(-33.333%);
}

.pages-container[data-page="music"] {
  transform: translateX(-66.666%);
}

.page {
  width: 33.333%;
  flex-shrink: 0;
}

.page-projects {
  padding-top: 55px;
}

.page-projects .blog-grid {
  padding-bottom: 120px;
}

.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  padding: 40px 0 10px;
  color: var(--text-primary);
}

/* ========== 音乐页 ========== */
.music-page-content {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 40px 40px;
}

.song-list {
  flex: 1;
  padding: 16px;
  max-height: 500px;
  overflow-y: auto;
}

.song-list::-webkit-scrollbar {
  width: 4px;
}

.song-list::-webkit-scrollbar-thumb {
  background: rgba(217, 70, 168, 0.3);
  border-radius: 2px;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-primary);
}

.song-item:hover {
  background: rgba(217, 70, 168, 0.1);
}

.song-item.active {
  background: rgba(217, 70, 168, 0.15);
}

.song-item .song-index {
  font-size: 13px;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}

.song-item .song-name {
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-item .song-duration {
  font-size: 12px;
  color: var(--text-secondary);
}

.music-page-player {
  width: 320px;
  padding: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mp-cover {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
}

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

.mp-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.mp-artist {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mp-lyric {
  font-size: 13px;
  color: var(--pink);
  min-height: 20px;
  margin-bottom: 16px;
  transition: opacity 0.15s;
}

.mp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ========== 关于卡片 & 项目页 ========== */
.about-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
  margin: 24px auto;
  padding: 30px 40px;
  box-sizing: border-box;
}

.about-card h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ========== 图片弹窗 ========== */
.img-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.img-popup-overlay.active {
  display: flex;
}

.img-popup-box {
  padding: 24px;
  border-radius: 16px;
  max-width: 320px;
  max-height: 320px;
}

.img-popup-box img {
  display: block;
  width: 260px;
  height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== 博客卡片网格 ========== */
.blog-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.blog-card {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(217, 70, 168, 0.2);
  border-color: rgba(217, 70, 168, 0.3);
}

/* 大卡片 - 左侧 */
.card-large {
  grid-row: span 2;
}

.card-large .card-image {
  height: 260px;
}

/* 宽卡片 - 右上 */
.card-wide {
  grid-column: span 2;
}

.card-wide .card-image {
  height: 200px;
}

.card-wide .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.card-wide .card-title {
  font-size: 22px;
}

/* 中间卡片 */
.card-medium .card-image {
  height: 160px;
}

/* 小卡片 - 夜间模式 */
.card-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(217, 70, 168, 0.15), rgba(244, 114, 182, 0.1));
}

.night-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(217, 70, 168, 0.4);
}

.night-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;

}

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

/* 卡片图片 */
.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-badge.latest {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.card-badge.records {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
}

.card-date {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-body {
  padding: 16px 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;

}

.card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);

  line-height: 1.5;
}

.card-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 14px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--primary-light);
}

/* ========== GitHub 仓库 ========== */
.github-card {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 16px;
}

.github-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 168, 0.3);
  box-shadow: 0 8px 30px rgba(217, 70, 168, 0.15);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-header i {
  font-size: 18px;
  color: var(--primary);
}

.repo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.repo-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.repo-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.repo-lang {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.repo-lang::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
}

.repo-stars {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.repo-stars i {
  color: #fbbf24;
  font-size: 11px;
}

/* ========== 底部状态栏 ========== */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  background: rgba(15, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  border-radius: 0;
}

.footer-time {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-tech {
  display: flex;
  gap: 8px;
}

.tech-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}

.tech-badge.html {
  color: #e34c26;
  border-color: rgba(227, 76, 38, 0.3);
  background: rgba(227, 76, 38, 0.08);
}

.tech-badge.css {
  color: #264de4;
  border-color: rgba(38, 77, 228, 0.3);
  background: rgba(38, 77, 228, 0.08);
}

.tech-badge.js {
  color: #f7df1e;
  border-color: rgba(247, 223, 30, 0.3);
  background: rgba(247, 223, 30, 0.08);
}

.tech-badge.gsap {
  color: #88ce02;
  border-color: rgba(136, 206, 2, 0.3);
  background: rgba(136, 206, 2, 0.08);
}

.footer-icp {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== 浮动按钮 ========== */
.float-buttons {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.float-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ========== 像素小猫 ========== */
.pixel-cat {
  position: fixed;
  right: 24px;
  bottom: 180px;
  z-index: 250;
  cursor: pointer;
  animation: catBounce 2s ease-in-out infinite;
}

@keyframes catBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cat-body {
  width: 40px;
  height: 36px;
  position: relative;
}

.cat-ear {
  position: absolute;
  top: 0;
  width: 12px;
  height: 10px;
  background: #6b7280;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.cat-ear.left { left: 4px; }
.cat-ear.right { right: 4px; }

.cat-face {
  position: absolute;
  top: 8px;
  left: 2px;
  right: 2px;
  height: 28px;
  background: #9ca3af;
  border-radius: 6px 6px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.cat-eye {
  width: 6px;
  height: 6px;
  background: #1f2937;
  border-radius: 50%;
  position: absolute;
  top: 10px;
}

.cat-eye.left { left: 9px; }
.cat-eye.right { right: 9px; }

.cat-mouth {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #6b7280;
  border-radius: 0 0 50% 50%;
  margin-top: 10px;
}

/* ========== 日间模式 ========== */
body.day-mode {
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(30, 30, 60, 0.6);
}

body.day-mode::after {
  filter: blur(10px) brightness(1.1);
}

body.day-mode .navbar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(200, 200, 220, 0.3);
}

body.day-mode .nav-links a {
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .nav-links a:hover,
body.day-mode .nav-links a.active {
  color: var(--primary);
  background: rgba(217, 70, 168, 0.1);
}

body.day-mode .search-fab {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 200, 220, 0.4);
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .search-modal-box input {
  color: #1a1a2e;
}

body.day-mode .search-close {
  color: rgba(30, 30, 60, 0.5);
}

body.day-mode .stat-num {
  background: linear-gradient(135deg, #d946a8, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.day-mode .social-icon {
  background: rgba(217, 70, 168, 0.08);
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .social-icon:hover {
  background: var(--primary);
  color: white;
}

body.day-mode .music-label {
  color: var(--primary);
}

body.day-mode .music-lyric {
  color: var(--primary);
}

body.day-mode .time-current,
body.day-mode .time-total {
  color: rgba(30, 30, 60, 0.5);
}

body.day-mode .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

body.day-mode .ctrl-btn {
  color: rgba(30, 30, 60, 0.5);
}

body.day-mode .ctrl-btn:hover {
  color: #1a1a2e;
}


body.day-mode .card-badge.latest {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

body.day-mode .card-badge.records {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

body.day-mode .card-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.day-mode .card-excerpt {
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .dot {
  background: rgba(0, 0, 0, 0.15);
}

body.day-mode .night-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

body.day-mode .night-desc {
  color: rgba(30, 30, 60, 0.5);
}

body.day-mode .footer-bar {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(200, 200, 220, 0.3);
}

body.day-mode .footer-status {
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .footer-icp {
  color: rgba(30, 30, 60, 0.5);
}

body.day-mode .float-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 200, 220, 0.4);
  color: rgba(30, 30, 60, 0.6);
}

body.day-mode .float-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

body.day-mode .cat-ear {
  background: #9ca3af;
}

body.day-mode .cat-face {
  background: #d1d5db;
}

body.day-mode .cat-eye {
  background: #374151;
}

body.day-mode .cat-mouth {
  border-bottom-color: #9ca3af;
}

body.day-mode .bg-overlay {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(217, 70, 168, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 120px;
  }

  .music-page-content {
    flex-direction: column;
    padding: 10px 16px 40px;
  }

  .music-page-player {
    width: 100%;
  }

  .card-large, .card-wide {
    grid-row: span 1;
    grid-column: span 1;
  }


  .footer-tech {
    flex-wrap: wrap;
    justify-content: center;
  }
}
