/* ============================================
   Usersafe · 应用详情页样式
   ============================================ */

/* ---------- 顶部信息 ---------- */
#detail_top {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 20px 0 28px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 28px;
}

#detail_top_ico {
    width: 100px;
    height: 100px;
    background: #f1f4f9;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

#detail_top_ico img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}


#detail_top_appname {
    flex: 1;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#detail_top_appname h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0b1a2f;
}

.detail-slogan {
    font-size: 15px;
    color: #5e6f8d;
    margin: 4px 0 12px;
}

#detail_top_ext {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#detail_top_ext a {
    padding: 8px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#detail_top_ext a.website {
    background: #f1f4f9;
    color: #0b1a2f;
}

#detail_top_ext a.website:hover {
    background: #e4e9f0;
}

#detail_top_ext a.downloadlink {
    background: #0b1a2f;
    color: #fff;
}

#detail_top_ext a.downloadlink:hover {
    background: #1f2f4a;
    transform: scale(0.97);
}

/* ---------- 详细信息列表 ---------- */
#detail_list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    background: #f8fafc;
    padding: 16px 28px;
    border-radius: 20px;
    margin-bottom: 32px;
}

#detail_list ul li {
    display: flex;
    gap: 14px;
    font-size: 14px;
}

.detail_list_item {
    color: #5e6f8d;
    font-weight: 500;
}

.detail_list_value {
    color: #0b1a2f;
    font-weight: 500;
}

.detail_list_value.safe-pass {
    color: #10b981;
}

.detail_list_value.safe-pass i {
    margin-right: 4px;
}

/* ---------- 正文内容 ---------- */
.detail_body_title {
    font-size: 19px;
    font-weight: 600;
    margin: 32px 0 14px;
    letter-spacing: -0.2px;
    color: #0b1a2f;
}

.detail_body_descript {
    font-size: 15px;
    line-height: 1.8;
    color: #1f2a44;
    background: #fafcff;
    padding: 22px 28px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
}

.detail_body_descript p {
    margin-bottom: 10px;
}

.detail_body_descript p:last-child {
    margin-bottom: 0;
}

/* ========================================
   通用：区块标题
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0b1a2f;
    letter-spacing: -0.3px;
}

.section-header h2 i {
    margin-right: 10px;
}

.section-more {
    font-size: 14px;
    color: #5e6f8d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
    text-decoration: none;
}

.section-more:hover {
    color: #0b1a2f;
}

.section-more i {
    font-size: 12px;
    transition: transform 0.2s;
}

.section-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   百科互动 - 相关问答
   ======================================== */
.detail-related-qa {
    margin: 40px 0;
    padding: 32px 36px;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid #edf2f7;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-item-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.qa-item-mini:hover {
    border-color: #d0d9e6;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.qa-item-mini .qa-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b1a2f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-item-mini .qa-content {
    flex: 1;
    min-width: 0;
}

.qa-item-mini .qa-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2f;
    margin-bottom: 2px;
}

.qa-item-mini .qa-content p {
    font-size: 13px;
    color: #5e6f8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.qa-item-mini .qa-content .qa-tag {
    font-size: 11px;
    color: #8596b0;
    background: #f1f4f9;
    padding: 1px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.qa-item-mini .qa-arrow {
    color: #d0d9e6;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.qa-item-mini:hover .qa-arrow {
    color: #0b1a2f;
    transform: translateX(4px);
}

/* ========================================
   相关软件推荐
   ======================================== */
.detail-related-apps {
    margin: 40px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #f1f4f9;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.related-item:hover {
    border-color: #0b1a2f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.related-item .related-img {
    width: 44px;
    height: 44px;
    background: #f1f4f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.related-item .related-img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

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

.related-item .related-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2f;
    margin-bottom: 2px;
}

.related-item .related-info p {
    font-size: 12px;
    color: #5e6f8d;
    margin: 0;
}

/* ========================================
   热门下载排行
   ======================================== */
.detail-hot-downloads {
    margin: 40px 0;
}

.hot-list {
    background: #fafcff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    overflow: hidden;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f4f9;
    transition: background 0.15s;
}

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

.hot-item:hover {
    background: #f8fafc;
}

.hot-item .hot-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #5e6f8d;
    flex-shrink: 0;
}

.hot-item .hot-rank.rank-1 {
    background: #fbbf24;
    color: #92400e;
}

.hot-item .hot-rank.rank-2 {
    background: #d1d5db;
    color: #374151;
}

.hot-item .hot-rank.rank-3 {
    background: #fca5a5;
    color: #991b1b;
}

.hot-item .hot-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

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

