/* Custom styles for navigation bar */

/* 颜色覆盖：将绿色系替换为蓝色系 */
:root {
  --primary: 217 91% 59%;
  --primary-content: 217 91% 10%;
  --secondary: 217 33% 17%;
  --secondary-content: 217 33% 90%;
  --accent: 217 79% 39%;
  --accent-content: 217 79% 95%;
  --neutral: 217 33% 97%;
  --neutral-content: 217 33% 20%;
  --base-100: 0 0% 96.5%;
  --base-200: 217 33% 96%;
  --base-300: 217 33% 92%;
  --base-content: 217 33% 10%;
  --info: 217 91% 59%;
  --success: 142 76% 36%;
  --warning: 25 90% 55%;
  --error: 0 84% 60%;
}

.dark {
  --primary: 217 79% 39%;
  --primary-content: 217 79% 95%;
  --secondary: 217 33% 17%;
  --secondary-content: 217 33% 90%;
  --accent: 217 91% 59%;
  --accent-content: 217 91% 10%;
  --neutral: 217 33% 10%;
  --neutral-content: 217 33% 90%;
  --base-100: 217 33% 4%;
  --base-200: 217 33% 8%;
  --base-300: 217 33% 12%;
  --base-content: 217 33% 90%;
  --info: 217 79% 39%;
  --success: 142 76% 36%;
  --warning: 25 90% 55%;
  --error: 0 84% 60%;
}

/* 确保背景色应用到所有元素 */
.dark {
  background-color: #2f4f4f !important;
}

.dark body {
  background-color: #2f4f4f !important;
}

.dark main {
  background-color: #2f4f4f !important;
}

.dark .container {
  background-color: #2f4f4f !important;
}

.dark .card {
  background-color: #2f4f4f !important;
  border-color: #3d5f5f !important;
}

.dark #dream-global-bg {
  background-color: #2f4f4f !important;
}

.dark #main-nav {
  background-color: #2f4f4f !important;
  box-shadow: none !important;
}
@media (max-width: 639px) {
  #main-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    background-color: var(--fallback-b1,oklch(var(--b1)/1)) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  }
}

@media (min-width: 640px) {
  #main-nav {
    position: static !important;
    bottom: auto !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
  }
}

/* 确保导航栏没有顶部阴影 */
#main-nav {
  box-shadow: none !important;
}

/* 关于页特殊样式 */
#dream-single-page header h1 {
  text-align: center !important;
}

/* 关于页 main 元素宽度增加 */
#dream-single-page main {
  max-width: 100% !important;
}

/* 关于页容器宽度增加 */
#dream-single-page {
  max-width: 100% !important;
}

/* 小屏幕页面内容高度调整 */
@media (max-width: 639px) {
  main {
    min-height: calc(100vh - 100px) !important;
    padding-bottom: 80px !important;
  }
  
  body {
    padding-bottom: 80px !important;
  }
  
  #dream-single-page {
    padding-bottom: 80px !important;
  }
}

/* 导航栏SVG图标大小调整 */
nav #main-nav img {
  width: 16px !important;
  height: 16px !important;
}

/* 移动导航菜单 SVG 图标大小调整 */
nav #main-nav .dropdown-content li a img {
  width: 16px !important;
  height: 16px !important;
}

/* ========================================
   关于页卡片样式
   ======================================== */

/* 关于页隐藏标题 - 仅针对 /about/ 路径 */
body.file-index #dream-single-page > header h1 {
  display: none !important;
}

/* 关于页内容中的 H1 标题居中 */
body.file-index #dream-single-page main h1 {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

/* 卡片网格布局 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 自定义卡片基础样式 */
.custom-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: left;
  color: #ffffff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.custom-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 个人简介卡片 */
.custom-card.profile-card {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 200px;
  text-align: left;
}

