/* ═══════════════════════════════════════════
   download.css — 下载页专属样式
   ═══════════════════════════════════════════ */

/* ── 页面标题区 ── */
.page-hero {
    padding: 130px 0 70px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37,99,235,0.12), transparent),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(56,189,248,0.07), transparent);
}
.page-hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3);
    padding: 7px 16px; border-radius: 40px; font-size: 0.8rem; color: var(--primary);
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: 3rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3f8 60%, var(--primary) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 14px;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto 32px; line-height: 1.7; }

/* ── 搜索栏 ── */
.search-wrap { max-width: 460px; margin: 0 auto; position: relative; }
.search-wrap input {
    width: 100%; padding: 13px 50px 13px 20px;
    background: rgba(15,22,36,0.9); border: 1px solid var(--border);
    border-radius: 40px; color: var(--text); font-size: 0.92rem;
    outline: none; font-family: inherit; transition: border-color 0.2s;
}
.search-wrap input::placeholder { color: #4a5a7a; }
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 12px rgba(56,189,248,0.2); }
.search-wrap .search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ── 分类标签过滤 ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 20px; }
.filter-btn {
    padding: 8px 20px; border-radius: 40px; font-size: 0.85rem;
    font-weight: 500; cursor: pointer; transition: 0.25s; font-family: inherit;
    border: 1px solid var(--border); background: rgba(13,18,28,0.7);
    color: var(--text-muted);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: linear-gradient(110deg, var(--primary-dark), var(--primary)); border-color: transparent; color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.35); }

/* ── 产品分组 ── */
.download-section { margin-bottom: 56px; }
.section-group-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(56,189,248,0.12); }
.group-icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.group-icon.env { background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(5,150,105,0.15)); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.group-icon.doc { background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(56,189,248,0.15)); color: var(--primary); border: 1px solid rgba(56,189,248,0.25); }
.group-icon.monitor { background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(167,139,250,0.15)); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.group-icon.custom { background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(251,191,36,0.15)); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.group-info h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.group-info p { color: var(--text-muted); font-size: 0.88rem; }
.group-badge { margin-left: auto; padding: 4px 12px; border-radius: 40px; font-size: 0.75rem; font-weight: 600; flex-shrink: 0; }
.group-badge.env { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.group-badge.doc { background: rgba(56,189,248,0.12); color: var(--primary); border: 1px solid rgba(56,189,248,0.2); }
.group-badge.monitor { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
.group-badge.custom { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }

/* ── 文件卡片列表 ── */
.files-list { display: flex; flex-direction: column; gap: 12px; animation: expandIn 0.3s ease; }
.file-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 18px 24px;
    display: flex; align-items: center; gap: 16px;
    transition: all 0.25s; position: relative; overflow: hidden;
}
.file-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--primary-dark), var(--primary)); opacity: 0; transition: opacity 0.25s; }
.file-card:hover { border-color: var(--border-hover); transform: translateX(4px); box-shadow: var(--glow); }
.file-card:hover::before { opacity: 1; }
.file-type-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.file-type-icon.exe { background: rgba(37,99,235,0.15); color: var(--primary-light); border: 1px solid rgba(37,99,235,0.2); }
.file-type-icon.pdf { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.file-type-icon.zip { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.file-type-icon.doc { background: rgba(56,189,248,0.1); color: var(--primary); border: 1px solid rgba(56,189,248,0.2); }
.file-type-icon.msi { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.file-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.file-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-download { padding: 8px 20px; border-radius: var(--radius-btn); background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: white; border: none; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.25s; display: flex; align-items: center; gap: 8px; font-family: inherit; text-decoration: none; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(56,189,248,0.35); }
.btn-preview { padding: 8px 14px; border-radius: var(--radius-btn); background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: 0.25s; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.btn-preview:hover { border-color: var(--primary); color: var(--primary); }

/* ── 版本标签 ── */
.version-tag { padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.version-tag.latest { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.version-tag.beta { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.version-tag.stable { background: rgba(56,189,248,0.1); color: var(--primary); border: 1px solid rgba(56,189,248,0.2); }

/* ── 通知栏 ── */
.notice-bar { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); border-radius: 14px; padding: 14px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.notice-bar i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.notice-bar p { color: #93c5fd; line-height: 1.5; }

/* ── 统计栏 ── */
.stats-bar { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* ── 空状态 ── */
.no-files { text-align: center; padding: 36px; background: rgba(13,18,28,0.5); border-radius: 16px; border: 1px dashed var(--border); color: var(--text-muted); font-size: 0.9rem; }
.no-files i { font-size: 2rem; color: #2d3a5e; margin-bottom: 10px; display: block; }

/* ── 更多产品占位 ── */
.placeholder-box {
    text-align: center; padding: 40px;
    background: rgba(13,18,28,0.5); border-radius: 20px;
    border: 2px dashed rgba(56,189,248,0.15);
}
.placeholder-box .placeholder-icon { font-size: 2.5rem; color: rgba(56,189,248,0.3); margin-bottom: 14px; display: block; }
.placeholder-box h3 { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 8px; }
.placeholder-box p { color: var(--text-footer); font-size: 0.88rem; margin-bottom: 20px; }

/* ── 折叠 ── */
.collapse-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 4px 0; }
.collapse-header .toggle-icon { color: var(--text-muted); transition: transform 0.3s; font-size: 0.9rem; }
.collapse-header.collapsed .toggle-icon { transform: rotate(-90deg); }
@keyframes expandIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── 响应式（下载页专属） ── */
@media (max-width: 960px) {
    .page-hero h1 { font-size: 2.2rem; }
    .file-card { flex-wrap: wrap; }
    .file-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 600px) {
    .section-group-header { flex-wrap: wrap; }
    .group-badge { margin-left: 0; }
    .stats-bar { gap: 28px; }
}
