/* ==========================================================================
   1. LAYOUT COMPONENTS (Extracted from theme-ui.css & home-ui.css)
   ========================================================================== */





/* 真实玻璃效果导航栏 - 滚动收缩效果 */
#navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  will-change: transform, backdrop-filter, padding, min-width, gap;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  transition: all .4s var(--ease-liquid);
  z-index: 1000;
  min-width: 130px;
}


#navbar:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: var(--shadow-medium), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}


/* 已通过 box-shadow 替代高光伪元素 */

/* 导航栏纹理效果 */
#navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--noise-texture);
  opacity: 0.02;
  border-radius: 50px;
  pointer-events: none;
  mix-blend-mode: overlay;
}


#navbar.scrolled {
  padding: 8px 10px;
  min-width: 48px;
  gap: 0
}


#navbar .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: var(--primary-color);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 4px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.2s var(--ease-liquid), color 0.2s ease;
  pointer-events: auto;
  flex-shrink: 0;
}


#navbar .home-btn:hover {
  transform: scale(1.15);
  color: var(--secondary-color);
}


#navbar .home-btn:active {
  transform: scale(0.95);
}


/* 主页图标已在HTML中直接定义 */

#navbar .navbar-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .3s var(--ease-liquid), width .3s var(--ease-liquid), margin .3s var(--ease-liquid), padding .3s var(--ease-liquid);
  overflow: hidden
}


#navbar.scrolled .navbar-title {
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {


  #navbar {
    top: 16px;
    left: 16px;
    padding: 12px 16px;
    font-size: 14px
  }

  #navbar .navbar-title {
    font-size: 15px;
  }

  #navbar .home-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
@media (max-width: 480px) {

  #navbar {
    top: 12px;
    left: 12px;
    padding: 10px 14px
  }

  #navbar .navbar-title {
    font-size: 17px;
    font-weight: 700;
  }

  #navbar .home-btn {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}




/* ==================== 顶部日期显示 ==================== */
#navbar-date {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 24px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  z-index: 900;
  /* 略低于导航栏，避免遮挡交互 */
  transition: all 0.4s var(--ease-liquid);
  user-select: none;
  pointer-events: none;
  /* 让鼠标事件穿透，不阻挡下方点击 */
}


/* 玻璃高光 */
#navbar-date::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 100%);
  border-radius: 20px 20px 10px 10px;
  pointer-events: none;
  opacity: 0.6;
}


#navbar-date .date-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}


#navbar-date .time-info,
#navbar-date .lunar-info {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}


/* 滚动收缩效果 */
#navbar-date.scrolled {
  padding: 6px 16px;
  top: 10px;
  background: var(--glass-bg-hover);
}


#navbar-date.scrolled .date-time {
  font-size: 14px;
}


#navbar-date.scrolled .time-info,
#navbar-date.scrolled .lunar-info {
  font-size: 11px;
}
@media (max-width: 768px) {

  #navbar-date {
    top: 70px;
    /* 移动端下移，避开左右按钮 */
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    /* 减淡背景以免过于抢眼 */
    border-radius: 16px;
  }

  #navbar-date .date-time {
    font-size: 14px;
  }

  #navbar-date .time-info,
  #navbar-date .lunar-info {
    font-size: 11px;
  }

  /* 滚动时隐藏或极小化 */
  #navbar-date.scrolled {
    top: 60px;
    opacity: 0.8;
  }
}
@media (max-width: 480px) {

  #navbar-date {
    top: 65px;
    padding: 4px 12px;
  }

  #navbar-date .date-time {
    font-size: 13px;
  }

  #navbar-date .time-info,
  #navbar-date .lunar-info {
    font-size: 10px;
  }
}

/* === 辅助通用导航组件 (右上角副导航) === */
#navbar-chat, #navbar-account, #navbar-player {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  will-change: transform, backdrop-filter;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--ease-liquid);
  z-index: 1000;
  min-width: 100px;
  text-decoration: none;
  cursor: pointer;
}


#navbar-chat::after, #navbar-account::after, #navbar-player::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--noise-texture); opacity: 0.02; border-radius: 50px;
  pointer-events: none; mix-blend-mode: overlay;
}


#navbar-chat.scrolled, #navbar-account.scrolled, #navbar-player.scrolled {
  padding: 8px 10px; min-width: 48px; gap: 0;
}


#navbar-chat:hover, #navbar-account:hover, #navbar-player:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-medium), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}


#navbar-chat .chat-btn, #navbar-account .account-btn, #navbar-player .player-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 22px; color: var(--primary-color);
  background: transparent; border: none; border-radius: 0; padding: 0; margin: 0 4px;
  transition: transform 0.2s var(--ease-liquid), color 0.2s ease;
  pointer-events: auto; flex-shrink: 0; text-decoration: none;
}


