/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 现代化柔和背景与排版 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f1f1f1;
    /* 柔和的浅灰背景 */
    color: #1f2937;
    /* 深灰字体，比纯黑更护眼 */
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* 主容器：去掉黑线框，改用圆角和阴影 */
.container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;
    align-self: flex-start;
}

/* --- 新增：置顶的核心基础信息 --- */
.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.repo-title {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}

.repo-stats {
    display: flex;
    gap: 16px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.icon {
    font-size: 16px;
}

.icon-star {
    color: #eab308;
}

/* 黄色星星 */
.icon-fork {
    color: #3b82f6;
}

/* 蓝色分叉 */

/* --- 总下载量 --- */
.total-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.total-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 12px;
}

.total-count {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: #3b82f6;
    /* 重点数据使用主题蓝 */
}

/* --- 次要数据区域 --- */
.stats-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* 增加鼠标悬停的微小交互 */
.stats-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stats-box:last-child {
    margin-bottom: 0;
}

.stat-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #0f172a;
}

.stat-meta {
    font-size: 13px;
    color: #64748b;
}

/* 状态提示 */
.status-msg {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.hidden {
    display: none !important;
}

/* --- 新增：Bilibili 专属样式区域 --- */
.bilibili-box {
    background-color: #fff0f6;
    /* B站主题淡粉色背景 */
    border: 1px solid #ffb8d2;
    /* 粉色边框 */
}

.bilibili-box .stat-title {
    color: #f472b6;
    /* B站粉色标题 */
}

.bili-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.bili-item {
    text-align: center;
    flex: 1;
}

/* 添加中间分隔线 */
.bili-item:not(:last-child) {
    border-right: 1px solid #ffb8d2;
}

.bili-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.bili-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #ec4899;
    /* B站粉 */
    line-height: 1;
}

/* --- 修改：移动端适配 (覆盖之前的 @media) --- */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 24px 20px;
    }

    .repo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .total-count {
        font-size: 65px;
        /* 适当调小避免溢出 */
    }

    .stat-value {
        font-size: 20px;
    }

    /* 移动端 B 站数据变成垂直排列 */
    .bili-grid {
        flex-direction: column;
        gap: 16px;
    }

    .bili-item {
        width: 100%;
    }

    .bili-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px dashed #ffb8d2;
        padding-bottom: 12px;
    }
}




/* --- 新增：二级页面 (releases.html) 专属样式 --- */

/* 返回主页按钮 */
.back-btn {
    text-decoration: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #bfdbfe;
    background-color: #eff6ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* 版本卡片布局 */
.release-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.release-header {
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 12px;
}

.release-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.release-tag {
    font-size: 12px;
    background: #e2e8f0;
    padding: 3px 8px;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
}

.release-meta {
    font-size: 13px;
    color: #64748b;
}

/* 文件资产列表 */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    transition: background-color 0.2s;
}

.asset-item:hover {
    background: #f8fafc;
}

.asset-name {
    color: #334155;
    font-weight: 600;
    word-break: break-all;
    margin-right: 16px;
}

.asset-stats {
    color: #64748b;
    white-space: nowrap;
}

/* 二级页面移动端适配补充 */
@media (max-width: 480px) {
    .asset-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}