body {
    font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #e3e9f0 0%, #f8fafc 100%);
    color: #1c1e21;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.header {
  width: 100vw;
  min-width: 100vw;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  position: fixed;
  height: 64px;
  background: #f5f6fa;
  align-items: center;
  box-shadow: 0 4px 16px rgba(60,60,60,0.12);
  z-index: 2000;
  padding: 0 24px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-title {
  color: #6b7280;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.header-icon {
  font-size: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.app-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(60,72,88,0.12), 0 1.5px 6px 0 rgba(60,72,88,0.08);
    width: 100%;
    max-width: 420px;
    padding: 32px 24px 28px 24px;
    box-sizing: border-box;
    margin: 32px 0;
    transition: box-shadow 0.2s;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.app-icon img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-right: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #f0f2f5;
}

.app-info .app-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #222;
    letter-spacing: 0.5px;
}

.app-info .company-name {
    color: #4285f4;
    font-weight: 500;
    margin: 0 0 4px 0;
    font-size: 15px;
}

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

.app-ratings .rating-score {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-right: 2px;
}
.app-ratings .rating-score .star {
    color: #4285f4;
}

.app-ratings .downloads {
    color: #888;
    font-size: 13px;
}

.install-button-container {
    margin-bottom: 22px;
}

.device-compatibility {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 12px 0;
    margin-bottom: 16px;
}

.compatibility-icon {
    margin-right: 12px;
    color: #6c757d;
    font-size: 20px;
    display: flex;
    align-items: center;
}

/* Google Material Icons 支持 */
.google-material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.compatibility-text {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.install-btn {
    background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(66,133,244,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.install-btn:hover:not(.getting-version) {
    background: linear-gradient(90deg, #357ae8 0%, #2e7d32 100%);
    box-shadow: 0 4px 16px rgba(66,133,244,0.12);
}

.install-btn.getting-version {
    background: #b0b4b9;
    cursor: not-allowed;
}

.install-btn .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.5s ease;
    z-index: 1;
}

.install-btn .btn-text {
    position: relative;
    z-index: 2;
}

.screenshots {
    display: flex;
    overflow-x: auto;
    margin-bottom: 22px;
    gap: 12px;
    padding-bottom: 4px;
    margin-top: 40px;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Webkit浏览器的滚动条 */
.screenshots::-webkit-scrollbar {
    display: none;
}

.screenshots img {
    width: 320px;
    height: 192px;
    object-fit: cover;
    margin-right: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(60,72,88,0.10);
    border: 1.5px solid #f0f2f5;
    transition: transform 0.2s;
    cursor: pointer;
}
.screenshots img:hover {
    transform: scale(1.04);
}

/* 图片放大查看模态框 */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: pointer;
}

.screenshot-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* 滑动动画样式 */
.screenshot-modal img.slide-animation {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.screenshot-modal img.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}

.screenshot-modal img.slide-right {
    transform: translateX(100%);
    opacity: 0;
}

.screenshot-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.screenshot-modal .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}



.about-section h2, .ratings-and-reviews h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
    font-weight: 700;
}

.about-section p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px 0;
}

.ratings-and-reviews {
    margin-top: 18px;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.verification-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 0;
    background: transparent;
}

.verification-text {
    color: #6c757d;
    font-size: 13px;
    font-weight: 400;
}

.verification-icon {
    color: #6c757d;
    font-size: 14px;
    font-weight: bold;
}
.score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 80px;
    margin-right: 18px;
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 0;
}
.score-block .score {
    font-size: 48px;
    font-weight: 700;
    color: #000 !important;
    line-height: 1.1;
    margin-bottom: 2px;
    text-align: left;
    width: 80px;
    letter-spacing: 1px;
}
.score-block .stars {
    color: #4285f4;
    font-size: 18px;
    margin: 0 0 2px 0;
    letter-spacing: 1px;
    text-align: left;
    width: 80px !important;
}
.score-block .reviews-count {
    color: #b0b4b9;
    font-size: 13px;
    margin-top: 2px;
    text-align: left;
    width: 80px !important;
}
.rating-summary {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-left: 0;
}
.rating-summary .score {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-right: 2px;
}
.rating-summary .stars {
    font-size: 20px;
    color: #4285f4;
    letter-spacing: 1px;
}

.rating-distribution {
    flex: 1;
    margin: 0;
    padding: 0;
    margin-top: 0;
}
.rating-distribution .bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-size: 13px;
}
.rating-distribution .bar-row span {
    width: 18px;
    text-align: right;
    margin-right: 6px;
    font-weight: 500;
    color: #888;
}
.rating-distribution .bar {
    flex: 1;
    height: 8px;
    background: #e0e4ea;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 4px;
}
.rating-distribution .bar-inner {
    height: 100%;
    background: #4285f4;
    border-radius: 8px;
    transition: width 0.4s;
}

