/*
 * Landing
 *
 * Author: metheno
 * Website: https://www.metheno.net/
 * Version: v0.2
 *
 * Copyright 2017 metheno
 */

/* 添加字体声明 */
@font-face {
  font-family: 'Note-Script';
  src: url('../fonts/Note-Script-SemiBold-2.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: '迷你繁方篆';
  src: url('../fonts/迷你繁方篆.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* 主题变量 */
:root {
  --bg-color: #121212;
  --text-color: #c1a86a;
  --link-bg: #0d0d0d;
  --link-hover-bg: #c1a86a;
  --link-hover-text: #0c0c0c;
  --shadow-color: rgba(193, 168, 106, 0.3);
  --app-bg: rgba(18, 18, 18, 0.75);
  --overlay-color: rgba(0, 0, 0, 0.5);
}

/* 日间主题 */
body.light-theme {
  --bg-color: #f5f5f5;
  --text-color: #ffffff;
  --link-bg: #e8e8e8;
  --link-hover-bg: #8b7355;
  --link-hover-text: #ffffff;
  --shadow-color: rgba(139, 115, 85, 0.3);
  --app-bg: rgba(245, 245, 245, 0.75);
  --overlay-color: rgba(255, 255, 255, 0);
}

/* 应用主题变量 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Pingfang SC', 'Microsoft Yahei', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  width: 100vw;
  height: 100vh;
  cursor: default;
  user-select: none;
  transition: all 0.5s ease;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 如果需要滚动但不显示滚动条，可以添加以下样式 */
body::-webkit-scrollbar {
  display: none;  /* Chrome, Safari 和 Opera */
}

body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* 确保布局中心一致，无论是否有壁纸 */
#app {
  padding: 2rem;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 700px;
  transition: all 0.5s ease;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

/* 当使用必应壁纸时，调整卡片样式使其完全透明 */
body[style*="background-image"] #app {
  padding: 40px 20px;
  background-color: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

/* 确保非壁纸模式下的卡片样式保持不变 */
body:not([style*="background-image"]) #app {
  background-color: var(--app-bg);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 40px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 标题样式统一 */
.title {
  margin: 0;
  font-family: '迷你繁方篆', serif;
  font-size: 6.5vmax;
  margin-bottom: 1rem;
}

/* 非壁纸模式下的标题样式 */
body:not([style*="background-image"]) .title {
  text-shadow: 0 0 10px var(--shadow-color);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.description {
  padding-bottom: 5vh;
  font-family: 'Note-Script', serif;
  font-size: 2em;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 20px 0;
  color: var(--text-color);
  opacity: 0.8;
  text-align: center;
  overflow: hidden;
  display: inline;
  white-space: normal;
  word-wrap: break-word;
}

.description span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  animation: splitText 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  will-change: transform, opacity;
  margin: 0;
  padding: 0;
}

.description span:nth-child(1) { animation-delay: 0.1s; }
.description span:nth-child(2) { animation-delay: 0.2s; }
.description span:nth-child(3) { animation-delay: 0.3s; }
.description span:nth-child(4) { animation-delay: 0.4s; }
.description span:nth-child(5) { animation-delay: 0.5s; }
.description span:nth-child(6) { animation-delay: 0.6s; }
.description span:nth-child(7) { animation-delay: 0.7s; }
.description span:nth-child(8) { animation-delay: 0.8s; }
.description span:nth-child(9) { animation-delay: 0.9s; }
.description span:nth-child(10) { animation-delay: 1.0s; }
.description span:nth-child(11) { animation-delay: 1.1s; }
.description span:nth-child(12) { animation-delay: 1.2s; }
.description span:nth-child(13) { animation-delay: 1.3s; }
.description span:nth-child(14) { animation-delay: 1.4s; }
.description span:nth-child(15) { animation-delay: 1.5s; }
.description span:nth-child(16) { animation-delay: 1.6s; }
.description span:nth-child(17) { animation-delay: 1.7s; }
.description span:nth-child(18) { animation-delay: 1.8s; }
.description span:nth-child(19) { animation-delay: 1.9s; }
.description span:nth-child(20) { animation-delay: 2.0s; }
.description span:nth-child(21) { animation-delay: 2.1s; }
.description span:nth-child(22) { animation-delay: 2.2s; }
.description span:nth-child(23) { animation-delay: 2.3s; }
.description span:nth-child(24) { animation-delay: 2.4s; }
.description span:nth-child(25) { animation-delay: 2.5s; }
.description span:nth-child(26) { animation-delay: 2.6s; }
.description span:nth-child(27) { animation-delay: 2.7s; }
.description span:nth-child(28) { animation-delay: 2.8s; }
.description span:nth-child(29) { animation-delay: 2.9s; }
.description span:nth-child(30) { animation-delay: 3.0s; }
.description span:nth-child(31) { animation-delay: 3.1s; }
.description span:nth-child(32) { animation-delay: 3.2s; }
.description span:nth-child(33) { animation-delay: 3.3s; }
.description span:nth-child(34) { animation-delay: 3.4s; }
.description span:nth-child(35) { animation-delay: 3.5s; }
.description span:nth-child(36) { animation-delay: 3.6s; }
.description span:nth-child(37) { animation-delay: 3.7s; }
.description span:nth-child(38) { animation-delay: 3.8s; }
.description span:nth-child(39) { animation-delay: 3.9s; }
.description span:nth-child(40) { animation-delay: 4.0s; }
.description span:nth-child(41) { animation-delay: 4.1s; }
.description span:nth-child(42) { animation-delay: 4.2s; }
.description span:nth-child(43) { animation-delay: 4.3s; }
.description span:nth-child(44) { animation-delay: 4.4s; }
.description span:nth-child(45) { animation-delay: 4.5s; }
.description span:nth-child(46) { animation-delay: 4.6s; }
.description span:nth-child(47) { animation-delay: 4.7s; }
.description span:nth-child(48) { animation-delay: 4.8s; }
.description span:nth-child(49) { animation-delay: 4.9s; }
.description span:nth-child(50) { animation-delay: 5.0s; }

@keyframes splitText {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.prefix {
  opacity: 0.5;
  font-style: italic;
}

/* 修改菜单样式确保一致性 */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
  padding: 0 10px;
}

/* 统一菜单样式 */
.menu .link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* 非壁纸模式下的菜单样式 */
body:not([style*="background-image"]) .menu .link {
  background-color: var(--link-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 非壁纸模式下的菜单hover样式 */
body:not([style*="background-image"]) .menu .link:hover {
  transform: translateY(-2px);
  background-color: var(--link-hover-bg);
  color: var(--link-hover-text);
}

/* 壁纸模式的菜单样式 */
body[style*="background-image"] .menu .link {
  background-color: transparent;
  border: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  font-weight: 500;
  position: relative;
  padding: 10px 20px;
}

body[style*="background-image"] .menu .link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0.7;
}

body[style*="background-image"] .menu .link:hover {
  background-color: transparent;
  transform: translateY(-3px);
}

body[style*="background-image"] .menu .link:hover::after {
  width: 70%;
}

.menu-icons {
  margin: 3vh 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.menu-icons > * {
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.menu-icons > *:hover {
  opacity: 1;
  transform: scale(1.1);
}

.settings-toggle {
  order: 1;
}

.theme-toggle {
  order: 2;
  cursor: pointer;
  margin: 0 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px;
  z-index: 100;
  position: relative;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
}

.snow-toggle {
  order: 3;
}

.menu-icons a {
  order: 4;
}

/* 设置图标旋转动画 */
.settings-toggle i {
  transition: transform 0.3s ease;
}

.settings-toggle:hover i {
  transform: rotate(90deg);
}

.footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-color);
  padding: 10px 0;
  z-index: 1000;
  background-color: transparent;
  font-feature-settings: initial;
}

.about-link {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.about-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px var(--shadow-color);
}

.footer-divider {
  margin: 0 8px;
  opacity: 0.6;
}

/* 修改动画颜色 */
@keyframes goldenGlow {
  0% {
    text-shadow: 0 0 4px var(--shadow-color),
                 0 0 8px var(--shadow-color);
  }
  50% {
    text-shadow: 0 0 8px var(--shadow-color),
                 0 0 16px var(--shadow-color),
                 0 0 24px var(--shadow-color);
  }
  100% {
    text-shadow: 0 0 4px var(--shadow-color),
                 0 0 8px var(--shadow-color);
  }
}


/* 添加时间特殊动画效果 */
@keyframes timeGlow {
  0% {
    text-shadow: 0 0 5px var(--shadow-color),
                 0 0 10px var(--shadow-color);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 10px var(--shadow-color),
                 0 0 20px var(--shadow-color),
                 0 0 30px var(--shadow-color);
    transform: scale(1.02);
  }
  100% {
    text-shadow: 0 0 5px var(--shadow-color),
                 0 0 10px var(--shadow-color);
    transform: scale(1);
  }
}



/* 添加一言样式 */
.hitokoto {
  margin: 20px auto;
  max-width: 80%;
  padding: 0 20px;
}



/* 移除所有导航链接的下划线 */
.menu a,
.menu-icons a {
  text-decoration: none !important;
}

/* 主题切换按钮样式 */
.theme-toggle {
  cursor: pointer;
  margin-left: 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-block;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle.rotating {
  transform: rotate(360deg);
}

/* 播放器主题样式 */
.aplayer.light-theme {
  background: rgba(245, 245, 245, 0.9) !important;
}

.aplayer.light-theme .aplayer-info {
  background: rgba(245, 245, 245, 0.9) !important;
}

.aplayer.light-theme .aplayer-list {
  background: rgba(245, 245, 245, 0.9) !important;
}

.aplayer.light-theme .aplayer-list ol li {
  border-top: 1px solid #e0e0e0 !important;
  background: rgba(245, 245, 245, 0.9) !important;
}

.aplayer.light-theme .aplayer-list ol li:hover {
  background: rgba(232, 232, 232, 0.9) !important;
}

.aplayer.light-theme .aplayer-list ol li .aplayer-list-title,
.aplayer.light-theme .aplayer-list ol li .aplayer-list-author {
  color: #8b7355 !important;
}

.aplayer.light-theme .aplayer-info .aplayer-music .aplayer-title,
.aplayer.light-theme .aplayer-info .aplayer-music .aplayer-author,
.aplayer.light-theme .aplayer-info .aplayer-controller .aplayer-time {
  color: #8b7355 !important;
}

.aplayer.light-theme .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
  background: #e0e0e0 !important;
}

.aplayer.light-theme .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
  background: #d0d0d0 !important;
}

.aplayer.light-theme .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: #8b7355 !important;
}

.aplayer.light-theme .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
  background: #8b7355 !important;
}

/* 加载动画样式 */
.fa-spin {
  animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 优化主题切换的过渡效果 */
body {
  transition: all 0.5s ease;
}

.dark-theme {
  transition: all 0.5s ease;
}

/* 优化其他元素的主题切换过渡 */
.container,
.content,
.header,
.footer {
  transition: all 0.5s ease;
}

/* Settings Panel Styles */
.settings-toggle {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.settings-toggle:hover {
  transform: rotate(45deg);
}

.settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px) saturate(1.5);
  -webkit-backdrop-filter: blur(25px) saturate(1.5);
  border-radius: 12px;
  padding: 18px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  display: none;
  z-index: 1000;
  animation: settingsPanelShow 0.3s ease;
  border: 1px solid rgba(193, 168, 106, 0.1);
}

.settings-panel.show {
  display: block;
}

@keyframes settingsPanelShow {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-color);
}

