/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #000000;
    color: #000000;
    line-height: 1.5;
    font-size: 15px; /* 全局缩小字体基础大小 */
}

/* Header Styles */
.site-header {
    text-align: center;
    padding: 25px 0 15px 0; /* 增大上下padding */
}

.logo-container {
    margin-bottom: 15px; /* 增大底部间距 */
}

.logo-container h1 {
    font-size: 3.2rem; /* 显著增大标题字体 */
    font-weight: bold;
    letter-spacing: 3px; /* 增大字母间距 */
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 添加文字阴影增强效果 */
}

.banner {
    color: #e74c3c; /* 红色文字 */
    padding: 7px 0;
    font-size: 1.0rem;
    background-color: transparent; /* 去掉红色背景 */
    margin-bottom: 15px; /* 增加底部边距 */
    font-weight: 520; /* 稍微加粗字体 */
}

/* 顶部导航栏样式 */
.top-navigation {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 30%,
        #667eea 60%,
        #f093fb 100%);
    background-size: 200% 200%;
    padding: 0 10px;
    margin: 0 auto 0px;
    max-width: 1180px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.35), 
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 20px);
    animation: none;
}

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

.top-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.6) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.6) 75%,
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.top-navigation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 50%);
    pointer-events: none;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.nav-btn {
    flex: 1;
    max-width: 200px;
    padding: 18px 30px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4),
                 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.nav-btn i {
    font-size: 1.25rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.nav-btn:hover i {
    transform: scale(1.25) rotate(12deg) translateY(-3px);
    filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.6));
    color: rgba(255, 255, 255, 1);
}

.nav-btn.active i {
    color: #667eea;
    transform: scale(1.2);
    filter: drop-shadow(0 3px 8px rgba(102, 126, 234, 0.5));
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.25) translateY(-2px);
    }
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: none; /* 新增这一行，隐藏动态线 */
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.2) 40%,
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.nav-btn:hover::after {
    width: 250px;
    height: 250px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 100%);
    color: white;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 6px 16px rgba(102, 126, 234, 0.4),
                0 2px 8px rgba(118, 75, 162, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.5),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5),
                 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-btn:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25),
                0 3px 8px rgba(102, 126, 234, 0.3),
                inset 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.nav-btn.active {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8f9ff 40%,
        #f0f4ff 80%,
        #ffffff 100%);
    background-size: 200% 200%;
    color: #667eea;
    position: relative;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 6px rgba(118, 75, 162, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.9),
                inset 0 -2px 0 rgba(102, 126, 234, 0.15),
                inset 0 0 20px rgba(102, 126, 234, 0.1);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    border-width: 2px;
    animation: activeGlow 3s ease-in-out infinite,
               activeShimmer 4s ease-in-out infinite;
    transform: translateY(-2px);
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5),
                    0 4px 12px rgba(0, 0, 0, 0.15),
                    0 2px 6px rgba(118, 75, 162, 0.3),
                    inset 0 2px 0 rgba(255, 255, 255, 0.9),
                    inset 0 -2px 0 rgba(102, 126, 234, 0.15),
                    inset 0 0 20px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow: 0 12px 36px rgba(102, 126, 234, 0.7),
                    0 6px 16px rgba(0, 0, 0, 0.2),
                    0 3px 8px rgba(118, 75, 162, 0.4),
                    inset 0 2px 0 rgba(255, 255, 255, 1),
                    inset 0 -2px 0 rgba(102, 126, 234, 0.25),
                    inset 0 0 25px rgba(102, 126, 234, 0.15);
    }
}

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

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 5px;
    background: linear-gradient(90deg, 
        #667eea 0%, 
        #764ba2 30%,
        #667eea 60%,
        #f093fb 100%);
    background-size: 200% 100%;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -4px 16px rgba(102, 126, 234, 0.7),
                0 -2px 8px rgba(118, 75, 162, 0.5),
                0 0 12px rgba(240, 147, 251, 0.4);
    animation: indicatorPulse 2.5s ease-in-out infinite,
               indicatorFlow 3s ease-in-out infinite;
    display: none; /* 新增：隐藏伪元素 */
    z-index: 2;
}

@keyframes indicatorPulse {
    0%, 100% {
        width: 75%;
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
    50% {
        width: 85%;
        opacity: 0.95;
        transform: translateX(-50%) scaleY(1.1);
    }
}

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

.nav-btn.active::before {
    display: none;
}

.nav-btn span {
    position: relative;
    z-index: 1;
}

/* 页面内容区域 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* 占位页面样式 */
.page-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-placeholder h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
}

