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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.5;
}

/* 顶部导航 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.top-developer {
    background-color: #fef7e0;
    color: #e37400;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
}

/* 主要内容 */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
}

/* 应用信息头部 */
.app-header {
    display: flex;
    gap: 20px;
    padding: 24px 20px 20px 20px;
}

.app-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #ff6ec4 0%, #7873f5 100%);
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-name {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #202124;
}

.verified {
    color: #01875f;
    font-size: 18px;
    background-color: #e6f4ea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-domain {
    color: #01875f;
    font-size: 13px;
    margin-bottom: 6px;
}

.app-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5f6368;
    font-size: 12px;
}

/* 统计信息 */
.app-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

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

.stat-value {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #5f6368;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: #dadce0;
}

/* 下载按钮 */
.download-section {
    padding: 20px;
}

.download-btn {
    width: 100%;
    background: linear-gradient(180deg, #1e8e3e 0%, #188038 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.download-btn:hover {
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.download-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    text-align: left;
}

.btn-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.2;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #01875f;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f1f3f4;
}

.action-btn:disabled {
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    background-color: transparent;
}

/* 应用截图 */
.screenshots {
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.screenshot-container {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
}

.screenshot {
    width: 180px;
    height: 320px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    flex-shrink: 0;
    background-color: #f1f3f4;
}

/* 关于应用 */
.about-section,
.data-safety,
.ratings-section,
.similar-apps {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #202124;
}

.about-details {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #5f6368;
    font-size: 13px;
}

.detail-value {
    color: #202124;
    font-size: 13px;
    font-weight: 400;
}

.app-description {
    color: #5f6368;
    font-size: 13px;
    line-height: 1.6;
}

/* 数据安全 */
.safety-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #5f6368;
    font-size: 13px;
}

/* 评分和评论 */
.ratings-verified {
    color: #5f6368;
    font-size: 11px;
    margin-bottom: 16px;
}

.rating-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.rating-score {
    text-align: center;
    min-width: 100px;
}

.score-number {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}

.stars {
    color: #fbbc04;
    font-size: 14px;
    margin: 4px 0;
}

.review-count {
    color: #5f6368;
    font-size: 12px;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-row span {
    width: 8px;
    color: #5f6368;
    font-size: 11px;
    text-align: right;
}

.bar {
    flex: 1;
    height: 10px;
    background-color: #e8eaed;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #01875f;
    transition: width 0.3s ease;
}

/* 评论列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 0;
}

.review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 400;
    font-size: 14px;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 400;
    color: #202124;
    line-height: 1.3;
}

.review-stars {
    color: #fbbc04;
    font-size: 11px;
    line-height: 1.3;
}

.review-date {
    color: #5f6368;
    font-size: 11px;
    margin-bottom: 6px;
    margin-left: 44px;
}

.review-text {
    color: #202124;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 44px;
}

/* 标签页 */
.tabs-section {
    border-bottom: 1px solid #e8eaed;
    background-color: #fff;
}

.tabs {
    display: flex;
    padding: 0 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #5f6368;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #202124;
    background-color: #f8f9fa;
}

.tab-btn.tab-active {
    color: #01875f;
    border-bottom-color: #01875f;
}

.tab-btn.tab-active svg {
    fill: #01875f;
}

/* 相似应用 */
.similar-apps {
    padding: 20px;
    background-color: #fff;
}

.similar-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 8px;
    border-radius: 8px;
}

.app-card:hover {
    background-color: #f8f9fa;
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.app-card-info {
    flex: 1;
}

.app-card-name {
    font-size: 13px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 2px;
}

.app-card-rating {
    font-size: 11px;
    color: #5f6368;
}

/* 底部 */
.footer {
    padding: 0 20px 24px 20px;
    background-color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
}

.footer-links a:hover {
    color: #202124;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}

.footer-bottom a {
    color: #5f6368;
    text-decoration: none;
    font-size: 11px;
}

.footer-bottom a:hover {
    color: #202124;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 0;
    }

    .app-header {
        padding: 20px 16px 16px 16px;
    }

    .app-icon {
        width: 96px;
        height: 96px;
    }

    .app-name {
        font-size: 22px;
    }

    .app-stats {
        padding: 14px 16px;
        gap: 20px;
    }

    .download-section {
        padding: 16px;
    }

    .screenshots {
        padding: 16px;
    }

    .about-section,
    .data-safety,
    .ratings-section {
        padding: 16px;
    }

    .tabs {
        padding: 0 16px;
    }

    .similar-apps {
        padding: 16px;
    }

    .footer {
        padding: 0 16px 24px 16px;
    }

    .rating-summary {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .rating-bars {
        width: 100%;
    }

    .screenshot {
        width: 160px;
        height: 284px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .top-developer {
        font-size: 11px;
        padding: 3px 10px;
    }

    .app-name {
        font-size: 20px;
    }

    .section-title {
        font-size: 15px;
    }
}

/* 滚动条样式 */
.screenshot-container::-webkit-scrollbar {
    height: 6px;
}

.screenshot-container::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.screenshot-container::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
}

.screenshot-container::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}