.settings-header h3 {
  margin: 0;
  font-size: 1.2em;
}

.close-settings {
  cursor: pointer;
  padding: 5px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  color: var(--text-color);
  padding: 2px 0;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(193, 168, 106, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(193, 168, 106, 0.15);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(193, 168, 106, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
  background-color: rgba(193, 168, 106, 0.5);
  border-color: rgba(193, 168, 106, 0.3);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: rgba(193, 168, 106, 0.9);
  box-shadow: 0 2px 6px rgba(193, 168, 106, 0.3);
}

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Light theme adjustments for settings panel */
.light-theme .settings-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px) saturate(1.5);
  -webkit-backdrop-filter: blur(25px) saturate(1.5);
  border: 1px solid rgba(139, 115, 85, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.light-theme .settings-header {
  color: #2c2c2c;
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.light-theme .setting-item {
  color: #3c3c3c;
  font-weight: 500;
}

.light-theme .slider {
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.light-theme .slider:before {
  background-color: #8b7355;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.light-theme input:checked + .slider {
  background-color: #8b7355;
  border-color: #8b7355;
}

.light-theme input:checked + .slider:before {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.light-theme .close-settings {
  color: #666666;
  transition: color 0.2s ease;
}

.light-theme .close-settings:hover {
  color: #8b7355;
}

/* Add hover effects for switches */
.light-theme .switch:hover .slider {
  background-color: #e8e8e8;
}

.light-theme .switch:hover input:checked + .slider {
  background-color: #7a6347;
}

/* Dark theme adjustments */
.dark-theme .settings-panel {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px) saturate(1.5);
  -webkit-backdrop-filter: blur(25px) saturate(1.5);
  border: 1px solid rgba(193, 168, 106, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-theme .slider {
  background-color: rgba(193, 168, 106, 0.03);
  border-color: rgba(193, 168, 106, 0.1);
}

.dark-theme .slider:before {
  background-color: rgba(193, 168, 106, 0.2);
}

.dark-theme input:checked + .slider {
  background-color: rgba(193, 168, 106, 0.4);
  border-color: rgba(193, 168, 106, 0.3);
}

.dark-theme input:checked + .slider:before {
  background-color: rgba(193, 168, 106, 0.9);
      box-shadow: 0 0 12px rgba(193, 168, 106, 0.4);
  }


  
  /* 引用区域样式统一 */
.quote-section {
  margin: 25px 0;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

/* 非壁纸模式的引用区域样式 */
body:not([style*="background-image"]) .quote-section {
  background-color: rgba(193, 168, 106, 0.05);
  border: 1px solid rgba(193, 168, 106, 0.1);
}

/* 壁纸模式的引用区域样式，修正冲突 */
body[style*="background-image"] .quote-section {
  background-color: transparent !important;
  border: none !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
  font-weight: 500;
  padding: 20px;
  position: relative;
}

/* 为壁纸模式的引用区域添加上下装饰线 */
body[style*="background-image"] .quote-section::before,
body[style*="background-image"] .quote-section::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--text-color), transparent);
  left: 50%;
  transform: translateX(-50%);
}

body[style*="background-image"] .quote-section::before {
  top: 0;
}

body[style*="background-image"] .quote-section::after {
  bottom: 0;
}

/* 暗色主题下的非壁纸模式引用区域 */
body.dark-theme:not([style*="background-image"]) .quote-section {
  background-color: rgba(193, 168, 106, 0.05);
  border: 1px solid rgba(193, 168, 106, 0.1);
}

/* 亮色主题下的非壁纸模式引用区域 */
body.light-theme:not([style*="background-image"]) .quote-section {
  background-color: rgba(139, 115, 85, 0.05);
  border: 1px solid rgba(139, 115, 85, 0.1);
}

.heart-icon {
  display: inline-block;
  color: #ff6b6b;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 针对不同主题设置不同的文字阴影 */
body.light-theme[style*="background-image"] .title {
  -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.7);
  text-stroke: 0.8px rgba(0, 0, 0, 0.7);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  filter: brightness(1.15) contrast(1.1);
}

body.light-theme[style*="background-image"] .description {
  -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.7);
  text-stroke: 0.7px rgba(0, 0, 0, 0.7);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  filter: brightness(1.15) contrast(1.1);
}

body.light-theme[style*="background-image"] #hitokoto-text {
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.6);
  text-stroke: 0.5px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  filter: brightness(1.15) contrast(1.1);
}

body.light-theme[style*="background-image"] #hitokoto-from {
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.5);
  text-stroke: 0.3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  filter: brightness(1.15) contrast(1.1);
}

