/* 相关软件详情页样式 */

/* 软件头部：左截图幻灯片 + 右信息 */
.soft-detail-header {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto 1fr;
    gap: 12px 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.soft-header-title {
    grid-column: 1 / -1;
}

/* 截图幻灯片 */
.soft-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}
.soft-slider .slide-track {
    display: flex;
    height: 100%;
    transition: transform .4s ease;
}
.soft-slider .slide-item {
    min-width: 100%;
    height: 100%;
}
.soft-slider .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}
.soft-slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
}
.soft-slider-placeholder i {
    font-size: 64px;
    color: rgba(255,255,255,.6);
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #333;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 22px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.6;
}
.slide-btn:hover { opacity: 1; }
.slide-btn.prev { left: 4px; }
.slide-btn.next { right: 4px; }
.slide-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
}
.slide-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    margin: 0 3px;
    cursor: pointer;
    transition: background .2s;
}
.slide-dot.active { background: #fff; }

/* 右侧软件信息面板 */
.soft-meta-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.soft-meta-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0 0 4px;
}
.soft-meta-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
}
.soft-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.soft-meta-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    vertical-align: top;
}
.soft-meta-table td:first-child {
    color: #999;
    width: 70px;
    white-space: nowrap;
}
.soft-meta-table tr:last-child td { border-bottom: none; }

/* 下载按钮 */
.soft-dl-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.btn-dl-primary {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.btn-dl-primary:hover { opacity: .9; color: #fff; text-decoration: none; }
.btn-dl-secondary {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}
.btn-dl-secondary:hover { background: var(--primary-color); color: #fff; text-decoration: none; }

/* 描述+标签区 */
.soft-desc-block {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.soft-desc-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.soft-desc-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}
.soft-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.soft-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: #f0f4ff;
    color: var(--primary-color);
    border: 1px solid #d0deff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.soft-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* 介绍富文本区 */
.soft-intro-block {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.soft-intro-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}
.soft-intro-block .article-content img {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* 侧边栏相关软件列表 */
.rel-soft-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}
.rel-soft-item:last-child { border-bottom: none; }
.rel-soft-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #f5f5f5;
}
.rel-soft-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-soft-thumb-gen {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 4px;
    line-height: 1.3;
    overflow: hidden;
}
.rel-soft-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.rel-soft-name a { color: #333; text-decoration: none; }
.rel-soft-name a:hover { color: var(--primary-color); }
.rel-soft-cat { font-size: 11px; color: #aaa; margin-top: 2px; }

/* 响应式 */
@media (max-width: 768px) {
    .soft-detail-header { grid-template-columns: 1fr; }
    .soft-slider { height: 240px; }
}
