/* ==========================================================================
   QickQ 克隆站 /apps 页面 —— 自定义样式
   说明：apps.css 为目标站编译产物（Tailwind + 主题 + 组件 scoped 样式）原样保留；
   本文件只补充目标站编译产物未覆盖的部分：
     1) 页面底色      2) 二维码悬浮气泡      3) 右侧 Banner 轮播
     4) FAQ 手风琴    5) 安装说明弹窗        6) 移动端抽屉与遮罩
   加载顺序在 apps.css 之后，用于在同一优先级下覆盖工具类。
   ========================================================================== */

/* ---- 1. 页面底色（目标站 html 背景为纯黑） ---- */
html { background-color: #000; }

/* ---- 2. 二维码悬浮气泡（默认隐藏，hover 显示） ---- */
.qr-popup { display: none; }
.qr-popup.show { display: block; }

/* ---- 3. 右侧 Banner 轮播 ---- */
.apps-banner {
    position: relative;
    width: clamp(400px, 26.042vw, 500px);
    max-width: 100vw;
    height: clamp(400px, 26.042vw, 500px);
    overflow: hidden;
}
.apps-banner .banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.apps-banner .banner-slide.active { opacity: 1; }
.apps-banner .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- 4. FAQ 手风琴（覆盖 daisyUI .collapse 的 grid 折叠，改为简单显隐） ---- */
.apps-faq .collapse {
    display: block;
    border-radius: 0;
    overflow: visible;
}
.apps-faq .collapse-title {
    position: relative;
    padding-right: 2.5rem;
}
.apps-faq .collapse-title::after {
    content: "";
    position: absolute;
    right: .35rem;
    top: 50%;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s ease;
}
.apps-faq .collapse.open .collapse-title::after {
    transform: translateY(-30%) rotate(225deg);
}
.apps-faq .collapse-answer { display: none; }
.apps-faq .collapse.open .collapse-answer { display: block; }

/* ---- 5. 安装说明弹窗（结构复用工具类，仅负责显隐） ---- */
.install-modal { display: none; }
.install-modal.show { display: flex; }

/* ---- 6. 移动端抽屉与遮罩（JS 切换） ---- */
.mobile-drawer { display: none; }
.mobile-drawer.show { display: block; }
.mobile-drawer .drawer-mask { opacity: 0; }
.mobile-drawer.show .drawer-mask { opacity: 1; }
.mobile-drawer .drawer-panel { transform: translateX(100%); }
.mobile-drawer.show .drawer-panel { transform: translateX(0); }
.mobile-drawer .drawer-sub-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-drawer .drawer-sub.open .drawer-sub-body { max-height: 700px; }

/* ---- 7. 平台下载区：按平台切换显隐 ---- */
.platform-group { display: none; }
.platform-group.active { display: flex; }

/* ---- 8. 首屏加载层淡出 ---- */
#apps-loading { transition: opacity .3s ease; }
#apps-loading.is-hidden { opacity: 0; pointer-events: none; }

/* ---- 9. 无障碍：仅供读屏与搜索引擎识别的隐藏标题 ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- 10. 产品介绍（SEO 正文区） ---- */
.seo-content {
    color: #fff;
    background: linear-gradient(180deg, rgba(22, 119, 255, 0) 0%, rgba(22, 119, 255, .06) 100%);
}
.seo-inner {
    width: 91.6667%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 64px) 0;
}
.seo-content h2 {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 16px;
}
.seo-content h2:not(:first-child) {
    margin-top: clamp(28px, 3vw, 48px);
}
.seo-content p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .68);
    margin: 0 0 14px;
}
.seo-content a {
    color: var(--color-primary, #1677ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
}
.seo-card {
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color .2s ease, transform .2s ease;
}
.seo-card:hover {
    border-color: rgba(22, 119, 255, .6);
    transform: translateY(-2px);
}
.seo-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.seo-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}
@media (min-width: 768px) {
    .seo-inner { width: 83.3333%; }
    .seo-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
    .seo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 11. 首屏 H1 区 ---- */
.seo-hero {
    width: 100%;
    padding: clamp(26px, 4vw, 56px) 16px clamp(2px, 1vw, 10px);
    text-align: center;
    color: #fff;
}
.seo-hero h1 {
    margin: 0 auto;
    max-width: 1080px;
    font-size: clamp(24px, 3.4vw, 44px);
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}
.seo-hero h1 .seo-hl { color: var(--color-primary, #1677ff); }
.seo-hero-sub {
    max-width: 880px;
    margin: 14px auto 0;
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.9;
    color: rgba(255, 255, 255, .66);
}
.seo-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
}
.seo-hero-stats li {
    padding: 9px 14px;
    font-size: 12.5px;
    line-height: 1;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}

/* ---- 12. 正文：目录 / 列表 / 表格 / 小标题 ---- */
.seo-toc {
    margin: 26px 0 6px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}
.seo-content .seo-toc-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.seo-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.seo-toc li {
    margin: 0;
    list-style: none;
}
.seo-content .seo-toc a {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}
.seo-content .seo-toc a:hover {
    color: var(--color-primary, #1677ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.seo-content ul,
.seo-content ol {
    margin: 6px 0 18px;
    padding-left: 1.35rem;
}
.seo-content li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .68);
}
.seo-content ul > li { list-style: disc; }
.seo-content ol > li { list-style: decimal; }
.seo-content .seo-toc ul {
    margin: 0;
    padding-left: 0;
}
.seo-content .seo-toc li {
    margin: 0;
    list-style: none;
}
.seo-content .seo-inner > h3 {
    margin: 22px 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}
.seo-content strong {
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}
.seo-content .seo-note {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}
.seo-table-wrap {
    width: 100%;
    margin: 14px 0 12px;
    overflow-x: auto;
}
.seo-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
}
.seo-table thead th {
    padding: 11px 14px;
    color: #fff;
    font-weight: 600;
    text-align: left;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}
.seo-table tbody th,
.seo-table td {
    padding: 11px 14px;
    line-height: 1.7;
    text-align: left;
    color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .1);
}
.seo-table tbody th {
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .04);
}

/* ---- 13. 常见问题副标题 / 锚点滚动偏移 ---- */
.apps-faq .faq-sub {
    margin: 10px auto 18px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .6);
    text-align: center;
}
[data-v-b54eb528][id],
#download,
.seo-content h2[id],
.apps-faq {
    scroll-margin-top: 96px;
}