.page-placeholder p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 统一容器 - 包含搜索框和主内容区 */
.unified-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 10px;
    box-sizing: border-box;
    width: calc(100% - 20px);
}

/* 移动端容器占满屏幕 */
@media (max-width: 768px) {
    .unified-container {
        width: 100%;
        padding: 0;
        margin: 0 auto 10px;
    }
    
    .top-navigation {
        width: 100%;
        border-radius: 0;
        margin: 0 0 2px;
    }
}

/* 控件布局 - 新的布局结构 */
.controls-layout {
    display: flex;
    margin-bottom: 0; /* 移除底部间距 */
}

/* 侧边栏宽度容器 */
.sidebar-width {
    width: 200px; /* 与侧边栏宽度一致 */
    flex-shrink: 0; /* 防止收缩 */
    padding-right: 0; /* 移除右侧间距 */
}

/* 安装教程按钮样式 */
.tutorial-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px 0 0 0; /* 只保留左上角圆角 */
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: none; /* 移除阴影 */
    transition: background-color 0.2s;
    width: 100%; /* 占满容器宽度 */
    height: 42px; /* 与搜索框高度一致 */
}

.tutorial-button i {
    margin-right: 5px;
}

.tutorial-button:hover {
    background-color: #219653;
}

/* 搜索区域 */
.search-area {
    flex: 1; /* 占据剩余空间 */
}

.search-container-full {
    background-color: #fff; /* 改为白色与主容器匹配 */
    padding: 0;
    border-radius: 0;
}

.search-box-full {
    display: flex;
    background-color: #f5f7fa; /* 与侧边栏背景色匹配 */
    border-radius: 0 4px 0 0; /* 只保留右上角圆角 */
    border: 1px solid #ddd;
    border-left: none; /* 移除左侧边框 */
    overflow: hidden;
    box-shadow: none; /* 移除阴影 */
    height: 42px;
    width: 100%; /* 占满容器宽度 */
}

.search-box-full:focus-within {
    border-color: #3498db;
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.2);
}

.search-box-full input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-size: 0.95rem;
    outline: none;
    background-color: #f5f7fa; /* 与外框背景色匹配 */
}

.search-box-full input::placeholder {
    color: #95a5a6;
}

.search-box-full button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px; /* 减小按钮宽度 */
    transition: background-color 0.2s;
}

.search-box-full button i {
    font-size: 0.95rem;
    margin-right: 5px;
}

.search-box-full button:hover {
    background-color: #2980b9;
}

/* Main Layout */
.main-container {
    display: flex;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 调整阴影与搜索框匹配 */
    border-radius: 0 0 5px 5px; /* 只在底部有圆角 */
    overflow: hidden;
    margin-top: 0; /* 确保与上方控件无缝连接 */
}

/* Sidebar Styles */
.sidebar {
    width: 200px; /* 缩小侧边栏宽度 */
    background-color: #f5f7fa; /* 稍微变浅一点的灰色 */
    /* 移除右侧边框线 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* 添加微妙的阴影效果代替边框 */
    flex-shrink: 0; /* 防止侧边栏收缩 */
    min-height: 400px; /* 确保侧边栏有最小高度 */
}

/* 原侧边栏教程按钮样式 - 不再使用但保留代码 */
.sidebar-tutorial-container {
    display: none; /* 隐藏旧的侧边栏教程按钮 */
}

/* 原搜索框样式保留，但不使用 */
.search-container {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f0f3f6;
    border-bottom: 1px solid #eee;
    display: none; /* 隐藏原搜索框 */
}

/* 软件分类列表样式 - 简化版 */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 13px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
}

.category-list li:hover {
    background-color: #d6e6f5;
}

.category-list li.active {
    background-color: #3498db;
    color: white;
    font-weight: 700;
    position: relative;
}

/* 为活跃项添加左侧蓝色指示条 */
.category-list li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #2980b9;
}

/* Content Styles */
.content {
    flex: 1;
    padding: 15px;
}

/* 软件列表布局 - 单列 */
.software-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    position: relative;
}

.software-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.software-header {
    display: flex;
    align-items: center;
    padding: 13px;
    background-color: #f5f5f5;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.software-header:hover {
    background-color: #d6e6f5;
    border-left-color: #1f618d;
}

.software-item.expanded .software-header {
    background-color: #d6e6f5;
    border-left-color: #1f618d;
    border-bottom: 1px solid #e0e0e0;
}

.software-icon {
    width: 35px;
    height: 35px;
    margin-right: 12px;
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a52a0;
}

