/* 详情页面样式 */

/* 应用信息卡片 */
.app-info-section {
    background: white;
    padding: 20px;
}

.app-info-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-details {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-item {
    font-size: 13px;
    color: #999;
}

.download-btn {
    display: block;
    width: 100%;
    background: #1abc9c;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #16a085;
    transform: scale(1.02);
}

/* 软件介绍内容 */
.content-section {
    background: white;
    padding: 20px;
    margin-top: 10px;
}

.content-block {
    margin-bottom: 30px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #1abc9c;
}

.sub-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 12px 0;
}

.block-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.block-content p {
    margin: 0 0 10px 0;
}
.block-content p img{
    max-width: 96%;
    display: block;
    overflow: hidden;
}

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

.content-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* 热门推荐 */
.recommend-section {
    background: white;
    padding: 20px;
    margin-top: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px 0;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.recommend-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recommend-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-name {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
}

/* 相关下载 */
.related-section {
    background: white;
    padding: 20px;
    margin-top: 10px;
}

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

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
}

.related-btn {
    display: inline-block;
    background: white;
    border: 1px solid #1abc9c;
    color: #1abc9c;
    padding: 6px 20px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.related-btn:hover {
    background: #1abc9c;
    color: white;
}

/* 下载排行榜 */
.ranking-section {
    background: white;
    padding: 20px;
    margin-top: 10px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ranking-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ranking-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
}

.ranking-stars i {
    font-size: 14px;
    color: #ffa500;
}

.ranking-stars .far {
    color: #ddd;
}

.ranking-meta {
    font-size: 12px;
    color: #999;
}

.ranking-btn {
    display: inline-block;
    background: #1abc9c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.ranking-btn:hover {
    background: #16a085;
}

.load-more-btn {
    display: block;
    width: 100%;
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #e9e9e9;
}

/* 底部页脚 */
.footer {
    background: #2c2c2c;
    color: #999;
    padding: 30px 20px;
    text-align: center;
    margin-top: 10px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.copyright, .icp, .contact {
    color: #999;
}
