/* Y6IT 下载站 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; background: #0a0e14; color: #d0d8e0; line-height: 1.6; }

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

/* 头部 */
.site-header { background: linear-gradient(135deg, #0f1923, #141e2b); border-bottom: 1px solid #1e2d3d; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo { font-size: 22px; font-weight: 700; color: #00d4ff; text-decoration: none; }
.nav-menu { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-menu a { color: #8899aa; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; transition: all 0.2s; }
.nav-menu a:hover { color: #d0d8e0; background: rgba(0,212,255,0.06); }
.nav-menu a.active { color: #00d4ff; background: rgba(0,212,255,0.1); }

/* 分类标题 */
.category-header { margin: 30px 0 20px; }
.category-header h1 { font-size: 28px; color: #fff; }
.category-header p { color: #667788; margin-top: 6px; font-size: 14px; }

/* 文件网格 */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 24px 0; }
.file-card { background: #141e2b; border: 1px solid #1e2d3d; border-radius: 10px; padding: 20px; display: flex; gap: 16px; transition: border-color 0.2s, transform 0.2s; }
.file-card:hover { border-color: #2a4a6a; transform: translateY(-2px); }
.file-icon { font-size: 36px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-title { font-size: 16px; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-desc { font-size: 13px; color: #667788; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.meta-tag { font-size: 11px; padding: 2px 8px; background: #0f1923; border-radius: 4px; color: #8899aa; border: 1px solid #1e2d3d; }
.download-btn { display: inline-block; padding: 8px 20px; background: linear-gradient(135deg, #00d4ff, #0088cc); color: #fff; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 500; transition: opacity 0.2s; }
.download-btn:hover { opacity: 0.85; }

/* 空状态 */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h2 { color: #667788; font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: #445566; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.pagination a { padding: 8px 16px; background: #141e2b; border: 1px solid #1e2d3d; border-radius: 6px; color: #8899aa; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.pagination a:hover { border-color: #00d4ff; color: #00d4ff; }
.pagination a.active { background: #00d4ff; color: #0f1923; border-color: #00d4ff; font-weight: 600; }

/* 下载页 */
.download-page { max-width: 700px; margin: 40px auto; }
.file-detail { background: #141e2b; border: 1px solid #1e2d3d; border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.file-detail h1 { font-size: 22px; color: #fff; margin-bottom: 8px; }
.file-detail .desc { color: #8899aa; font-size: 14px; margin-bottom: 12px; }
.file-meta-detail { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #667788; }
.file-meta-detail span { padding: 4px 10px; background: #0f1923; border-radius: 4px; }

.node-selection { background: #141e2b; border: 1px solid #1e2d3d; border-radius: 10px; padding: 24px; }
.node-selection h2 { font-size: 18px; color: #fff; margin-bottom: 4px; }
.node-selection .hint { color: #667788; font-size: 13px; margin-bottom: 20px; }

.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.node-card { padding: 16px; border: 2px solid #1e2d3d; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.node-card:hover { border-color: #2a4a6a; }
.node-card.selected { border-color: #00d4ff; background: rgba(0,212,255,0.05); }
.node-name { font-size: 15px; color: #fff; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.node-badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.node-badge.local { background: #0d2818; color: #4caf50; }
.node-location { font-size: 13px; color: #8899aa; margin-top: 4px; }
.node-desc { font-size: 12px; color: #556677; margin-top: 4px; }

.btn-download-submit { width: 100%; padding: 14px; background: linear-gradient(135deg, #00d4ff, #0088cc); color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; transition: opacity 0.2s; }
.btn-download-submit:hover { opacity: 0.85; }
.btn-download-submit:disabled { background: #2a3a4a; color: #556677; cursor: not-allowed; }
.btn-download-submit:disabled:hover { opacity: 1; }

/* 底部 */
.site-footer { text-align: center; padding: 30px 0; border-top: 1px solid #1e2d3d; margin-top: 40px; color: #556677; font-size: 13px; }

/* 响应式 */
@media (max-width: 768px) {
    .file-grid { grid-template-columns: 1fr; }
    .node-grid { grid-template-columns: 1fr; }
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .nav-menu { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}