body.light-theme[style*="background-image"] .menu .link {
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.6);
  text-stroke: 0.4px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  filter: brightness(1.15) contrast(1.1);
}

body.light-theme[style*="background-image"] .footer,
body.light-theme[style*="background-image"] .about-link,
body.light-theme[style*="background-image"] .quote-section {
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.5);
  text-stroke: 0.3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  filter: brightness(1.15) contrast(1.1);
}

/* 删除老的壁纸遮罩样式 */
.bg-wallpaper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--overlay-color);
  pointer-events: none;
  transition: background-color 0.5s ease;
}

/* 更新日间模式下壁纸遮罩颜色 */
body.light-theme .bg-wallpaper-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

/* 菜单链接悬停效果增强 */
body.light-theme[style*="background-image"] .menu .link:hover {
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.7);
  text-stroke: 0.5px rgba(0, 0, 0, 0.7);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

/* 统一增加亮度和对比度 */
body.light-theme[style*="background-image"] .title,
body.light-theme[style*="background-image"] .description,
body.light-theme[style*="background-image"] #hitokoto-text,
body.light-theme[style*="background-image"] #hitokoto-from,
body.light-theme[style*="background-image"] .menu .link,
body.light-theme[style*="background-image"] .footer,
body.light-theme[style*="background-image"] .about-link,
body.light-theme[style*="background-image"] .quote-section {
  filter: brightness(1.15) contrast(1.1);
}

