/* 全局样式还原截图浅灰风格 */
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: 990px;
    width: 100%;
}
@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;
}
/* 前台筛选区样式 */
/* 筛选面板整体容器 */
.filter-panel {
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.filter-panel-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.filter-panel-body {
    padding: 14px 16px;
}
.filter-row {
    margin-bottom: 10px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-label {
    flex: 0 0 60px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    margin-right: 12px;
}
.filter-label i {
    margin-right: 5px;
    color: #adb5bd;
}
@media (max-width: 576px) {
    .filter-label {
        flex: 0 0 auto;
        margin-bottom: 6px;
        margin-right: 8px;
    }
    .filter-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* 当前筛选状态徽章 */
.filter-status {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

/* 筛选 chip 胶囊 */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 13px;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    line-height: 1.5;
    transition: all 0.18s ease;
    cursor: pointer;
}
.chip:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e40af;
    text-decoration: none;
    transform: translateY(-1px);
}
.chip-active {
    background: linear-gradient(135deg, #0066ff 0%, #3b82f6 100%);
    border-color: #0066ff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,102,255,0.32);
    font-weight: 500;
}
.chip-active:hover {
    background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%);
    border-color: #0052cc;
    color: #fff;
    transform: translateY(-1px);
}
.chip-active::before {
    content: "\f00c";
    font-family: "FontAwesome";
    margin-right: 5px;
    font-size: 11px;
}

/* 搜索框（input group 风格） */
.search-box {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    max-width: 520px;
    position: relative;
}
.search-box .search-input {
    flex: 1 1 auto;
    border: 1px solid #d0d7de;
    border-right: none;
    border-radius: 22px 0 0 22px;
    padding: 8px 38px 8px 38px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-box .search-input:focus {
    border-color: #0066ff;
    box-shadow: none;
    outline: none;
    background: #fff;
}
.search-box .search-input:focus ~ .search-box-btn {
    background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%);
}
.search-box-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    font-size: 13px;
    pointer-events: none;
    z-index: 3;
}
.search-box-clear {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9aa5b1;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    z-index: 3;
    transition: color 0.15s ease;
}
.search-box-clear:hover {
    color: #ef4444;
}
.search-box-btn {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #0066ff 0%, #3b82f6 100%);
    color: #fff;
    border: 1px solid #0066ff;
    border-radius: 0 22px 22px 0;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.18s ease;
    box-shadow: 0 2px 4px rgba(0,102,255,0.2);
}
.search-box-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #2563eb 100%);
    color: #fff;
}
.search-box-btn:active {
    transform: scale(0.98);
}
@media (max-width: 576px) {
    .search-box {
        max-width: 100%;
    }
    .search-box-btn {
        padding: 8px 16px;
    }
    .search-box-clear {
        right: 80px;
    }
}

/* 文件密码锁定/解锁样式 */
.file-code-placeholder {
    display: inline-block;
    padding: 8px 14px;
    border: 1px dashed #ff4141;
    border-radius: 6px;
    color: #e76f6f;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.file-code-placeholder:hover {
    border-color: #ff0000;
    color: #3c3c3c;
    background-color: #fff0f0;
}
#modalFileCode {
    transition: filter .6s ease, opacity .6s ease;
}
/* "幕布拉开"动画：先模糊+透明，下一帧移除滤镜淡入 */
#modalFileCode.revealing {
    filter: blur(10px);
    opacity: 0;
}
