/* 全局样式还原截图浅灰风格 */
body {
    background-color: #f7f8fa;
    font-size: 14px;
}
.sidebar {
    background: #ffffff;
    height: calc(100vh - 70px);
    overflow-y: auto;
    border-right: 1px solid #e8e8e8;
}
.sidebar .nav-link {
    color: #555;
    border-radius: 4px;
    margin: 2px 8px;
}
.sidebar .nav-link.active {
    background-color: #e8f3ff;
    color: #0066ff;
}
.sidebar .nav-link:hover {
    background-color: #f0f0f0;
    color: #333;
}
.card {
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.2s;
}
.card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.get-btn {
    background-color: #e6f2ff;
    color: #0066ff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 13px;
}
.get-btn:hover {
    background-color: #d0e6ff;
}
.top-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 15px;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-center {
    flex: 1;
    max-width: 400px;
}
.header-right {
    display: flex;
    align-items: center;
}
.software-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}
.soft-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.soft-thumb {
    flex-shrink: 0;
}
.soft-info {
    flex: 1;
    min-width: 0;
}
.soft-desc {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.soft-action {
    flex-shrink: 0;
}
.soft-card {
    height: 100%;
}
/* 移动端侧边栏遮罩 */
.sidebar-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.sidebar-mobile {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
}
.sidebar-mobile.show {
    left: 0;
}
@media (max-width:767px) {
    .sidebar-mask.show {
        display: block;
    }
}
/* 搜索框样式 */
.search-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
/* 软件卡片 */
.soft-card {
    cursor: pointer;
}
.soft-card .card-title {
    font-size: 15px;
    font-weight: 500;
}
.soft-card .card-meta {
    font-size: 13px;
}
/* 模态框样式 */
.modal-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-weight: 600;
}
/* 软件详情弹窗 */
.modal-detail {
    max-width: 700px;
    width: 90%;
}
@media (max-width: 576px) {
    .modal-detail {
        max-width: 95%;
        width: 95%;
    }
}
.detail-main {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.detail-thumb-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}
.detail-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.detail-info {
    flex: 1;
    min-width: 0;
}
.detail-info p {
    margin: 0;
    word-break: break-word;
}
.download-btn {
    background-color: #0066ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
}
.download-btn:hover {
    background-color: #0052cc;
    color: #fff;
}
/* 后台管理样式 */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: #ecf0f1;
    border-radius: 4px;
    margin: 2px 8px;
}
.admin-sidebar .nav-link:hover {
    background: #34495e;
    color: #fff;
}
.admin-sidebar .nav-link.active {
    background-color: #0066ff;
    color: #fff;
}
.admin-sidebar .nav-header {
    color: #7f8c8d;
    font-size: 12px;
    padding: 10px 8px 5px;
    text-transform: uppercase;
}
.admin-content {
    background: #f5f5f5;
    min-height: 100vh;
}
.admin-card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
}
.admin-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}
/* 表单样式 */
.form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
}
