/* Google Play Store Style - Complete Replica */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* Header Section */
.app-header {
    display: flex;
    padding: 24px 24px 16px 24px;
    align-items: flex-start;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
    object-fit: cover;
    object-position: center;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 2px;
    line-height: 28px;
}

.app-developer {
    font-size: 14px;
    color: #01875f;
    margin-bottom: 4px;
    font-weight: 500;
}

.app-meta {
    font-size: 12px;
    color: #5f6368;
}

/* Stats Section */
.stats-section {
    display: flex;
    align-items: center;
    padding: 8px 24px 16px 24px;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value .material-icons {
    font-size: 16px;
    color: #5f6368;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background-color: #dadce0;
    margin: 0 8px;
}

/* Install Button */
.install-btn {
    width: calc(100% - 48px);
    margin: 8px 24px 12px 24px;
    height: 48px;
    background-color: #01875f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: 0.25px;
    transition: background-color 0.2s;
}

.install-btn:hover {
    background-color: #017a56;
}

.install-btn:active {
    background-color: #016949;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    padding: 0 16px 16px 16px;
    gap: 8px;
}

.action-btn {
    flex: 1;
    height: 40px;
    background-color: transparent;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f8f9fa;
}

.action-btn .material-icons {
    font-size: 18px;
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: flex;
    gap: 8px;
    padding: 0 24px 24px 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.screenshots-gallery::-webkit-scrollbar {
    display: none;
}

.screenshot {
    flex-shrink: 0;
}

.screenshot img {
    width: 180px;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #dadce0;
    display: block;
}

/* Section Common Styles */
.section {
    padding: 16px 24px;
    border-top: 1px solid #dadce0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.section-header .material-icons {
    font-size: 20px;
    color: #5f6368;
}

/* About Section */
.about-text {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 12px;
    line-height: 20px;
}

.contact-info {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
    line-height: 20px;
}

.update-info {
    margin: 16px 0;
}

.update-label {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 2px;
}

.update-date {
    font-size: 14px;
    color: #202124;
}

.link-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e8f5e9;
    color: #01875f;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

/* Data Security Section */
.security-text {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
    line-height: 20px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.security-item .material-icons {
    font-size: 20px;
    color: #5f6368;
    margin-right: 16px;
    margin-top: 2px;
}

.security-content {
    flex: 1;
}

.security-title {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    font-weight: 400;
}

.security-detail {
    font-size: 13px;
    color: #5f6368;
}

.link-green {
    color: #01875f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Ratings Section */
.ratings-verified {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ratings-verified .material-icons {
    font-size: 16px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tab {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background-color 0.2s;
}

.filter-tab .material-icons {
    font-size: 18px;
}

.filter-tab.active {
    background-color: #e8f5e9;
    border-color: #01875f;
    color: #01875f;
}

.filter-tab:hover {
    background-color: #f8f9fa;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.rating-score {
    flex-shrink: 0;
    text-align: center;
}

.score-number {
    font-size: 56px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
    margin-bottom: 4px;
}

.stars {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 4px;
}

.review-count {
    font-size: 12px;
    color: #5f6368;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    color: #5f6368;
    width: 8px;
}

.bar-container {
    flex: 1;
    height: 12px;
    background-color: #e8f5e9;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #01875f;
}

/* Review Card */
.review-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    object-position: center;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
}

.more-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #5f6368;
}

.more-btn .material-icons {
    font-size: 20px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars-small {
    color: #01875f;
    font-size: 12px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-text {
    font-size: 14px;
    color: #202124;
    line-height: 20px;
    margin-bottom: 12px;
}

.review-helpful {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 12px;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpful-label {
    font-size: 13px;
    color: #5f6368;
    margin-right: 8px;
}

.helpful-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #dadce0;
    border-radius: 20px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background-color 0.2s;
}

.helpful-btn:hover {
    background-color: #fff;
}

.view-all-btn {
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background-color 0.2s;
}

.view-all-btn:hover {
    background-color: #f8f9fa;
}

/* Similar Apps */
.similar-app-card {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.similar-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
}

.similar-app-info {
    flex: 1;
}

.similar-app-name {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
    margin-bottom: 2px;
}

.similar-app-dev {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 4px;
}

.similar-app-rating {
    font-size: 13px;
    color: #5f6368;
}

/* Report Section */
.report-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.report-btn .material-icons {
    font-size: 20px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.footer-section a {
    display: block;
    font-size: 13px;
    color: #5f6368;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #01875f;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #5f6368;
}

.language-selector .flag-emoji {
    font-size: 16px;
    line-height: 1;
}

/* 备用：如果使用图片 */
.language-selector img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

/* Expandable Section */
.section-header.expandable {
    cursor: pointer;
}

/* Favicon 优化 - 为浏览器标签页图标 */
link[rel="icon"],
link[rel="shortcut icon"],
link[rel="apple-touch-icon"] {
    /* 浏览器会自动处理这些尺寸 */
}

/* 响应式图片优化 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    /* 移动端截图稍小一些 */
    .screenshot img {
        width: 160px;
        height: 285px;
    }
    
    /* 移动端应用图标稍小 */
    .app-icon {
        width: 72px;
        height: 72px;
    }
}

@media (min-width: 768px) {
    .footer {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 平板和桌面端截图可以更大 */
    .screenshot img {
        width: 200px;
        height: 355px;
    }
}

@media (min-width: 1024px) {
    .footer {
        grid-template-columns: repeat(4, 1fr);
    }
}
