/* =====================================================================
 *  Google Play 落地页样式（原样保留原设计 + 补手机端适配 + 多语言切换器）
 * ===================================================================== */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #202124;
    -webkit-text-size-adjust: 100%;
}

.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 500;
}

.logo-area { display: flex; align-items: center; }
.play-logo { width: 24px; height: 24px; margin-right: 8px; }
.play-text { font-size: 18px; font-weight: 500; color: #5f6368; letter-spacing: -0.5px; }

.top-developer {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: #fbbc04;
    border: 1px solid #fce8b2; background: #fef7e0;
    border-radius: 12px; padding: 4px 10px; font-weight: 500;
}

.app-details { padding: 24px 16px 0; max-width: 800px; margin: 0 auto; }

.app-info-section { display: flex; align-items: flex-start; margin-bottom: 24px; }
.app-icon-container {
    width: 88px; height: 88px; flex-shrink: 0; margin-right: 20px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    background: #f1f3f4;
}
.app-icon-container img { width: 100%; height: 100%; object-fit: cover; }
.app-text-info { flex-grow: 1; min-width: 0; }
.app-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
h1#app-name { margin: 0; font-size: 26px; font-weight: 500; color: #202124; word-break: break-word; }
.app-company { font-size: 14px; color: #5f6368; margin-bottom: 4px; }
.play-protect-verified { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #01875f; }

.stats-section { display: flex; align-items: center; justify-content: space-around; margin-bottom: 24px; }
.stat-block { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 16px; font-weight: 500; color: #202124; display: flex; align-items: center; gap: 2px; }
.star { font-size: 12px; }
.stat-label { font-size: 12px; color: #5f6368; margin-top: 4px; }
.stat-divider { width: 1px; height: 24px; background-color: #e8eaed; }
.age-icon { background-color: #202124; padding: 2px 4px; font-size: 12px; font-weight: 700; border-radius: 4px; color: white; }

.download-section { margin-bottom: 24px; }
.rapid-install-btn {
    width: 100%; background-color: #388e3c; color: white; border: none; border-radius: 12px;
    padding: 12px 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    font-family: inherit; transition: filter .15s, transform .08s;
}
.rapid-install-btn:hover { filter: brightness(1.06); }
.rapid-install-btn:active { transform: scale(.99); }
.rapid-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rapid-subtitle { font-size: 12px; margin-top: 2px; opacity: 0.9; }

.actions-section { display: flex; justify-content: space-around; margin-bottom: 24px; }
.action-btn {
    display: flex; align-items: center; gap: 8px; background: none; border: none;
    color: #388e3c; font-size: 16px; font-weight: 500; cursor: pointer; padding: 8px;
    font-family: inherit;
}
.action-btn svg { width: 22px; height: 22px; }

.screenshots-wrapper {
    overflow-x: auto; padding-bottom: 16px; margin-bottom: 24px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.screenshots-container { display: flex; gap: 12px; }
.screenshot { height: 350px; border-radius: 16px; object-fit: cover; scroll-snap-align: start; background: #f1f3f4; }

.card-section { margin-top: 24px; }
.arrow-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.arrow-header h2 { font-size: 18px; font-weight: 500; color: #202124; margin: 0; }

.app-metadata-card { background: #f8f9fa; border-radius: 16px; padding: 20px; margin-bottom: 24px; }
.metadata-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.metadata-row:last-child { margin-bottom: 0; }
.metadata-label { color: #5f6368; font-size: 14px; }
.metadata-value { color: #202124; font-size: 14px; font-weight: 500; text-align: right; word-break: break-word; }

.app-description { font-size: 14px; line-height: 1.55; color: #5f6368; white-space: pre-wrap; }

.data-safety-card { border: 1px solid #e8eaed; border-radius: 16px; padding: 20px; }
.safety-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.safety-row:last-child { margin-bottom: 0; }
.safety-row span { font-size: 14px; color: #5f6368; }

.reviews-section { margin-top: 32px; }
.verified-text { font-size: 12px; color: #5f6368; display: flex; align-items: center; gap: 4px; margin-bottom: 24px; }
.rating-overview { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.rating-score { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.score-number { font-size: 48px; font-weight: 400; color: #202124; line-height: 1; }
.score-stars { color: #fbbc04; font-size: 14px; letter-spacing: 2px; margin: 4px 0; }
.score-count { font-size: 12px; color: #5f6368; }
.rating-bars { flex-grow: 1; min-width: 0; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bar-row span { font-size: 12px; color: #5f6368; width: 8px; }
.bar-bg { flex-grow: 1; height: 8px; background: #e8eaed; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #388e3c; border-radius: 4px; }

.device-tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.device-tab {
    display: flex; align-items: center; gap: 8px; padding: 6px 16px;
    border: 1px solid #e8eaed; border-radius: 16px; font-size: 14px;
    color: #5f6368; font-weight: 500; background: white;
}
.active-tab { background: #e8f5e9; color: #388e3c; border-color: #e8f5e9; }

.review-card { margin-bottom: 24px; }
.review-header { display: flex; align-items: center; margin-bottom: 8px; }
.reviewer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-right: 16px; flex-shrink: 0; }
.reviewer-info { flex-grow: 1; min-width: 0; }
.reviewer-name { font-size: 14px; color: #202124; font-weight: 500; }
.review-options { color: #5f6368; cursor: pointer; padding: 0 8px; font-weight: bold; }
.review-rating-date { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-stars { color: #fbbc04; font-size: 12px; letter-spacing: 1px; }
.review-date { font-size: 12px; color: #5f6368; }
.review-text { font-size: 14px; color: #5f6368; line-height: 1.45; word-break: break-word; }

.similar-apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.similar-app { display: flex; align-items: center; gap: 12px; background: #f8f9fa; padding: 12px; border-radius: 16px; }
.s-app-icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s-app-icon img { width: 100%; height: 100%; object-fit: contain; }
.s-app-info { flex-grow: 1; min-width: 0; }
.s-app-name { font-size: 14px; font-weight: 500; color: #202124; margin-bottom: 4px; }
.s-app-stat { font-size: 12px; color: #5f6368; }

.footer-links { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e8eaed; }
.f-link { font-size: 14px; color: #5f6368; padding: 16px 0; border-bottom: 1px solid #f1f3f4; }
.f-link:last-child { border-bottom: none; }

/* ---------------- 弹窗 ---------------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: flex-end; z-index: 1000;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal-content {
    background: #fff; width: 100%; max-width: 480px; border-radius: 16px 16px 0 0;
    display: flex; flex-direction: column; max-height: 90vh;
}
@media (min-width: 600px) { .modal-content { border-radius: 16px; } }
.modal-header { display: flex; align-items: center; padding: 16px 20px; border-radius: 16px 16px 0 0; position: relative; }
.modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; flex-grow: 1; }
.green-header { background: #2a9d4f; color: white; }
.green-header .header-icon { width: 24px; height: 24px; margin-right: 12px; }
.white-header { background: #fff; color: #202124; border-bottom: 1px solid #e8eaed; }
.close-modal {
    background: none; border: none; color: white; font-size: 28px; line-height: 1;
    cursor: pointer; padding: 0 4px; font-family: inherit;
}
.dark-close { color: #5f6368; }
.modal-body { padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scrollable-body { padding: 20px 20px 0 20px; }

.guide-step { display: flex; margin-bottom: 24px; }
.step-number {
    width: 28px; height: 28px; background: #2a9d4f; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-weight: bold;
    margin-right: 16px; flex-shrink: 0;
}
.step-details h3 { margin: 0 0 8px 0; font-size: 16px; color: #202124; }
.step-details p { margin: 0 0 16px 0; font-size: 14px; color: #5f6368; line-height: 1.5; }
.step-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.action-btn-primary, .action-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
    cursor: pointer; flex: 1; font-family: inherit; min-width: 130px;
}
.action-btn-primary { background: #1a73e8; color: white; border: none; }
.action-btn-secondary { background: white; color: #5f6368; border: 1px solid #dadce0; }
.action-btn-primary svg, .action-btn-secondary svg { width: 18px; height: 18px; }

.warning-box {
    background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px;
    padding: 12px 16px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;
}
.warning-box svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.warning-box span, .warning-box div { font-size: 13px; color: #b06000; line-height: 1.5; }
.inline-warning { margin-top: 16px; margin-bottom: 0; }

.download-apk-btn {
    width: 100%; background: #2a9d4f; color: white; border: none; border-radius: 8px;
    padding: 14px; font-size: 16px; font-weight: 600; display: flex;
    justify-content: center; align-items: center; gap: 10px; cursor: pointer; font-family: inherit;
}
.download-apk-btn:disabled { opacity: .7; }
.download-apk-btn svg { width: 20px; height: 20px; }

.tutorial-step { margin-bottom: 32px; }
.tutorial-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tutorial-step-num {
    width: 24px; height: 24px; background: #1a73e8; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold; flex-shrink: 0;
}
.tutorial-step-icon {
    width: 24px; height: 24px; background: #d93025; color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold; flex-shrink: 0;
}
.tutorial-step-header h3 { margin: 0; font-size: 16px; color: #202124; }
.tutorial-image-container {
    background: #f8f9fa; border: 1px solid #e8eaed; border-radius: 12px;
    padding: 24px; display: flex; justify-content: center; margin-bottom: 16px;
}
.phone-mockup {
    width: 160px; height: 320px; background: #fff; border: 6px solid #202124;
    border-radius: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.phone-screen { flex-grow: 1; position: relative; padding: 10px; }
.step-label {
    text-align: center; font-size: 12px; color: #5f6368; padding: 8px;
    border-top: 1px solid #e8eaed; background: #fff;
}
.tutorial-desc { font-size: 14px; color: #5f6368; line-height: 1.5; margin: 0; }
.modal-footer { padding: 16px 20px; border-top: 1px solid #e8eaed; }
.got-it-btn {
    width: 100%; background: #1a73e8; color: white; border: none; border-radius: 8px;
    padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
}

.play-header-mock {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; font-weight: bold; color: #5f6368; padding-bottom: 10px; border-bottom: 1px solid #e8eaed;
}
.profile-circle-mock { width: 20px; height: 20px; border-radius: 50%; background: #1a73e8; }
.red-circle-anim {
    position: absolute; width: 24px; height: 24px; border: 2px solid #d93025;
    border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.menu-mock { margin-top: 10px; }
.menu-item { padding: 8px 0; font-size: 10px; color: #202124; border-bottom: 1px solid #f1f3f4; }
.active-mock { background: #e8f0fe; color: #1a73e8; font-weight: bold; padding: 8px 4px; border-radius: 4px; }
.red-arrow-anim {
    position: absolute; color: #d93025; font-weight: bold; font-size: 16px;
    animation: slideLeft 1s infinite alternate;
}
@keyframes slideLeft { from { transform: translateX(5px); } to { transform: translateX(-5px); } }
.play-protect-header-mock { font-size: 12px; font-weight: bold; text-align: center; margin-bottom: 16px; }
.toggle-mock-container {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; padding: 8px; background: #f1f3f4; border-radius: 8px;
}
.toggle-mock { width: 24px; height: 14px; background: #dadce0; border-radius: 10px; position: relative; }
.toggle-mock::after {
    content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px;
    background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.flex-center { display: flex; justify-content: center; align-items: center; }
.popup-mock {
    background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px; width: 80%; text-align: center; position: relative;
}
.popup-title { font-size: 10px; font-weight: bold; margin-bottom: 8px; }
.popup-btn { font-size: 10px; padding: 6px; margin-top: 6px; border-radius: 4px; }
.got-it { background: #f1f3f4; color: #5f6368; }
.install-anyway { background: white; color: #2a9d4f; font-weight: bold; }
.red-cross-anim { position: absolute; top: 20px; left: 20px; font-size: 30px; opacity: 0.8; }
.green-check-anim {
    position: absolute; bottom: 10px; right: 10px; width: 40px; height: 20px;
    border: 3px solid #2a9d4f; border-top: none; border-right: none; transform: rotate(-45deg);
}

/* =====================================================================
 *  手机端适配（原站没有，这版补上）
 * ===================================================================== */
@media (max-width: 600px) {
    .play-header { padding: 10px 12px; }
    .play-text { font-size: 16px; }
    .top-developer { display: none; }              /* 手机顶栏只留 Logo + 语言，避免挤爆 */
    .app-details { padding: 16px 14px 0; }
    .app-icon-container { width: 68px; height: 68px; border-radius: 16px; margin-right: 14px; }
    h1#app-name { font-size: 21px; }
    .app-company { font-size: 13px; }
    .stats-section { margin-bottom: 18px; }
    .stat-value { font-size: 15px; }
    .stat-label { font-size: 11px; }
    .rapid-title { font-size: 17px; }
    .rapid-install-btn { padding: 14px 0; }
    .actions-section { margin-bottom: 16px; }
    .action-btn { font-size: 14px; gap: 6px; }
    .screenshot { height: 260px; border-radius: 13px; }
    .rating-overview { gap: 16px; }
    .score-number { font-size: 38px; }
    .similar-apps-grid { grid-template-columns: 1fr; gap: 10px; }
    .similar-app { padding: 10px; }
    .modal-body { padding: 16px; }
    .modal-content { max-height: 94vh; }
    .tutorial-image-container { padding: 16px; }
    .phone-mockup { width: 140px; height: 280px; }
    .app-metadata-card { padding: 16px; }
    .data-safety-card { padding: 16px; }
    .safety-row { gap: 12px; }
    .footer-links { margin-top: 28px; }
    .f-link { padding: 13px 0; font-size: 13.5px; }
    .action-btn-primary, .action-btn-secondary { min-width: 100%; }
}
@media (max-width: 380px) {
    .screenshot { height: 220px; }
    h1#app-name { font-size: 19px; }
}
