/* Global Styles */
:root {
    --primary-color: #028760; /* New green primary color */
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --background-color: #FFFFFF;
    --border-color: #E0E0E0;
    --border-radius: 8px;
}

/* Additional Navigation Module Styles */
.additional-nav {
    background-color: #FFFFFF;
    padding: 20px 15px;
    border-top: 1px solid #EEEEEE;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #028760;
}

.nav-footer {
    border-top: 1px solid #EEEEEE;
    padding-top: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.developers-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: #028760;
}

.vat-info {
    color: #666666;
    font-size: 14px;
}

.contact-link {
    color: #999999;
    text-decoration: none;
    font-size: 14px;
}

.contact-link:hover {
    color: #028760;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 60px; /* Space for bottom nav */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

/* App Header Section */
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 20px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-right: 16px;
    object-fit: cover;
}

.header-content {
    flex: 1;
}

.app-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.verification-badge {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--primary-color);
}

.verification-badge .material-icons {
    font-size: 14px;
    margin-right: 4px;
    color: var(--primary-color);
}

.settings-icon {
    color: var(--text-secondary);
    font-size: 24px;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
}

.rating {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.review-count, .download-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.editor-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #028760;
    font-weight: 500;
}

.editor-choice .material-icons {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Install Button Section */
.install-section {
    margin-bottom: 16px;
}

.quick-install-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-wrap: wrap;
}

.flash-icon {
    color: #FFD700;
    font-size: 20px;
    margin-right: 8px;
}

.download-timer {
    font-size: 12px;
    opacity: 1;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

/* Action Buttons Section */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:first-child {
    margin-right: 8px;
}

.action-btn:last-child {
    margin-left: 8px;
}

.action-btn .material-icons {
    font-size: 16px;
    margin-right: 6px;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 24px;
}

.screenshot-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #CCCCCC transparent;
}

.screenshot-gallery::-webkit-scrollbar {
    height: 4px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
    background-color: #CCCCCC;
    border-radius: 2px;
}

.screenshot-gallery::-webkit-scrollbar-track {
    background-color: transparent;
}

.gallery-image {
    width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* About Section */
.about-section, .data-safety-section, .reviews-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-header .material-icons {
    color: var(--text-secondary);
    font-size: 24px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.app-description {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.update-info {
    margin-bottom: 16px;
}

.update-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: normal;
    margin-bottom: 4px;
}

.update-info p {
    font-size: 14px;
    color: var(--text-primary);
}

.tags-container {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--card-background);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Data Safety Section */
.safety-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.safety-items {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.safety-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.safety-item:last-child {
    border-bottom: none;
}

.safety-item .material-icons {
    color: var(--text-secondary);
    font-size: 20px;
    margin-right: 16px;
    margin-top: 2px;
}

.safety-content p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.learn-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Reviews Section */
.reviews-disclaimer {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

/* 评分概况样式 */
.ratings-overview {
    display: flex;
    margin-bottom: 32px;
}

.rating-big {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.rating-stars .material-icons {
    color: #028760;
    font-size: 14px;
}

.total-reviews {
    font-size: 13px;
    color: var(--text-secondary);
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 14px;
    width: 16px;
    text-align: right;
    color: var(--text-secondary);
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #EEEEEE;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* 评论项样式 - 根据新图片重新设计 */
.review-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 0;
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-avatar {
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.male {
    background-color: #E3F2FD;
    color: #1976D2;
}

.female {
    background-color: #FFEBEE;
    color: #C2185B;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 15px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-rating .material-icons {
    color: #028760;
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    padding: 0;
    margin-bottom: 8px;
}

.more-icon {
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.more-icon {
    color: var(--text-secondary);
    font-size: 20px;
}

.review-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .app-name {
        font-size: 20px;
    }

    .gallery-image {
        width: 180px;
    }

    .rating-number {
        font-size: 36px;
    }
}