/*
 * PC 详情页独立样式 V1
 * 视觉结构与 Android V1 / iOS V12 保持统一。
 * 所有新增规则均使用 pc- 前缀，不覆盖 Android / iOS 页面。
 */

.pc-detail-hero {
    box-sizing: border-box;
    margin: 0 auto 20px;
    padding: 14px 6px 24px;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}

.pc-detail-hero-main {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.pc-detail-icon {
    width: 220px;
    flex: 0 0 220px;
    box-sizing: border-box;
    padding: 2px 18px 0 0;
}

.pc-detail-icon > img {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(90, 72, 58, 0.12);
}

.pc-detail-icon-actions {
    width: 175px;
    margin: 14px auto 0;
}

.pc-download-btn {
    display: block;
    box-sizing: border-box;
    width: 175px;
    height: 40px;
    color: #fff !important;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    text-decoration: none !important;
    background: #ff6a1a;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(255, 106, 26, 0.16);
}

.pc-download-btn:hover {
    color: #fff !important;
    background: #f25508;
}

.pc-detail-icon-note {
    width: 175px;
    margin: 7px 0 0;
    color: #9aa3ad;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.pc-detail-summary {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 24px 0 6px;
}

.pc-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
}

.pc-detail-title-row h1 {
    margin: 0;
    padding: 0;
    color: #222;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-word;
}

.pc-detail-subline {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.pc-detail-comment-link {
    flex: 0 0 auto;
    margin-left: 18px;
    color: #666;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
}

.pc-detail-comment-link:hover {
    color: #ff6a1a;
}

.pc-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pc-detail-badges span {
    display: inline-block;
    box-sizing: border-box;
    min-width: 48px;
    max-width: 150px;
    padding: 4px 12px;
    overflow: hidden;
    color: #6b625c;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #faf7f5;
    border: 1px solid #eee5df;
    border-radius: 15px;
}

.pc-detail-badges .pc-language-badge {
    max-width: 92px;
    cursor: help;
}

/* rjxz 为空时不显示空白徽章。 */
.pc-detail-badges .pc-nature-badge:empty {
    display: none;
}

.pc-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.pc-detail-metric {
    box-sizing: border-box;
    min-width: 0;
    padding: 11px 13px;
    background: #f8f9fb;
    border: 1px solid #eceff3;
    border-radius: 7px;
}

.pc-detail-metric span,
.pc-detail-metric strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-detail-metric span {
    color: #8a96a3;
    font-size: 12px;
    line-height: 18px;
}

.pc-detail-metric strong {
    margin-top: 3px;
    color: #344054;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.pc-detail-side {
    width: 188px;
    flex: 0 0 188px;
    box-sizing: border-box;
    padding-left: 18px;
}

.pc-detail-score {
    box-sizing: border-box;
    min-height: 158px;
    padding: 16px 10px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.pc-detail-score > span,
.pc-detail-score > small {
    display: block;
}

.pc-detail-score > span {
    color: #7b8794;
    font-size: 13px;
    line-height: 22px;
}

.pc-detail-score > strong {
    display: inline-block;
    margin-top: 5px;
    color: #ff6a1a;
    font-size: 38px;
    line-height: 44px;
    font-weight: 700;
}

.pc-detail-score > em {
    margin-left: 3px;
    color: #ff6a1a;
    font-size: 14px;
    font-style: normal;
}

.pc-detail-score.is-empty .pc-detail-score-empty {
    display: block;
    margin-top: 10px;
    color: #344054;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.pc-detail-score.is-empty > small {
    max-width: 148px;
    margin: 7px auto 0;
    color: #98a2b3;
    font-size: 12px;
    line-height: 18px;
}

.pc-detail-votes {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #eef0f3;
}

.pc-detail-votes a {
    display: block;
    flex: 1 1 0;
    box-sizing: border-box;
    padding: 4px 3px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    background: #f7f8fa;
    border-radius: 4px;
}

.pc-detail-votes a:hover {
    color: #ff6a1a;
    background: #fff6f1;
}

.pc-detail-votes em {
    color: #344054;
    font-style: normal;
}

.pc-detail-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-top: 15px;
    padding-left: 226px;
}

.pc-detail-tags-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.pc-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #7b8794;
    font-size: 13px;
}

.pc-detail-tags span {
    margin-right: 2px;
}

.pc-detail-tags a {
    display: inline-block;
    padding: 3px 10px;
    color: #7b5d4e;
    line-height: 20px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee1da;
    border-radius: 12px;
}

.pc-detail-tags a:hover {
    color: #fff;
    background: #ff6a1a;
    border-color: #ff6a1a;
}

/* PC 软件信息卡 */
.pc-app-info-card {
    box-sizing: border-box;
    margin: 18px 0 24px;
    padding: 20px 22px;
    background: #fff9f5;
    border: 1px solid #f1e2d9;
    border-left: 4px solid #ff6a1a;
    border-radius: 7px;
}

