/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #202124;
    background-color: #f8f9fa;
}

/* 顶部导航栏 */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dadce0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.google-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.google-text {
    color: #000000;
    font-size: 22px;
    font-weight: 400;
}

.play-text {
    color: #000000;
    font-size: 22px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn, .help-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s;
}

.search-btn:hover, .help-btn:hover {
    background-color: #f1f3f4;
}

.signin-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signin-btn:hover {
    background-color: #1557b0;
}

/* 主要内容区域 */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.app-container {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 应用头部信息 */
.app-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
    background: linear-gradient(180deg, #e8f4fd 0%, #d6ecfc 20%, #c4e4fb 40%, #b2dcfa 60%, #a0d4f9 80%, #8eccf8 100%);
}

.app-icon img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #202124;
}

.app-developer {
    color: #1a73e8;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: default;
    pointer-events: none;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.badge {
    background-color: #f1f3f4;
    color: #5f6368;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #dadce0;
    font-size: 14px;
}

.star.filled {
    color: #f4b400;
}

.rating-text {
    font-weight: 500;
    color: #202124;
    font-size: 14px;
}

.reviews-count, .downloads {
    color: #5f6368;
    font-size: 12px;
}

.content-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-label {
    color: #5f6368;
    font-size: 12px;
}

.rating-value {
    color: #202124;
    font-size: 12px;
    font-weight: 500;
}

.info-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: default;
    color: #5f6368;
    pointer-events: none;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.install-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
    max-width: 180px;
}

.install-btn:hover {
    background-color: #1557b0;
}

.share-btn, .wishlist-btn {
    background-color: #f1f3f4;
    color: #5f6368;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: default;
    transition: background-color 0.2s;
    min-width: 48px;
    pointer-events: none;
}

.share-btn {
    background-color: #2e7d32;
    color: white;
}

.wishlist-btn {
    background-color: #2e7d32;
    color: white;
}

.share-btn:hover, .wishlist-btn:hover {
    background-color: #2e7d32;
    color: white;
}

/* 应用截图 */
.screenshots {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    border-bottom: 1px solid #e8eaed;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots::-webkit-scrollbar {
    display: none;
}

.screenshot-container img {
    width: 180px;
    height: 360px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* 应用描述 */
.app-description {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.app-description h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #202124;
}

.app-description h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 16px 0 8px 0;
    color: #202124;
}

.app-description p {
    margin-bottom: 12px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.app-description ul {
    margin: 8px 0 16px 20px;
}

.app-description li {
    margin-bottom: 6px;
    color: #5f6368;
    font-size: 14px;
}

.description-content {
    position: relative;
}

.read-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* 数据安全 */
.data-safety {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.data-safety h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #202124;
}

.data-safety p {
    margin-bottom: 16px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.safety-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 14px;
}

.safety-item .material-icons {
    font-size: 18px;
    color: #34a853;
}

/* 评分和评论 */
.ratings-reviews {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.ratings-reviews h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
}

.rating-summary {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.overall-rating {
    text-align: center;
    min-width: 120px;
}

.big-rating {
    font-size: 48px;
    font-weight: 300;
    color: #202124;
    margin-bottom: 8px;
}

.stars-big {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-bottom: 8px;
}

.stars-big .star {
    font-size: 20px;
}

.total-reviews {
    color: #5f6368;
    font-size: 14px;
}

.rating-distribution {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5f6368;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #f4b400;
    border-radius: 4px;
}

/* 评论列表 */
.reviews-list {
    margin-top: 24px;
}

.review-item {
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-rating {
    display: flex;
    gap: 1px;
}

.review-rating .star {
    font-size: 14px;
}

.review-content p {
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-helpful {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-helpful span {
    color: #5f6368;
    font-size: 12px;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
}

.helpful-buttons button {
    background: none;
    border: 1px solid #dadce0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
    cursor: default;
    transition: all 0.2s;
    pointer-events: none;
}

.helpful-buttons button:hover {
    background-color: transparent;
    border-color: #dadce0;
    color: #5f6368;
}

.developer-reply {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.developer-badge {
    background-color: #1a73e8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.reply-date {
    color: #5f6368;
    font-size: 12px;
}

.developer-reply p {
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 更新内容 */
.whats-new {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.whats-new h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #202124;
}

.whats-new p {
    margin-bottom: 12px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.whats-new a {
    color: #1a73e8;
    text-decoration: none;
}

.whats-new a:hover {
    text-decoration: underline;
}

/* 应用支持 */
.app-support {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.app-support h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    pointer-events: none;
    cursor: default;
}

.support-link:hover {
    text-decoration: none;
}

.support-link .material-icons {
    font-size: 18px;
}

/* 开发者信息 */
.developer-info {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.developer-info h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
}

.developer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.developer-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a73e8;
    cursor: default;
    pointer-events: none;
}

.developer-contact a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    pointer-events: none;
    cursor: default;
}

.developer-contact a:hover {
    text-decoration: none;
}

.developer-address, .developer-phone {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.4;
}

/* 更多应用和相似应用 */
.more-apps, .similar-apps {
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
}

.more-apps:last-child, .similar-apps:last-child {
    border-bottom: none;
}

.more-apps h2, .similar-apps h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.app-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.app-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-card-name {
    font-size: 12px;
    color: #202124;
    font-weight: 500;
    line-height: 1.3;
}

.app-card-rating {
    font-size: 11px;
    color: #5f6368;
}

/* 底部导航 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dadce0;
    margin-top: 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    pointer-events: none;
    cursor: default;
}

.footer-links a:hover {
    color: #5f6368;
}

.footer-locale {
    color: #5f6368;
    font-size: 14px;
    border-top: 1px solid #dadce0;
    padding-top: 24px;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 12px;
        height: 56px;
    }

    .nav-menu {
        display: none;
    }

    .signin-btn {
        display: none;
    }

    .main-content {
        padding: 12px;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }

    .app-icon img {
        width: 80px;
        height: 80px;
    }

    .app-title {
        font-size: 22px;
    }

    .app-badges {
        justify-content: center;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .install-btn {
        max-width: none;
    }

    .screenshots {
        padding: 16px;
        gap: 10px;
    }

    .screenshot-container img {
        width: 150px;
        height: 300px;
    }

    .app-description, .data-safety, .ratings-reviews,
    .whats-new, .app-support, .developer-info,
    .more-apps, .similar-apps {
        padding: 16px;
    }

    .rating-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .footer-content {
        padding: 24px 12px;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 8px;
    }

    .main-content {
        padding: 8px;
    }

    .app-header {
        padding: 12px;
    }

    .app-icon img {
        width: 72px;
        height: 72px;
    }

    .app-title {
        font-size: 20px;
    }

    .action-buttons {
        padding: 12px;
    }

    .screenshots {
        padding: 12px;
    }

    .screenshot-container img {
        width: 120px;
        height: 240px;
    }

    .app-description, .data-safety, .ratings-reviews,
    .whats-new, .app-support, .developer-info,
    .more-apps, .similar-apps {
        padding: 12px;
    }

    .rating-summary {
        gap: 16px;
    }

    .big-rating {
        font-size: 36px;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .app-card img {
        width: 64px;
        height: 64px;
    }

    .footer-content {
        padding: 20px 8px;
    }

    .footer-links {
        gap: 12px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 动画和过渡效果 */
.screenshot-container, .review-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 应用卡片不可点击，移除悬停效果 */
.app-card {
    transition: none;
}

.app-card:hover {
    transform: none;
    box-shadow: none;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 焦点状态 */
button:focus, a:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .badge, .safety-item .material-icons {
        border: 1px solid currentColor;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
