/* ============================================
   SciDownload - 主样式文件
   科幻风格软件下载站
   ============================================ */

/* ---- CSS变量 ---- */
:root {
    --primary:       #00d4ff;
    --primary-dark:  #0099cc;
    --secondary:     #7b2fff;
    --accent:        #ff6b35;
    --success:       #00ff88;
    --warning:       #ffcc00;
    --danger:        #ff3366;
    --bg-dark:       #050a14;
    --bg-card:       rgba(10, 20, 40, 0.85);
    --bg-card-hover: rgba(15, 30, 60, 0.95);
    --border-color:  rgba(0, 212, 255, 0.2);
    --border-glow:   rgba(0, 212, 255, 0.5);
    --text-primary:  #e0f4ff;
    --text-secondary:#8ab4cc;
    --text-muted:    #4a6a80;
    --font-main:     'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-mono:     'Consolas', 'Courier New', monospace;
    --radius:        8px;
    --radius-lg:     16px;
    --shadow:        0 4px 24px rgba(0, 212, 255, 0.1);
    --shadow-hover:  0 8px 40px rgba(0, 212, 255, 0.25);
    --transition:    all 0.3s ease;
}

/* ---- 全局重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---- 粒子背景 ---- */
#particles-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #050a14 0%, #0a1628 50%, #050a14 100%);
}

/* ---- 扫描线效果 ---- */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.015) 2px,
        rgba(0, 212, 255, 0.015) 4px
    );
}

/* ---- 容器 ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 导航栏 ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.logo-sub {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
    margin-top: -4px;
}
.header-search { flex: 1; max-width: 400px; }
.search-form { display: flex; position: relative; }
.search-input {
    width: 100%;
    padding: 8px 44px 8px 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(5, 15, 30, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeInDown 0.2s ease; }
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}
.dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
    padding-left: 20px;
}
.dropdown-menu a .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 212, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 10, 20, 0.98);
}
.mobile-nav a {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 212, 255, 0.05);
    font-size: 15px;
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav.open { display: flex; }

/* ---- 主内容区 ---- */
.site-main { position: relative; z-index: 1; min-height: calc(100vh - 64px - 300px); }

/* ---- 轮播英雄区 ---- */
.hero-section { position: relative; height: 520px; overflow: hidden; }
.hero-carousel { position: relative; height: 100%; }
.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.carousel-slide.active { opacity: 1; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,10,20,0.9) 0%, rgba(5,10,20,0.5) 60%, transparent 100%);
}
.slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    max-width: 600px;
    z-index: 2;
}
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.slide-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    line-height: 1.2;
}
.slide-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    line-height: 1.5;
}
.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.slide-meta span { display: flex; align-items: center; gap: 6px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--primary);
}

/* ---- 分类导航 ---- */
.category-nav-section {
    padding: 20px 0;
    background: rgba(0, 212, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}
.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}
.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition);
}
.category-nav-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.cat-icon {
    width: 44px; height: 44px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}
.category-nav-item:hover .cat-icon {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}
.cat-name { font-size: 13px; font-weight: 600; }
.cat-count { font-size: 11px; color: var(--text-muted); }

/* ---- 软件区块 ---- */
.software-section { padding: 40px 0; }
.software-section-alt { background: rgba(0, 212, 255, 0.02); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.title-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}
.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    min-width: 40px;
}
.section-more {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
}
.section-more:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

/* ---- 软件卡片网格 ---- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.software-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.software-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}
.software-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}
.software-card:hover::before { opacity: 1; }
.card-thumb {
    position: relative;
    height: 160px;
    background: rgba(0, 212, 255, 0.05);
    overflow: hidden;
}
.card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}
.software-card:hover .card-thumb img {
    transform: scale(1.12);
}
.card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(0, 212, 255, 0.2);
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}
.software-card:hover .card-overlay { opacity: 1; }
.overlay-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    transition: var(--transition);
}
.overlay-btn:hover, .overlay-btn.download-btn {
    background: var(--primary);
    color: var(--bg-dark);
}
.card-body { padding: 16px; }
.card-category {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--primary); }
.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.card-downloads { font-size: 13px; color: var(--text-secondary); }
.rating-num { color: var(--warning); font-weight: 600; }

/* ---- 星级评分 ---- */
.stars { display: inline-flex; gap: 2px; }
.star-full  { color: var(--warning); }
.star-half  { color: var(--warning); }
.star-empty { color: var(--text-muted); }