.software-description {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #94a3b8;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.4;
    margin: 8px 0;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.06);
    display: none;
    transition: all 0.2s ease;
    z-index: 1000;
    width: 50%;
    max-width: none;
    margin-left: 25%;
    margin-right: 25%;
    backdrop-filter: blur(10px);
    border-left: 3px solid #3b82f6;
    white-space: normal;
    word-wrap: break-word;
}

.software-item {
    position: relative;
}

.software-item:hover .software-description {
    display: block;
    animation: fadeIn 0.2s ease;
}

.software-item.expanded .software-description {
    display: none !important;
}

.software-description::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
}

.software-description::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #94a3b8;
    z-index: -1;
}

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

.dropdown-icon {
    color: #3498db;
    font-size: 0.8rem;
    transition: transform 0.3s;
    margin-left: 8px;
}

.software-item.expanded .dropdown-icon {
    transform: rotate(180deg);
}

/* Software Content (展开/折叠部分) - 移除动画 */
.software-content {
    display: none; /* 默认隐藏，不使用max-height动画 */
    background-color: #f8fbff;
    padding: 10px;
}

.software-content.show {
    display: block; /* 显示时直接显示，不使用动画 */
}

/* 版本列表 - 两列布局 */
.software-versions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.version-item {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e8f0f8; /* 软件版本有明显的背景色区别 */
    transition: background-color 0.2s;
    min-height: 48px;
}

.version-item:hover {
    background-color: #d4e6d1;
}

.version-info {
    display: flex;
    flex: 1;
    min-width: 0;
}

