* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #01875f;
    --primary-hover: #017453;
    --secondary-color: #e8f5e9;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --background-light: #fff;
    --rating-color: #018786;
}

body {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-primary);
    padding-bottom: 56px; /* 为底部导航栏留出空间 */
}

/* 头部导航样式 */
.play-header {
    background-color: var(--background-light);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 56px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.logo-container img {
    height: 24px;
}

.nav-actions {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
}

.nav-actions .material-icons {
    cursor: pointer;
}

/* 底部导航样式 */
.bottom-nav {
    display: flex;
    background-color: var(--background-light);
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 56px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-width: 80px;
    flex: 1;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.nav-item span {
    display: block;
}

.nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 主要内容样式 */
.main-content {
    margin-top: 56px;
    padding: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 应用容器 */
.app-container {
    background-color: var(--background-light);
    padding: 16px;
    margin-bottom: 16px;
    max-width: 1024px;
    margin: 0 auto;
}

/* 应用头部信息 */
.app-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    object-fit: cover;
    background-color: #fff;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-title {
    font-size: 22px;
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 400;
    margin: 0;
}

.developer-name {
    font-size: 13px;
    color: var(--primary-color);
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.contains-ads {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* 应用统计数据 */
.app-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 16px 0;
    padding: 0;
    border: none;
}

.rating-section,
.download-section,
.age-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-score,
.download-count,
.age-rating {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-score .material-icons {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: -2px;
}

.rating-count,
.download-label,
.age-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.install-btn {
    height: 36px;
    padding: 0 24px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: capitalize;
    letter-spacing: 0.25px;
}

.install-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-actions {
    display: flex;
    gap: 16px;
}

.share-btn,
.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

.share-btn:hover,
.wishlist-btn:hover {
    color: var(--primary-color);
}

/* 截图部分 */
.screenshots-section {
    margin: 24px 0;
    overflow: hidden;
}

.screenshot-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.screenshot-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.screenshot {
    height: 320px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 章节标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.section-header .material-icons {
    color: var(--text-secondary);
}

/* 关于游戏部分 */
.about-section {
    margin: 24px 0;
}

.about-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.about-content p {
    margin-bottom: 16px;
}

.update-info {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.update-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.update-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 数据安全部分 */
.data-safety-section {
    margin: 24px 0;
}

.safety-content {
    font-size: 14px;
    color: var(--text-primary);
}

.safety-content > p {
    margin-bottom: 16px;
}

.safety-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.safety-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.safety-item:last-child {
    border-bottom: none;
}

.safety-item .material-icons {
    color: var(--primary-color);
    font-size: 20px;
}

.item-text h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.learn-more {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.learn-more:hover {
    text-decoration: underline;
}

/* 更新内容部分 */
.whats-new-section {
    margin: 24px 0;
}

.whats-new-content {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    width: fit-content;
}

.flag-btn:hover {
    color: var(--primary-color);
}

/* 应用支持部分 */
.app-support-section {
    margin: 24px 0;
}

.support-content {
    font-size: 14px;
    color: var(--text-primary);
}

.support-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.support-item:last-child {
    border-bottom: none;
}

.support-item .material-icons {
    color: var(--text-secondary);
    font-size: 20px;
}

/* 开发者信息部分 */
.developer-section {
    margin: 24px 0;
}

.developer-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.developer-content p {
    margin-bottom: 8px;
}

/* 类似游戏部分 */
.similar-section {
    margin: 24px 0;
}

.similar-apps {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.similar-apps::-webkit-scrollbar {
    display: none;
}

.similar-app {
    min-width: 120px;
    max-width: 120px;
}

.similar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.similar-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-developer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.similar-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.similar-rating .material-icons {
    font-size: 12px;
    color: var(--primary-color);
}

/* 页脚 */
.app-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.app-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.app-footer .material-icons {
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-location {
    margin-top: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .screenshot {
        height: 240px;
    }

    .app-header {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .app-title {
        font-size: 18px;
    }

    .app-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .install-btn {
        width: 100%;
    }

    .secondary-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


.review-item {
    padding: 16px 0;
    border-top: 1px solid #dadce0;
}

.review-item + .review-item {
    margin-top: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    background: #01875f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.username {
    color: #202124;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.review-date {
    color: #5f6368;
    font-size: 0.875rem;
}

.more-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #5f6368;
}

.rating {
    color: #01875f;
    margin-bottom: 8px;
}

.review-text {
    color: #202124;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-stats {
    color: #5f6368;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 0.875rem;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: #202124;
    font-size: 0.875rem;
}


.Rt92m {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.Sc83n {
    font-size: 3rem;
    line-height: 1;
    color: #202124;
    margin-bottom: 8px;
}

.stars {
    color: #01875f;
    margin-bottom: 4px;
}

.Rc92p {
    color: #5f6368;
    font-size: 0.875rem;
}

.Rb74n {
    flex-grow: 1;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bar-label {
    min-width: 16px;
    text-align: right;
    color: #5f6368;
    font-size: 0.875rem;
}

.bar-bg {
    flex-grow: 1;
    height: 4px;
    background: #f1f3f4;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #01875f;
    border-radius: 2px;
}