.hot-item .hot-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0b1a2f;
    margin-bottom: 1px;
}

.hot-item .hot-info p {
    font-size: 12px;
    color: #5e6f8d;
    margin: 0;
}

.hot-item .hot-link {
    font-size: 12px;
    font-weight: 500;
    color: #0b1a2f;
    padding: 4px 14px;
    border-radius: 20px;
    background: #f1f4f9;
    transition: all 0.15s;
    text-decoration: none;
}

.hot-item .hot-link:hover {
    background: #0b1a2f;
    color: #fff;
}

/* ========================================
   返回顶部
   ======================================== */
.back-top {
    margin-top: 20px;
    text-align: center;
}

.back-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8596b0;
    padding: 6px 20px;
    border-radius: 30px;
    transition: all 0.15s;
    text-decoration: none;
}

.back-top-btn:hover {
    color: #0b1a2f;
    background: #f1f4f9;
}

.back-top-btn i {
    font-size: 12px;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #detail_top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    #detail_top_appname h1 {
        font-size: 24px;
    }

    .detail-title-row {
        justify-content: center;
    }

    #detail_top_ext {
        justify-content: center;
    }

    #detail_list ul {
        gap: 10px 20px;
        padding: 14px 18px;
    }

    #detail_list ul li {
        font-size: 13px;
    }

    .detail_body_descript {
        padding: 16px 18px;
        font-size: 14px;
    }

    .detail-related-qa {
        padding: 20px 18px;
    }

    .qa-item-mini {
        padding: 12px 14px;
    }

    .qa-item-mini .qa-content h4 {
        font-size: 13px;
    }

    .qa-item-mini .qa-content p {
        font-size: 12px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .related-item {
        padding: 12px 14px;
    }

    .hot-item {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 10px;
    }

    .hot-item .hot-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    #detail_top_appname h1 {
        font-size: 20px;
    }

    #detail_top_ext a {
        padding: 6px 18px;
        font-size: 13px;
    }
}

/* ======================================== */
/* 软件使用说明样式                           */
/* ======================================== */

.detail_body_use {
    position: relative;
}

.detail_body_use p {
    padding-left: 4px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.detail_body_use p:hover {
    border-left-color: #1a73e8;
}

/* 使用说明提示框 */
.use-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    background: #fff8e1;
    border-radius: 10px;
    border: 1px solid #ffe0b2;
    color: #e65100;
    font-size: 14px;
    line-height: 1.6;
}

.use-tip i {
    font-size: 18px;
    color: #f9a825;
    flex-shrink: 0;
    margin-top: 1px;
}

.use-tip span {
    color: #5d4037;
}

/* 使用说明中的代码/命令样式 */
.detail_body_use .code-block {
    display: block;
    padding: 12px 16px;
    margin: 8px 0;
    background: #f5f7fa;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2c3e50;
    border: 1px solid #e8ecf0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.detail_body_use .code-block i {
    margin-right: 8px;
    color: #1a73e8;
}

/* 使用说明中的步骤列表 */
.detail_body_use .step-list {
    padding-left: 0;
    list-style: none;
    counter-reset: step-counter;
}

.detail_body_use .step-list li {
    counter-increment: step-counter;
    padding: 8px 0 8px 40px;
    position: relative;
    border-bottom: 1px solid #f5f7fa;
}

.detail_body_use .step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.detail_body_use .step-list li:last-child {
    border-bottom: none;
}

/* 使用说明中的注意事项 */
.detail_body_use .warning-box {
    padding: 12px 16px 12px 44px;
    margin: 12px 0;
    background: #fce4ec;
    border-radius: 8px;
    border-left: 4px solid #e53935;
    color: #c62828;
    font-size: 14px;
    position: relative;
}

.detail_body_use .warning-box::before {
    content: '⚠';
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 18px;
}

.detail_body_use .tip-box {
    padding: 12px 16px 12px 44px;
    margin: 12px 0;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #43a047;
    color: #2e7d32;
    font-size: 14px;
    position: relative;
}

.detail_body_use .tip-box::before {
    content: '💡';
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 18px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .use-tip {
        padding: 14px 16px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .detail_body_use .step-list li {
        padding: 6px 0 6px 34px;
    }
    
    .detail_body_use .step-list li::before {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .detail_body_use .warning-box,
    .detail_body_use .tip-box {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
    }
    
    .detail_body_use .warning-box::before,
    .detail_body_use .tip-box::before {
        font-size: 16px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .use-tip {
        padding: 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .detail_body_use .step-list li {
        padding: 4px 0 4px 30px;
        font-size: 14px;
    }
    
    .detail_body_use .step-list li::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 5px;
    }
}