.custom-card.profile-card p:first-child {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.custom-card.profile-card p:nth-child(2) {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.custom-card.profile-card p:last-child {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* 主要卡片 */
.custom-card.primary {
  background: #ffffff;
  color: #333333;
  text-align: left;
  position: relative;
  overflow: visible;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 追求卡片的滚动文字 */
.pursuit-scroll {
  position: relative;
  height: 60px;
  overflow: hidden;
  width: 100%;
}

.pursuit-scroll .scroll-text {
  position: absolute;
  top: 0;
  left: 0;
  animation: scroll 15s linear infinite;
  width: 100%;
}

.pursuit-scroll .scroll-text span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  height: 60px;
  line-height: 60px;
  transition: color 0.3s ease;
}

/* 每个词的不同颜色 */
.pursuit-scroll .scroll-text span:nth-child(1) { color: #667eea; }
.pursuit-scroll .scroll-text span:nth-child(2) { color: #f093fb; }
.pursuit-scroll .scroll-text span:nth-child(3) { color: #4facfe; }
.pursuit-scroll .scroll-text span:nth-child(4) { color: #43e97b; }
.pursuit-scroll .scroll-text span:nth-child(5) { color: #fa709a; }
.pursuit-scroll .scroll-text span:nth-child(6) { color: #667eea; }

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  15% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-60px);
  }
  35% {
    transform: translateY(-60px);
  }
  40% {
    transform: translateY(-120px);
  }
  55% {
    transform: translateY(-120px);
  }
  60% {
    transform: translateY(-180px);
  }
  75% {
    transform: translateY(-180px);
  }
  80% {
    transform: translateY(-240px);
  }
  95% {
    transform: translateY(-240px);
  }
  100% {
    transform: translateY(-300px);
  }
}

.custom-card.primary h3 {
  color: #999999;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.custom-card.primary:not(.motto-card):not(.game-card) p:first-of-type {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* 座右铭卡片 */
.custom-card.primary.motto-card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.custom-card.primary.motto-card h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.custom-card.primary.motto-card p {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin: 0;
}

.custom-card.primary.motto-card .motto-first-line {
  color: rgba(255, 255, 255, 0.7);
}

/* 强调卡片 */
.custom-card.accent {
  background: #ffffff;
  color: #333333;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  min-height: 200px;
  position: relative;
  overflow: visible;
}

/* 特长卡片 */
.custom-card.accent.specialty-card {
  background: linear-gradient(135deg, #ff6b9d 0%, #ee5a6f 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-card.accent h3 {
  color: #999999;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.custom-card.accent p:first-of-type {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.custom-card.accent p:nth-of-type(2) {
  font-size: 1rem;
  font-weight: 600;
  color: #43e97b;
  margin-bottom: 0.8rem;
}

.custom-card.accent p:last-of-type {
  color: #999999;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* 特长卡片文字 */
.custom-card.accent.specialty-card h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.custom-card.accent.specialty-card p {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin: 0;
}

.custom-card.accent.specialty-card .specialty-first-line {
  color: rgba(255, 255, 255, 0.7);
}

/* 游戏卡片 */
.custom-card.game-card {
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  min-height: 200px;
}

/* 金铲铲之战卡片 */
.custom-card.game-card:not(.wangzhe-card) {
  background: url('/images/jinchanchan.webp') no-repeat center center;
  background-size: cover;
}

/* 王者荣耀卡片 */
.custom-card.wangzhe-card {
  background: url('/images/wangzherongyao.webp') no-repeat center center;
  background-size: cover;
}

/* 科技数码卡片 */
.custom-card.accent.interest-card {
  background: url('/images/guanzhu.webp') no-repeat center center;
  background-size: cover;
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  min-height: 200px;
}

.custom-card.accent.interest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.custom-card.accent.interest-card .game-category,
.custom-card.accent.interest-card h3,
.custom-card.accent.interest-card p {
  position: relative;
  z-index: 2;
}

.custom-card.accent.interest-card .game-category {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.custom-card.accent.interest-card h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  align-self: flex-start;
}

.custom-card.accent.interest-card p {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin: 0;
  align-self: flex-start;
  margin-top: auto;
}

/* 音乐偏好卡片 */
.custom-card.music-card {
  background: url('/images/mymusic.webp') no-repeat center center;
  background-size: cover;
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  min-height: 200px;
}

.custom-card.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.custom-card.music-card .game-category,
.custom-card.music-card h3,
.custom-card.music-card p {
  position: relative;
  z-index: 2;
}

.custom-card.music-card .game-category {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.custom-card.music-card h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  align-self: flex-start;
}

.custom-card.music-card .game-rank {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin: 0 0 0.5rem 0;
  align-self: flex-start;
}

.custom-card.music-card p:not(.game-rank) {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  align-self: flex-start;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-card.music-card .music-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 游戏卡片通用样式 */
.custom-card.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.custom-card.game-card .game-category,
.custom-card.game-card h3,
.custom-card.game-card .game-rank {
  position: relative;
  z-index: 2;
}

.custom-card.game-card .game-category {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.custom-card.game-card h3 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  align-self: flex-start;
}

.custom-card.game-card .game-rank {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin: 0;
  align-self: flex-start;
  margin-top: auto;
}

/* 位置卡片 */
.custom-card.location-card {
  background: #ffffff;
  color: #333333;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.custom-card.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/mymap.webp') no-repeat center center;
  background-size: cover;
  z-index: 1;
  transition: transform 0.3s ease;
}

.custom-card.location-card:hover::before {
  transform: scale(1.1);
}

.custom-card.location-card .location-content {
  position: relative;
  z-index: 2;
  background: rgba(144, 238, 144, 0.8);
  padding: 1rem;
  margin: 0;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.custom-card.location-card .location-content p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f4d4a;
}

/* 性格卡片的图片 */
.personality-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.personality-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0.6;
}

.custom-card.accent:hover .personality-image img {
  transform: translateY(-50%) scale(1.1);
  opacity: 0.7;
}

/* 性格卡片的内容区域 */
.personality-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding-right: 20px;
}

/* 博主信息卡片 */
.blogger-info-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  margin-bottom: 40px;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
}

.blogger-avatar {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blogger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
}

.blogger-avatar .emoji {
  position: absolute;
  bottom: 0px;
  right: 0px;
  font-size: 24px;
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.blogger-quotes {
  position: relative;
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 左侧引用 */
.blogger-quotes.left {
  align-items: flex-end;
}

/* 右侧引用 */
.blogger-quotes.right {
  align-items: flex-start;
}

/* 引用项 */
.quote-item {
  position: relative;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
  transition: all 0.3s ease;
  font-size: 12px;
  max-width: 200px;
}

.quote-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quote-item .emoji {
  font-size: 14px;
  flex-shrink: 0;
}

/* 浮动动画 */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.quote-item.float-1 {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0s;
}

.quote-item.float-2 {
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.quote-item.float-3 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.quote-item.float-4 {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.quote-item.float-5 {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

.quote-item.float-6 {
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 1s;
}

.quote-item.float-7 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 1.2s;
}

.quote-item.float-8 {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 1.4s;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-card {
    padding: 1.5rem;
  }
  
  /* 小屏幕性格卡片布局 - 保持水平排列 */
  .custom-card.accent {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.8rem;
    min-height: 160px;
  }
  
  /* 小屏幕性格卡片内容区域优化 */
  .custom-card.accent .personality-content {
    padding-right: 0;
    text-align: left;
    flex: 1;
  }
  
  /* 小屏幕性格卡片图片优化 */
  .custom-card.accent .personality-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
    margin-top: 0;
  }
  
  .custom-card.accent .personality-image img {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 小屏幕性格卡片文字大小优化 */
  .custom-card.accent:not(.specialty-card) p:first-of-type {
    font-size: 1.2rem;
  }
  
  .custom-card.accent:not(.specialty-card) p:nth-of-type(2) {
    font-size: 0.85rem;
  }
  
  .custom-card.accent:not(.specialty-card) p:last-of-type {
    font-size: 0.75rem;
  }
  
  /* 小屏幕特长卡片文字大小优化 */
  .custom-card.accent.specialty-card p {
    font-size: 1.8rem;
  }
  
  /* 小屏幕博主信息卡片 */
  .blogger-info-card {
    flex-direction: row;
    padding: 20px 10px;
    flex-wrap: nowrap;
  }
  
  .blogger-quotes {
    width: 40%;
    gap: 8px;
  }
  
  .quote-item {
    padding: 6px 8px;
    font-size: 10px;
    max-width: 120px;
  }
  
  .quote-item .emoji {
    font-size: 12px;
  }
}

/* 夜间模式样式 */
html.dark .custom-card {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 文章卡片深色模式优化 */
html.dark .dream-column .card {
  background: linear-gradient(145deg, #374151 0%, #1f2937 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease;
}

html.dark .dream-column .card:hover {
  background: linear-gradient(145deg, #3f4a5c 0%, #253040 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-4px);
}

html.dark .dream-column .card .card-title {
  color: #f3f4f6 !important;
  font-weight: 600;
}

html.dark .dream-column .card .date {
  color: #9ca3af !important;
}

html.dark .dream-column .card-body {
  color: #e5e7eb !important;
}

html.dark .dream-column .card .badge-primary {
  background-color: rgba(72, 187, 120, 0.2) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(72, 187, 120, 0.3) !important;
}

html.dark .dream-column .card .badge-ghost {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #9ca3af !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 文章卡片封面图片高度限制 */
.dream-column .card figure {
  overflow: hidden;
  height: 200px;
}

.dream-column .card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.dream-column .card:hover figure img {
  transform: scale(1.05);
}

html.dark .custom-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-4px);
}

html.dark .custom-card h3 {
  color: #f7fafc !important;
  text-shadow: none !important;
}

html.dark .custom-card p {
  color: #cbd5e0 !important;
  text-shadow: none !important;
}

html.dark .custom-card .game-category {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  text-shadow: none !important;
}

html.dark .custom-card .game-rank {
  color: #f7fafc !important;
  text-shadow: none !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

html.dark .custom-card .motto-first-line {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: none !important;
}

html.dark .custom-card .specialty-first-line {
  color: rgba(255, 255, 255, 0.7) !important;
  text-shadow: none !important;
}

/* 个人简介卡片夜间模式 */
html.dark .custom-card.profile-card {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%) !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.profile-card p:nth-child(2) {
  color: #f7fafc !important;
}

html.dark .custom-card.profile-card p:last-child {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 主要卡片夜间模式 */
html.dark .custom-card.primary {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.primary h3 {
  color: #a0aec0 !important;
}

html.dark .custom-card.primary:not(.motto-card):not(.game-card) p:first-of-type {
  color: #f7fafc !important;
}

/* 座右铭卡片夜间模式 */
html.dark .custom-card.primary.motto-card {
  background: linear-gradient(135deg, #c53030 0%, #742a2a 100%) !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.primary.motto-card h3 {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.dark .custom-card.primary.motto-card p {
  color: #f7fafc !important;
}

/* 追求卡片夜间模式 */
html.dark .pursuit-scroll {
  background: transparent !important;
}

html.dark .scroll-text span {
  text-shadow: none !important;
}

/* 调整追求卡片文字颜色以适应深色背景 */
html.dark .pursuit-scroll .scroll-text span:nth-child(1) { color: #90cdf4 !important; }
html.dark .pursuit-scroll .scroll-text span:nth-child(2) { color: #f6ad55 !important; }
html.dark .pursuit-scroll .scroll-text span:nth-child(3) { color: #68d391 !important; }
html.dark .pursuit-scroll .scroll-text span:nth-child(4) { color: #b794f6 !important; }
html.dark .pursuit-scroll .scroll-text span:nth-child(5) { color: #f56565 !important; }
html.dark .pursuit-scroll .scroll-text span:nth-child(6) { color: #90cdf4 !important; }

/* 强调卡片夜间模式 */
html.dark .custom-card.accent {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.accent h3 {
  color: #a0aec0 !important;
}

html.dark .custom-card.accent p:first-of-type {
  color: #f7fafc !important;
}

html.dark .custom-card.accent p:nth-of-type(2) {
  color: #68d391 !important;
}

html.dark .custom-card.accent p:last-of-type {
  color: #a0aec0 !important;
}

/* 特长卡片夜间模式 */
html.dark .custom-card.accent.specialty-card {
  background: linear-gradient(135deg, #dd6b20 0%, #743a1c 100%) !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.accent.specialty-card h3 {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.dark .custom-card.accent.specialty-card p {
  color: #f7fafc !important;
}

/* 金铲铲之战卡片夜间模式 */
html.dark .custom-card.game-card:not(.wangzhe-card) {
  background: url('/images/jinchanchan.webp') no-repeat center center !important;
  background-size: cover !important;
  color: #e2e8f0 !important;
}

/* 王者荣耀卡片夜间模式 */
html.dark .custom-card.wangzhe-card {
  background: url('/images/wangzherongyao.webp') no-repeat center center !important;
  background-size: cover !important;
  color: #e2e8f0 !important;
}

/* 游戏卡片夜间模式通用样式 */
html.dark .custom-card.game-card h3 {
  color: #f7fafc !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

html.dark .custom-card.game-card .game-rank {
  color: #f7fafc !important;
  background: rgba(0, 0, 0, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 科技数码卡片夜间模式 */
html.dark .custom-card.accent.interest-card {
  background: url('/images/guanzhu.webp') no-repeat center center !important;
  background-size: cover !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.accent.interest-card h3 {
  color: #f7fafc !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

html.dark .custom-card.accent.interest-card p {
  color: #f7fafc !important;
  background: rgba(0, 0, 0, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 音乐卡片夜间模式 */
html.dark .custom-card.music-card {
  background: url('/images/mymusic.webp') no-repeat center center !important;
  background-size: cover !important;
  color: #e2e8f0 !important;
}

html.dark .custom-card.music-card h3 {
  color: #f7fafc !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

html.dark .custom-card.music-card .game-rank {
  color: #f7fafc !important;
  background: rgba(0, 0, 0, 0.6) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html.dark .custom-card.music-card p:not(.game-rank) {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 位置卡片夜间模式 */
html.dark .custom-card.location-card {
  background: #2d3748 !important;
  color: #e2e8f0 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

html.dark .custom-card.location-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: url('/images/mymap.webp') no-repeat center center !important;
  background-size: cover !important;
  z-index: 1 !important;
  transition: transform 0.3s ease !important;
}

html.dark .custom-card.location-card:hover::before {
  transform: scale(1.1) !important;
}

html.dark .custom-card.location-card .location-content {
  position: relative !important;
  z-index: 2 !important;
  background: rgba(43, 108, 176, 0.8) !important;
  padding: 1rem !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: center !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

html.dark .custom-card.location-card .location-content p {
  color: #f7fafc !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* 确保博主信息卡片在深色模式下不改变样式 */
html.dark .blogger-info-card {
  background: transparent !important;
}

html.dark .blogger-avatar {
  border: 4px solid #fff !important;
}

html.dark .blogger-avatar .emoji {
  background: #fff !important;
  color: inherit !important;
}

html.dark .quote-item {
  background: #fff !important;
  color: #333 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html.dark .quote-item .emoji {
  color: inherit !important;
}

/* 确保图片在深色模式下正常显示 */
html.dark .custom-card img {
  filter: none !important;
  opacity: 0.8 !important;
  mix-blend-mode: normal !important;
}

/* 确保特殊颜色元素在深色模式下正常显示 */
html.dark .custom-card .personality-content {
  color: #e2e8f0 !important;
  text-shadow: none !important;
}

html.dark .custom-card .location-content {
  color: #cbd5e0 !important;
  text-shadow: none !important;
}

/* 确保卡片的伪元素在深色模式下正常显示 */
html.dark .custom-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  filter: none !important;
}

html.dark .custom-card.accent.interest-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  filter: none !important;
}

html.dark .custom-card.music-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  filter: none !important;
}

html.dark .custom-card.game-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  filter: none !important;
}

/* ========================================
   为什么建站卡片样式
   ======================================== */

.why-build-card {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.why-build-card:hover {
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.why-build-category {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.why-build-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.why-build-content {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;
}

.why-build-content p {
  margin-bottom: 1.25rem;
}

.why-build-content p:last-child {
  margin-bottom: 0;
}

/* 深色模式为什么建站卡片 */
html.dark .why-build-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .why-build-card:hover {
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .why-build-category {
  color: #6b7280;
}

html.dark .why-build-title {
  color: #f9fafb;
}

html.dark .why-build-content {
  color: #d1d5db;
}

html.dark .why-build-card::before {
  opacity: 0.1;
  filter: invert(1);
}

/* 移动端菜单深色模式背景 */
html.dark .dropdown-content.menu {
  background-color: #2f4f4f !important;
}

/* 文章页面视频组件样式 */
#dream-single-page main iframe,
#dream-single-page main video {
  width: 75% !important;
  max-width: 75% !important;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 深色模式视频组件 */
html.dark #dream-single-page main iframe,
html.dark #dream-single-page main video {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 文章页面正文和标题首行缩进 */
body:not(.file-index) #dream-single-page main p,
body:not(.file-index) #dream-single-page main h2,
body:not(.file-index) #dream-single-page main h3,
body:not(.file-index) #dream-single-page main h4,
body:not(.file-index) #dream-single-page main h5,
body:not(.file-index) #dream-single-page main h6 {
  text-indent: 2em;
}

/* 特殊元素不缩进 */
body:not(.file-index) #dream-single-page main blockquote p,
body:not(.file-index) #dream-single-page main pre p,
body:not(.file-index) #dream-single-page main code,
body:not(.file-index) #dream-single-page main li {
  text-indent: 0;
}

/* 标签页标签列表样式 */
body .taxonomy-page {
  width: 100% !important;
  max-width: 100% !important;
}

.taxonomy-page .flex.flex-wrap.gap-4 {
  max-width: 100% !important;
  overflow-x: visible !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

.taxonomy-page .prose {
  max-width: 100% !important;
  width: 100% !important;
}

.taxonomy-page .badge {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* 搜索框宽度优化 */
.input-bordered {
  max-width: 400px;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.input-bordered:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.input-bordered:focus-within {
  box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
  border-color: rgba(72, 187, 120, 0.5) !important;
  transform: translateY(-1px);
}

.input-bordered input {
  font-size: 15px;
}

.input-bordered ion-icon {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.input-bordered:hover ion-icon {
  color: rgba(0, 0, 0, 0.7);
}

.input-bordered:focus-within ion-icon {
  color: rgba(72, 187, 120, 0.9);
}

/* 深色模式搜索框样式 */
html.dark .input-bordered {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark .input-bordered input {
  color: #e2e8f0;
}

html.dark .input-bordered input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

html.dark .input-bordered ion-icon {
  color: rgba(226, 232, 240, 0.6);
}

html.dark .input-bordered:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .input-bordered:hover ion-icon {
  color: rgba(226, 232, 240, 0.8);
}

html.dark .input-bordered:focus-within {
  box-shadow: 0 4px 16px rgba(72, 187, 120, 0.4);
  border-color: rgba(72, 187, 120, 0.6) !important;
}

html.dark .input-bordered:focus-within ion-icon {
  color: rgba(72, 187, 120, 1);
}

/* 搜索页面搜索框居中 */
.search-section .input-bordered,
div[x-data] .input-bordered {
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

/* ========================================
   Footer 分隔线样式
   ======================================== */

.footer-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  position: relative;
}

.footer-divider img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  display: block;
  object-fit: contain;
}

/* 蝴蝶动画 */
.butterfly {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 5;
  animation: butterfly-fly 8s ease-in-out infinite;
}

.butterfly-1 {
  top: 0;
  left: 15%;
  animation-delay: 0s;
}

.butterfly-2 {
  top: 0;
  right: 20%;
  animation-delay: 2.5s;
}

.butterfly-3 {
  bottom: 0;
  left: 25%;
  animation-delay: 5s;
}

/* 中等屏幕蝴蝶位置调整 */
@media (min-width: 768px) {
  .butterfly {
    width: 35px;
    height: 35px;
  }
  
  .butterfly-1 {
    top: -5px;
    left: 12%;
  }
  
  .butterfly-2 {
    top: -5px;
    right: 15%;
  }
  
  .butterfly-3 {
    bottom: -5px;
    left: 20%;
  }
}

/* 大屏幕蝴蝶位置调整 */
@media (min-width: 1024px) {
  .butterfly {
    width: 40px;
    height: 40px;
  }
  
  .butterfly-1 {
    top: -8px;
    left: 10%;
  }
  
  .butterfly-2 {
    top: -8px;
    right: 12%;
  }
  
  .butterfly-3 {
    bottom: -8px;
    left: 18%;
  }
}

/* 超大屏幕蝴蝶位置调整 */
@media (min-width: 1280px) {
  .butterfly {
    width: 45px;
    height: 45px;
  }
  
  .butterfly-1 {
    top: -10px;
    left: 8%;
  }
  
  .butterfly-2 {
    top: -10px;
    right: 10%;
  }
  
  .butterfly-3 {
    bottom: -10px;
    left: 15%;
  }
}

@keyframes butterfly-fly {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  12.5% {
    transform: translate(12px, -8px) rotate(8deg) scale(1.05);
    opacity: 0.75;
  }
  25% {
    transform: translate(22px, -15px) rotate(12deg) scale(1);
    opacity: 0.85;
  }
  37.5% {
    transform: translate(30px, -10px) rotate(6deg) scale(1.02);
    opacity: 0.8;
  }
  50% {
    transform: translate(38px, -3px) rotate(0deg) scale(1);
    opacity: 0.7;
  }
  62.5% {
    transform: translate(30px, 6px) rotate(-6deg) scale(0.95);
    opacity: 0.6;
  }
  75% {
    transform: translate(22px, 12px) rotate(-12deg) scale(0.9);
    opacity: 0.5;
  }
  87.5% {
    transform: translate(12px, 6px) rotate(-6deg) scale(0.95);
    opacity: 0.6;
  }
}

/* 蝴蝶翅膀扇动动画 */
.butterfly path,
.butterfly ellipse {
  transform-origin: center;
  animation: wing-flap 0.3s ease-in-out infinite alternate;
}

@keyframes wing-flap {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0.6);
  }
}

/* 深色模式蝴蝶颜色调整 */
html.dark .butterfly-1 path {
  fill: #fca5a5 !important;
}

html.dark .butterfly-1 ellipse {
  fill: #f87171 !important;
}

html.dark .butterfly-2 path {
  fill: #6ee7b7 !important;
}

html.dark .butterfly-2 ellipse {
  fill: #34d399 !important;
}

html.dark .butterfly-3 path {
  fill: #93c5fd !important;
}

html.dark .butterfly-3 ellipse {
  fill: #60a5fa !important;
}

/* ========================================
   首页滚动公告栏样式
   ======================================== */

/* 首页顶部横幅样式 */
.hero-banner {
  width: 95%;
  height: 200px;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom, #F6F6F6, #E0E0E0, #BDBDBD);
  margin: 10px auto 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}

.hero-text {
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 1) 20%, 
    rgba(255, 255, 255, 1) 80%, 
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  user-select: none;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  transform-origin: center center;
}

.hero-image {
  position: absolute;
  right: 25%;
  bottom: 0;
  transform: translateX(50%);
  height: 220px;
  width: auto;
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
}

.hero-subtitle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-100%, -50%);
  right: auto;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  text-align: right;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  z-index: 5;
  pointer-events: none;
  text-shadow: 
    2px 2px 4px rgba(255, 255, 255, 0.9),
    -2px -2px 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.7);
}

/* 深色模式副标题 */
html.dark .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -2px -2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6);
}

/* ========================================
   三个卡片按钮样式
   ======================================== */

.card-buttons {
  width: 95%;
  height: 150px;
  margin: -1.5rem auto 1.5rem;
  display: flex;
  gap: 0;
  border-radius: 0.5rem;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.15),
    0 4px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-btn:hover::before {
  opacity: 1;
}

.card-btn span {
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 红色系渐变 */
.card-btn-red {
  background: linear-gradient(135deg, #F07484 0%, #f48fa5 50%, #f9a5b7 100%);
}

.card-btn-red::before {
  background: linear-gradient(135deg, #f48fa5 0%, #f9a5b7 50%, #fcb9c8 100%);
}

/* 蓝色系渐变 */
.card-btn-blue {
  background: linear-gradient(135deg, #B2DAC7 0%, #c4e4d3 50%, #d6eedf 100%);
}

.card-btn-blue::before {
  background: linear-gradient(135deg, #c4e4d3 0%, #d6eedf 50%, #e8f4eb 100%);
}

/* 绿色系渐变 */
.card-btn-green {
  background: linear-gradient(135deg, #F5C194 0%, #f8d0a8 50%, #fbdfbc 100%);
}

.card-btn-green::before {
  background: linear-gradient(135deg, #f8d0a8 0%, #fbdfbc 50%, #feeed0 100%);
}

/* 移动端适配 */
@media (max-width: 767px) {
  .card-buttons {
    height: 100px;
  }
  
  .card-btn {
    font-size: 1rem;
  }
}

/* 深色模式卡片按钮 */
html.dark .card-buttons {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .card-btn {
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark .card-btn::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

html.dark .card-btn:hover {
  box-shadow: 
    0 8px 12px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.dark .card-btn-red {
  background: linear-gradient(135deg, #d65d73 0%, #e07484 50%, #ea8b9a 100%);
}

html.dark .card-btn-red::before {
  background: linear-gradient(135deg, #e07484 0%, #ea8b9a 50%, #f4a2b0 100%);
}

html.dark .card-btn-blue {
  background: linear-gradient(135deg, #8fc7b0 0%, #a3d4bd 50%, #b7e1ca 100%);
}

html.dark .card-btn-blue::before {
  background: linear-gradient(135deg, #a3d4bd 0%, #b7e1ca 50%, #cbeed7 100%);
}

html.dark .card-btn-green {
  background: linear-gradient(135deg, #e8a878 0%, #f0b988 50%, #f5c194 100%);
}

html.dark .card-btn-green::before {
  background: linear-gradient(135deg, #f0b988 0%, #f5c194 50%, #facfa4 100%);
}

@media (max-width: 767px) {
  .hero-text {
    font-size: clamp(2.5rem, 12vw, 5rem);
    letter-spacing: 0;
    width: 90%;
    padding: 0 10px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-text {
    font-size: clamp(5rem, 10vw, 10rem);
    letter-spacing: 0;
    width: 95%;
  }
}

@media (min-width: 1024px) {
  .hero-text {
    font-size: clamp(6rem, 7vw, 12rem);
    letter-spacing: 0;
    width: 95%;
  }
}

/* 深色模式横幅 */
html.dark .hero-banner {
  background: linear-gradient(to bottom, #374151, #1f2937, #111827);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

html.dark .hero-text {
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 1) 30%, 
    rgba(255, 255, 255, 1) 70%, 
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.notice-bar {
  width: 95%;
  margin: -1.5rem auto 1.5rem;
  padding: 14px 18px;
  background: linear-gradient(to right, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  border-radius: 0;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: none;
  transition: all 0.3s ease;
}

.notice-bar:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.notice-icon:hover {
  transform: none;
}

.notice-icon ion-icon {
  font-size: 22px;
  color: #48bb78;
}

.notice-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.notice-title {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #48bb78;
  background: transparent;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: none;
}

.notice-scroll {
  flex: 1;
  height: 24px;
  overflow: hidden;
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0 8px;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scroll-notice 18s linear infinite;
}

.notice-item {
  font-size: 14px;
  color: #333333;
  line-height: 24px;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

@keyframes scroll-notice {
  0%, 15% {
    transform: translateY(0);
  }
  16.67%, 31.67% {
    transform: translateY(-24px);
  }
  33.33%, 48.33% {
    transform: translateY(-48px);
  }
  50%, 65% {
    transform: translateY(-72px);
  }
  66.67%, 81.67% {
    transform: translateY(-96px);
  }
  83.33%, 98.33% {
    transform: translateY(-120px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 深色模式公告栏 */
html.dark .notice-bar {
  background: linear-gradient(to right, #2d3748 0%, #1a202c 50%, #2d3748 100%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: none;
}

html.dark .notice-bar:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.dark .notice-title {
  color: #48bb78;
  background: transparent;
  box-shadow: none;
}

html.dark .notice-icon {
  background: transparent;
  box-shadow: none;
}

html.dark .notice-icon:hover {
  transform: none;
}

html.dark .notice-icon ion-icon {
  color: #48bb78;
}

html.dark .notice-item {
  color: #e2e8f0;
}

html.dark .notice-scroll {
  background: transparent;
}

/* ========================================
   首页网格布局优化
   ======================================== */

/* 确保 dream-grid 在加载时就有正确的布局 */
.dream-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.dream-column {
  box-sizing: border-box;
  padding: 0.5rem;
}

/* 移动端左右留白 */
@media (max-width: 767px) {
  .dream-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  .dream-column {
    width: calc(100% - 2rem) !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* 响应式布局 - 与 Tailwind 类配合使用 */
@media (min-width: 768px) {
  .dream-column {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .dream-column {
    width: 33.333333%;
  }
}

@media (min-width: 1280px) {
  .dream-column {
    width: 25%;
  }
}

/* 确保卡片图片加载时不影响布局 */
.dream-column img {
  min-height: 150px;
  object-fit: cover;
}

/* ========================================
   链接卡片样式
   ======================================== */

.link-card {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.link-card a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.03);
}

.link-card a:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-color: rgba(72, 187, 120, 0.3);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.link-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border-radius: 8px;
  color: #ffffff;
}

.link-card-icon svg {
  width: 24px;
  height: 24px;
}

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

.link-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-url {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.link-card-arrow svg {
  width: 20px;
  height: 20px;
}

.link-card a:hover .link-card-arrow {
  color: #48bb78;
  transform: translateX(4px);
}

/* 深色模式链接卡片 */
html.dark .link-card a {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

html.dark .link-card a:hover {
  background: linear-gradient(135deg, #2d3748 0%, #1f2937 100%);
  border-color: rgba(72, 187, 120, 0.4);
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

html.dark .link-card-title {
  color: #f9fafb;
}

html.dark .link-card-url {
  color: #9ca3af;
}

html.dark .link-card-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

html.dark .link-card-arrow {
  color: #6b7280;
}

html.dark .link-card a:hover .link-card-arrow {
  color: #10b981;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .link-card a {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .link-card-icon {
    width: 32px;
    height: 32px;
  }
  
  .link-card-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .link-card-title {
    font-size: 0.875rem;
  }
  
  .link-card-url {
    font-size: 0.75rem;
  }
  
  .link-card-arrow {
    width: 24px;
    height: 24px;
  }
  
  .link-card-arrow svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   文章页面宽度优化（关于页除外）
   ======================================== */

/* 文章页面主体最大宽度限制 */
body:not(.file-index) #dream-single-page {
  max-width: 900px !important;
}

/* 文章页面内容区域居中 */
body:not(.file-index) #dream-single-page main {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 文章标题居中 */
body:not(.file-index) #dream-single-page header h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 文章元信息居中 */
body:not(.file-index) #dream-single-page header p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 关于页不应用宽度限制 */
body.file-index #dream-single-page {
  max-width: 100% !important;
}

body.file-index #dream-single-page main {
  max-width: 100% !important;
}

/* 大屏幕优化 */
@media (min-width: 1024px) {
  body:not(.file-index) #dream-single-page {
    max-width: 900px !important;
  }
  
  body:not(.file-index) #dream-single-page main {
    max-width: 800px !important;
  }
}

/* 中等屏幕优化 */
@media (min-width: 768px) and (max-width: 1023px) {
  body:not(.file-index) #dream-single-page {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  body:not(.file-index) #dream-single-page main {
    max-width: 100% !important;
  }
}

/* ========================================
   移动端 Hero 横幅优化
   ======================================== */

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
    max-width: 150px;
  }
}
