/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* 主要内容区域 */
main {
    margin-top: 60px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #f0f0f0;
}

/* 内容区域样式 */
.content {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: #fff;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: row;
    }
    .sidebar {
        width: 90px;
        min-width: 70px;
        max-width: 120px;
        border-radius: 16px 0 0 16px;
        padding: 10px 0;
        box-shadow: none;
        background: #f7f7f7;
    }
    .sidebar ul {
        display: block;
        padding: 0;
        margin: 0;
    }
    .sidebar li {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .sidebar button {
        width: 90%;
        min-width: 60px;
        padding: 10px 0;
        font-size: 0.95rem;
        border-radius: 8px;
        white-space: normal;
    }
    .main {
        padding: 10px 4px;
    }
    .main, .main * {
        font-size: 0.92rem !important;
    }
    .item-title {
        font-size: 1rem !important;
    }
    .item-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: 4px !important;
    }
    .item-actions button, .download {
        font-size: 0.82rem !important;
        padding: 4px 8px !important;
        border-radius: 5px !important;
        margin: 0 !important;
    }
    .item-actions .tutorial {
        font-size: 0.82rem !important;
        padding: 4px 8px !important;
        border-radius: 5px !important;
        margin: 0 !important;
        background: #f6ffed !important;
        color: #52c41a !important;
        border: 1px solid #52c41a !important;
    }
    .item {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        gap: 6px !important;
        padding: 8px 6px !important;
    }
    .item-info, .item-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .content-list {
        gap: 6px !important;
    }
}

/* 按钮悬浮和点击效果（增强） */
.item-actions button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    margin-right: 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, font-weight 0.18s;
    outline: none;
    font-weight: 400;
}
.item-actions button:hover {
    background: #1890ff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(24,144,255,0.18), 0 0 0 2px #91d5ff;
    border-color: #1890ff;
    transform: translateY(-2px) scale(1.04);
    z-index: 2;
}
.item-actions button:active {
    background: #1466b3;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(20,102,179,0.18) inset, 0 0 0 2px #1466b3;
    border-color: #1466b3;
    transform: translateY(1px) scale(0.98);
    z-index: 1;
}

/* 菜单栏悬浮和点击效果 */
.sidebar li, .sidebar a, .group-header {
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.sidebar li:hover, .sidebar a:hover, .group-header:hover {
    background: #f0f6ff;
    color: #1890ff;
}
.sidebar li:active, .sidebar a:active, .group-header:active {
    background: #d6e4ff;
    color: #1466b3;
}

/* 分组头高亮展开时 */
.group-header:not(.collapsed) {
    background: #e6f7ff;
    color: #1890ff;
}

/* 下载按钮专属悬浮和点击效果 */
.item-actions .download,
.download {
    background: #f5f5f5;
    color: #1890ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    margin-right: 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, font-weight 0.18s;
    outline: none;
    font-weight: 500;
}
.item-actions .download:hover,
.download:hover {
    background: #1890ff;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(24,144,255,0.18), 0 0 0 2px #91d5ff;
    border-color: #1890ff;
    transform: translateY(-2px) scale(1.04);
    z-index: 2;
}
.item-actions .download:active,
.download:active {
    background: #1466b3;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(20,102,179,0.18) inset, 0 0 0 2px #1466b3;
    border-color: #1466b3;
    transform: translateY(1px) scale(0.98);
    z-index: 1;
}

/* 安装教程按钮专属样式 */
.item-actions .tutorial,
.tutorial {
    background: #f6ffed !important;
    color: #52c41a !important;
    border: 1px solid #52c41a !important;
    border-radius: 4px;
    padding: 0.4rem 1.1rem;
    margin-right: 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, font-weight 0.18s;
    outline: none;
    font-weight: 500;
}
.item-actions .tutorial:hover,
.tutorial:hover {
    background: #1890ff !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(24,144,255,0.18), 0 0 0 2px #91d5ff;
    border-color: #1890ff !important;
    transform: translateY(-2px) scale(1.04);
    z-index: 2;
}
.item-actions .tutorial:active,
.tutorial:active {
    background: #1466b3 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(20,102,179,0.18) inset, 0 0 0 2px #1466b3;
    border-color: #1466b3 !important;
    transform: translateY(1px) scale(0.98);
    z-index: 1;
} 