/* Google Play Store Style - Main CSS */
:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --secondary-color: #34a853;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --border-color: #dadce0;
    --shadow-light: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-medium: 0 1px 2px 0 rgba(60, 64, 67, 0.30), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-large: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px 0 rgba(60, 64, 67, 0.30);
    --border-radius: 8px;
    --border-radius-large: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    height: 64px;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    /* Logo放在左边 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-height: 50px;
    max-width: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.main-logo {
    /* 绝对强制高度限制 - 572px必须压缩到50px以下 */
    max-height: 50px !important;
    height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
}



.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(26, 115, 232, 0.04);
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.08);
}

.user-section {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.search-btn, .help-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.search-btn:hover, .help-btn:hover {
    background-color: rgba(60, 64, 67, 0.08);
}

/* Main Content */
.main-content {
    background-color: var(--surface-color);
    min-height: calc(100vh - 64px);
}

/* App Header Section */
.app-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.app-info {
    display: flex;
    gap: 24px;
    flex: 1;
}

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

.icon-image {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.app-details {
    flex: 1;
}

.app-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.separator {
    color: var(--text-tertiary);
}

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

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

.rating-score {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    font-size: 16px;
    color: #dadce0;
    display: inline-block;
}

.star-icon.filled {
    color: #fbbc04;
}

.star-icon.half {
    position: relative;
    color: #dadce0;
}

.star-icon.half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #fbbc04;
    width: 50%;
    overflow: hidden;
}

.reviews-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.download-info {
    display: flex;
    gap: 24px;
}

.downloads {
    display: flex;
    flex-direction: column;
}

.download-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.download-label {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.age-badge {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: var(--background-color);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}



/* App Actions */
.app-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.install-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
    min-width: 120px;
    justify-content: center;
}

.install-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-medium);
}

.share-btn, .wishlist-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover, .wishlist-btn:hover {
    background-color: var(--background-color);
    border-color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.screenshots-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.screenshots-container::-webkit-scrollbar {
    height: 4px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: var(--background-color);
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.screenshot-item {
    flex-shrink: 0;
}

.screenshot-img {
    width: 200px;
    height: 356px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Section Styles */
.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Description Section */
.description-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.description-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 8px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    padding: 0;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        height: 56px;
    }
    
    .header-content {
        height: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .main-logo {
        /* 移动端也要强制高度限制 */
        max-height: 40px !important;
        height: 40px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .nav-section {
        gap: 16px;
    }
    
    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .icon-image {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .app-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .install-btn {
        flex: 1;
        max-width: 200px;
    }
    
    .screenshots-container {
        gap: 12px;
    }
    
    .screenshot-img {
        width: 160px;
        height: 284px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
} 