/* 基础变量 - 与其他页面保持一致 */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --light-gray: #f3f4f6;
    --medium-gray: #e5e7eb;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --success: #10b981;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f9fafb;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 容器样式 - 统一最大宽度1200px */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 导航栏样式 - 复用 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.logo-subtitle {
    font-weight: normal;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-item.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

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

.menu-toggle {
    display: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid var(--medium-gray);
    padding: 12px 0;
}

.mobile-menu .nav-item {
    display: block;
    padding: 8px 0;
    margin: 8px 0;
}

/* 面包屑导航 - 复用 */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb-separator {
    margin: 0 8px;
    color: #8d8f91;
}

/* 主内容区 - 左右拆分布局 */
.main-content {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

/* 左侧：软件详情主体内容（约70%宽度） */
.software-detail {
    flex: 7;
    position: relative;
}

/* 内容导航 */
.content-nav {
    position: sticky;
    top: 0; /* 改为0，默认完全置顶 */
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 16px;
    margin-bottom: 24px;
    z-index: 45;
    overflow-x: auto;
    width: 100%;
    margin-top: 0; /* 强制清除顶部外边距 */
}

/* 平板设备响应式调整（完全置顶） */
@media (max-width: 1024px) {
    .content-nav {
        top: 0; /* 强制置顶，无顶部距离 */
        padding: 10px 14px;
        /* 确保没有margin或padding影响顶部距离 */
        margin-top: 0;
    }
}

/* 手机设备响应式调整（完全置顶） */
@media (max-width: 768px) {
    .content-nav {
        top: 0; /* 关键：设置为0，消除顶部距离 */
        padding: 8px 12px;
        margin-top: 0; /* 清除可能的顶部外边距 */
        /* 确保z-index足够高，避免被其他元素覆盖 */
        z-index: 50;
    }
}

/* 小屏手机额外适配（保持完全置顶） */
@media (max-width: 640px) {
    .content-nav {
        top: 0; /* 保持置顶 */
        padding: 6px 8px;
        margin-top: 0;
    }
}

.content-nav-list {
    display: flex;
    gap: 16px;
    list-style: none;
    white-space: nowrap;
}

.content-nav-item {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    color: var(--text-gray);
}

.content-nav-item:hover {
    color: var(--primary);
    background-color: var(--light-gray);
}

.content-nav-item.active {
    color: white;
    background-color: var(--primary);
}

/* 右侧：热门内容区域（约30%宽度） */
.sidebar {
    flex: 3;
}

/* 软件标题区域 */
.software-header {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    gap: 20px;
}

.software-big-icon {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--light-gray);
    flex-shrink: 0;
}

.software-title-section {
    flex: 1;
}

.software-main-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.software-version {
    color: var(--text-gray);
    font-size: 18px;
}
 /* 仅针对当前标题区域的元素设置样式，避免冲突 */
.software-title-section .software-main-title {
    display: inline-block; 
    margin: 0; 
    vertical-align: middle; 
}

.software-title-section .software-version {
    display: inline-block; 
    margin-left: 10px; 
}

.software-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-gray);
    margin: 16px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    color: var(--primary);
}

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

.stars {
    color: #f59e0b;
    font-size: 18px;
}

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

/* 标签容器 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.software-tag {
    padding: 4px 12px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-gray);
}

/* 内容区块通用样式 */
.content-block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    scroll-margin-top: 120px; /* 用于导航定位时的偏移 */
}

.block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-title i {
    color: var(--primary);
}

/* 下载区域 */
.download-section {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

/* 下载按钮容器 - 一行显示4个按钮 */
.download-buttons-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: nowrap; /* 强制不换行 */
}

/* 基础下载按钮样式 */
.download-btn {
    flex: 1;
    min-width: 0; /* 允许按钮收缩 */
    padding: 12px 8px; /* 适当减少内边距 */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px; /* 稍微减小字体大小 */
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap; /* 防止文字换行 */
}