/* 标题打字机效果 */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--text-color); }
}

.title-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--text-color);
  margin: 0 auto;
  letter-spacing: 0.05em;
  animation: 
    typing 2.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
  max-width: fit-content;
  text-shadow: 0 0 15px var(--shadow-color);
}

/* 文字渐入动画增强 */
.fade-in-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-text.delay-1 { animation-delay: 0.2s; }
.fade-in-text.delay-2 { animation-delay: 0.4s; }
.fade-in-text.delay-3 { animation-delay: 0.6s; }
.fade-in-text.delay-4 { animation-delay: 0.8s; }
.fade-in-text.delay-5 { animation-delay: 1.0s; }
.fade-in-text.delay-6 { animation-delay: 1.2s; }
.fade-in-text.delay-7 { animation-delay: 1.4s; }
.fade-in-text.delay-8 { animation-delay: 1.6s; }
.fade-in-text.delay-9 { animation-delay: 1.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 字母逐个显示动画增强 */
.letter-animation span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateY(10deg);
  animation: letterReveal 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  transform-origin: bottom center;
}

@keyframes letterReveal {
  from {
    opacity: 0;
    transform: translateY(40px) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateY(0);
  }
}

/* 为字母添加动画间隔，更加自然的感觉 */
.letter-animation span:nth-child(1) { animation-delay: 0.5s; }
.letter-animation span:nth-child(2) { animation-delay: 0.55s; }
.letter-animation span:nth-child(3) { animation-delay: 0.6s; }
.letter-animation span:nth-child(4) { animation-delay: 0.65s; }
.letter-animation span:nth-child(5) { animation-delay: 0.7s; }
.letter-animation span:nth-child(6) { animation-delay: 0.75s; }
.letter-animation span:nth-child(7) { animation-delay: 0.8s; }
.letter-animation span:nth-child(8) { animation-delay: 0.85s; }
.letter-animation span:nth-child(9) { animation-delay: 0.9s; }
.letter-animation span:nth-child(10) { animation-delay: 0.95s; }
.letter-animation span:nth-child(11) { animation-delay: 1.0s; }
.letter-animation span:nth-child(12) { animation-delay: 1.05s; }
.letter-animation span:nth-child(13) { animation-delay: 1.1s; }
.letter-animation span:nth-child(14) { animation-delay: 1.15s; }
.letter-animation span:nth-child(15) { animation-delay: 1.2s; }
.letter-animation span:nth-child(16) { animation-delay: 1.25s; }
.letter-animation span:nth-child(17) { animation-delay: 1.3s; }
.letter-animation span:nth-child(18) { animation-delay: 1.35s; }
.letter-animation span:nth-child(19) { animation-delay: 1.4s; }
.letter-animation span:nth-child(20) { animation-delay: 1.45s; }
.letter-animation span:nth-child(21) { animation-delay: 1.5s; }
.letter-animation span:nth-child(22) { animation-delay: 1.55s; }
.letter-animation span:nth-child(23) { animation-delay: 1.6s; }
.letter-animation span:nth-child(24) { animation-delay: 1.65s; }
.letter-animation span:nth-child(25) { animation-delay: 1.7s; }
.letter-animation span:nth-child(26) { animation-delay: 1.75s; }
.letter-animation span:nth-child(27) { animation-delay: 1.8s; }
.letter-animation span:nth-child(28) { animation-delay: 1.85s; }
.letter-animation span:nth-child(29) { animation-delay: 1.9s; }
.letter-animation span:nth-child(30) { animation-delay: 1.95s; }
.letter-animation span:nth-child(31) { animation-delay: 2.0s; }
.letter-animation span:nth-child(32) { animation-delay: 2.05s; }
.letter-animation span:nth-child(33) { animation-delay: 2.1s; }
.letter-animation span:nth-child(34) { animation-delay: 2.15s; }
.letter-animation span:nth-child(35) { animation-delay: 2.2s; }
.letter-animation span:nth-child(36) { animation-delay: 2.25s; }
.letter-animation span:nth-child(37) { animation-delay: 2.3s; }
.letter-animation span:nth-child(38) { animation-delay: 2.35s; }
.letter-animation span:nth-child(39) { animation-delay: 2.4s; }
.letter-animation span:nth-child(40) { animation-delay: 2.45s; }

