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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#app {
    flex: 1;
}

/* 防止Vue模板闪烁 */
[v-cloak] {
    display: none !important;
}

/* 顶部导航 */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
}

.el-header {
    padding: 0 !important;
    height: 50px !important;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #409EFF;
    white-space: nowrap;
}

.header-nav {
    flex: 1;
    border-bottom: none !important;
}

.header-nav .el-menu-item {
    font-size: 13px;
    padding: 0 15px;
    height: 50px;
    line-height: 50px;
}

.header-nav .el-menu-item:hover {
    background-color: #f5f7fa !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    width: 220px;
}

.search-input .el-input__inner {
    border-radius: 20px;
}

.search-input .el-input__suffix {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.user-dropdown {
    cursor: pointer;
    font-size: 13px;
    color: #606266;
    white-space: nowrap;
}

.user-dropdown:hover {
    color: #409EFF;
}

.el-dropdown-link {
    display: flex;
    align-items: center;
}

/* 主内容区 */
.main-content {
    padding: 20px 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 软件列表 */
.software-section {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.software-section .el-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 16px;
}

.software-card {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 6px;
    height: 100%;
    margin-bottom: 0;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.software-card .el-card__body {
    display: flex;
    align-items: center;
    padding: 15px !important;
    gap: 15px;
}

.software-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.software-image img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.software-image img[src=""],
.software-image img:not([src]) {
    opacity: 0;
}

.software-image img[loading="lazy"] {
    background: #f0f0f0;
}

.hot-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #f56c6c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.software-content {
    flex: 1;
    min-width: 0;
}

.software-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.software-desc {
    font-size: 12px;
    color: #909399;
    line-height: 18px;
    height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.software-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-count {
    font-size: 12px;
    color: #909399;
}

.software-footer .el-button {
    padding: 5px 12px;
    font-size: 12px;
}

/* 分页 */
.pagination-wrapper {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .search-input {
        width: 180px;
    }
    
    .software-image {
        height: 100px;
    }
    
    .software-image img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .software-title {
        font-size: 13px;
    }
    
    .software-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .software-section .el-col {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .search-input {
        width: 150px;
    }
}

/* 简洁公告栏 */
.notice-bar-simple {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.notice-bar-simple i {
    font-size: 16px;
    color: #909399;
    margin-right: 10px;
}

.notice-bar-simple span {
    font-size: 13px;
    color: #606266;
    line-height: 1.6;
}

/* 分类快速导航 */
.category-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
}

.category-quick-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f7fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #606266;
}

.category-quick-nav .nav-item:hover {
    background: #409EFF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(64, 158, 255, 0.3);
}

.category-quick-nav .nav-item i {
    font-size: 14px;
}

/* 简洁分区标题 */
.section-title-simple {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title-simple .title-text {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

.section-title-simple .title-count {
    font-size: 13px;
    color: #909399;
    margin-left: 10px;
}

/* 全部软件区域 */
.all-section-simple {
    margin-bottom: 30px;
}

/* 主内容区底部留白 */
.main-content {
    margin-bottom: 0;
}

/* 友情链接 - 固定在页面最底部 */
.footer-links-section {
    background: #f5f7fa;
    border-top: 1px solid #e4e7ed;
    padding: 30px 0;
    margin-top: 0;
}

.footer-links-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.links-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #409EFF;
    display: inline-block;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.links-list a {
    font-size: 13px;
    color: #606266;
    text-decoration: none;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #409EFF;
}