.review-list {
    margin-top: 18px;
}
.review-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 14px;
    padding: 0;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
    margin-top: 2px;
}
.review-content {
    flex: 1;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.reviewer {
    font-weight: 700;
    color: #222;
    font-size: 15px;
    margin-right: 4px;
}
.review-stars {
    color: #4285f4;
    font-size: 14px;
    letter-spacing: 1px;
    margin-right: 4px;
}
.review-date {
    color: #888;
    font-size: 13px;
}
.review-text {
    color: #222;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
    margin-top: 2px;
    text-align: left;
}
.review-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.review-likes {
    color: #b0b4b9;
    font-size: 12px;
}
.review-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.btn-helpful {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #222;
    font-weight: 400;
    font-size: 13px;
    padding: 2px 14px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    margin-left: 2px;
    box-shadow: none;
}
.btn-helpful:hover {
    background: #f5f5f5;
    border: 1px solid #b0b4b9;
}

/* 评论区样式预留，可后续补充模拟评论 */

#webview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* 安卓WebView弹窗不可关闭，但允许背景滚动 */
    pointer-events: none; /* 允许背景滚动 */
}

.webview-popup {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    max-width: 320px;
    margin: 0 auto;
    /* 弹窗内容可以点击 */
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.webview-popup p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #222;
}
#open-in-browser {
    display: inline-block;
    margin: 0 auto 0 auto;
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0;
}

/* 微调“Was this review helpful?” 文本样式 */
.review-actions span[data-lang="review_helpful"] {
    color: #888;
    font-size: 13px;
    font-weight: 400;
    margin-right: 8px;
}

body {
  background: #f5f6fa;
}

@media (max-width: 600px) {
  .app-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 96px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.share-gift-btn-container {
  margin-top: 12px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.share-gift-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  color: #21916F;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  transition: color 0.2s;
}
.share-gift-btn:hover .share-gift-text {
  color: #176b4d;
}
.share-gift-icon {
  display: flex;
  align-items: center;
  margin-right: 6px;
}
.share-gift-text {
  color: #21916F;
  font-size: 16px;
  font-weight: 700;
}

.data-security-section {
  margin-top: 40px;
  margin-bottom: 40px;
}
.data-security-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.data-security-desc {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
}
.data-security-card {
  background: #f5f6fa;
  border-radius: 18px;
  border: 1.5px solid #e0e4ea;
  box-shadow: none;
  padding: 24px 20px 16px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.data-security-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.data-security-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.data-security-info-title {
  font-size: 16px;
  font-weight: 400;
  color: #757575;
  margin-bottom: 2px;
}
.data-security-info-desc {
  font-size: 13px;
  color: #757575;
  font-weight: 400;
  margin-top: 0;
}
.data-security-link {
  display: inline-block;
  color: #1976d2;
  font-size: 15px;
  font-weight: 500;
  margin-top: 10px;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.data-security-link:hover {
  text-decoration: underline;
}

/* 下载提示模态框样式 */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.download-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.download-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    animation: downloadPulse 2s infinite;
}

@keyframes downloadPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.download-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-modal-content p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
}

.download-ok-btn {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.download-ok-btn:hover {
    background: linear-gradient(135deg, #3367d6 0%, #2a56c6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.download-ok-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* iOS视频教程模态框样式 */
.video-tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 4000;
    align-items: flex-end;
    justify-content: center;
}

.video-tutorial-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px 20px 0 0;
    padding: 24px;
    max-width: 100%;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15), 0 -4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUpFromBottom 0.3s ease-out;
    border: 1px solid rgba(66, 133, 244, 0.1);
    display: flex;
    flex-direction: column;
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.video-tutorial-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-tutorial-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.video-tutorial-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.video-tutorial-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.video-tutorial-notice p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
    font-weight: 500;
}

.video-tutorial-player {
    flex: 1;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #000;
}

.video-tutorial-player video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-play-btn:active {
    transform: scale(0.95);
}

.video-play-btn svg {
    margin-left: 4px; /* 微调播放图标位置 */
}


/* 悬浮Support按钮样式 */
.floating-support-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite;
}

/* WebView弹窗显示时，support按钮置于弹窗下层且不可点击 */
.floating-support-btn.webview-disabled {
    z-index: 500;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.support-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
    gap: 8px;
}

.support-link:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.4);
    text-decoration: none;
    color: white;
}

.support-link:active {
    transform: translateY(0px);
    box-shadow: 0 2px 15px rgba(88, 101, 242, 0.3);
}

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .video-tutorial-content {
        padding: 20px;
        max-height: 85vh;
    }
    
    .video-tutorial-header h3 {
        font-size: 18px;
    }
    
    .video-tutorial-player video {
        max-height: 250px;
    }
    
    .floating-support-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .support-link {
        padding: 10px 14px;
        min-width: 120px;
        font-size: 13px;
    }
    
    .support-text {
        font-size: 13px;
    }
}