/*
 * Android 详情页独立样式 V1
 * 视觉结构与 iOS V12 保持统一，但使用安卓绿色作为平台识别色。
 * 所有新增规则均使用 android- 前缀，不覆盖 iOS 页面。
 */

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

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

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

.android-detail-icon > img {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(39, 86, 70, 0.12);
}

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

.android-download-wrap {
    position: relative;
    width: 175px;
    height: 40px;
    overflow: visible;
}

/*
 * 直接使用网站原版 azspr.png：
 * 安卓普通状态 0 0，hover 状态 -187px 0。
 */
.android-download-btn {
    position: relative;
    display: block;
    width: 175px;
    height: 40px;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    background: url("../images/azspr.png") no-repeat 0 0;
    border-radius: 4px;
}

.android-download-btn:hover,
.android-download-wrap:focus-within .android-download-btn {
    color: #fff !important;
    background-position: -187px 0;
}

.android-download-text {
    position: absolute;
    top: 0;
    left: 42px;
    display: block;
    width: 88px;
    height: 40px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
}

/* 沿用网站原版二维码弹层边框。 */
.android-qr-pop {
    position: absolute;
    z-index: 9999;
    top: 48px;
    left: 10px;
    display: none;
    width: 154px;
    height: 177px;
    color: #333;
    line-height: 24px;
    text-align: center;
    background: url("../images/azspr1.png") no-repeat 0 -231px;
    box-shadow: 0 9px 6px 0 rgba(0, 0, 0, 0.3);
}

.android-download-wrap:hover .android-qr-pop,
.android-download-wrap:focus-within .android-qr-pop {
    display: block;
}

.android-qrcode-box {
    display: block;
    width: 122px;
    height: 122px;
    margin: 17px auto 0;
    overflow: hidden;
    background: #fff;
}

.android-qrcode-box canvas,
.android-qrcode-box table {
    display: block !important;
    width: 122px !important;
    height: 122px !important;
    margin: 0 auto !important;
}

.android-qrcode-label {
    display: block;
    height: 24px;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}

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

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

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

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

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

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

.android-detail-comment-link:hover {
    color: #24a866;
}

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

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

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

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

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

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

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

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

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

.android-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);
}

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

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

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

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

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

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

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

.android-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;
}

.android-detail-votes a:hover {
    color: #24a866;
    background: #f0f8f3;
}

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

.android-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;
}

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

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

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

.android-detail-tags a {
    display: inline-block;
    padding: 3px 10px;
    color: #48705b;
    line-height: 20px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dfeae3;
    border-radius: 12px;
}

.android-detail-tags a:hover {
    color: #fff;
    background: #24a866;
    border-color: #24a866;
}

.android-detail-share.f-fxcont {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    white-space: nowrap;
    text-align: right;
}

/* 安卓信息卡 */
.android-app-info-card {
    box-sizing: border-box;
    margin: 18px 0 24px;
    padding: 20px 22px;
    background: #f7fcf9;
    border: 1px solid #dcefe3;
    border-left: 4px solid #2cbb84;
    border-radius: 7px;
}

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

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

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

.android-app-info-head > a,
.android-app-info-links a {
    display: inline-block;
    color: #21985d;
    text-decoration: none;
    background: #fff;
    border: 1px solid #9bd3b6;
}

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

.android-app-info-head > a:hover,
.android-app-info-links a:hover {
    color: #fff;
    background: #24a866;
    border-color: #24a866;
}

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

.android-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 #dce7e0;
}

.android-app-info-grid .android-app-info-wide {
    grid-column: 1 / -1;
}

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

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

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

.android-app-info-grid .android-app-hash {
    word-break: break-all;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

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

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

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

/* 避免正文紧贴信息卡。 */
.android-app-info-card + .g-contfont {
    margin-top: 0;
}

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

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

/* 安卓详情页标题：限制单行，超长显示省略号 */
.android-detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

/* 标题和开发者所在的左侧区域 */
.android-detail-title-row > div:first-child {
    min-width: 0;
    overflow: hidden;
}

/* 超长标题单行省略 */
.android-detail-title-row h1 {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 右侧评论链接保持完整 */
.android-detail-title-row .android-detail-comment-link {
    white-space: nowrap;
}