/**
 * 软件详情页专用样式
 */

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .separator {
    color: var(--gray-400);
}

.breadcrumb-nav .current {
    color: var(--gray-800);
    font-weight: 500;
}

/* ==================== 详情布局 ==================== */
.detail-layout {
    display: flex;
    gap: 20px;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    flex: 0 0 320px;
}

/* ==================== 软件头部卡片 ==================== */
.software-header-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 30px;
}

.software-icon-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.software-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

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

.software-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.software-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.software-info-grid {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    margin-bottom: 15px;
    /* padding: 15px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100); */
}

.info-row {
    display: flex;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex: 1;
}

.info-item .label {
    color: var(--gray-500);
    white-space: nowrap;
}

.info-item .value {
    color: var(--gray-700);
}

.security-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-item {
    flex: 2;
}

.security-badges {
    display: flex;
    gap: 15px;
}

.badge.safe {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-size: 13px;
}

.badge.safe svg {
    stroke: #10b981;
}

.rating-item {
    flex: 1;
    justify-content: flex-end;
}

.rating-stars-small {
    display: flex;
    gap: 2px;
}

.rating-stars-small .star {
    color: #d1d5db;
    font-size: 16px;
}

.rating-stars-small .star.filled {
    color: #fbbf24;
}

.version-item .value {
    color: var(--gray-800);
    font-weight: 500;
}

.software-rating-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars .stars {
    color: #FFB800;
    font-size: 18px;
    letter-spacing: 2px;
}

.rating-stars .rating-score {
    font-size: 16px;
    color: var(--gray-800);
    font-weight: 600;
}

.rating-count {
    font-size: 14px;
    color: var(--gray-600);
}

.rating-count strong {
    color: var(--primary-color);
}

.software-action-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px 0px 10px;
}

.btn-download {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    min-width: 280px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.download-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 5px;
}

.download-icon svg {
    fill: white !important;
}

.download-text {
    font-size: 26px;
    font-weight: 600;
}

.download-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
}