#navbar-chat:hover .chat-btn, #navbar-account:hover .account-btn, #navbar-player:hover .player-btn {
  transform: scale(1.15); color: var(--secondary-color);
}


#navbar-chat .navbar-title, #navbar-account .navbar-title, #navbar-player .navbar-title {
  display: flex; align-items: center; font-size: 16px; font-weight: 600;
  color: var(--primary-color); white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.3s var(--ease-liquid), width 0.3s var(--ease-liquid), margin 0.3s var(--ease-liquid), padding 0.3s var(--ease-liquid);
  overflow: hidden;
}


#navbar-chat.scrolled .navbar-title, #navbar-account.scrolled .navbar-title, #navbar-player.scrolled .navbar-title {
  opacity: 0; width: 0; margin: 0; padding: 0;
}


/* 播放器内部布局增强 */
#navbar-player .navbar-title {
  gap: 12px;
}


/* 播放时耳机图标动效 */
#navbar-player.playing .player-btn {
  animation: pulse-headphone 2s infinite var(--ease-liquid);
  color: var(--secondary-color);
}

.player-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.player-song-name {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
}

.player-controls-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-controls-mini .player-btn-small {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: transform 0.2s;
  color: var(--primary-color);
}

.player-controls-mini .player-btn-small:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

/* 音符掉落动画 */
.music-note-drop {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  font-size: 24px;
  animation: note-fall linear forwards;
  opacity: 0.8;
}

/* 播客播放器面板 */
.player-panel {
  position: fixed;
  z-index: 999;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-medium), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  animation: fadeInScale 0.3s var(--ease-liquid);
}
@media (max-width: 768px) {

  #navbar-chat, #navbar-account, #navbar-player { top: 16px; right: 16px; padding: 12px 15px; gap: 12px; }
  #navbar-chat .chat-btn, #navbar-account .account-btn, #navbar-player .player-btn { width: 32px; height: 32px; font-size: 20px; }
  #navbar-chat .navbar-title, #navbar-account .navbar-title, #navbar-player .navbar-title { font-size: 15px; }
}
@media (max-width: 480px) {

  #navbar-chat, #navbar-account, #navbar-player { top: 12px; right: 12px; padding: 10px 15px; }
  #navbar-chat .chat-btn, #navbar-account .account-btn, #navbar-player .player-btn { width: 28px; height: 28px; font-size: 20px; }
  #navbar-chat .navbar-title, #navbar-account .navbar-title, #navbar-player .navbar-title { font-size: 17px; font-weight: 700; }
}


/* === 底部双栏/三栏切换导航 (Tab Navigator) === */
#tab-navigator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  /* 移除 all，避免位置布局引起的抖动动画，仅保留透明度等非位移动画 */
  transition: opacity 0.4s var(--ease-liquid);
}



.tab-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  will-change: transform, backdrop-filter;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 12px;
  box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  height: 58px;
  box-sizing: border-box;
  transition: all 0.4s var(--ease-liquid);
}


.tab-container::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50px;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), 
    transparent 20%, 
    var(--primary-color) 40%, 
    var(--secondary-color) 60%, 
    transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  animation: rotate-border 4s linear infinite;
}


.tab-container:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: var(--shadow-medium), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}


.tab-btn {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.4s var(--ease-liquid);
  white-space: nowrap;
  height: 44px;
  min-width: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}


.tab-btn.active { color: var(--primary-color); }

.tab-btn:hover:not(.active) { color: var(--text-primary); }


.tab-indicator {
  position: absolute;
  top: 6px;
  left: 12px;
  height: calc(100% - 12px);
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--primary-color-rgb), 0.05));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
  will-change: transform, width;
  box-sizing: content-box;
  opacity: 0;
}
@media (max-width: 768px) {

  .tab-container { height: 58px; padding: 6px 12px; }
  .tab-btn { padding: 8px 18px; font-size: 15px; height: 44px; min-width: 64px; }
  .tab-indicator { top: 6px; left: 12px; height: calc(100% - 12px); }
}
@media (max-width: 480px) {

  .tab-container { padding: 5px 8px; height: 50px; }
  .tab-btn { padding: 6px 14px; font-size: 14px; height: 38px; min-width: 56px; }
  .tab-indicator { top: 5px; left: 8px; height: calc(100% - 10px); }
}





/* navbar 整合日期样式 */
#navbar .navbar-divider {
    color: var(--glass-border);
    font-size: 18px;
    font-weight: 600;
    margin: 0 12px;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease-liquid);
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}


