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

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

/* 顶部导航栏 */
.top-bar {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8eaed;
    z-index: 100;
}

.back-btn, .more-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.back-btn:hover, .more-btn:hover {
    background-color: #f1f3f4;
    border-radius: 50%;
}

/* 主容器 */
.app-container {
    padding: 0;
    max-width: 100%;
}

/* 应用信息头部 */
.app-header {
    display: flex;
    padding: 16px;
    gap: 16px;
    border-bottom: 1px solid #e8eaed;
}

.app-icon-container {
    flex-shrink: 0;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

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

.app-name {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.3;
}

.developer {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 8px;
}

.monetization {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.contains-ads, .contains-iap {
    font-size: 12px;
    color: #5f6368;
    padding: 2px 4px;
}

.metrics-row {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border-right: 1px solid #e8eaed;
}

.metric-item:first-child {
    padding-left: 0;
}

.metric-item:last-child {
    border-right: none;
    padding-right: 0;
}

.metric-value {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.3;
    white-space: nowrap;
}

.metric-value .rating-value {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
}

.metric-value .star {
    color: #fbbc04;
    font-size: 14px;
    line-height: 1;
    margin-left: 1px;
}

.metric-label {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3;
    white-space: nowrap;
}

.star {
    color: #fbbc04;
    font-size: 14px;
    line-height: 1;
}

.star.filled {
    color: #fbbc04;
}

.star.half {
    color: #fbbc04;
    opacity: 0.5;
}

.install-btn {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    transition: background-color 0.2s;
    margin-top: 0;
    display: block;
}

.install-btn:hover {
    background-color: #1557b0;
}

.install-btn:active {
    background-color: #0d47a1;
}

/* 应用预览截图 */
.app-previews {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid #e8eaed;
}

.app-previews::-webkit-scrollbar {
    display: none;
}

.preview-item {
    position: relative;
    flex-shrink: 0;
    width: 200px;
}

.preview-img {
    width: 200px;
    height: 356px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f1f3f4;
    display: block;
}

.preview-item video,
.preview-item img {
    width: 200px;
    height: 356px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #000;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    pointer-events: none;
    z-index: 10;
}

.preview-title {
    margin-top: 8px;
    font-size: 12px;
    color: #5f6368;
    text-align: center;
}

/* 通用section样式 */
section {
    padding: 16px;
    border-bottom: 1px solid #e8eaed;
}

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

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.arrow {
    color: #5f6368;
    font-size: 20px;
    line-height: 1;
}

.arrow.down {
    transform: rotate(0deg);
}

/* 关于此应用 */
.about-content {
    font-size: 14px;
    color: #202124;
    line-height: 1.6;
}

/* 分类标签 */
.categories {
    display: flex;
    gap: 8px;
    padding: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8eaed;
}

.category-tag {
    background-color: #f1f3f4;
    color: #202124;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 400;
}

/* 数据安全 */
.data-safety-content {
    font-size: 14px;
    color: #202124;
}

.safety-intro {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #5f6368;
}

.safety-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.safety-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-text {
    flex: 1;
}

.safety-title {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    font-weight: 500;
}

.safety-desc {
    font-size: 12px;
    color: #5f6368;
}

.view-details-link {
    display: inline-block;
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
    margin-top: 8px;
}

.view-details-link:hover {
    text-decoration: underline;
}

/* 评分和评价 */
.ratings-content {
    font-size: 14px;
    color: #202124;
}

.ratings-intro {
    margin-bottom: 16px;
    color: #5f6368;
    line-height: 1.6;
}

.overall-rating {
    margin-bottom: 24px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.big-rating {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}

.rating-stars-big {
    display: flex;
    gap: 4px;
}

.rating-stars-big .star {
    font-size: 24px;
}

.total-ratings {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    color: #5f6368;
    width: 16px;
    text-align: right;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #1a73e8;
    border-radius: 4px;
}

/* 评价列表 */
.reviews-list {
    margin-top: 24px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
}

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

.review-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f1f3f4;
}

.review-user-info {
    flex: 1;
}

.review-username {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 12px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    color: #202124;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-helpful {
    font-size: 12px;
    color: #5f6368;
}

.review-helpful > span {
    display: block;
    margin-bottom: 8px;
}

.helpful-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.helpful-question {
    font-size: 12px;
    color: #5f6368;
}

.helpful-btn {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    color: #202124;
    cursor: pointer;
    transition: background-color 0.2s;
}

.helpful-btn:hover {
    background-color: #e8eaed;
}

.helpful-btn.yes {
    color: #1a73e8;
}

.view-all-reviews {
    display: inline-block;
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
}

.view-all-reviews:hover {
    text-decoration: underline;
}

/* 应用支持 */
.app-support-section {
    border-bottom: 1px solid #e8eaed;
}

/* 类似应用 */
.similar-apps-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.similar-apps-list::-webkit-scrollbar {
    display: none;
}

.similar-app-item {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    min-width: 280px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.similar-app-item:hover {
    background-color: #f8f9fa;
}

.similar-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f1f3f4;
}

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

.similar-app-name {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.3;
}

.similar-app-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.similar-app-rating .star {
    font-size: 12px;
}

.rating-num {
    font-size: 12px;
    color: #5f6368;
    margin-left: 4px;
}

/* 赞助商广告 */
.sponsored-ads-section .section-header {
    margin-bottom: 12px;
}

.sponsored-apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sponsored-app-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.sponsored-app-item:hover {
    background-color: #f8f9fa;
}

.sponsored-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f1f3f4;
}

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

.sponsored-app-name {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.3;
}

.sponsored-app-subtitle {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 4px;
}

.sponsored-app-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sponsored-app-rating .star {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .preview-item {
        width: 160px;
    }

    .preview-img {
        width: 160px;
        height: 284px;
    }
}

/* 确保横向滚动流畅 */
.app-previews,
.similar-apps-list {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