/* 壁纸加载状态样式 */
html[data-loading-wallpaper="true"] #app,
body[data-loading-wallpaper="true"] #app,
body[style*="background-image"] #app {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.light-theme[style*="background-image"] #app {
  background-color: transparent;
}

/* 为了保持文字可读性，需要添加文字阴影 */
body[style*="background-image"] .title,
body[style*="background-image"] .description,
body[style*="background-image"] .hitokoto,
body[style*="background-image"] .menu .link,
body[style*="background-image"] .footer,
body[style*="background-image"] .about-link,
body[style*="background-image"] .quote-section {
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 当使用必应壁纸时，调整设置面板透明度 */
body[style*="background-image"] .settings-panel {
  background-color: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-theme[style*="background-image"] .settings-panel {
  background-color: rgba(245, 245, 245, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 增强文字在壁纸上的可读性 */
body[style*="background-image"] .title {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* 壁纸模式下的一言样式增强 */
body[style*="background-image"] .hitokoto {
  background-color: transparent;
  margin: 30px auto;
}

body[style*="background-image"] #hitokoto-text {
  font-size: 1.3em;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.02em;
}

body[style*="background-image"] #hitokoto-from {
  margin-top: 15px;
  font-style: italic;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 壁纸模式下的引用区域样式 */
body[style*="background-image"] .quote-section {
  background-color: transparent !important;
  border: none !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
  font-weight: 500;
  padding: 20px;
  position: relative;
}

/* 为壁纸加载状态下的引用区域添加上下装饰线 */
body[style*="background-image"] .quote-section::before,
body[style*="background-image"] .quote-section::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--text-color), transparent);
  left: 50%;
  transform: translateX(-50%);
}

body[style*="background-image"] .quote-section::before {
  top: 0;
}

body[style*="background-image"] .quote-section::after {
  bottom: 0;
}

/* 移除可能存在的所有背景元素，确保透明 */
body[style*="background-image"] .menu,
body[style*="background-image"] .menu-icons,
body[style*="background-image"] .footer {
  background-color: transparent;
}

/* 处理壁纸加载状态下的菜单样式 */
html[data-loading-wallpaper="true"] .menu .link,
body[data-loading-wallpaper="true"] .menu .link {
  background-color: transparent;
  border: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  font-weight: 500;
  position: relative;
  padding: 10px 20px;
}

/* 日期时间显示样式 - 精美紧凑设计 */
.datetime-container {
  margin: 12px 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.datetime-display {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.04), 
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85em;
}

/* 壁纸模式下的透明样式 */
body[style*="background-image"] .datetime-display {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 非壁纸模式下的样式 */
body:not([style*="background-image"]) .datetime-display {
  background: linear-gradient(135deg, 
    rgba(193, 168, 106, 0.06), 
    rgba(193, 168, 106, 0.02)
  );
  border: 1px solid rgba(193, 168, 106, 0.12);
}

.datetime-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.04), 
    transparent
  );
  transition: left 0.6s ease;
}