/* ==================== 软件截图 ==================== */
.screenshot-gallery {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-item {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 160px;
    /* max-width: 280px; */
}

.screenshot-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

/* ==================== 智能导航组件 - 简化版 ==================== */
.smart-nav-component {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* 导航头部 - 全宽白色背景 */
.smart-nav-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.smart-nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    z-index: -1;
}

/* 简化导航菜单 - 内容居中 */
.simple-nav-menu {
    display: flex;
    gap: 0;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.simple-nav-menu .nav-link {
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.simple-nav-menu .nav-link:hover {
    color: var(--primary-color);
}

.simple-nav-menu .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 内容区域 */
.smart-nav-body {
    padding: 25px;
}

.smart-nav-body .card-body {
    padding: 0;
}

/* 固定悬浮状态 - 固定在浏览器顶部 */
.smart-nav-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    background: white;
    border-radius: 0;
    transition: none;
}

.smart-nav-header.is-fixed::before {
    display: none;
}

.smart-nav-header.is-fixed .simple-nav-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 占位符防止跳动 */
.smart-nav-placeholder {
    display: none;
}

.smart-nav-placeholder.is-visible {
    display: block;
}

/* 锚点偏移 */
.section-anchor {
    scroll-margin-top: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .simple-nav-menu {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .simple-nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .simple-nav-menu .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .simple-nav-menu .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .smart-nav-body {
        padding: 20px;
    }
}

/* ==================== 软件介绍 ==================== */
.software-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    padding: 0 10px;
}

.software-intro p {
    margin-bottom: 20px;
}

.software-intro h4 {
    font-size: 18px;
    color: var(--gray-800);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.software-intro ul,
.software-intro ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.software-intro li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.intro-image {
    margin: 30px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.intro-image img {
    width: 90%;
    display: block;
    margin: 0 auto;
    /* 圆角（数值可自己改） */
    border-radius: 12px;
}

/* ==================== 更新日志 ==================== */
.update-log {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-item {
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.log-version {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.version-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.version-date {
    font-size: 13px;
    color: var(--gray-500);
}

.log-content ul {
    padding-left: 20px;
}

.log-content li {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ==================== 其它版本 ==================== */
.version-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 4px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.version-item:hover {
    background: var(--gray-100);
}

.version-item:nth-child(even) {
    background: white;
}

.version-item:nth-child(even):hover {
    background: var(--gray-50);
}

/* 软件名称 */
.version-name {
    font-size: 15px;
    color: var(--gray-800);
    font-weight: 500;
    flex: 0 0 120px;
    min-width: 0;
}

/* 版本号 */
.version-number {
    font-size: 14px;
    color: var(--gray-600);
    flex: 0 0 100px;
    text-align: center;
}

/* 星级评分 */
.version-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 120px;
    justify-content: center;
}

.version-rating .star {
    color: #d1d5db;
    font-size: 16px;
}

.version-rating .star.filled {
    color: #fbbf24;
}

/* 文件大小 */
.version-size {
    font-size: 14px;
    color: var(--gray-600);
    flex: 0 0 100px;
    text-align: right;
}

/* 查看详情按钮 */
.version-btn {
    flex: 0 0 90px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition-fast);
}

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

.version-tag {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ==================== 相关专题 ==================== */
.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.topic-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid var(--gray-100);
}

.topic-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.topic-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-item:hover .topic-image img {
    transform: scale(1.05);
}

.topic-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    font-size: 24px;
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: var(--shadow-sm);
}

.topic-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-name {
    font-size: 15px;
    color: var(--gray-800);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.topic-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 标题图标通用样式 */
.title-icon,
.title-icon-bookmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke-width: 2;
}

/* 响应式：移动端单列 */
@media (max-width: 768px) {
    .topic-list {
        grid-template-columns: 1fr;
    }
}

/* ==================== 下载地址 ==================== */
.download-layout {
    display: flex;
    gap: 20px;
}

.download-main {
    flex: 0 0 calc(45% - 10px);
    min-width: 0;
}

.download-ads {
    flex: 0 0 calc(55% - 10px);
    display: flex;
    gap: 15px;
}

.ad-large {
    flex: 0 0 60%;
    min-width: 0;
}

.ad-large .ad-image {
    height: 100%;
    min-height: 280px;
}

.ad-small-list {
    /* flex: 0 0 40%; */
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.ad-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ad-item:hover {
    transform: translateY(-2px);
}

.ad-small {
    flex: 1;
}

.ad-image {
    width: 100%;
    height: 100%;
    min-height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-title {
    font-size: 14px;
    color: var(--gray-700);
    text-align: center;
    font-weight: 500;
}

.ad-item:hover .ad-title {
    color: var(--primary-color);
}

.download-source {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.source-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.source-speed {
    font-size: 12px;
    color: white;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.source-tag {
    font-size: 12px;
    color: var(--gray-600);
    background: var(--gray-200);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.source-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin: 0px 20px;
}

.source-link:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.source-link.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    margin-top: 10px;
}

.source-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== 右侧栏新设计 ==================== */

/* 侧边栏板块通用样式 */
.sidebar-section {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.sidebar-section:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

/* 板块头部 */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    /* background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); */
    border-bottom: 1px solid var(--gray-200);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.section-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.section-icon.hot-icon,
.section-icon.hot-icon svg,
.section-icon.hot-icon:hover svg,
.section-icon.hot-icon:active svg {
    color: #f59e0b;
    fill: #f59e0b;
}

.section-icon.essential-icon {
    color: #4ecdc4;
}

.section-icon.category-icon {
    color: #8b5cf6;
}

.section-icon.update-icon,
.section-icon.update-icon svg,
.section-icon.update-icon:hover svg,
.section-icon.update-icon:active svg {
    color: #8b5cf6;
    fill: #8b5cf6;
    font-size: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.section-body {
    padding: 16px 20px;
}

/* 1. 相关推荐 - 列表样式（参考今日推荐） */
.today-recommend-list {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
}

.today-recommend-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.today-recommend-item:hover {
    background:#f8f8f8;
    margin: 0 -16px;
    padding: 12px 0;
    border-radius: var(--radius-md);
}

.today-recommend-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}

.today-recommend-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.today-recommend-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.today-recommend-desc {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 2. 热门软件 - 排行榜（参考热门下载排行） */
.hot-rank-list {
    display: flex;
    flex-direction: column;
}

.hot-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.hot-rank-item:hover {
    background: var(--gray-100);
}

.hot-rank-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-rank-item:nth-child(1) .hot-rank-number {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: white;
}

.hot-rank-item:nth-child(2) .hot-rank-number {
    background: linear-gradient(135deg, #C0C0C0, #9E9E9E);
    color: white;
}

.hot-rank-item:nth-child(3) .hot-rank-number {
    background: linear-gradient(135deg, #CD7F32, #A1887F);
    color: white;
}

.hot-rank-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: contain;
    background: var(--gray-100);
}

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

.hot-rank-name {
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-rank-meta {
    font-size: 12px;
    color: var(--gray-400);
}

/* 3. 装机必备 - 六宫格 */
.essential-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.essential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.essential-item:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.essential-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 6px;
    background: #fff;
}

.essential-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.essential-name {
    font-size: 14px;
    color: var(--gray-700);
    text-align: center;
}

/* 4. 相关分类 - 标签云 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.category-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 5. 近期更新 - 列表 (参考list.html样式) */
.section-updates .rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-updates .rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 0px 12px 0px;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 150ms ease;
}

.section-updates .rank-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-updates .rank-item:hover {
    background-color: var(--gray-50);
    border-radius: var(--radius-sm);
}

.section-updates .rank-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.section-updates .rank-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-updates .rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-updates .rank-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    transition: color 150ms ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.section-updates .rank-name:hover {
    color: var(--primary-color);
}

.section-updates .rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-updates .rank-category {
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.section-updates .rank-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== 用户评论 ==================== */
.comment-count {
    font-size: 14px;
    color: var(--gray-500);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

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

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-200);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.comment-time {
    font-size: 12px;
    color: var(--gray-500);
}

.comment-rating {
    color: #FFB800;
    font-size: 12px;
    letter-spacing: 1px;
}

.comment-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.action-btn:hover {
    color: var(--primary-color);
}

.comment-more {
    text-align: center;
    margin-top: 20px;
}

/* ==================== 下载信息 ==================== */
.download-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    /* justify-content: space-between; */
    padding: 8px 0;
    justify-content: flex-start;
}

.info-label {
    font-size: 13px;
    color: var(--gray-500);
}

.info-value {
    font-size: 13px;
    color: var(--gray-800);
    font-weight: 500;
}

.info-value.highlight {
    color: var(--primary-color);
    font-size: 15px;
}

/* ==================== 相关软件 ==================== */
.related-list,
.guess-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item,
.guess-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.related-item:hover,
.guess-item:hover {
    background: var(--primary-bg);
}

.related-icon,
.guess-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-icon img,
.guess-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.related-info,
.guess-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-name,
.guess-name {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 4px;
}

.related-downloads {
    font-size: 12px;
    color: var(--gray-500);
}

.guess-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .detail-sidebar {
        flex: 0 0 280px;
    }
}

@media (max-width: 992px) {
    .detail-layout {
        flex-direction: column;
    }
    
    .detail-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .software-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .software-title-row {
        justify-content: center;
    }
    
    .software-info-grid {
        align-items: center;
    }
    
    .info-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
    }
    
    .security-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-item {
        justify-content: center;
    }
    
    .software-rating-row {
        justify-content: center;
    }
    
    .software-action-row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .software-header-card {
        padding: 20px;
    }
    
    .software-title {
        font-size: 24px;
    }
    
    .info-row {
        gap: 10px 20px;
    }
    
    .info-item {
        font-size: 13px;
    }
    
    .screenshot-item {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 140px;
    }
    
    .screenshot-img {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .software-icon-large {
        width: 96px;
        height: 96px;
    }
    
    .software-icon-large img {
        width: 100%;
        height: 100%;
    }
    
    .software-title {
        font-size: 20px;
    }
    
    .btn-download {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .software-intro h4 {
        font-size: 16px;
    }
}

/* 右侧栏响应式适配 */
@media (max-width: 992px) {
    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
    
    .sidebar-section:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .detail-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section:last-child {
        grid-column: span 1;
    }
    
    .section-header {
        padding: 14px 16px;
    }
    
    .section-body {
        padding: 14px 16px;
    }
    
    .essential-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .today-recommend-item:hover {
        margin: 0 -12px;
        padding: 12px;
    }

@media (max-width: 576px) {
    .essential-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .screenshot-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }
    
    .screenshot-img {
        height: 90px;
    }
    
    .today-recommend-item {
        padding: 10px 0;
    }
    
    .today-recommend-item:hover {
        margin: 0 -10px;
        padding: 10px;
    }
    
    .today-recommend-img {
        width: 40px;
        height: 40px;
    }
    
    .today-recommend-name {
        font-size: 13px;
    }
    
    .today-recommend-desc {
        font-size: 11px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-header-card,
.card {
    animation: fadeIn 0.4s ease;
}
