/* ========================================
 * 保留旧的#game-score样式（向后兼容）
 * 新游戏请使用.hud-container系统
 * ======================================== */



/* ========================================
 * 保留旧的#game-score样式（向后兼容）
 * 新游戏请使用.hud-container系统
 * ======================================== */

/* Liquid Glass 导航栏 - 滚动收缩效果 */
#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;
    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);
}


#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,
#navbar .navbar-divider,
#navbar .navbar-date-info {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  text-shadow: var(--neon-shadow);
  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 .navbar-divider {
  margin: 0 12px;
  color: var(--glass-border);
  text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}


#navbar .navbar-date-info {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}


#navbar.scrolled .navbar-title,
#navbar.scrolled .navbar-divider,
#navbar.scrolled .navbar-date-info {
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
}


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


#navbar .navbar-date-info .time-info {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  text-shadow: none;
  white-space: nowrap;
}
@media (max-width:768px) {


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

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

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

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

  #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 .navbar-date-info .date-time {
    font-size: 12px;
  }

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

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

/* === 辅助通用导航组件 (右上角副导航) === */
  #navbar-chat, #navbar-account {
    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;
  }


#navbar-chat::after, #navbar-account::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 {
  padding: 8px 10px; min-width: 48px; gap: 0;
}


#navbar-chat:hover, #navbar-account: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 {
  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 {
  transform: scale(1.15); color: var(--secondary-color);
}


#navbar-chat .navbar-title, #navbar-account .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 {
  opacity: 0; width: 0; margin: 0; padding: 0;
}
@media (max-width: 768px) {

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

  #navbar-chat, #navbar-account { top: 12px; right: 12px; padding: 10px 15px; }
  #navbar-chat .chat-btn, #navbar-account .account-btn { width: 28px; height: 28px; font-size: 20px; }
  #navbar-chat .navbar-title, #navbar-account .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); }
}
@media (max-width: 480px) {


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

        /* 改进滚动条样式 */
        .site-footer {
            width: 100%;
            box-sizing: border-box;
            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;
            /* 背景模糊 */
            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-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);
        }


        .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);
        }
@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 {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border) 50%, var(--glass-border));
}


.tools-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    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;
    }
}
/* 搜索模块 (通用) */

.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: 480px) {
    .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;
    }
}

