/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #0f9d58;
    --text-primary: #3c4043;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --background: #f8f9fa;
    --surface: #ffffff;
    --divider: #dadce0;
    --shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

/* 允许横向的样式 */
html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow-x: auto;
}

body {
    color: var(--text-primary);
    background-color: var(--background);
    border-bottom: 1px solid var(--divider);
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-width: 320px;
    overflow-x: auto;
    overflow-y: auto;
}

/* Header Styles */
.header {
    background-color: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.play-logo {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 8px;
    padding: 8px 16px;
    width: 100%;
    max-width: 680px;
    margin: 0 16px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    margin-left: 8px;
    width: 100%;
    color: var(--text-secondary);
    font-size: 16px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-actions .material-icons {
    color: var(--text-secondary);
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    width: 100%;
    padding: 16px;
    min-width: 320px;
}

/* App Header Section */
.app-header {
    display: flex;
    padding: 24px 0;
    gap: 24px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

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

.app-info .developer {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.app-info .category {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats Section */
.app-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* Install Button */
.install-section {
    padding: 24px 0;
    text-align: center;
}

.install-btn {
    background: #01875f;
    color: white;
    border: none;
    padding: 12px 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    min-width: 600px;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.install-btn:hover {
    background: #0d8c4e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.install-btn:disabled {
    background-color: #9aa0a6;
    cursor: not-allowed;
}

.install-btn.installed {
    background-color: #34a853;
}

.install-status {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    min-height: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #01875f;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary-color);
}

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

.screenshots h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.screenshot-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.screenshot-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshot-scroll::-webkit-scrollbar-thumb {
    background-color: var(--divider);
    border-radius: 3px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 200px;
    height: 355px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.description h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 8px;
    cursor: pointer;
}

/* Additional Info */
.additional-info {
    padding: 24px 0;
}

.info-section {
    margin-bottom: 24px;
}

.info-section h3 {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 8px;
}

.info-section p {
    font-size: 14px;
    color: var(--text-primary);
}

/* Data Safety */
.data-safety {
    padding: 24px 0;
    border-top: 1px solid var(--divider);
}

.data-safety h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.data-safety p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.data-safety-list {
    list-style: none;
    border: rgb(218, 220, 224) 1px solid;
    border-radius: 8px;
    padding: 20px;
}

.data-safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.data-safety-list li:last-child {
    border-bottom: none;
}

.data-safety-list img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.data-safety-list div {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.data-safety-list p {
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

.data-safety-list span {
    color: var(--primary-color);
    cursor: pointer;
}

.see-details {
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-top: 16px;
}

/* Reviews */
.reviews {
    padding: 24px 0;
    border-top: 1px solid var(--divider);
}

.reviews h2 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.overall-rating {
    text-align: center;
}

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

.rating-stars {
    display: flex;
    gap: 2px;
    margin: 4px 0;
}

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

.rating-bars {
    flex: 1;
}

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

.rating-bar span {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 20px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: var(--divider);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--secondary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--divider);
    padding: 8px 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.2s;
    flex: 1;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover {
    color: var(--primary-color);
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
}

.developer a, .category a {
    color: var(--primary-color);
}

.clickable {
    cursor: pointer;
}

.data-safety-list > p {
    margin-top: 20px;
    color: #01875f;
}

.kOqhQd {
    margin-right: 8px;
    height: 40px;
    width: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        margin: 12px 0 0;
        max-width: 100%;
    }
    
    .app-icon {
        align-self: center;
    }
    
    .action-buttons {
        gap: 16px;
    }
    
    .screenshot-item {
        width: 180px;
        height: 320px;
    }
    
    .install-btn {
        min-width: 100%;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .screenshot-item {
        width: 150px;
        height: 266px;
    }
    
    .install-btn {
        min-width: 100%;
        padding: 12px 16px;
    }
    
    .action-buttons {
        gap: 12px;
    }
}

.stat-value img {
    height: 16px;
    min-width: 16px;
}

/* 横向模式支持 */
@media (orientation: landscape) {
    body {
        overflow-x: auto;
        overflow-y: auto;
    }
    
    .app-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .screenshot-scroll {
        flex-wrap: nowrap;
    }
}

@media (display-mode: standalone) {
    body {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-content {
        min-width: 100%;
    }
}