/* 新站补充样式：替代 Element Plus 组件 + 新增页面。整体沿用 app.css / m.css / ranking.css 的视觉。 */

/* ---------- 字体：优先各平台的现代中文字体，标题不再用过粗的 bold ---------- */
html, body, button, input, textarea, select {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
        "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: .2px; }
.douban-title { font-weight: 600; }
.ranking-item-title, .listBox h3.ranking-item-title { font-weight: 500; color: #333; }
.listBox .left .list .item .title { font-weight: 500; }
.details .title { font-weight: 600; }
.listBox h3, .listBox .nav { font-weight: 600; }
.ranking-tab, .hot-sub-btn { font-weight: 500; }

button { font: inherit; color: inherit; background: none; cursor: pointer; }
[hidden] { display: none !important; }
.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; }

/* ---------- 顶部栏 ---------- */
.headerBox.header-fade .bg,
.headerBox.header-fade .logoBox,
.headerBox.header-fade .search { opacity: 0; transition: opacity .2s; }
.headerBox .box .search .btn { height: 40px; background: transparent; border: 0; }
.searchBox .search .btn { background: transparent; border: 0; height: 100%; }
.headerBox .box .navs .btns a { margin-left: 25px; }
.headerBox .box .logoBox .logo-hint { color: var(--theme-ink); opacity: .8; }

/* 首页 h1 包住 logo */
.home-h1 { margin: 0; font-size: inherit; font-weight: normal; }

/* ---------- 榜单：a 标签替代原 button ---------- */
a.ranking-tab, a.filter-option, a.hot-sub-btn, a.filter-reset-btn, a.pagination-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ranking-tab:hover, .filter-option:hover, .hot-sub-btn:hover { text-decoration: none; }
.ranking-content { position: relative; min-height: 200px; }
.ranking-grid.is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }
.pagination-info { white-space: nowrap; }