/* ---- 软件列表视图 ---- */
.software-list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}
.list-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.list-thumb {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(0, 212, 255, 0.05);
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(0, 212, 255, 0.2);
}
.list-body { flex: 1; min-width: 0; }
.list-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.list-title a { color: var(--text-primary); }
.list-title a:hover { color: var(--primary); }
.list-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.tag-category { background: rgba(0, 212, 255, 0.1); color: var(--primary); }
.tag-os       { background: rgba(123, 47, 255, 0.1); color: #a78bfa; }
.tag-license  { background: rgba(0, 255, 136, 0.1); color: var(--success); }
.list-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.list-stats { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #33ddff, var(--primary));
    color: var(--bg-dark);
    transform: translateY(-1px);
}
.btn-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}
.btn-download {
    background: linear-gradient(135deg, var(--secondary), #5b1fcc);
    color: #fff;
}
.btn-download:hover {
    background: linear-gradient(135deg, #9b4fff, var(--secondary));
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- 面包屑 ---- */
.breadcrumb-bar {
    padding: 12px 0;
    background: rgba(0, 212, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ---- 排序控制 ---- */
.sort-controls { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sort-btn {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}
.sort-btn:hover, .sort-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
}

/* ---- 页面英雄 ---- */
.page-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, rgba(123,47,255,0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}
.page-hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
}
.page-hero-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}
.page-hero-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.page-hero-info p { color: var(--text-secondary); font-size: 15px; }
.total-count {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: var(--primary);
}

/* ---- 软件详情页 ---- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 24px 0;
}
.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-header { display: flex; gap: 24px; }
.detail-thumb {
    width: 120px; height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: visible;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: zoom-in;
    z-index: 1;
}
.detail-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                z-index 0s;
    transform-origin: top left;
    position: relative;
    z-index: 2;
}
.detail-thumb:hover img {
    transform: scale(3);
    box-shadow: 0 0 0 2px var(--primary),
                0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(0, 212, 255, 0.3);
    z-index: 999;
    border-radius: var(--radius-lg);
}
.detail-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(0, 212, 255, 0.2);
}
.detail-info { flex: 1; }
.detail-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.detail-short-desc { color: var(--text-secondary); margin-bottom: 12px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.rating-score { font-size: 20px; font-weight: 700; color: var(--warning); }
.rating-count { font-size: 13px; color: var(--text-muted); }
.detail-stats { display: flex; gap: 24px; margin-bottom: 20px; }
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 80px;
}
.stat-box .fa { font-size: 20px; color: var(--primary); }
.stat-val { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.stat-lbl { font-size: 12px; color: var(--text-muted); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.params-table { width: 100%; border-collapse: collapse; }
.params-table td { padding: 10px 12px; border-bottom: 1px solid rgba(0,212,255,0.05); font-size: 14px; }
.param-key { color: var(--text-muted); width: 120px; white-space: nowrap; }
.param-val { color: var(--text-primary); font-weight: 500; }
.detail-tags { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-link {
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
    transition: var(--transition);
}
.tag-link:hover { background: rgba(0, 212, 255, 0.2); }
.desc-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}
.desc-content h3 { color: var(--primary); margin: 16px 0 8px; font-size: 16px; }
.desc-content ul { margin: 8px 0 8px 20px; list-style: disc; }
.desc-content li { margin-bottom: 4px; }
.desc-content p { margin-bottom: 12px; }

/* ---- 评论区 ---- */
.comments-list { margin-bottom: 24px; }
.comment-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,212,255,0.05);
}
.comment-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-author { font-weight: 600; color: var(--text-primary); }
.comment-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.comment-content { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 15px;
}
.no-comments .fa { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.3; }
.comment-form-wrap {
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}
.form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.form-control:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }

/* ---- select 下拉框深色科幻风格 ---- */
select.form-control,
select {
    background-color: #071525 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 7px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #e0f4ff !important;
    border: 1px solid rgba(0,212,255,0.3) !important;
    cursor: pointer;
    padding-right: 36px !important;
}
select.form-control:focus,
select:focus {
    border-color: var(--primary) !important;
    background-color: #0a1e35 !important;
    box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
select.form-control option,
select option {
    background-color: #071525;
    color: #e0f4ff;
    padding: 8px 12px;
}
select.form-control option:checked,
select option:checked {
    background-color: #0d2a45;
    color: #00d4ff;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.form-tip { font-size: 12px; color: var(--text-muted); }
.required { color: var(--danger); }

/* ---- 星级输入 ---- */
.star-rating-input { display: flex; gap: 4px; cursor: pointer; }
.star-input { font-size: 22px; color: var(--text-muted); transition: var(--transition); }
.star-input.active { color: var(--warning); }
.star-input:hover { transform: scale(1.2); }

/* ---- 侧边栏 ---- */
.detail-sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,212,255,0.05);
    font-size: 13px;
}
.info-list li span { color: var(--text-muted); }
.info-list li strong { color: var(--text-primary); }
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,212,255,0.05);
    color: var(--text-secondary);
    transition: var(--transition);
}
.related-item:hover { color: var(--primary); }
.related-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 212, 255, 0.05);
    flex-shrink: 0;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-ph {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(0, 212, 255, 0.2);
}
.related-title { font-size: 13px; font-weight: 500; display: block; margin-bottom: 2px; }
.related-meta { font-size: 11px; color: var(--text-muted); }
.download-widget .btn-download-side {
    padding: 16px;
    font-size: 16px;
    border-radius: var(--radius);
}
.btn-sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; margin-top: 2px; }

/* ---- 提示框 ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}
.alert-error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--danger);
}

/* ---- 分页 ---- */
.pagination-nav { display: flex; justify-content: center; margin: 32px 0; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
}
.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    color: var(--text-muted);
}

/* ---- 空状态 ---- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state .fa { font-size: 64px; display: block; margin-bottom: 16px; opacity: 0.2; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { margin-bottom: 20px; }

/* ---- 404页面 ---- */
.error-page {
    text-align: center;
    padding: 100px 20px;
}
.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    margin-bottom: 16px;
}
.error-title { font-size: 28px; margin-bottom: 12px; }
.error-desc { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ---- 搜索页 ---- */
.search-hero { text-align: center; }
.search-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.keyword-highlight { color: var(--primary); }
.search-count {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}
.search-form-large { display: flex; gap: 12px; max-width: 600px; margin: 0 auto; }
.search-input-large {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.search-input-large:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.search-input-large::placeholder { color: var(--text-muted); }

/* ---- 下载页 ---- */
.download-page { max-width: 500px; margin: 60px auto; text-align: center; }
.download-card { padding: 40px; }
.download-icon { font-size: 64px; color: var(--primary); margin-bottom: 16px; }
.download-notice {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 20px 0;
}
.download-btns { display: flex; gap: 12px; justify-content: center; }

/* ---- 页脚 ---- */
.site-footer {
    background: rgba(5, 10, 20, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}
.stat-label { font-size: 12px; color: var(--text-muted); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer-tech { margin-top: 4px; }
.glow-text {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* ---- 返回顶部 ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px; height: 44px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}
.back-to-top:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ---- 动画 ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes glitch {
    0%, 100% { clip-path: inset(0 0 100% 0); }
    10% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 0); }
    30% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(20% 0 70% 0); transform: translate(2px, 0); }
}
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    color: var(--primary);
}
.glitch-text::before {
    color: var(--danger);
    animation: glitch 3s infinite;
}
.glitch-text::after {
    color: var(--secondary);
    animation: glitch 3s infinite reverse;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .category-nav-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-section { height: 360px; }
    .slide-content { left: 20px; bottom: 40px; }
    .slide-title { font-size: 24px; }
    .category-nav-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .software-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .detail-header { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .header-search { display: none; }
}
@media (max-width: 480px) {
    .category-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .software-grid { grid-template-columns: 1fr; }
    .slide-actions { flex-direction: column; }
}