.version-name {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-links {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.download-btn {
    display: inline-block;
    padding: 4px 8px;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.75rem;
    transition: background-color 0.2s;
    font-weight: 600;
    white-space: nowrap;
}

.download-btn:hover {
    opacity: 0.9;
}
.download-btn.thunder {
    background-color: #2980b9;
}

.download-btn.thunder:hover {
    background-color: #27ae60;
}

.download-btn.quark {
    background-color: #2980b9;
}

.download-btn.quark:hover {
    background-color: #27ae60;
}

.download-btn.baidu {
    background-color: #2980b9;
}

.download-btn.baidu:hover {
    background-color: #27ae60;
}

.download-btn.anzhuang {
    background-color: #0BD468;
}

.download-btn.anzhuang:hover {
    background-color: #27ae60;
}

.download-btn.jiaocheng {
    background-color: #d35400;
}

.download-btn.jiaocheng:hover {
    background-color: #27ae60;
}

/* 右侧浮窗按钮样式 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.floating-btn i {
    font-size: 20px;
}

.qrcode-container {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* 当二维码图片为空时，不显示按钮 */
.floating-btn:has(.qrcode-img[src=""]) {
    display: none;
}

/* 浮窗按钮文字说明样式 */
.tooltip {
    position: absolute;
    right: 60px;
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
}

/* 移动端浮窗按钮样式 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .floating-btn i {
        font-size: 16px;
    }
    
    .floating-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
    }
    
    .qrcode-container {
        right: 50px;
        padding: 8px;
    }
    
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
    
    .tooltip {
        right: 50px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .floating-btn:hover .tooltip {
        right: 55px;
    }
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}
/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 30px 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    flex: 1;
    min-width: 280px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    color: white;
}

.footer-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.friend-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.friend-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.friend-link:hover {
    color: #3498db;
}

.friend-links span {
    color: #444;
}

.footer-center .disclaimer {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 600px;
}

.footer-center .copyright {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    min-width: 200px;
}

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

.qrcode-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 8px;
    object-fit: cover;
    border: 1px solid #333;
}

.qrcode-label {
    font-size: 0.75rem;
    color: #999;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-right {
        justify-content: center;
    }
}

/* Responsive Styles - 优化移动端 */
@media (max-width: 980px) {
    .software-versions {
        grid-template-columns: 1fr;
    }
}

/* 移动端响应式样式调整 */
@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 2.2rem; /* 移动端缩小标题 */
    }

    .top-navigation {
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
        max-width: 100%;
    }

    .top-navigation::before {
        height: 1px;
        display: none;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 2px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }

    .nav-btn {
        flex: 1 1 calc(20% - 2px);
        max-width: none;
        font-size: 0.7rem;
        padding: 12px 6px;
        border-radius: 4px;
        gap: 6px;
        box-shadow: none;
        border-width: 1px;
        flex-direction: column;
        text-shadow: none;
        letter-spacing: 0;
    }

    .nav-btn i {
        font-size: 1.2rem;
    }

    .nav-btn span {
        display: block;
        font-size: 0.65rem;
    }

    .nav-btn:nth-child(5) {
        flex: 1 1 calc(20% - 2px);
        margin-top: 0;
    }

    .nav-btn:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-btn.active {
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transform: none;
    }

    .nav-btn.active::after {
        display: none;
    }

    /* 控件布局在移动端改为垂直排列 */
    .controls-layout {
        flex-direction: column;
    }

    .sidebar-width {
        width: 100%;
        padding-right: 0;
        margin-bottom: 0; /* 确保与搜索框无缝衔接 */
    }

    .tutorial-button {
        height: 38px; /* 移动端按钮高度稍小 */
        border-radius: 4px 4px 0 0; /* 移动端两个上角都有圆角 */
    }

    .search-area {
        width: 100%;
    }

    .search-box-full {
        height: 38px;
        border-radius: 0 0 4px 4px; /* 移动端两个下角都有圆角 */
        border-left: 1px solid #ddd; /* 移动端恢复左侧边框 */
        border-top: none; /* 移动端移除上边框 */
    }

    .search-box-full button {
        min-width: auto;
        padding: 0 10px;
    }

    .search-box-full button span {
        display: none; /* 隐藏按钮文字，只保留图标 */
    }

    .search-box-full button i {
        margin-right: 0;
    }

    .main-container {
        margin: 0px 0 0; /* 移动端与上方控件有一定间隔 */
        /* 移动端保持左侧菜单右侧软件的结构 */
        flex-direction: row;
        border-radius: 4px; /* 恢复四角圆角 */
    }

    .sidebar {
        width: 25%; /* 进一步减小移动端侧边栏宽度 */
        min-width: 90px;
    }

    .category-list li {
        padding: 9px 6px;
        font-size: 0.8rem;
        text-align: center;
    }
    .content {
        width: 75%; /* 增加内容区域宽度 */
        padding: 10px 8px;
}

    .software-header {
        padding: 10px 8px;
        border-radius: 4px;
    }

    .software-name {
        font-size: 0.85rem;
    }

    .software-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .software-description {
        display: none !important;
    }

    .software-versions {
        grid-template-columns: 1fr;/* 移动端一列显示 */
        gap: 8px;
    }

    .version-item {
       padding: 10px;
       flex-direction: column;
       align-items: flex-start;
       gap: 8px;
       border-radius: 4px;
       box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
       overflow: visible;
}

    .version-info {
        width: 100%;
        min-width: 0;
    }

    .version-name {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .download-links {
        margin-top: 0px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .download-btn {
        text-align: center;
        padding: 6px 10px;
        font-size: 0.65rem;
        white-space: nowrap;
        min-width: 80px;
    }
}

/* 针对小屏手机的优化 */
@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.8rem;
    }

    .banner {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .tutorial-button {
        font-size: 0.85rem;
        padding: 8px;
    }

    .search-box-full input {
        padding: 8px;
    }

    .sidebar {
        width: 25%; /* 小屏幕保持与移动端一致的比例 */
        min-width: 80px;
    }

    .content {
        width: 75%;
    }

    .category-list li {
        padding: 8px 5px;
        font-size: 0.75rem;
        text-align: center;
    }

    .software-name {
        font-size: 0.8rem;
    }

    .software-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .software-description {
        display: none !important;
    }

    .version-item {
       padding: 8px;
       flex-direction: column;
       align-items: flex-start;
       gap: 6px;
       overflow: visible;
    }

    .version-info {
        width: 100%;
    }

    .version-name {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .download-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .download-btn {
        text-align: center;
        padding: 5px 8px;
        font-size: 0.6rem;
        min-width: 70px;
    }
}

/* 搜索结果弹窗样式 */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-results-modal.active {
    opacity: 1;
}

.search-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 800px;
    height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.search-results-modal.active .search-modal-content {
    transform: scale(1);
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.search-result-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-result-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.result-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-header:hover {
    background-color: #d6e6f5;
}

.result-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 6px;
    padding: 4px;
}

.result-info {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.result-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a52a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-category {
    font-size: 0.75rem;
    color: #888;
    padding: 2px 10px;
    background-color: #e8f0f8;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropdown-icon {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    transition: transform 0.2s;
}

.result-versions {
    padding: 12px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.result-versions .software-versions {
    grid-template-columns: 1fr;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-results p {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        height: 80vh;
    }

    .search-modal-header {
        padding: 12px 16px;
    }

    .search-modal-header h3 {
        font-size: 1rem;
    }

    .search-results-list {
        padding: 10px;
    }

    .result-header {
        padding: 10px;
    }

    .result-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .result-name {
        font-size: 0.85rem;
    }

    .software-versions {
        grid-template-columns: 1fr;
    }

    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .download-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .download-btn {
        text-align: center;
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}