* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f8f8;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 100;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.back-btn {
    width: 36px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-left: -4px;
}

.back-btn img {
    width: 28px;
    height: 34px;
    object-fit: contain;
}

.title {
    margin-left: 4px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.search-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.search-btn img {
    width: 100%;
    height: 100%;
}

/* 应用信息样式 */
.app-info {
    margin-top: 56px;
    background-color: #fff;
    padding: 16px;
    width: 100%;
}

.app-basic {
    display: flex;
    align-items: flex-start;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.app-details {
    flex: 1;
    margin-right: 12px;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.official-icon {
    width: 45px;
    height: 18px;
    margin-left: 6px;
}

.app-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 2px;
}

.app-tags {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.safety-tag {
    display: flex;
    align-items: center;
    margin-top: -4px;
}

.safety-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.safety-tag span {
    font-size: 13px;
    color: #666;
}

.app-rating {
    text-align: right;
    min-width: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-score {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    line-height: 1;
}

.rating-image {
    width: 60px;
    height: 40px;
    position: relative;
    margin-top: 8px;
}

.rating-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 应用介绍样式 */
.app-description {
    background-color: #fff;
    margin-top: 12px;
    padding: 16px;
    width: 100%;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-left {
    display: flex;
    align-items: center;
}

.official-small {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.editor-recommend {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.description-content {
    margin-bottom: 16px;
    position: relative;
}

.desc-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.desc-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.full-text {
    display: none;
    margin-top: 12px;
}

.full-text p {
    margin-bottom: 12px;
}

.full-text p:first-child {
    margin-top: 4px;
}

.expand-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: flex-end;
}

.expand-btn span {
    font-size: 14px;
    color: #666;
    margin-right: 4px;
}

.expand-icon {
    width: 16px;
    height: 16px;
}

.description-content.expanded .full-text {
    display: block;
}

.description-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    height: 180px;
}

.description-images img {
    width: calc((100% - 16px) / 3);
    height: 100%;
    object-fit: contain;
}

/* 推荐安装部分样式 */
.recommend-apps {
    background-color: #fff;
    padding: 12px 0;
    width: 100%;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding: 0 12px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    width: 100%;
    padding: 0 8px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.app-item .app-icon {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.app-item .app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.app-item .app-name {
    width: 60px;
    font-size: 12px;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.app-item .app-size {
    width: 60px;
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-align: center;
    position: relative;
    left: -8px;
}

.app-item .install-btn {
    width: 60px;
    height: 24px;
    line-height: 24px;
    background-color: rgb(63, 108, 255);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-align: center;
    position: relative;
    left: -8px;
}

.app-item .install-btn:hover {
    background-color: rgba(63, 108, 255, 0.9);
}

.app-item .free-tag {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: #FF6B23;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
}

/* 底部下载按钮样式 */
.bottom-download {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    z-index: 1000;
    width: 100%;
}

.download-btn {
    background-color: rgb(63, 108, 255);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
}

.download-btn:hover {
    background-color: rgba(63, 108, 255, 0.9);
}

.divider {
    height: 1px;
    background: #eee;
    margin: 0;
    width: 100%;
}

.app-detail-info {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    width: 100%;
}

/* 响应式布局 */
@media screen and (max-width: 320px) {
    .app-grid {
        gap: 8px 4px;
        padding: 0 4px;
    }

    .app-item .app-icon,
    .app-item .app-name,
    .app-item .app-size,
    .app-item .install-btn {
        width: 48px;
    }

    .app-item .app-icon {
        height: 48px;
    }

    .app-item .app-size,
    .app-item .install-btn {
        left: -6px;
    }
}

@media screen and (min-width: 321px) and (max-width: 375px) {
    .app-grid {
        gap: 10px 6px;
        padding: 0 6px;
    }

    .app-item .app-icon,
    .app-item .app-name,
    .app-item .app-size,
    .app-item .install-btn {
        width: 54px;
    }

    .app-item .app-icon {
        height: 54px;
    }

    .app-item .app-size,
    .app-item .install-btn {
        left: -7px;
    }
}

@media screen and (min-width: 376px) {
    .app-grid {
        gap: 12px 8px;
        padding: 0 8px;
    }

    .app-item .app-icon,
    .app-item .app-name,
    .app-item .app-size,
    .app-item .install-btn {
        width: 60px;
    }

    .app-item .app-icon {
        height: 60px;
    }

    .app-item .app-size,
    .app-item .install-btn {
        left: -8px;
    }
} 