/* =========================================
   软件专题详情页专用样式 - topic-detail.css
   ========================================= */

/* 专题详情页包裹容器 */
.topic-detail-wrapper {
    padding-top: 16px;
}

/* 专题头部卡片 */
.topic-header-card {
    display: flex;
    background: #fff;
    border-radius: 1px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.topic-header-cover {
    width: 200px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-header-icon {
    color: rgba(255, 255, 255, 0.9);
}

.topic-header-info {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topic-header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.topic-header-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 14px;
}

.topic-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topic-header-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.topic-header-meta .meta-item svg {
    color: var(--text-light);
}

/* 专题详情页主布局 */
.topic-detail-main {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.topic-detail-content {
    min-width: 0;
}

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

/* 软件列表 */
.topic-soft-list {
    background: #fff;
    border-radius: 1px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* 软件项 */
.topic-soft-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-body);
    transition: background 0.2s;
}

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

.topic-soft-item:hover {
    background: var(--bg-body);
}

.topic-soft-item .soft-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.topic-soft-item .soft-info {
    flex: 1;
    min-width: 0;
}

.topic-soft-item .soft-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topic-soft-item .soft-desc {
    font-size: 13px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-soft-item .soft-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 70px;
}

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

.topic-soft-item .meta-size {
    font-size: 12px;
    color: var(--text-light);
}

.topic-soft-item .soft-btn {
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.topic-soft-item:hover .soft-btn {
    background: var(--primary-dark);
}

/* 相关专题列表 */
.related-topic-list {
    display: flex;
    flex-direction: column;
}

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

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

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

.related-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

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

/* 热门下载列表 */
.hot-download-list {
    display: flex;
    flex-direction: column;
}

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

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

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

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