* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff;
}

body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    background-color: #ffffff !important;
    color: #202124;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* 顶部导航 */
.top-bar {
    background: #fff;
    /* border-bottom: 1px solid #dadce0; */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 页面标题栏 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fff;
}

.google-play-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 400;
    color: #5f6368;
    letter-spacing: -0.5px;
}

.icon-button {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
}

.icon-button:active {
    background: rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    gap: 4px;
}

/* 主内容 */
.main-content {
    padding: 0 24px 80px;
    max-width: 100%;
}

/* 应用头部 */
.app-header-section {
    display: flex;
    gap: 16px;
    padding: 24px 0 16px;
}

.app-icon {
    margin: 7px 24px 0 0;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.app-title-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.app-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #202124;
}

.developer-link {
    font-size: 14px;
    color: #01875f;
    text-decoration: none;
    line-height: 20px;
}

.contains-ads-badge {
    font-size: 12px;
    color: #5f6368;
    line-height: 16px;
}

/* 统计信息 */
.stats-container {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #dadce0;
}

.stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 4px; */
    position: relative;
}

.stat-number {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.star-rating {
    display: flex;
    gap: 1px;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #dadce0;
}

/* New stats bar styles to match target */
.stat-number-with-star {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.xGa6dd {
    height: 16px;
    min-width: 16px;
}

.inline-star {
    font-size: 14px;
    color: #202124;
    margin-left: 1px;
}

.age-rating-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1.5px solid #202124; */
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #202124;
    min-width: 32px;
}

.stat-label-with-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5f6368;
}

.info-circle {
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
}

.info-icon {
    position: absolute;
    top: 0;
    right: 8px;
    background: transparent;
    border: none;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
}

/* 操作按钮 */
.action-buttons-container {
    padding: 16px 0 0;
}

.install-button {
    width: 100%;
    height: 36px;
    background: #01875f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.25px;
}

.install-button:active {
    background: #016d4c;
}

.see-in-store-button {
    width: 100%;
    height: 36px;
    background: #fff;
    color: #01875f;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}

.see-in-store-button:active {
    background: #f8f9fa;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 16px 0 24px;
}

.text-icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #01875f;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

.text-icon-button:active {
    opacity: 0.7;
}

.text-icon-button svg {
    color: #01875f;
}

.action-icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
}

.action-icon-button:active {
    background: #f8f9fa;
}

/* 截图区域 */
.screenshots-section {
    padding: 16px 0;
    margin: 0;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto !important;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-item {

    flex-shrink: 0;
    /* width: 160px; */

    /* Slightly narrower to show more context */
    /* height: 284px; */
    /* Maintain aspect ratio roughly 9:16 */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dadce0;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 204px;
    min-width: 92px;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区块 */
.content-section {
    padding: 24px 0;
    border-bottom: 1px solid #dadce0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
}

.chevron-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
}

.description-text {
    font-size: 14px;
    line-height: 20px;
    color: #5f6368;
    white-space: pre-line;
}

/* 信息行 */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 14px;
}

.info-label {
    color: #5f6368;
}

.info-value {
    color: #202124;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 16px 0;
}

.badge-text {
    font-size: 14px;
    color: #202124;
}

.category-link {
    font-size: 14px;
    color: #01875f;
    text-decoration: none;
}

/* 数据安全 */
.section-description {
    font-size: 14px;
    line-height: 20px;
    color: #5f6368;
    margin-bottom: 16px;
}

.data-safety-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.safety-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.safety-text {
    font-size: 14px;
    color: #202124;
    line-height: 20px;
}

.safety-text-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.safety-link {
    font-size: 12px;
    color: #01875f;
    text-decoration: none;
    line-height: 16px;
}

.safety-subtext {
    font-size: 12px;
    color: #5f6368;
    line-height: 16px;
}

.view-details-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: #01875f;
    text-decoration: none;
    font-weight: 500;
}

/* 设备标签 */
.rating-info-row {
    margin-bottom: 16px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 16px;
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
}

.info-badge svg {
    color: #5f6368;
}

.device-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.device-tab {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    white-space: nowrap;
}

.device-tab.active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

/* 评分总览 */
.rating-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.rating-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.large-rating {
    font-size: 56px;
    font-weight: 500;
    color: #202124;
    line-height: 1;
}