.datetime-display:hover::before {
  left: 100%;
}

.datetime-display:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 时间样式 - 精简设计 */
.current-time {
  display: flex;
  align-items: center;
  position: relative;
}

/* 时间字体已在datetime-compact.css中统一设置 */

/* 日期和星期样式 - 极简布局 */
.current-date {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* 日期字体已在datetime-compact.css中统一设置 */

.weekday {
  font-size: 0.8em;
  color: var(--text-color);
  opacity: 0.75;
  padding: 1px 6px;
  background: rgba(193, 168, 106, 0.12);
  border-radius: 8px;
  font-weight: 400;
  border: 1px solid rgba(193, 168, 106, 0.15);
}

/* 农历样式 - 最小化显示 */
.lunar-date {
  position: relative;
}

/* 农历字体已在datetime-compact.css中统一设置 */

/* 精美的分隔符 */
.datetime-display .current-time::after,
.datetime-display .current-date::after {
  content: '·';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.3;
  font-size: 0.8em;
}

/* 日间主题适配 */
body.light-theme .datetime-display {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8), 
    rgba(255, 255, 255, 0.6)
  );
  border: 1px solid rgba(139, 115, 85, 0.15);
  box-shadow: 
    0 2px 8px rgba(139, 115, 85, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme[style*="background-image"] .datetime-display {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.light-theme .weekday {
  background: rgba(139, 115, 85, 0.12);
  border: 1px solid rgba(139, 115, 85, 0.2);
}

/* 响应式设计 - 移动端超紧凑 */
@media (max-width: 768px) {
  .datetime-display {
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.8em;
  }
  
  .datetime-display .current-time::after,
  .datetime-display .current-date::after {
    display: none;
  }
  
  /*#current-time-text {*/
  /*  font-size: 0.95em;*/
  /*}*/
  
  /*#current-date-text {*/
  /*  font-size: 0.85em;*/
  /*}*/
  
  .weekday {
    font-size: 0.75em;
    padding: 1px 4px;
  }
  
、  #lunar-date-text {
    font-size: 0.7em;
  }
}

@media (max-width: 480px) {
  .datetime-container {
    margin: 8px 0;
  }
  
  .datetime-display {
    flex-direction: column;
    gap: 3px;
    padding: 4px 8px;
    font-size: 0.75em;
  }
  
  /*#current-time-text {*/
  /*  font-size: 0.9em;*/
  /*}*/
  
  /*#current-date-text {*/
  /*  font-size: 0.8em;*/
  /*}*/
  
  .current-date {
    gap: 4px;
  }
  
  .weekday {
    font-size: 0.7em;
  }
  
  /*#lunar-date-text {*/
  /*  font-size: 0.65em;*/
  /*}*/
}

/* 移除过多的装饰效果 */
.datetime-display::after {
  display: none;
}

/* 壁纸模式下的精美文字阴影 */
body[style*="background-image"] .datetime-display {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body[style*="background-image"] #current-time-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body[style*="background-image"] #current-date-text,
body[style*="background-image"] #lunar-date-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 移除时间脉冲动画 */
/*#current-time-text {*/
/*  animation: none;*/
/*}*/

/* 强制覆盖 - 紧凑美观的日期时间样式 */
.datetime-container {
  margin: 8px 0 !important;
}

.datetime-display {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 0.8em !important;
}

body[style*="background-image"] .datetime-display {
  background: rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body:not([style*="background-image"]) .datetime-display {
  background: linear-gradient(135deg, rgba(193, 168, 106, 0.04), rgba(193, 168, 106, 0.01)) !important;
  border: 1px solid rgba(193, 168, 106, 0.08) !important;
}

/* 时间字体已在datetime-compact.css中统一设置 */

/* 日期字体已在datetime-compact.css中统一设置 */

/* 星期字体已在datetime-compact.css中统一设置 */
.weekday {
  padding: 1px 4px !important;
  background: rgba(193, 168, 106, 0.1) !important;
  border-radius: 6px !important;
  border: none !important;
}

/* 农历字体已在datetime-compact.css中统一设置 */

.datetime-display .current-time::after,
.datetime-display .current-date::after {
  content: '•' !important;
  position: static !important;
  margin: 0 2px !important;
  opacity: 0.3 !important;
  font-size: 0.6em !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
}

body.light-theme .datetime-display {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(139, 115, 85, 0.1) !important;
}

body.light-theme[style*="background-image"] .datetime-display {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.light-theme .weekday {
  background: rgba(139, 115, 85, 0.1) !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .datetime-display {
    gap: 4px !important;
    padding: 2px 8px !important;
    font-size: 0.75em !important;
  }
  
  .datetime-display .current-time::after,
  .datetime-display .current-date::after {
    display: none !important;
  }
  
  /*#current-time-text {*/
  /*  font-size: 0.9em !important;*/
  /*}*/
  
  /*#current-date-text {*/
  /*  font-size: 0.8em !important;*/
  /*}*/
  
  .weekday {
    padding: 0 3px !important;
  }
  
  /* 农历字体已在datetime-compact.css中统一设置 */
}

@media (max-width: 480px) {
  .datetime-display {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 3px 6px !important;
    font-size: 0.7em !important;
  }
  
  .current-date {
    gap: 3px !important;
  }
}

/* About Modal Styles - 参考 lllh.de 的透明度设计 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: rgba(18, 18, 18, 0.15);
  margin: 3% auto;
  padding: 0;
  width: 85%;
  max-width: 650px;
  border-radius: 24px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: modalSlideIn 0.4s ease;
}

/* 亮色主题下的模态框 */
body.light-theme .modal {
  background-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(193, 168, 106, 0.08), rgba(193, 168, 106, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.light-theme .modal-header {
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.08), rgba(139, 115, 85, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  margin: 0;
  font-family: '迷你繁方篆', serif;
  font-size: 1.8em;
  color: var(--text-color);
  text-shadow: 0 0 10px var(--shadow-color);
  animation: goldenGlow 2s ease-in-out infinite;
}

.close {
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 6px;
}

.close:hover {
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 2px 8px var(--shadow-color);
}

.modal-body {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
}

body.light-theme .modal-body {
  background: rgba(255, 255, 255, 0.01);
}

/* About content styles - 完全使用原有about.css的样式 */
.modal .profile-section {
  margin: 10px 0;
  animation: fadeInDown 1s ease;
  text-align: center;
}

.modal .avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(193, 168, 106, 0.3);
  box-shadow: 
    0 0 32px rgba(193, 168, 106, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: avatarPulse 2s ease-in-out infinite;
  position: relative;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal .avatar::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, rgba(193, 168, 106, 0.4), rgba(193, 168, 106, 0.2));
  z-index: -1;
  border-radius: 50%;
  animation: borderRotate 4s linear infinite;
  opacity: 0.8;
}

body.light-theme .modal .avatar {
  border: 2px solid rgba(139, 115, 85, 0.4);
  box-shadow: 
    0 0 32px rgba(139, 115, 85, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.light-theme .modal .avatar::before {
  background: linear-gradient(45deg, rgba(139, 115, 85, 0.3), rgba(139, 115, 85, 0.15));
}

.modal .avatar:hover {
  transform: scale(1.05) rotate(5deg);
}

.modal .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.5s ease;
}

.modal .avatar:hover img {
  transform: scale(1.1);
}

.modal .name {
  font-family: '迷你繁方篆', serif;
  font-size: 1.8em;
  margin: 5px 0;
  color: var(--text-color);
  animation: goldenGlow 2s ease-in-out infinite;
}

.modal .subtitle {
  font-family: 'Note-Script', serif;
  font-size: 1.1em;
  margin: 5px 0;
  color: var(--text-color);
  opacity: 0.8;
}

.modal .info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 15px 0;
  width: 100%;
  max-width: 600px;
}

.modal .info-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light-theme .modal .info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal .info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(193, 168, 106, 0.15);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-theme .modal .info-card:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(139, 115, 85, 0.08);
}

.modal .info-card i {
  font-size: 1.5em;
  margin-bottom: 8px;
}

.modal .info-card h4 {
  font-size: 1.1em;
  margin: 8px 0;
}

.modal .info-card p {
  font-size: 0.9em;
  line-height: 1.4;
}

.modal .contact-section {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 15px 0;
}

.modal .contact-link {
  font-size: 1.5em;
  color: var(--text-color);
  transition: all 0.3s ease;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.modal .contact-link:hover {
  transform: translateY(-2px) scale(1.1);
  opacity: 1;
  color: var(--text-color);
  text-shadow: 0 4px 12px var(--shadow-color);
}

/* 模态框动画 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 使用原有about.css的动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avatarPulse {
  0% {
    box-shadow: 0 0 20px var(--shadow-color);
  }
  50% {
    box-shadow: 0 0 30px var(--shadow-color);
  }
  100% {
    box-shadow: 0 0 20px var(--shadow-color);
  }
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 模态框响应式设计 - 使用原有about.css的响应式规则 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  .modal-header h2 {
    font-size: 1.5em;
  }
  
  .modal-body {
    padding: 25px 15px;
  }
  
  .modal .info-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
  }
  
  .modal .info-card {
    padding: 10px;
  }
  
  .modal .info-card i {
    font-size: 1.3em;
    margin-bottom: 5px;
  }
  
  .modal .info-card h4 {
    font-size: 1em;
    margin: 5px 0;
  }
  
  .modal .info-card p {
    font-size: 0.8em;
    line-height: 1.3;
  }
  
  .modal .contact-section {
    gap: 20px;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 15% auto;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.3em;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .modal .avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
  }
  
  .modal .name {
    font-size: 1.4em;
    margin: 3px 0;
  }
  
  .modal .subtitle {
    font-size: 0.9em;
    margin: 3px 0;
  }
  
  .modal .info-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .modal .info-card {
    padding: 8px;
  }
  
  .modal .info-card i {
    font-size: 1.2em;
    margin-bottom: 4px;
  }
  
  .modal .info-card h4 {
    font-size: 0.9em;
    margin: 4px 0;
  }
  
  .modal .info-card p {
    font-size: 0.75em;
    line-height: 1.2;
  }
  
  .modal .contact-section {
    gap: 15px;
    margin: 8px 0;
  }
  
  .modal .contact-link {
    font-size: 1.3em;
  }
  
  .close {
    font-size: 28px;
  }
}