#navbar .navbar-date-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: all 0.3s var(--ease-liquid);
}


#navbar .navbar-date-info .date-time {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}


#navbar .navbar-date-info .time-info {
    display: none;
}


/* 滚动时隐藏日期信息 */
#navbar.scrolled .navbar-divider,
#navbar.scrolled .navbar-date-info {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


/* 内容区域切换动画 */
.content-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px 40px 16px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s var(--ease-liquid),
        transform 0.4s var(--ease-liquid);
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
}


.content-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}


.content-section.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}


.search-container {
    width: 100%;
}


.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}


.search-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--ease-liquid);
    box-sizing: border-box;
}


.search-input:focus {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: var(--shadow-medium), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.3), 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}


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


.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--mystic-glow);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-liquid);
}


.search-clear:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-50%) scale(1.1);
    border: 1px solid var(--primary-color);
}


.search-tips {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}


.search-tips p {
    margin-bottom: 12px;
    font-size: 14px;
}


.search-tip-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}


.search-tip-tag {
    padding: 6px 14px;
    background: var(--mystic-glow);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s var(--ease-liquid);
}


.search-tip-tag:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


.search-results {
    width: 100%;
}


.search-result-header {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 8px;
}


.search-result-category {
    margin-bottom: 24px;
}


.search-result-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-left: 8px;
}


.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-liquid);
}


.search-result-item:hover {
    border-color: var(--glass-highlight);
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}


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


.search-result-content {
    flex: 1;
}


.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}


.search-result-title .highlight {
    background: var(--mystic-glow);
    padding: 2px 4px;
    border-radius: 4px;
}


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


.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}


.search-no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}


.search-no-results-text {
    font-size: 16px;
}



@media (max-width: 768px) {


    /* navbar 日期在中等屏幕上简化显示 */
    #navbar .navbar-date-info .time-info {
        display: none;
    }
}
@media (max-width: 480px) {


    /* 小屏幕上隐藏 navbar 日期信息 */
    #navbar .navbar-divider,
    #navbar .navbar-date-info {
        display: none;
    }

    .search-input {
        font-size: 15px;
        padding: 14px 44px 14px 18px;
    }

    .search-tips p {
        font-size: 13px;
    }

    .search-result-item {
        padding: 14px 16px;
    }

    .search-result-icon {
        font-size: 28px;
    }

    .search-result-title {
        font-size: 15px;
    }

    .search-result-desc {
        font-size: 12px;
    }
}


/* 页脚样式 */
.site-footer {
    width: 100%;
    padding: 60px 20px 100px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 40px;
    /* Increase spacing from content above */
    position: relative;
    z-index: 1;
    /* horizontal line separator - thicker and more visible */
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.5);
    /* Highlight for depth */
}
@media (prefers-color-scheme: dark) {

    .site-footer {
        border-top: 2px solid rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }
}


.footer-container {
    max-width: 1200px;
    /* 增加宽度以匹配主内容 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.footer-top {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}


.footer-col {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    /* PC端也居中 */
    align-items: center;
    /* Flex子元素居中 */
}


.footer-col h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}


.footer-col p {
    line-height: 1.6;
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
}


.footer-links-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    /* 列表项居中 */
}


.contact-list {
    align-items: flex-start;
    /* 联系方式左对齐 */
}


.footer-links-list li a,
.contact-list li {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-liquid);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 内容居中 */
    gap: 8px;
    font-size: 13px;
}


.footer-links-list li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}


.footer-links {
    margin-top: 8px;
    font-size: 12px;
}


.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-liquid);
}


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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    opacity: 0.85;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

@media (max-width: 768px) {

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .footer-col {
        max-width: 100%;
    }

    .site-footer {
        padding-bottom: 80px;
    }
}


/* 工具分割线 */
.tools-divider {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 30px 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}


.tools-divider::before,
.tools-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border) 50%, var(--glass-border));
}


.tools-divider::after {
    background: linear-gradient(to left, transparent, var(--glass-border) 50%, var(--glass-border));
}


.tools-divider span {
    padding: 0 20px;
    opacity: 0.8;
}


/* 标签栏引导动效 (优雅流光) 仅PC端 */
.tab-container.tab-attention {
    position: relative;
    overflow: hidden;
}


.tab-container.tab-attention::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: tabSweep 2.5s ease-in-out;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit; 
}

@keyframes tabSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}


.night-theme .tab-container.tab-attention::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(94, 234, 212, 0.3) 50%, rgba(255,255,255,0) 100%);
}
@media (max-width: 768px) {

    .tab-btn, .category-btn, .page-btn {
        min-height: 44px !important;
    }
}
