/* =========================================
   最近更新页专用样式 - update.css
   ========================================= */

/* 更新页包裹容器 */
.update-wrapper {
    padding-top: 16px;
}

/* 页面头部 */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 1px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.page-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-info {
    flex: 1;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.page-desc {
    font-size: 14px;
    color: var(--text-sub);
}

/* 更新页主布局 */
.update-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.update-content {
    min-width: 0;
}

.update-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 日期分组 */
.date-group {
    margin-bottom: 20px;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.date-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.date-text {
    font-size: 13px;
    color: var(--text-light);
}

/* 更新列表卡片 */
.update-list-card {
    background: #fff;
    border-radius: 1px;
    box-shadow: var(--shadow-sm);
}

.update-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-body);
    transition: background 0.2s;
    overflow: hidden;
}

.update-row:last-child {
    border-bottom: none;
}

.update-row:hover {
    background: var(--bg-body);
}

.update-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.update-info {
    flex: 1;
    min-width: 0;
}

.update-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.update-desc {
    font-size: 12px;
    color: var(--text-sub);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.update-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 分类标签 */
.update-cat {
    flex-shrink: 0;
}

.update-cat .cat-tag {
    font-size: 12px;
    color: var(--primary);
    background: var(--blue-light);
    padding: 4px 10px;
    border-radius: 4px;
}

/* 版本号 */
.update-version {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ver-old {
    font-size: 12px;
    color: var(--text-light);
}

.ver-new {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.update-version svg {
    color: var(--text-light);
}

/* 元信息 */
.update-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 70px;
}

.meta-size {
    font-size: 12px;
    color: var(--text-sub);
}

.meta-cate {
    font-size: 11px;
    color: var(--text-light);
}

/* 统计网格 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-box {
    background: var(--bg-body);
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-sub);
}

/* 频繁更新列表 */
.freq-list {
    display: flex;
    flex-direction: column;
}

.freq-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-body);
}

.freq-item:last-child {
    border-bottom: none;
}

.freq-item:hover .freq-name {
    color: var(--primary);
}

.freq-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.freq-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-main);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.freq-count {
    font-size: 11px;
    color: var(--text-light);
}