.rating-stars-large {
    display: flex;
    gap: 2px;
}

.total-reviews {
    font-size: 12px;
    color: #5f6368;
}

.rating-bars-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    color: #5f6368;
    width: 8px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #01875f;
    transition: width 0.3s ease;
}

/* 评论列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 16px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.review-menu-button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-stars {
    display: flex;
    gap: 1px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-text {
    font-size: 14px;
    line-height: 20px;
    color: #202124;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.helpful-count {
    font-size: 12px;
    color: #5f6368;
}

.helpful-question {
    font-size: 12px;
    color: #5f6368;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
}

.helpful-button {
    padding: 6px 12px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
}

.view-all-button {
    width: 100%;
    height: 36px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #01875f;
    cursor: pointer;
}

/* 页脚链接 */
.report-link-container {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #dadce0;
}

.report-link {
    font-size: 14px;
    color: #01875f;
    text-decoration: none;
}

/* 底部页脚 */
.footer {
    padding: 32px 0 24px;
    background: #f8f9fa;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.footer-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
}

.footer-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    margin: 24px 0 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 12px;
    color: #5f6368;
    text-decoration: none;
    line-height: 20px;
}

.footer-link:hover {
    color: #202124;
}

.footer-note {
    font-size: 12px;
    color: #5f6368;
    margin-top: 24px;
    line-height: 16px;
}

.footer-locale {
    font-size: 12px;
    color: #5f6368;
    margin-top: 8px;
    line-height: 16px;
}

/* 评论头像样式 */
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

/* 底部导航栏优化 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    /* 增加高度 */
    background: #fff;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 0;
    padding-right: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 6px; */
    /* 增加图标与文字间距 */
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #5f6368;
    font-size: 16px;
    transition: color 0.2s;
    min-width: 64px;
    /* 防止挤压 */
}

.bottom-nav-item.active {
    color: #01875f;
}

.bottom-nav-item svg {
    width: 28px;
    height: 28px;
}

/* 为主内容添加底部padding，避免被导航栏遮挡 */
.main-content {
    padding: 0 16px 80px;
    max-width: 100%;
}

/* 响应式 */
@media (max-width: 375px) {
    .app-icon {
        width: 80px;
        height: 80px;
        margin: 7px 24px 0 0;
        width: 72px;
    }

    .app-title {
        font-size: 20px;
    }

    .large-rating {
        font-size: 48px;
    }
}

/* PC Adaptation Styles */
body {
    background-color: #f5f5f5;
    /* Light gray background for PC */
}

/* Ensure bottom nav is hidden on PC if we want a different nav, 
   but for now we keep it simple. Let's make the main container stand out. */

.main-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    padding-top: 60px;
    /* Space for top nav */
    /* Padding bottom is handled by main-content or bottom-nav overlap */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}


/* Responsive improvements for wider screens */
@media (min-width: 768px) {
    .main-container {
        /* Move main container styles here if they were global and causing issues, 
           but they seemed fine globally as max-width: 800px works on mobile too (just fills screen).
           However, let's keep bottom-nav specific logic here. */
    }

    .top-nav {
        /* Top nav centering for PC */
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: none;
        border-bottom: 1px solid #dadce0;
    }

    .bottom-nav {
        /* Bottom nav centering for PC */
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-top: 1px solid #dadce0;
        /* Re-add rounded corners or borders if needed for floating look on PC */
    }

    .header-section {
        display: flex;
        align-items: flex-start;
        padding: 40px 24px 20px;
        gap: 24px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
        border-radius: 20px;
        margin-bottom: 0;
    }

    .header-info {
        flex: 1;
        margin-left: 0;
        text-align: left;
        align-items: flex-start;
    }

    .app-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 8px;
        text-align: left;
    }

    .developer {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .stats-container {
        justify-content: flex-start;
        gap: 40px;
        padding: 24px;
        border-bottom: 1px solid #dadce0;
    }

    .stat-box {
        flex: 0 0 auto;
        align-items: flex-start;
    }

    .stat-divider {
        display: block;
        height: 40px;
        background: #dadce0;
    }

    /* Make buttons clearly visible on PC */
    .install-button {
        max-width: 300px;
        height: 48px;
        font-size: 16px;
    }

    .see-in-store-button {
        max-width: 300px;
        height: 48px;
        font-size: 16px;
    }
}