/* 主色按钮 - 使用具体颜色值避免变量冲突 */
.download-btn-primary {
    background-color: #3b82f6;
}

.download-btn-primary:hover {
    background-color: #2563eb;
    color: white; /* 确保鼠标悬浮时文字颜色为白色 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 次要色按钮 - 紫色 */
.download-btn-secondary {
    background-color: #6366f1;
}

.download-btn-secondary:hover {
    background-color: #4f46e5;
    color: white; /* 确保鼠标悬浮时文字颜色为白色 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 成功色按钮 - 绿色 */
.download-btn-success {
    background-color: #10b981;
}

.download-btn-success:hover {
    background-color: #059669;
    color: white; /* 确保鼠标悬浮时文字颜色为白色 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 强调色按钮 - 橙色 */
.download-btn-accent {
    background-color: #f97316;
}

.download-btn-accent:hover {
    background-color: #ea580c;
    color: white; /* 确保鼠标悬浮时文字颜色为白色 */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* 响应式调整 - 适配不同屏幕尺寸 */
@media (max-width: 1024px) {
    .download-btn {
        font-size: 13px; /* 在中等屏幕上进一步减小字体大小 */
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .download-buttons-container {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        font-size: 14px;
        padding: 14px;
    }
}

.download-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.download-info-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
}

.info-label {
    color: var(--text-gray);
    margin-bottom: 4px;
}

.info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.download-note {
    font-size: 13px;
    color: #dc2626;
    padding: 12px;
    background-color: #fee2e2;
    border-radius: 6px;
    margin-top: 16px;
    line-height: 1.6;
}

.download-note strong {
    display: block;
    margin-bottom: 4px;
}

/***************** 软件介绍样式 *************************/
/* 软件介绍 */
.software-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 16px;
}
/* 段落样式优化 */
.software-description p {
    margin-bottom: 20px; /* 段落间距 */
    text-align: justify; /* 文本两端对齐 */
    line-height: 1.8; /* 行高优化，提升可读性 */
    letter-spacing: 0.3px; /* 字间距微调 */
}

/* 最后一个段落去除底部间距 */
.software-description p:last-child {
    margin-bottom: 0;
}

/* 链接样式优化 */
.software-description a {
    color: #165DFF; /* 主色调链接 */
    text-decoration: none;
    position: relative;
    padding: 0 2px;
    transition: all 0.2s;
}

.software-description a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #165DFF;
    transition: width 0.3s;
}

.software-description a:hover {
    color: #0E42D2;
}

.software-description a:hover::after {
    width: 100%;
}

/* 图片样式优化 */
.software-description img {
    display: block;
    max-width: 100%; /* 响应式图片 */
    height: auto;
    margin: 25px auto; /* 图片居中并增加上下间距 */
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.software-description img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 表格样式优化 */
.software-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.software-description th,
.software-description td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.software-description th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.software-description tr:last-child td {
    border-bottom: none;
}

.software-description tr:hover td {
    background-color: #f9fafc;
}

/* 手机端响应式样式（max-width:768px） */
@media (max-width: 768px) {
    .content-nav {
        top: 84px; 
        left: 0; 
        width: 100%; 
        margin: 0; 
        padding: 8px 12px;
        z-index: 49; 
        position: sticky; 
    }
}

/* 小屏手机同步调整 */
@media (max-width: 640px) {
    .content-nav {
        top: 84px; /* 保持与768px一致 */
        padding: 6px 8px;
    }
}
/***************** 软件介绍样式 end *************************/

/* 截图展示区 */
.screenshot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.screenshot-item {
    flex: 1;
    min-width: 280px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 特性列表 */
.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.feature-icon {
    color: var(--success);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

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

/* 更新日志 */
.update-log {
    font-size: 15px;
    line-height: 1.8;
}

.version-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.update-items {
    margin-left: 24px;
    margin-bottom: 16px;
}

.update-item {
    margin-bottom: 8px;
}

/* 软件参数 */
.param-table {
    width: 100%;
    border-collapse: collapse;
}

.param-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.param-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.param-name {
    width: 30%;
    color: var(--text-gray);
    background-color: var(--light-gray);
    font-weight: 500;
}

.param-value {
    color: var(--text-dark);
}

/* 系统要求 */
.sys-req-list {
    list-style: none;
}

.sys-req-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.sys-req-icon {
    color: var(--primary);
    flex-shrink: 0;
}

/* 右侧热门内容区域 */
.sidebar-block {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

/* 右侧板块标题 */
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--medium-gray);
}

.sidebar-title i {
    color: var(--primary);
}

.sidebar-content {
    padding: 16px;
}

/* 热门软件排名 */
.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

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

.ranking-item a {
    display: flex;
    align-items: center;
    gap: 12px; 
    flex: 1; 
    text-decoration: none; 
}

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

.ranking-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--medium-gray); /* 非前三名使用灰色 */
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ranking-number.top3 {
    background-color: var(--primary); /* 前三名使用主题色 */
    color: white;
}

.ranking-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    background-color: var(--light-gray);
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* 热门文章 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.article-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.article-link:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* 页脚样式 - 复用 */
.footer {
    background-color: var(--text-dark);
    color: #94a3b8;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 返回顶部按钮 - 复用 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/********************************** 软件详情页-软件信息 ******************************/
/* 两列布局的软件信息列表容器 - 紧凑间距 */
.software-info-list.cl {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 0.8rem 1.5rem; 
    font-size: 0.875rem;
}

/* 列表项样式 - 一行两列 */
.software-info-list.cl li {
    flex: 0 0 calc(50% - 0.75rem); 
    box-sizing: border-box;
    line-height: 1.5; 
    padding: 0.2rem 0; 
    color: #888888; 
}

/* 取消原有的奇偶项颜色区分 */
.software-info-list.cl li:nth-child(odd) {
    padding-right: 0.8rem; 
}

/* 列表项中的span内容设为黑色 */
.software-info-list.cl li span {
    color: #222222; 
}

/* 评分图片样式保持不变 */
.software-info-list.cl li img {
    vertical-align: middle;
    height: 16px;
    margin-top: -2px;
}

/* 杀毒检测图标样式保持不变 */
.software-info-list.cl .icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 4px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 图标颜色保持原有设计 */
.icon1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.icon2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E88E5'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.icon3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFC107'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* 响应式调整 */
@media (max-width: 768px) {
    .software-info-list.cl li {
        flex: 0 0 100%; /* 小屏幕单列显示 */
        padding: 0.15rem 0;
        color: #888888; /* 保持小屏幕下li文本为灰色 */
    }
    
    /* 取消左右列区分 */
    .software-info-list.cl li:nth-child(odd) {
        padding-right: 0;
    }
    
    /* 小屏幕下保持span为黑色 */
    .software-info-list.cl li span {
        color: #222222 !important;
    }
}
/********************************** 软件详情页-软件信息 end ******************************/

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column; /* 平板端端改为上下布局 */
    }
    
    .sidebar {
        order: 2; /* 热门内容在移动端显示在底部 */
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .mobile-menu.active {
        display: block;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .software-rating {
        justify-content: center;
    }
    
    .tag-container {
        justify-content: center;
    }
    
    .param-table td {
        padding: 10px 8px;
    }
    
    .param-name {
        width: 40%;
    }

    /* 内容导航在移动端优化 */
    .content-nav {
        top: 5px;
        padding: 8px 12px;
    }
    
    .content-nav-list {
        gap: 8px;
    }
    
    .content-nav-item {
        padding: 4px 10px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .software-main-title {
        font-size: 20px;
    }
    
    .software-meta-info {
        gap: 12px;
    }
    
    .screenshot-item {
        min-width: 100%;
    }
    
    .block-title {
        font-size: 16px;
    }
    
    .param-table {
        font-size: 13px;
    }
    
    .param-name {
        width: 45%;
    }
}
    