/* 下载牛系统 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 16px; color: #333; background: #f5f7fa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部导航 */
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { color: rgba(255,255,255,0.9); transition: all 0.3s; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 2px; background: #fff; border-radius: 1px; }

/* 搜索栏 */
.search-section { padding: 30px 0; background: #fff; border-bottom: 1px solid #eee; }
.search-box { max-width: 600px; margin: 0 auto; display: flex; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid #e9ecef; border-right: none; border-radius: 25px 0 0 25px; font-size: 16px; outline: none; transition: all 0.3s; }
.search-box input:focus { border-color: #667eea; }
.search-box button { padding: 12px 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 16px; transition: all 0.3s; }
.search-box button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }

/* 分类筛选 */
.category-section { padding: 20px 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.category-tab { padding: 8px 20px; background: #fff; border: 1px solid #e9ecef; border-radius: 20px; cursor: pointer; transition: all 0.3s; }
.category-tab:hover { border-color: #667eea; color: #667eea; }
.category-tab.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; }

/* 软件卡片网格 */
.software-grid { padding: 20px 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.software-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; cursor: pointer; }
.software-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.software-icon { height: 120px; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.software-info { padding: 16px; }
.software-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #333; display: flex; align-items: center; gap: 8px; }
.software-type { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #e8f5e9; color: #4caf50; }
.software-type.shareware { background: #fff3e0; color: #ff9800; }
.software-type.trial { background: #e3f2fd; color: #2196f3; }
.software-type.paid { background: #fce4ec; color: #e91e63; }
.software-type.open_source { background: #f3e5f5; color: #9c27b0; }
.software-meta { display: flex; justify-content: space-between; color: #999; font-size: 13px; margin-bottom: 10px; }
.software-desc { color: #666; font-size: 14px; height: 42px; overflow: hidden; margin-bottom: 12px; }
.software-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.download-count { color: #999; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.download-btn { padding: 6px 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; border-radius: 16px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.download-btn:hover { transform: scale(1.05); }

/* 分页 */
.pagination { padding: 20px 0 40px; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; background: #fff; border: 1px solid #e9ecef; border-radius: 6px; color: #666; transition: all 0.3s; }
.pagination a:hover { border-color: #667eea; color: #667eea; }
.pagination .current { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* 底部 */
.footer { background: #2c3e50; color: rgba(255,255,255,0.7); padding: 30px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-section h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-section p { font-size: 14px; line-height: 1.8; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

/* 详情页 */
.detail-section { padding: 30px 0; }
.detail-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.detail-header { display: flex; gap: 30px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #f0f0f0; }
.detail-icon { width: 120px; height: 120px; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 64px; flex-shrink: 0; }
.detail-title { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.detail-info-item { display: flex; flex-direction: column; }
.detail-info-label { font-size: 13px; color: #999; margin-bottom: 4px; }
.detail-info-value { font-size: 15px; color: #333; font-weight: 500; }
.detail-section-block { margin-bottom: 30px; }
.detail-section-block h3 { font-size: 18px; margin-bottom: 15px; padding-left: 12px; border-left: 4px solid #667eea; }
.detail-section-block p { color: #555; line-height: 1.8; white-space: pre-wrap; }

/* 下载区 */
.download-section { background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%); border-radius: 12px; padding: 25px; margin-top: 20px; }
.download-section h3 { font-size: 18px; margin-bottom: 20px; }
.download-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.download-link-item { background: #fff; border-radius: 10px; padding: 18px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.download-link-item:hover { transform: translateX(5px); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.download-link-info { display: flex; flex-direction: column; }
.download-link-label { font-weight: 600; color: #333; margin-bottom: 4px; }
.download-link-sub { font-size: 12px; color: #999; }
.download-link-btn { padding: 8px 18px; background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.download-link-btn:hover { transform: scale(1.05); }

/* 提示消息 */
.alert { padding: 12px 20px; border-radius: 8px; margin-bottom: 15px; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .software-grid { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; }
}