/* ---------- 面包屑 ---------- */
.crumbs { position: relative; z-index: 2; width: 1200px; max-width: calc(100% - 32px); margin: 16px auto 0; font-size: 13px; color: #999; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #c0c4cc; }
.crumbs a { color: #888; }
.crumbs a:hover { color: var(--theme-ink); }
.crumbs span { color: #666; }
.crumbs + .listBox, .crumbs + .homeBox { padding-top: 12px; }

/* ---------- 页脚 / 首页介绍 ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; font-size: 13px; }
.footer-links a { opacity: .75; }
.footer-links a:hover { opacity: 1; }
.site-intro { max-width: 900px; margin: 10px auto 40px; padding: 0 16px; text-align: center; font-size: 13px; line-height: 1.8; color: #999; }
.site-intro h2 { font-size: 15px; font-weight: 600; color: #888; margin-bottom: 4px; }
.site-intro-links a { margin: 0 6px; color: var(--theme-ink); }

/* ---------- 弹窗（替代 el-dialog） ---------- */
.modal { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 15vh 16px 40px; }
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); animation: fadeIn .2s; }
.modal-box { position: relative; max-width: 100%; padding: 30px 20px 20px; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); animation: dialogIn .25s ease; background-color: var(--theme-other_background); }
.modal-box.dialogUrlBox { width: 450px; border-radius: 18px; }
.modal-close { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; border: 0; font-size: 24px; line-height: 32px; color: #909399; background: none; }
.modal-close:hover { color: var(--theme-ink); }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(-16px); } }
.drawer .item, .drawer .btns a { display: block; padding: 12px 0; text-align: center; border-bottom: 1px solid #f2f2f2; cursor: pointer; }
.layerBox .el-textarea textarea { display: block; width: 100%; font: inherit; color: inherit; }
.layerBox .vbtn { width: 100%; border: 0; }

/* ---------- 轻提示（替代 ElMessage） ---------- */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2147483200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 8px; font-size: 14px; background: #f4f4f5; color: #606266; border: 1px solid #e9e9eb; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); animation: dialogIn .2s; max-width: 90vw; }
.toast.success { background: #f0f9eb; color: #67c23a; border-color: #e1f3d8; }
.toast.error { background: #fef0f0; color: #f56c6c; border-color: #fde2e2; }
.toast.warning { background: #fdf6ec; color: #e6a23c; border-color: #faecd8; }

/* ---------- 网盘选择菜单 ---------- */
.search-pan-menu { z-index: 50; }
.search-pan-option b { visibility: hidden; }
.search-pan-option.active b { visibility: visible; }

/* ---------- 搜索结果 ---------- */
.results-empty { padding: 50px 0 40px; text-align: center; color: #999; }
.results-empty-icon { font-size: 56px; opacity: .4; }
.results-empty-img { max-width: 200px; }
.alert-error { margin: 16px 0 0; padding: 12px; border-radius: 6px; text-align: center; font-weight: 600; color: #f56c6c; background: #fef0f0; }
.listBox .right .nav-icon { font-size: 18px; margin-right: 5px; }

/* ---------- 搜索加载动画：放大镜扫过资源卡片 + 百分比 + 轮播提示 ---------- */
.search-loading { padding: 28px 12px 24px; text-align: center; }
.sl-stage { position: relative; width: 220px; height: 84px; margin: 0 auto 18px; }
.sl-cards { display: flex; justify-content: space-between; height: 100%; }
.sl-cards i { position: relative; width: 62px; height: 84px; border-radius: 8px; overflow: hidden; background: #eef3f3; animation: slPop 1.8s ease-in-out infinite; }
.sl-cards i:nth-child(2) { animation-delay: .3s; }
.sl-cards i:nth-child(3) { animation-delay: .6s; }
.sl-cards i::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 40px; border-radius: 5px; background: #dde9ea; }
.sl-cards i::after { content: ""; position: absolute; left: 8px; right: 18px; bottom: 12px; height: 7px; border-radius: 4px; background: #dde9ea; box-shadow: 0 -12px 0 #dde9ea; }
.sl-cards i.found { background: rgba(91, 190, 194, .18); }
.sl-cards i.found::before { background: rgba(91, 190, 194, .55); }
.sl-glass { position: absolute; top: 14px; left: -6px; width: 46px; height: 46px; animation: slScan 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(47, 143, 148, .35)); }
.sl-glass svg { width: 100%; height: 100%; }
.sl-bar { position: relative; width: 260px; max-width: 80%; height: 6px; margin: 0 auto; border-radius: 6px; background: #e9eff0; overflow: hidden; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--theme-theme), var(--theme-ink)); transition: width .25s linear; }
.sl-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: slShine 1.4s linear infinite; }
.sl-text { margin-top: 12px; font-size: 13px; color: #888; display: flex; justify-content: center; gap: 8px; align-items: baseline; }
.sl-text b { color: var(--theme-ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3em; text-align: left; }
@keyframes slScan { 0%, 100% { transform: translateX(0) rotate(-8deg); } 50% { transform: translateX(176px) rotate(8deg); } }
@keyframes slPop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes slShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sl-glass, .sl-cards i, .sl-fill::after { animation: none; } }

/* ---------- 资源详情 ---------- */
.expire-tip { margin-top: 15px; padding: 12px 16px; background: #fff3e0; border-radius: 8px; color: #e65100; font-size: 13px; line-height: 1.6; text-align: center; }
.expire-tip a { display: inline-block; margin-top: 8px; padding: 6px 20px; background: var(--theme-theme); color: #fff; border-radius: 20px; }
.details .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.details .btns .btn { border: 0; }

/* ---------- 影片页（独立布局，不复用旧站 detailBox，避免被 m.css 隐藏标题） ---------- */
.film-wrap { position: relative; z-index: 2; width: 1000px; max-width: calc(100% - 32px); margin: 14px auto 40px; }
.film-card, .film-block { background: var(--theme-other_background); border-radius: 14px; box-shadow: 0 4px 14px rgba(200, 210, 215, .3); padding: 20px 22px; margin-bottom: 16px; }
.film-top { display: flex; gap: 18px; align-items: flex-start; }
.film-cover { flex: none; width: 120px; height: 180px; object-fit: cover; border-radius: 10px; background: #eef1f2; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.film-meta { flex: 1; min-width: 0; }
.film-title { margin: 2px 0 6px; font-size: 21px; font-weight: 600; line-height: 1.35; color: #222; }
.film-title small { margin-left: 6px; font-size: 14px; font-weight: 400; color: #999; }
.film-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; color: #999; font-size: 12px; }
.film-score b { font-size: 22px; font-weight: 600; color: #f5a623; }
.film-tags { font-size: 13px; color: #666; line-height: 1.7; }
.film-tags span + span::before { content: "·"; margin: 0 6px; color: #ccc; }
.film-quality { margin-top: 6px; }
.quality-tag { display: inline-block; margin-right: 6px; padding: 0 7px; font-size: 11px; line-height: 18px; border-radius: 4px; color: var(--theme-ink); border: 1px solid currentColor; }
.film-synopsis { margin-top: 14px; font-size: 13px; line-height: 1.75; color: #777; }
.film-synopsis p { margin: 0 0 4px; }
.film-synopsis.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.film-synopsis a { color: var(--theme-ink); }
.film-more { display: block; margin: 4px 0 0 auto; padding: 2px 0; border: 0; font-size: 12px; color: var(--theme-ink); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sec-title { position: relative; margin: 0; padding-left: 11px; font-size: 16px; font-weight: 600; color: #333; }
.sec-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--theme-theme); }
.pan-tabs { display: inline-flex; padding: 3px; border-radius: 20px; background: #f1f4f5; }
.pan-tabs button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border: 0; border-radius: 16px; font-size: 13px; color: #666; }
.pan-tabs button img { width: 16px; height: 16px; }
.pan-tabs button.active { background: #fff; color: var(--theme-ink); font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
/* 影片页的结果列表复用搜索页 .list .item 的样式 */
.film-res .Ebox { padding: 0; margin: 0; box-shadow: none; }
.film-res .list .item { position: relative; display: flex; padding: 16px 0; border-bottom: 1px dashed #eee; }
.film-res .list .item:last-child { border-bottom: 0; }
.film-res .list .item .title { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--theme-ink); }
.film-res .list .item .type { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: #999; }
.film-res .list .item .btns { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.film-res .list .item .btns .btn { display: inline-flex; align-items: center; gap: 4px; color: #555; }
.film-res .item-pic { flex: none; width: 60px; height: 84px; margin-right: 12px; border-radius: 6px; overflow: hidden; }
.film-res .item-pic img { width: 100%; height: 100%; object-fit: cover; }
.film-res .item-body { flex: 1; min-width: 0; }
.film-res .source-pan-icon { width: 14px; height: 14px; }
.film-res .Qbtn { text-align: center; font-size: 13px; color: #999; padding: 8px 0 0; }
.film-res .Qbtn span { color: var(--theme-ink); }
.film-rel .ranking-grid { margin: 12px 0 0; }
.film-noscript { padding: 20px; text-align: center; color: #999; }

/* ---------- 榜单页 ---------- */
.rank-page { padding-top: 10px; min-height: auto; }
.rank-page-title { font-size: 24px; font-weight: 600; margin-top: 10px; }
.rank-page-desc { max-width: 860px; margin: 6px auto 0; padding: 0 16px; font-size: 13px; color: #999; }
.rank-page .douban-ranking-container { margin-top: 20px; }

/* ---------- 分类页 ---------- */
.category-page .left { flex: 1; }
.category-page .left .box { min-height: 0; padding: 10px 20px; border-radius: 12px; background-color: var(--theme-other_background); }
.category-title { font-size: 20px; font-weight: 600; margin: 20px 0 12px; }
.category-title small { font-size: 13px; font-weight: normal; color: #999; }
.category-page .left .list .item { padding: 16px 0; border-bottom: 1px dashed #eee; }
.category-page .left .list .item .title { font-size: 16px; color: var(--theme-ink); }
.category-desc { margin: 6px 0; font-size: 13px; color: #888; line-height: 1.7; }
.category-meta { color: #aaa; margin-left: 4px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 20px 0 10px; }
.pager-item, .pager-gap { min-width: 34px; height: 34px; padding: 0 8px; line-height: 34px; text-align: center; border-radius: 6px; background: #f4f4f5; font-size: 14px; }
.pager-item.active { background: var(--theme-theme); color: #fff; }
.pager-gap { background: none; }

/* ---------- 404 ---------- */
.not-found .left { width: 100%; }
.not-found .box { padding: 60px 20px; border-radius: 12px; background-color: var(--theme-other_background); }
.not-found-links { margin-top: 16px; }
.not-found-links a { margin: 0 8px; color: var(--theme-ink); }

@media (max-width: 768px) {
    /* 手机顶部栏：旧版用 vw 单位，“返回首页”只有 2vw（约 7px），会被浏览器最小字号放大导致错位；改为固定像素 */
    .headerBox, .headerKox { height: 52px !important; }
    .headerBox .box { padding: 0 14px; }
    .headerBox .box .logoBox { flex-direction: row; align-items: center; gap: 8px; }
    .headerBox .box .logoBox .logo { height: 26px; }
    .headerBox .box .logoBox .title { margin-left: 6px; font-size: 15px; }
    .headerBox .box .logoBox .logo-hint { padding: 3px 8px; font-size: 11px; line-height: 1; border-radius: 10px; background: rgba(91, 190, 194, .14); opacity: 1; }
    .headerBox .box .navs .iconfont { font-size: 22px; }
    .headerBox .box .navs .nav-rank { display: none; }

    .crumbs { margin-top: 10px; font-size: 12px; }
    .modal { padding-top: 12vh; }
    .modal-box.dialogUrlBox { width: 92vw; }

    .film-wrap { max-width: calc(100% - 24px); margin-top: 10px; }
    .film-card, .film-block { padding: 14px; border-radius: 12px; margin-bottom: 12px; }
    .film-top { gap: 12px; }
    .film-cover { width: 92px; height: 138px; border-radius: 8px; }
    .film-title { font-size: 17px; }
    .film-title small { font-size: 12px; }
    .film-score b { font-size: 19px; }
    .film-tags { font-size: 12px; }
    .film-synopsis { margin-top: 10px; font-size: 12.5px; }
    .film-res .list .item .title { font-size: 14px; }
    .film-res .item-pic { width: 54px; height: 76px; }
    .sec-title { font-size: 15px; }
    .sl-stage { transform: scale(.85); margin-bottom: 10px; }

    .category-page { flex-direction: column; }
    /* 旧样式里 .left 是 width:0 + flex:1（靠横向排列撑开），竖排后会被压成一条，这里还原成自然宽度 */
    .category-page .left { width: auto; flex: none; }
    .category-page .right { width: auto; margin: 0 0 20px; }
    .rank-page-title { font-size: 20px; }
}
.sl-lens { fill: rgba(255, 255, 255, .55); stroke: var(--theme-ink); }
.sl-handle { stroke: var(--theme-ink); }

/* ---------- 跳转网盘前的离开提示 ---------- */
.leave-box { width: 440px; padding: 22px 22px 20px; border-radius: 16px; }
.leave-title { margin: 0 0 14px; font-size: 19px; font-weight: 600; color: #222; }
.leave-target { padding: 12px 14px; border-radius: 10px; background: #f3f5f6; }
.leave-target-label { font-size: 12px; color: #888; }
.leave-target-name { margin-top: 4px; font-size: 15px; font-weight: 500; color: #333; line-height: 1.5; word-break: break-all; }
.leave-notes { margin: 14px 0 18px; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: #666; }
.leave-notes li + li { margin-top: 6px; }
.leave-actions { display: flex; gap: 12px; }
.leave-cancel, .leave-go { height: 44px; border-radius: 10px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.leave-cancel { flex: 0 0 34%; border: 1px solid #e3e6e8; background: #fff; color: #555; }
.leave-go { flex: 1; background: var(--theme-theme); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(91, 190, 194, .35); }
.leave-go:hover { color: #fff; filter: brightness(.95); }
@media (max-width: 768px) {
    .leave-box { width: 92vw; padding: 18px 16px 16px; }
    .leave-title { font-size: 17px; }
}

/* 首页本身就是首页，不显示“返回首页” */
.page-home .headerBox .box .logoBox .logo-hint { display: none; }

/* 结果底部的深度搜索入口：故意做得很小，只给真正着急找的人 */
.deep-entry { padding: 14px 0 4px; text-align: center; }
.deep-entry button { border: 0; padding: 2px 4px; font-size: 12px; color: #b0b6ba; text-decoration: underline; text-underline-offset: 3px; }
.deep-entry button:hover { color: var(--theme-ink); }

/* 页码输入框：占位文字用浅色“页码”，不再显示当前页码以免被误以为是已输入的内容 */
.page-jump-input::placeholder { color: #c0c4cc; font-size: 12px; }

/* 返回顶部 */
.back-top { position: fixed; right: 18px; bottom: 28px; z-index: 1500; width: 42px; height: 42px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; background: var(--theme-theme);
    box-shadow: 0 6px 16px rgba(47, 143, 148, .35); animation: fadeIn .2s; }
.back-top:active { transform: scale(.92); }

/* 手机点击反馈：卡片和按钮按下时轻微缩小 */
@media (hover: none) {
    .ranking-item, .ranking-tab, .filter-option, .pagination-btn, .pan-tabs button, .listBox .left .list .item .btns .btn, .film-res .btns .btn, .leave-go, .leave-cancel { transition: transform .12s ease; }
    .ranking-item:active, .ranking-tab:active, .filter-option:active, .pagination-btn:active, .pan-tabs button:active,
    .listBox .left .list .item .btns .btn:active, .film-res .btns .btn:active, .leave-go:active, .leave-cancel:active { transform: scale(.96); }
    .ranking-item:hover { transform: none; }
}
@media (max-width: 768px) { .back-top { right: 14px; bottom: 22px; width: 40px; height: 40px; } }

/* ---------- A. 手机端顶部搜索 ---------- */
.nav-search { display: none; }
.m-search { display: none; }
@media (max-width: 768px) {
    .headerBox .box .navs .nav-search { margin-right: 18px; font-size: 21px; font-weight: normal; color: var(--theme-color); }
    /* 首页和搜索页本身就有大搜索框 */
    .page-home .headerBox .box .navs .nav-search, .page-search .headerBox .box .navs .nav-search { display: none; }
    .m-search { position: fixed; top: 52px; left: 0; right: 0; z-index: 2147482990; display: flex; align-items: center; gap: 10px;
        padding: 10px 14px; background: var(--theme-other_background); box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
        transform: translateY(-110%); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
    .m-search[hidden] { display: none !important; }
    .m-search.show { transform: none; opacity: 1; }
    .m-search-form { position: relative; flex: 1; display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; background: #f2f4f5; }
    .m-search-form .iconfont { font-size: 16px; color: #999; margin-right: 8px; }
    .m-search-form input { flex: 1; min-width: 0; height: 100%; font-size: 15px; background: transparent; color: var(--theme-color); }
    .m-search-cancel { flex: none; border: 0; font-size: 15px; color: var(--theme-ink); }
}

/* ---------- B. 手机端榜单“加载更多” ---------- */
.load-more { display: none; }
@media (max-width: 768px) {
    .douban-ranking-container .pagination-controls { display: none; }
    .load-more { display: block; width: 100%; height: 42px; margin: 6px 0 4px; border: 0; border-radius: 21px; font-size: 14px;
        color: var(--theme-ink); background: rgba(91, 190, 194, .12); }
    .load-more[hidden] { display: none; }
    .load-more:disabled { opacity: .6; }
}

/* ---------- C. 最近搜索 ---------- */
.recent-search { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; text-align: left; }
.recent-label { flex: none; color: #aaa; }
.recent-list { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.recent-list::-webkit-scrollbar { display: none; }
.recent-item { flex: none; max-width: 10em; padding: 3px 12px; border: 0; border-radius: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: #666; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.recent-item:hover { color: var(--theme-ink); }
.recent-clear { flex: none; border: 0; color: #bbb; font-size: 12px; }

/* ---------- E. 分享给好友 ---------- */
.Qbtn { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 0; border-radius: 12px; font-size: 12px;
    color: var(--theme-ink); background: rgba(91, 190, 194, .12); }

/* 搜索失败时的重新搜索按钮 */
.retry-btn { margin-top: 14px; padding: 8px 26px; border: 0; border-radius: 18px; font-size: 14px; color: #fff; background: var(--theme-theme);
    box-shadow: 0 4px 12px rgba(91, 190, 194, .3); }
.retry-btn:active { transform: scale(.96); }

/* 首页「维C泡腾」动效与声明小字 */
.home-hero { position: relative; }
.home-hero > .box { position: relative; z-index: 1; }
.vc-fizz { position: absolute; top: -68px; bottom: -28px; left: 0; width: 100%; height: calc(100% + 96px); z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.home-hero.fizz-on .vc-fizz { opacity: 1; }
.home-note { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; margin: 14px auto 0; font-size: 11.5px; line-height: 1.7; color: var(--theme-color); opacity: .36; letter-spacing: .3px; }
.home-note i { font-style: normal; opacity: .7; }
@media (max-width: 767px) {
    .vc-fizz { top: -6vw; left: -5vw; width: 100vw; height: calc(100% + 6vw + 20px); }
    .home-note { margin-top: 12px; font-size: 11px; padding: 0 4px; }
}
@media (max-width: 767px) {
    /* 每句固定一行：字号随屏宽缩小，避免手机放大字体后折出第三行 */
    .home-note { flex-direction: column; gap: 0; font-size: min(10px, 2.6vw); letter-spacing: 0; line-height: 1.6; opacity: .32; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    .home-note span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .home-note i { display: none; }
}

/* 右上角菜单：从右侧滑出的面板 */
.modal-sheet { padding: 0; align-items: stretch; justify-content: flex-end; overflow: hidden; }
.sheet { position: relative; display: flex; flex-direction: column; width: min(86vw, 340px); height: 100%; background: var(--theme-background, #fafafa); box-shadow: -12px 0 40px rgba(0, 0, 0, .12); animation: sheetIn .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes sheetIn { from { transform: translateX(100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; }
.sheet-brand img { display: block; height: 28px; width: auto; }
.sheet-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .04); display: grid; place-items: center; }
.sheet-close svg { width: 18px; height: 18px; stroke: #666; stroke-width: 2; stroke-linecap: round; fill: none; }
.sheet-close:active { transform: scale(.92); }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; }
.sheet-label { margin: 14px 2px 8px; font-size: 12px; color: #999; letter-spacing: .5px; }
.sheet-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-tiles a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--theme-other_background, #fff); color: var(--theme-color); font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); border: 1px solid transparent; transition: border-color .2s, transform .1s; }
.sheet-tiles .tile-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 17px; background: color-mix(in srgb, var(--theme-theme) 14%, #fff); }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chips a { padding: 6px 11px; border-radius: 999px; background: var(--theme-other_background, #fff); color: var(--theme-color); font-size: 13px; border: 1px solid #eee; transition: border-color .2s; }
.sheet-tiles a.active, .sheet-chips a.active { border-color: var(--theme-theme); color: var(--theme-ink); }
.sheet-tiles a:active, .sheet-chips a:active, .sheet-row:active { transform: scale(.97); }
.sheet-list { margin-top: 8px; border-radius: 14px; overflow: hidden; background: var(--theme-other_background, #fff); }
.sheet-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: var(--theme-color); }
.sheet-row + .sheet-row { border-top: 1px solid #f3f3f3; }
.sheet-row .row-ico { font-size: 18px; width: 24px; text-align: center; }
.sheet-row .row-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.sheet-row small { margin-top: 2px; font-size: 12px; color: #aaa; }
.sheet-row .row-arrow { width: 7px; height: 7px; border-top: 1.5px solid #ccc; border-right: 1.5px solid #ccc; transform: rotate(45deg); }
.sheet-extra { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-extra a { font-size: 13px; color: var(--theme-ink); }
.sheet-install { display: flex; align-items: center; gap: 12px; margin: 0 16px 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--theme-theme) 18%, #fff), color-mix(in srgb, var(--theme-theme) 6%, #fff)); }
.sheet-install[hidden] { display: none; }
.sheet-install img { border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.sheet-install .install-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--theme-color); }
.sheet-install small { margin-top: 2px; font-size: 12px; color: #888; }
.sheet-install .install-btn { padding: 7px 16px; border: 0; border-radius: 999px; background: var(--theme-theme); color: #fff; font-size: 13px; }
.sheet-install .install-btn:active { transform: scale(.95); }
.sheet-foot { display: flex; justify-content: center; gap: 16px; padding: 4px 16px 16px; font-size: 12px; }
.sheet-foot a { color: #aaa; }
@media (hover: hover) {
    .sheet-tiles a:hover, .sheet-chips a:hover { border-color: color-mix(in srgb, var(--theme-theme) 60%, #fff); }
    .sheet-row:hover { background: rgba(0, 0, 0, .02); }
}
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.film-src { font-size: 12px; color: #aaa; }
.film-src a { color: #999; text-decoration: underline; }

/* 人机验证弹窗 */
.verify-box { width: 340px; text-align: center; padding: 28px 22px 18px; }
.verify-title { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--theme-color); }
.verify-body { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #666; }
.verify-go { min-width: 160px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--theme-theme); color: #fff; font-size: 15px; }
.verify-go:disabled { opacity: .6; }
.verify-go:active { transform: scale(.97); }
.verify-ts { display: flex; justify-content: center; min-height: 70px; }
.verify-tip { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: #e6553a; }
@media (max-width: 767px) { .verify-box { width: 88vw; } }