/* 无截图时，信息卡直接作为左栏第一个内容块。 */
.pc-app-info-card.pc-no-showcase {
    margin-top: 0;
}

.pc-detail-showcase + .pc-app-info-card {
    margin-top: 18px;
}

.pc-app-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee0d8;
}

.pc-app-info-head h4 {
    margin: 0;
    color: #26384a;
    font-size: 20px;
    line-height: 28px;
}

.pc-app-info-head p {
    margin: 4px 0 0;
    color: #8a96a3;
    font-size: 13px;
    line-height: 20px;
}

.pc-app-info-head > a,
.pc-app-info-links a {
    display: inline-block;
    color: #e75a13;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f0b795;
}

.pc-app-info-head > a {
    padding: 7px 14px;
    font-size: 13px;
    line-height: 20px;
    border-radius: 16px;
}

.pc-app-info-head > a:hover,
.pc-app-info-links a:hover {
    color: #fff;
    background: #ff6a1a;
    border-color: #ff6a1a;
}

.pc-app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 10px 0 0;
}

.pc-app-info-grid > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: start;
    box-sizing: border-box;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px dashed #eadfd9;
}

.pc-app-info-grid dt,
.pc-app-info-grid dd {
    min-width: 0;
    margin: 0;
    line-height: 24px;
}

.pc-app-info-grid dt {
    color: #7b8794;
}

.pc-app-info-grid dd {
    color: #344054;
    word-break: break-word;
}

.pc-app-star img {
    display: block;
    width: auto;
    height: 14px;
    margin-top: 5px;
}

.pc-app-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
}

.pc-app-info-links a {
    padding: 8px 16px;
    line-height: 20px;
    border-radius: 18px;
}

.pc-app-info-card + .g-contfont {
    margin-top: 0;
}

/* AI 正文在 PC 页面上的排版。 */
.pc-detail-content #m-cont {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
}

.pc-detail-content #m-cont h3,
.pc-detail-content #m-cont h4 {
    margin: 24px 0 12px;
    color: #222;
    font-weight: 700;
}

.pc-detail-content #m-cont h3 {
    font-size: 19px;
}

.pc-detail-content #m-cont h4 {
    font-size: 17px;
}

.pc-detail-content #m-cont p {
    margin: 10px 0;
}

.pc-detail-content #m-cont ul,
.pc-detail-content #m-cont ol {
    margin: 10px 0 14px 24px;
}

.pc-detail-content #m-cont li {
    margin: 6px 0;
    line-height: 1.8;
}

.pc-detail-content #m-cont img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
}

.pc-detail-content #m-cont strong {
    color: #30343b;
}

@media screen and (max-width: 1024px) {
    .pc-detail-metrics {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .pc-detail-side {
        width: 160px;
        flex-basis: 160px;
    }
}


/* ================================================================
 * PC V2：下载链路统一放入“电脑软件/游戏信息”卡片
 * 不再使用旧 g-downpc 电信/联通镜像下载区域。
 * ================================================================ */

.pc-download-sources {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #eee0d8;
}

.pc-download-sources-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.pc-download-sources-head strong {
    color: #344054;
    font-size: 15px;
    line-height: 24px;
}

.pc-download-sources-head span {
    color: #98a2b3;
    font-size: 12px;
    line-height: 20px;
}

.pc-download-source-list {
    padding-top: 0;
}

.pc-app-info-links .pc-download-source {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-width: 158px;
    min-height: 52px;
    padding: 7px 16px;
    border-radius: 6px;
}

.pc-app-info-links .pc-download-source strong,
.pc-app-info-links .pc-download-source span {
    display: block;
}

.pc-app-info-links .pc-download-source strong {
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
}

.pc-app-info-links .pc-download-source span {
    margin-top: 1px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 17px;
}

.pc-app-info-links .pc-download-source-direct {
    color: #fff;
    background: #ff6a1a;
    border-color: #ff6a1a;
}

.pc-app-info-links .pc-download-source-direct span {
    color: rgba(255, 255, 255, 0.82);
}

.pc-app-info-links .pc-download-source-direct:hover {
    color: #fff;
    background: #f25508;
    border-color: #f25508;
}

.pc-app-info-links .pc-download-source-direct:hover span {
    color: rgba(255, 255, 255, 0.88);
}

.pc-app-info-links .pc-download-source-cloud {
    color: #5d514a;
    background: #fff;
    border-color: #e9d8ce;
}

.pc-app-info-links .pc-download-source-cloud:hover {
    color: #e75a13;
    background: #fff7f2;
    border-color: #f0b795;
}

.pc-app-info-links .pc-download-source-cloud:hover span {
    color: #8f7668;
}

.pc-app-info-site {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px dashed #eadfd9;
}

.pc-app-info-site > span {
    color: #7b8794;
    font-size: 13px;
}

.pc-app-info-site > a {
    color: #e75a13;
    font-size: 13px;
    text-decoration: none;
}

.pc-app-info-site > a:hover {
    text-decoration: underline;
}
