/* ==========================================================================
   赏帮赚 App 下载页自定义样式
   基于 Bootstrap 5，补充页面特有的样式与交互
   ========================================================================== */

/* 基础重置与全局样式 ----------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    background-color: #f1f3f5;
    color: #1a1a1a;
    /* 底部留出固定下载条与悬浮按钮的空间 */
    padding-bottom: 110px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 通用文字色 ------------------------------------------------------------- */
.color-99 { color: rgba(0, 0, 0, 0.6); }
.color-66 { color: rgba(0, 0, 0, 0.4); }
.color-slate-600 { color: #4b5563; }
.text-link-blue {
    color: #0a59f7;
    cursor: pointer;
    text-decoration: none;
}
.text-link-blue:hover { color: #0847c5; }

/* 星级评分色 ------------------------------------------------------------- */
.star-dark { color: #9ca3af; }
.star-light { color: #d1d5db; }
.star-yellow { color: #facc15; }

/* 隐藏滚动条 ------------------------------------------------------------- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 顶部毛玻璃导航 --------------------------------------------------------- */
.header-glass {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background-color: rgba(241, 243, 245, 0.68) !important;
    box-shadow: none !important;
}

/* 卡片样式 --------------------------------------------------------------- */
.app-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* App 图标与 logo 圆角 --------------------------------------------------- */
.icon-box {
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}
.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 截图横滑列表 ----------------------------------------------------------- */
.screenshot-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 1rem;
}
.screenshot-item {
    flex: 0 0 auto;
    width: 12.5rem;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
}
.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 评论卡片横滑 ----------------------------------------------------------- */
.review-list {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    margin-left: 0;
    padding: 0 1rem 0 0;
}
.review-card {
    flex: 0 0 auto;
    width: 20rem;
    text-align: left;
}

/* 数据收集图标盒 --------------------------------------------------------- */
.data-icon-box {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

/* 评分进度条 ------------------------------------------------------------- */
.rating-bar {
    flex: 1;
    height: 0.375rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.rating-bar > span {
    display: block;
    height: 100%;
    background: #6b7280;
    border-radius: 999px;
}

/* 底部固定下载按钮 ------------------------------------------------------- */
.download-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(86%, 520px);
    height: 52px;
    background: #0a59f7;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    z-index: 99;
    box-shadow: 0 8px 20px rgba(10, 89, 247, 0.32);
    transition: all 0.24s ease;
    border: none;
}
.download-btn:hover {
    background: #0847c5;
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 24px rgba(10, 89, 247, 0.38);
}
.download-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 6px 12px rgba(10, 89, 247, 0.26);
}

/* 右下角悬浮联系客服按钮 ------------------------------------------------- */
.contact-float {
    position: fixed;
    right: 1.25rem;
    bottom: 6.75rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.contact-float .contact-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #ffffff;
    color: #0a59f7;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-float .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 89, 247, 0.2);
}
.contact-float .contact-panel {
    width: 16rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 0.875rem 1rem;
    display: none;
}
.contact-float .contact-panel.show {
    display: block;
    animation: panelFadeIn 0.22s ease;
}
.download-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 200;
}
.download-modal.show {
    display: flex;
}
.download-dialog {
    width: min(92vw, 22rem);
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 1.25rem 1rem 1rem;
    position: relative;
    text-align: center;
}
.download-dialog .close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.1rem;
    cursor: pointer;
}
.download-dialog h3 {
    font-size: 1.1rem;
    margin: 0.25rem 0 0.75rem;
    color: #111827;
}
.download-dialog img {
    display: block;
    width: 11rem;
    height: 11rem;
    margin: 0 auto 0.75rem;
    object-fit: contain;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.25rem;
}
.download-dialog p {
    margin: 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.contact-panel .panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.contact-panel .panel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-size: 0.875rem;
    color: #4b5563;
    border-top: 1px solid #f1f3f5;
}
.contact-panel .panel-item:first-of-type { border-top: none; }
.contact-panel .panel-item i { color: #0a59f7; }

/* 页脚 ------------------------------------------------------------------- */
.footer-row {
    text-align: center;
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
}
.footer-row a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.footer-row a:active { color: #0a59f7; }

/* 响应式：小屏隐藏 PC 统计区，显示移动端统计区 --------------------------- */
.info-mobile { display: none; }
.info-pc { display: flex; }

@media (max-width: 639.98px) {
    .info-pc { display: none !important; }
    .info-mobile {
        display: flex !important;
        justify-content: space-around;
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    .download-btn {
        bottom: 1.25rem;
    }
    .contact-float {
        bottom: 5.75rem;
        right: 1rem;
    }
}

/* 大屏布局优化 ----------------------------------------------------------- */
@media (min-width: 1024px) {
    .screenshot-list {
        padding: 0 2rem;
    }
    .screenshot-item {
        width: 14rem;
    }
    .review-list {
        padding: 0 2rem 0 0;
    }
}

/* 章节分隔 ---------------------------------------------------------------- */
.section-block { margin-bottom: 1.5rem; }
.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 微调 Bootstrap 容器最大宽度 -------------------------------------------- */
.page-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .page-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .page-container { padding: 0 2rem; } }
