/* =========================================================
   SirenGirl — components.css
   Brand · navigation · search · cards · grid · player · toast
   ========================================================= */

/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    min-width: 0;
}

.brand__mark {
    flex: 0 0 auto;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(255, 77, 126, .28);
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand__name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.015em;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__sub {
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.brand--compact .brand__name { font-size: .95rem; }
.brand--compact { flex: 0 0 auto; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast),
                color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 77, 126, .26);
}

.btn--primary:hover { box-shadow: 0 8px 24px rgba(255, 77, 126, .38); }

.btn--ghost {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-dim);
}

.btn--ghost:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--sm { padding: 7px 13px; font-size: .79rem; }

/* ---------------------------------------------------------
   Google 登录按钮（Phase 8）
   --------------------------------------------------------- */
.btn--google {
    gap: 9px;
    background: #fff;
    border-color: #fff;
    color: #1f1f1f;
    font-weight: 650;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.btn--google:hover {
    background: #f1f3f4;
    border-color: #f1f3f4;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .36);
}

.btn-google__mark { flex: 0 0 auto; }

/* 授权说明（按钮下方的小字） */
.auth-note {
    margin-top: var(--sp-3);
    font-size: .76rem;
    line-height: 1.5;
    color: var(--text-mute);
    text-align: center;
    max-width: 38ch;
    margin-inline: auto;
}

/* 「或」分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-4) 0;
    font-size: .74rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}

/* ---------------------------------------------------------
   Icon buttons
   --------------------------------------------------------- */
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    color: var(--text-dim);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.icon-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

.icon-btn--sm {
    width: 32px;
    height: 32px;
    background: rgba(11, 13, 18, .6);
    border-color: var(--border);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 9px 11px;
    border-radius: var(--r-sm);
    color: var(--text-dim);
    font-size: .87rem;
    font-weight: 550;
    transition: background var(--t-fast), color var(--t-fast);
}

.nav__item:hover {
    background: var(--surface);
    color: var(--text);
}

.nav__item.is-active {
    background: linear-gradient(100deg, rgba(255, 77, 126, .18), rgba(122, 92, 255, .14));
    color: var(--text);
    font-weight: 700;
}

.nav__item.is-active::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: var(--r-pill);
    background: var(--brand-grad);
}

.nav__icon { display: grid; place-items: center; flex: 0 0 auto; }
.nav__label { flex: 1 1 auto; }

/* Phase 80：抽屉底部的次要导航（目前只有 About）—— 与主导航用分隔线隔开，
   字号/颜色降一级：它不属于主流程。 */
.nav--secondary {
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
}

.nav--secondary .nav__item {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-mute);
}

.nav--secondary .nav__item:hover { color: var(--text); }

/* ⚠ Phase 15f：.stat 已删除 —— 唯一使用者是播放覆层的统计行，那行已整体移除。 */

/* ---------------------------------------------------------
   Phase 12：.toolbar / .tabs / .tab / .filter-chip / .tag-chips 已删除。
   它们只服务于首页顶部那块筛选 UI，而那块 UI 已被整体移除。
   ⚠ .tag-chip（单数）**保留** —— 详情页仍用它做标签徽章，
     见 video-detail.php 的 tag-chip / tag-chip--muted / tag-chip--primary。
   --------------------------------------------------------- */
.tag-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text-dim);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.tag-chip:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

/* 选中态不只靠颜色：同时加粗边框 + 提亮文字 */
.tag-chip.is-active {
    border-color: var(--brand);
    background: rgba(255, 77, 126, .14);
    color: var(--text);
}

/* ---------------------------------------------------------
   Phase 68：首页分类筛选条（All / Live Action / Western / Japan & Korea / AI）
   ---------------------------------------------------------
   ⚠ 胶囊本身复用 .tag-chip（边框、圆角、hover、is-active 都在那儿定义），
     这里只负责「横向排列 + 换行 + 与网格的间距」。
   ⚠ 手机端允许横向滚动而不是挤成两行：
     5 个胶囊在 390 宽下大约 400px，换行会让网格明显下移。 */
.cat-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
    /* 细窄设备上横向滚动；隐藏滚动条避免破坏「无框」观感 */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cat-bar::-webkit-scrollbar {
    display: none;
}

/* 网格容器的 gap 已由 .video-grid 管；这里抵消 section 的默认纵向间距 */
.cat-bar + .video-grid {
    margin-top: 0;
}

/* 手机端：5 个胶囊在 390 宽下总宽 389px，比可用宽 366px 多出 23px
   ⇒ 最后一个（AI）会被挤出屏幕。三处一起收：
     内边距 13→10、字号 .78→.72rem、间距 8→6px，合计省约 33px。
   ⚠ 不要改成 flex-wrap: wrap —— 换行会把网格整体下推 33px，
     一屏能看到的行数直接少半行。 */
@media (max-width: 639px) {
    .cat-bar {
        gap: 6px;
    }

    .cat-bar .tag-chip {
        padding: 6px 10px;
        font-size: .72rem;
    }
}

/* ---------------------------------------------------------
   Phase 78：发现页「精选剧集」大海报轮播（一次一张，淡入淡出）
   ---------------------------------------------------------
   ⚠ 竖版海报（2:3）放大后两侧必然留白 ⇒ 用**同一张图**放大＋高斯模糊铺底，
     视觉上像一张通栏 banner，又不会把海报本身裁掉。
   ⚠ 只有 .is-active 那一张可见：visibility:hidden 让其余张不响应点击、
     不进无障碍树；JS 另外维护 aria-hidden 与 tabindex（Tab 不会走过 12 张）。
   --------------------------------------------------------- */
.hero-slider {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
}

.hero-slider__stage {
    position: relative;
    /* 用户反馈「太长」⇒ 压到 40vh（夹 280〜420px）：海报仍比网格卡片大，
       整个区块占高约 400px，网格不会被挤到第二屏 */
    height: clamp(280px, 40vh, 420px);
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    /* ⚠ 必须显式关掉命中测试：淡出中的那 0.55s 里旧图仍是 visibility:visible，
       而它盖在新图之上（DOM 更靠后）⇒ 点海报会点到上一张、打开错的剧。 */
    pointer-events: none;
    /* 显示：立即可见 + 淡入；隐藏：先淡出，动画结束才 visibility:hidden */
    transition: opacity .55s ease, visibility 0s linear .55s;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .55s ease, visibility 0s;
}

/* 海报**铺满**整个轮播（用户要求）：不再做模糊铺底 + 居中留白，
   而是让海报以 cover 方式填满舞台，超出部分裁掉。
   ⚠ 素材是 2:3 竖版、舞台是横条 ⇒ 必然裁切；用 object-position 把
     裁切重心放偏上（人脸/主体通常在画面上部），避免切到下半身。 */
.hero-slider__link {
    position: relative;
    display: block;
    height: 100%;
}

.hero-slider__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 26%;
}

/* 文字层：海报已经铺满，只好叠在它底部（左侧对齐、上方加长渐变保证可读） */
.hero-slider__copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
    /* 右侧留出箭头位置（箭头 right:10px / 宽 36px）*/
    padding: 64px 58px 14px 16px;
    background: linear-gradient(to top,
        rgba(6, 8, 13, .94) 0%,
        rgba(6, 8, 13, .66) 46%,
        rgba(6, 8, 13, 0) 100%);
    /* 文字层不吞点击：整块海报都该能点开播放（它是链接的子元素）*/
    pointer-events: none;
}

.hero-slider__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 52ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slider__meta {
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    font-weight: 600;
}

/* ---- ≥768px：字号放大 + 左右给两侧箭头再多让一点 ---- */
@media (min-width: 768px) {
    .hero-slider__copy {
        /* 左侧让出左箭头（left:10 / 宽 36）*/
        padding: 88px 76px 18px 60px;
    }

    .hero-slider__title {
        font-size: 1.3rem;
        line-height: 1.32;
    }

    .hero-slider__meta { font-size: .88rem; }
}

/* ---- 左右箭头（手机上隐藏 —— 直接左右滑）---- */
.hero-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(11, 13, 18, .72);
    color: var(--text);
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.hero-slider__nav:hover {
    background: rgba(30, 35, 49, .95);
    border-color: var(--text-mute);
}

.hero-slider__nav:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
}

.hero-slider__nav--prev { left: 10px; }
/* chevron 图标只有「向右」一种，左箭头转 180° */
.hero-slider__nav--prev svg { transform: rotate(180deg); }
.hero-slider__nav--next { right: 10px; }

/* ---- 底部圆点 ---- */
.hero-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    /* 舞台下方单独一行：压在标题上会挤成一团 */
    padding: 8px 12px 10px;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    /* 底下是模糊的海报余辉，对比度要比常规圆点高一点才看得见 */
    background: rgba(255, 255, 255, .44);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-slider__dot:hover { background: rgba(255, 255, 255, .72); }

/* 当前项变长条 + 品牌色，不只靠颜色区分 */
.hero-slider__dot.is-active {
    width: 22px;
    background: var(--brand);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .hero-slider__nav { display: none; }
    .hero-slider__stage { height: clamp(260px, 38vh, 340px); }
    .hero-slider__title { font-size: .86rem; }
    .hero-slider__meta { font-size: .72rem; }
    /* 手机上没箭头，右侧不用留位 */
    .hero-slider__copy { padding: 48px 16px 12px; }
}

/* 只有一张时（JS 会加 .is-static）⇒ 没有可切的，箭头/圆点都藏掉 */
.hero-slider.is-static .hero-slider__nav,
.hero-slider.is-static .hero-slider__dots { display: none; }

/* ---------------------------------------------------------
   Video grid + card
   --------------------------------------------------------- */
/* Phase 65：手机端改为 **3 列**（原 2 列，按运营要求）。
   ⚠ 390 视口下：可用宽 390-24(padding)=366，三列 + sp-2(8px) 间距
     ⇒ 每张卡片约 116px。
   ⚠ 间距必须同时从 sp-4(16px) 收紧到 sp-2：沿用 16px 的话卡片只剩 111px，
     标题两行截断会变得很难看。
   列数阶梯：<768 → 3、768 → 4、1024+ → 5。 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-2);
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

/* Phase 16s：视频卡改为**无外框**。
 *
 * ⚠ 原先是 .card 的 border + 圆角 + 背景把「海报 + 标题」圈在同一个框里。
 *   按要求改为：**框只包海报**，文字落在框外。
 *   ⇒ 卡片自身去掉边框 / 背景 / 圆角，圆角改挂到海报上；
 *     标题的左右内边距归零，与海报左右边缘对齐 —— 这是「在框外」的视觉表现。
 * ⚠ overflow 改回 visible：外框没了就不需要裁剪；
 *   海报自己的 overflow:hidden 仍然负责裁掉 hover 时的放大溢出。
 */
.video-card {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
}

/* ⚠ .card:hover 会加上边框高亮、位移与阴影 —— 视频卡已无框，
   必须显式关掉，否则 hover 时会「凭空长出一个框」。
   hover 反馈改由海报自身的轻微放大承担。 */
.video-card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.video-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Phase 16s：海报改 **3:4**（原 2:3）。
   ⚠ 源海报文件仍是 2:3（486×728），object-fit: cover 会裁掉约 11% 高度。
     若日后重新出图，目标比例应为 3:4（如 486×648）。 */
.video-card__thumb {
    --hue: 0deg;
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-2);
    border-radius: var(--r-lg);   /* 圆角从卡片下移到海报本身 */
}

.video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ⚠ Phase 16s：框改成 3:4 后比源图（2:3）更「宽」，
       cover 必须裁掉一部分高度。**默认居中裁切会把人物额头切掉**
       （竖版人像的主体通常偏上），因此把裁切重心上移：
       只从顶部裁约 2.5%，其余都从底部裁。
       ⚠ 这是视觉参数，不是可推导的值 —— 若换了海报风格要重新看一眼。 */
    object-position: center 25%;
    transition: transform var(--t-slow), filter var(--t-base);
}

/* ⚠ Phase 19 修色偏：hue-rotate **只给「没有海报」的回退占位图用**。
 *
 * 占位图 thumb-placeholder.svg 是一张**固定渐变**（#1b2b6b → #4a2f8f → #b83c78），
 * 自身不产生色相变化；卡片靠 --hue（来自 videos.thumb_hue）把它旋成不同颜色，
 * 让「没有海报的卡」彼此不撞色 —— 这正是 thumb_hue 那一列最初的用途。
 *
 * ⚠⚠ 但这条滤镜原先写在**通用**的 .video-card__img 上，于是真实海报也一起被转了。
 *   实测：剧集卡 #89 的 thumb_hue=325 ⇒ hue-rotate(325deg)，
 *   照片色相几乎转满一圈，颜色完全失真 —— 这就是「视频卡颜色不正常」的根因。
 *   真实海报必须**原样呈现**，不加任何滤镜（连那点 saturate(1.06) 也一并去掉）。
 */
.video-card__img--fallback {
    filter: hue-rotate(var(--hue)) saturate(1.06);
}

.card:hover .video-card__img { transform: scale(1.045); }

.video-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 16, .12) 0%, rgba(9, 11, 16, .05) 45%, rgba(9, 11, 16, .72) 100%);
}

.video-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(6, 8, 12, .82);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Phase 17：剧集卡的集数角标（如 "5 eps"）。
 *
 * 与 .video-card__duration 同形同位，但**故意不复用那个类名**：
 * 它承载的是集数而不是时长，混用会让日后「调时长样式」意外改到剧集卡，
 * 也会让「卡片为什么没有时长」变成一个要靠 grep 才能回答的问题。 */
.video-card__eps {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(6, 8, 12, .82);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.video-card__tag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .68rem;
    font-weight: 650;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.86);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 77, 126, .92);
    color: #fff;
    opacity: 0;
    transition: opacity var(--t-base), transform var(--t-base);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

.card:hover .video-card__play,
.video-card__link:focus-visible .video-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Phase 16s：左右内边距归零 —— 标题要与海报左右边缘对齐，
       这才是「文字在海报框之外」，而不是「卡片内的下半部分」。 */
    padding: var(--sp-2) 0 0;
    flex: 1 1 auto;
}

.video-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.36;
    min-height: 2.72em;
}

/* Phase 17：剧集卡标题下的补充行（如 "First 2 episodes free"）。
 * 仅剧集卡会渲染这一行；普通卡没有，因此普通卡在网格里会显得矮一行。 */
.video-card__series-meta {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-mute);
}

/* Phase 65：3 列后卡片只有约 117px 宽（390 视口）。
   按 .88rem 的标题每行只能放约 11 个字符，长标题会被截得很碎；
   降到 .8rem 可多显示 1~2 个字符，且 min-height 用的是 em，等高不会乱。
   ⚠ 只在 <768（也就是 3 列区间）生效，桌面端保持原字号。 */
@media (max-width: 767px) {
    .video-card__title {
        font-size: .8rem;
        letter-spacing: -.005em;
    }

    .video-card__series-meta {
        font-size: .68rem;
    }
}

/* Phase 12：.video-card__stats（播放量/点赞/时间）已按要求移除，
   对应 CSS 一并删除 —— 留着会变成无引用的死规则。 */

.video-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--t-base), transform var(--t-base);
}

.card:hover .video-card__actions,
.card:focus-within .video-card__actions {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    /* Phase 69：触屏设备上**不再常显播放键**。
       ⚠ 原来这里是 .video-card__play { opacity: 1 } —— 作者意图是「没有 hover
         就常显，提示可点播」。但在 3 列网格下（海报仅 117×156）那颗 40×40 的
         亮粉圆占掉 9% 海报面积、宽度占 34%，视觉噪音远大于提示价值。
         现在海报保持干净，靠「点一下就能播」的直觉；桌面端 hover / 键盘
         focus-visible 仍会显示。
       ⚠ 收藏按钮**继续常显**：它是需要精确点中的操作入口，藏起来反而找不到。 */
    .video-card__actions { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Saved（Phase 5B-5）—— 收藏按钮 + Saved 页 + 分页
   --------------------------------------------------------- */
.video-card__save-form { display: inline-flex; }

/* 图标 + 可见文字标签：状态不只靠图标/颜色表达 */
.video-card__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: 32px;
    padding: 0 9px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
}

.video-card__save-label { line-height: 1; }

/* 已保存：图标由描边 → 实心（形状差异）+ 描边加强，不单靠颜色区分 */
.video-card__save.is-saved {
    color: var(--text);
    border-color: var(--border-strong);
}

.video-card__save.is-saved svg { fill: currentColor; }

/* 分页（项目首个；保持最小、无 JS） */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--sp-5, 28px);
}

.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-dim);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.pagination__item:hover { background: var(--surface-2); color: var(--text); }

.pagination__item[aria-current="page"] {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-strong);
}

.pagination__item.is-disabled { opacity: .45; pointer-events: none; }
.pagination__gap { padding: 0 4px; color: var(--text-dim); }

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-7) var(--sp-4);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-mute);
    margin-bottom: var(--sp-1);
}

.empty-state__title { font-size: .98rem; font-weight: 700; }
.empty-state__text { font-size: .81rem; color: var(--text-mute); max-width: 40ch; }
.empty-state .btn { margin-top: var(--sp-2); }

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */
.toast-stack {
    position: fixed;
    left: 50%;
    bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: min(92vw, 420px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: 11px var(--sp-4);
    border-radius: var(--r-md);
    background: rgba(30, 35, 49, .96);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-3);
    color: var(--text);
    font-size: .81rem;
    animation: toast-in var(--t-base) both;
}

.toast.is-leaving { animation: toast-out var(--t-fast) both; }
.toast__icon { color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
.toast__body { min-width: 0; }
.toast__label { font-weight: 650; }
.toast__hint { font-size: .74rem; color: var(--text-mute); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

@keyframes toast-out {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(6px); }
}

/* =========================================================
   Breakpoint: 480px
   ========================================================= */
@media (min-width: 480px) {
    /* Phase 65：保持 3 列（原为 2 列）；屏幕宽了就把间距放回 sp-3 */
    .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
}

/* =========================================================
   Breakpoint: 768px
   ========================================================= */
@media (min-width: 768px) {
    .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
}

/* =========================================================
   Breakpoint: 1024px
   ========================================================= */
@media (min-width: 1024px) {
    .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* =========================================================
   Phase 14：原「Video 详情页」那一整块样式已删除。
   对应 partial（video-detail.php）已归档，?video= 现在路由层就是 404。
   被删掉的选择器：
     .video-detail / .video-detail__head|title|byline|stats|published
     .video-detail__primary|label|block|desc|desc--empty|actions
     .video-player / .video-player__media   ← 已由 .feed__stage / .feed__media 取代
     .video-hero / .video-hero__*           ← 无素材时的占位预览
   确认依据：这些类名在 app/ + assets/js/ + index.php 中均为 0 引用。

   ⚠ Phase 13 在这里修过的「舞台比例静态定死、消除 loadedmetadata 回流」
     并未丢失 —— 该机制已原样落在 feed.css 的 .feed__stage 上。
   ⚠ .video-card__scrim / __duration / __tag / __play 的 z-index 保留：
     卡片角标仍需要它。
   ========================================================= */

/* Phase 9：卡片内不再有 <video>（对齐 OnlyKiss 的静态海报墙），
   因此遮罩与角标不再需要与预览层竞争层级。 */
.video-card__scrim,
.video-card__duration,
.video-card__eps,
.video-card__tag,
.video-card__play { z-index: 2; }

/* B/C/D 区块（Hero 占位、Metadata、Description、Actions）
   原属 ?video= 详情页，已随该页一起删除。 */

/* C. Tag chips（覆层仍在使用 .tag-chip 单数，见 feed-player.js） */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-dim);
    font-size: .76rem;
    font-weight: 650;
    transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}

.tag-chip:hover {
    color: #fff;
    border-color: var(--brand);
    background: var(--surface-3);
}

@media (min-width: 768px) {
    /* Phase 14：原 .video-detail / .video-detail__title / .video-hero__play
       三条已随详情页删除（在 app/ + assets/js/ 中均为 0 引用）。 */
}

/* =========================================================
   Phase 5A-5 — 认证 UI（Auth）
   ⚠ 只新增认证相关 component；令牌全部复用 base.css；无 !important；无 inline style
   ========================================================= */

/* ---------- 顶栏认证入口 ---------- */
/* Phase 32：`.topbar .topbar__signin { display: inline-flex }` 已删 ——
   .btn 默认就是 inline-flex，且 layout.css 里那条 display:none 也一并删了，
   这条覆盖规则再无意义。 */

.btn.is-active {
    border-color: var(--border-strong);
    background: var(--surface-3);
    color: var(--text);
}

.btn--primary.is-active { box-shadow: 0 0 0 3px rgba(255, 77, 126, .22); }

/* =========================================================
   Phase 76 — 顶栏语言切换（GTranslate 组件，Sign in 左侧）
   ---------------------------------------------------------
   ⚠ 组件在运行时才往 <head> 追加规则，前缀是 .gt_container-<hash>
     （哈希由 wrapper 选择器算出，**不可硬编码**）。它那些规则的优先级
     达 (0,2,0)〜(0,4,1)，且**排在本文之后**，所以这里每条覆盖都统一带
     `.topbar .topbar__lang` 前缀（≥ (0,3,0)），靠优先级取胜：
     不依赖加载顺序，也不用 !important。
   ⚠ 只改「盒子」相关属性（宽度/内边距/圆角/定位），配色全部通过
     head.php 里的 gtranslateSettings 下发给组件，避免两处各写一套。
   ========================================================= */
.topbar .topbar__lang {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

/* 组件给的是固定 173px 宽 + Arial + line-height:0，在页眉里过宽、
   且 overflow:hidden 会把下拉面板裁掉。 */
.topbar .topbar__lang .gt_switcher {
    position: relative;
    width: auto;
    overflow: visible;
    font-family: inherit;
    font-size: .78rem;
    line-height: 1;
}

.topbar .topbar__lang .gt_switcher a {
    box-sizing: border-box;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ⚠ 收起态与下拉项**必须分开写 display**：组件原本靠 `.gt_switcher a{display:block}`
   让下拉项一条一行、撑出正确的 max-content 宽度。若在通用规则里改成
   inline-flex，10 个语言会排成一行（实测面板宽 1001px，右侧被切掉）。 */
.topbar .topbar__lang .gt_switcher .gt_selected {
    position: relative;
    /* 组件给这一层铺了白底渐变；胶囊的圆角会让它在四角露出来 ⇒ 清掉 */
    background: none;
}

.topbar .topbar__lang .gt_switcher .gt_selected a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    /* 国旗 24 + 上下 5 padding + 1px 边框 = 36px，与 Sign in 同高 */
    padding: 5px 30px 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.topbar .topbar__lang .gt_switcher .gt_selected a:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

/* 箭头是组件的 :after（背景是内联 data-URI 的箭头 svg）。
   ⚠ 这里**不要**写 transform —— 展开时的 180° 翻转是组件自己加的
     `.open::after{transform:rotate(-180deg)}`，写在这里会把它盖掉。 */
.topbar .topbar__lang .gt_switcher .gt_selected a::after {
    top: 50%;
    right: 10px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background-size: 11px;
}

/* 下拉面板：组件把 .gt_option 当成**文档流内的块**展开 ⇒ 会撑高固定高度
   的 .topbar（--topbar-h），把整行顶乱。改成绝对定位后它只覆盖、不占位。
   （高度/显隐仍由组件的内联 style 控制，这里不碰 height/display。） */
.topbar .topbar__lang .gt_switcher .gt_option {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    box-shadow: var(--shadow-2);
    z-index: 60;
}

.topbar .topbar__lang .gt_switcher .gt_option a {
    color: var(--text);
    /* 国旗 24 + 上下 3 padding = 30px —— 必须与组件的展开高度算法一致 */
    padding: 3px 12px 3px 10px;
    border-radius: var(--r-xs);
}

.topbar .topbar__lang .gt_switcher .gt_option a:hover {
    background: var(--surface-3);
}

/* ≤359px（iPhone SE 一代这类窄屏）：第二行放不下「☰ + 国旗+语言名 + Sign in」，
   ☰ 会被挤到第三行（实测顶栏 97 → 141px）。此宽度下语言键退化成「只有国旗」
   的图标按钮（下拉列表里仍带语言名）—— 功能不丢，只是收起态省掉文字。 */
@media (max-width: 359px) {
    .topbar .topbar__lang .gt_switcher .gt_selected a {
        gap: 0;
        padding: 5px 24px 5px 8px;
        /* 0 号字让文本节点塌陷；国旗是 <img>，尺寸不受影响 */
        font-size: 0;
    }
}

.topbar__user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 150px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-dim);
    font-size: .82rem;
}

/* Phase 48：用户名现在是通往账户页的链接 */
.topbar__user--link {
    text-decoration: none;
    color: var(--text-dim);
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.topbar__user--link:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--surface-2);
}

.topbar__user--link:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
}

/* 停在账户页时给一点存在感（与导航高亮同一套色） */
.topbar__user--link.is-active {
    border-color: var(--border-strong);
    color: var(--text);
}

.topbar__user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__logout {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 479px) {
    .topbar__actions { gap: 6px; min-width: 0; }
    .topbar__actions .btn { padding: 7px 11px; font-size: .75rem; }
    .topbar__user { max-width: 96px; }
}

/* ---------- 认证页卡片 ---------- */
.auth {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: var(--sp-5);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}

.auth-status {
    display: inline-block;
    margin: 0 0 var(--sp-3);
    padding: 3px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    color: var(--text-mute);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.auth-card__title {
    margin: 0 0 var(--sp-2);
    font-size: 1.4rem;
    line-height: 1.25;
}

.auth-card__lead {
    margin: 0 0 var(--sp-4);
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.55;
}

.auth-card__alt {
    margin: var(--sp-5) 0 0;
    color: var(--text-dim);
    font-size: .86rem;
}

.auth-card__meta {
    margin: var(--sp-3) 0 0;
    color: var(--text-mute);
    font-size: .76rem;
    line-height: 1.5;
}

.auth-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: var(--sp-4) 0 0;
}

/* 链接：始终带下划线 —— 不依赖颜色单独传达"这是链接" */
.auth-link,
.auth-card__alt a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(255, 77, 126, .45);
    text-underline-offset: 2px;
}

.auth-link:hover,
.auth-card__alt a:hover {
    text-decoration-color: currentColor;
}

/* ---------- Flash / 错误提示 ---------- */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 var(--sp-4);
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-left-width: 3px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: .86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.auth-alert__icon {
    flex: 0 0 auto;
    margin-top: 2px;
}

.auth-alert__text {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-alert--error {
    border-color: rgba(255, 77, 126, .40);
    border-left-color: var(--brand);
    background: rgba(255, 77, 126, .10);
}

.auth-alert--success {
    border-color: rgba(52, 211, 153, .40);
    border-left-color: var(--success);
    background: rgba(52, 211, 153, .10);
}

.auth-alert--info {
    border-color: rgba(34, 211, 238, .35);
    border-left-color: var(--accent);
    background: rgba(34, 211, 238, .08);
}

/* ---------- 收银台回跳：到账确认面板（Phase 71） ----------
   ⚠ 视觉语言沿用 .auth-alert：它和 Flash 提示出现在同一个位置、
     承担同一种职责（告诉用户「刚才那一步发生了什么」）。
   ⚠ is-pending / is-paid 由 JS 切换；无 JS 时保持 is-pending 的静态文案，
     不会出现「一直是转圈但什么也不说」的状态。 */
.pay-return {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--sp-4);
    padding: 10px 12px;
    border: 1px solid rgba(34, 211, 238, .35);
    border-left-width: 3px;
    border-left-color: var(--accent);
    border-radius: var(--r-sm);
    background: rgba(34, 211, 238, .08);
    color: var(--text);
    font-size: .86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pay-return__text {
    flex: 1 1 auto;
    min-width: 0;
}

.pay-return__balance {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.pay-return__spinner {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(34, 211, 238, .30);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: sg-pay-return-spin .9s linear infinite;
}

/* 已到账：换成成功配色并停掉转圈 */
.pay-return.is-paid {
    border-color: rgba(52, 211, 153, .40);
    border-left-color: var(--success);
    background: rgba(52, 211, 153, .10);
}

.pay-return.is-paid .pay-return__spinner {
    animation: none;
    border-color: var(--success);
    border-top-color: var(--success);
}

@keyframes sg-pay-return-spin {
    to { transform: rotate(360deg); }
}

/* 尊重「减少动态效果」偏好：不转圈，但状态文字照常更新 */
@media (prefers-reduced-motion: reduce) {
    .pay-return__spinner {
        animation: none;
    }
}

/* ---------- 表单 ---------- */
.auth-form {
    display: grid;
    gap: var(--sp-4);
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field__label {
    color: var(--text-dim);
    font-size: .8rem;
    font-weight: 600;
}

.auth-field__input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    font-size: .92rem;
}

/* ⚠ 刻意**不写** outline: none —— 那会以更高特指度覆盖 base.css 的全局
   :focus-visible，使键盘用户失去可见焦点。此处只增强边框与光晕。 */
.auth-field__input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 77, 126, .18);
}

.auth-field__hint {
    color: var(--text-mute);
    font-size: .76rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.auth-form__submit {
    width: 100%;
    justify-content: center;
}

@media (min-width: 480px) {
    .auth-card { padding: var(--sp-6); }
}

/* ---------------------------------------------------------
   Store / Pricing（Phase 7）
   ---------------------------------------------------------
   Phase 17：标题「Store」已移除，页面从宣传卡直接开始，
   因此竖向节奏重新排过：
     宣传卡 ↑16px（避开固定页眉）→ 24px → 分组标题 → 16px → 卡片
   用 row-gap 而不是给每个子元素加 margin，保证将来增删区块时不会累积空隙。
   ⚠ Phase 18：padding-top 归零 —— 外层 .app-main 已有 16px 上内边距，
     这里再叠 16px 会让顶栏到 banner 之间出现一条 32px 的空带（移动端尤其明显）。 */
.store { display: flex; flex-direction: column; gap: var(--sp-5); padding-top: 0; }

/* 第一个子元素与页眉之间再留一点，避免宣传卡贴住固定顶栏 */
.store > :first-child { margin-top: 0; }

/* 分组标题与上方区块拉开一档 */
.store .store-group__title { margin: var(--sp-2) 0 0; }

/* A. 信任栏 —— ⚠ Phase 16w：**已整体删除**。
   .store-highlights / __item / __value / __label 共 4 条规则一并移除，
   避免留下无引用的死规则（与 Phase 16v 删除 .pack-* 的做法一致）。 */

/* B. 钱包 */
.wallet {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding: var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.wallet__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--brand);
}

.wallet__stats { display: flex; gap: var(--sp-6); margin: 0; min-width: 0; }
.wallet__stat { min-width: 0; }

.wallet__stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-mute);
}

.wallet__stat-value {
    margin: 2px 0 0;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
}

.wallet__hint { flex: 1 1 100%; margin: 0; font-size: .81rem; color: var(--text-mute); }
.wallet__text { flex: 1 1 auto; margin: 0; font-size: .86rem; color: var(--text-dim); }
.wallet--guest { border-style: dashed; }

/* C/D. 分组 */
.store-group { display: flex; flex-direction: column; gap: var(--sp-4); }

.store-group__title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* C. 套餐卡 —— ⚠ Phase 16v：**已整体删除**（定价页只保留一次性充值）。
   .pack-grid / .pack-card* 共 20 余条规则一并移除，避免留下无引用的死规则。 */

/* D. 一次性充值 —— ⚠ Phase 16w：改为**纵向排列**（每行一张满宽卡）。
   ── 卡片内部两行：
        row 1  点数 ······· 价格   （价格用 margin-left:auto 推到行尾）
        row 2  满宽 CTA
   ── 用 flex-wrap + flex:1 1 100% 让 CTA 独占第二行，
      这样 partial 里的标签结构一个字都不用改
      （CTA 的三种状态分别是 <form class="pricing-cta">、
        直接就是 .pricing-cta__btn 的 <a>、以及 disabled 的 <button>）。
   ── max-width:560px：桌面断点下 .page 内容区可宽达 1400px，
      不加限制的话一行卡会横跨整个屏幕，价格与点数相隔过远。 */
.topup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-2);
    max-width: 560px;
}

/* Phase 81：充值卡下方的信任徽章图（Trusted Store）。
   ⚠ 宽度与 .topup-grid 对齐（560），否则在大屏上会单独拉满整屏。
   ⚠ 容器**不加**底/边框/圆角：图片的黑底已经抠成透明
      （site-tools/sirengirl/alpha-trust.php，连通域填充，卡内黑色文字不受影响），
      让它直接浮在页面背景上 —— 定价页背景是带渐变的，任何实色块都会在某个
      滚动位置对不上，只有透明才能真正「融为一体」。 */
.store-trust {
    margin: var(--sp-3) 0 0;
    max-width: 560px;
}

.store-trust__img {
    display: block;
    width: 100%;
    height: auto;
}

.topup-card {
    display: flex;
    flex-wrap: wrap;
    /* Phase 18：baseline → center。
       数字放大到与宝石等高后，baseline 对齐会让宝石底边比数字基线低约 5px（看得出的错位）；
       改成 center 后两者共用同一条水平中线，实测偏差 < 1px。 */
    align-items: center;
    column-gap: var(--sp-2);
    row-gap: var(--sp-3);
    padding: var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: border-color var(--t-fast);
}

/* ⚠ 纵向列表里不再做 translateY(-2px)：整行上浮看起来像"抖动" */
.topup-card:hover { border-color: var(--border-strong); }

.topup-card__credits {
    /* Phase 17：数字列对齐 —— 30 / 150 / 500 宽度不同，宝石图标会各自跑位。
       给数字一个 3 字符的固定最小宽度 + 右对齐 + 等宽数字，
       这样三张卡片的数字右边缘和宝石图标的左边缘都在同一竖线上。
       （右对齐 = 多出来的空白落在数字**左侧**，数字到宝石的间距恒定。） */
    min-width: 3ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    /* Phase 18：字号与宝石对齐。
       实测本机等宽字体的数字字高 ≈ 0.625em（22.4px 字号 → 字高 14px），
       要让数字看起来和 26px 的宝石一样高，字号需要 26 ÷ 0.625 ≈ 41.6px = 2.6rem。
       ⚠ 行高压到 1，避免放大后给卡片塞进多余的行距。
       ⚠ 垂直对齐交给 .topup-card 的 align-items: center（与宝石同中线），
         不要再改回 baseline —— 那会让宝石整体下沉。 */
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.topup-card__unit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    color: var(--text-mute);
}

/* Phase 17：credits 文字 → 宝石图标
   ⚠ Phase 18：换成写实宝石 gem.webp 后，22px 下细节糊成一团，
     放大到 26px；因为图片是正方形、钻石本身撑满画布，
     放大后仍然与右侧价格列基线对齐（align-items: baseline 由 .topup-card 控制）。 */
.topup-card__gem {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.topup-card__price {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
}

.topup-card .pricing-cta,
.topup-card .pricing-cta__btn {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0;
}

/* E. CTA */
.pricing-cta { margin-top: auto; }
.pricing-cta__btn { width: 100%; justify-content: center; gap: 7px; }

/* F. 订单历史 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-3);
    padding: 10px var(--sp-3);
    border-radius: var(--r-md);
    background: var(--surface);
}

.order-row__icon { display: grid; place-items: center; color: var(--text-mute); }

.order-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-row__name { font-size: .86rem; font-weight: 700; }

.order-row__meta {
    font-size: .73rem;
    color: var(--text-mute);
    overflow-wrap: anywhere;
}

.order-row__status {
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.order-row__status--pending    { color: var(--text-dim); }
.order-row__status--paid       { background: rgba(84, 214, 154, .16); color: #6fe0af; }
.order-row__status--failed     { background: rgba(255, 77, 126, .16); color: #ff8098; }
.order-row__status--cancelled  { color: var(--text-mute); }
.order-row__status--refunded   { color: var(--text-dim); }

/* G. 说明 —— ⚠ Phase 17：**已整体删除**（页面不再渲染 .store-notes）。
   .store-notes / .store-notes__item / .store-notes__item::before 三条规则一并移除，
   避免留下无引用的死规则（与删除 .pack-* / .store-highlights 的做法一致）。 */

@media (min-width: 720px) {
    .store-group__title { font-size: 1.1rem; }
}

/* ---------------------------------------------------------
   Phase 17：Store 页配色 —— 参考 OnlyKiss Pricing
   ---------------------------------------------------------
   取值来源（2026-10-25 实测 onlykiss.tv/pricing 的计算样式）：
     · 玻璃卡面   rgba(37, 38, 49, .43)
     · VIP 卡      linear-gradient(rgba(96,127,255,.19), rgba(53,0,177,.19))
                   border rgba(136, 201, 255, .50)
     · SVIP 卡     linear-gradient(107deg, rgba(168,142,246,.19), rgba(218,101,248,.19))
                   border rgba(224, 184, 255, .50)
     · 主文字     #ffffff / #fafaf7      · 卡圆角 17px
     · 强调色     冰蓝 #caefff / 粉紫 #fec4ec
   ⚠ 全部规则挂在 .store 作用域下：站点其它页面的 --brand 粉色主色**保持不变**，
     不会因为这次改动整站变调。
   ⚠ 只借「配色关系」，不引用 OnlyKiss 的任何图片资源。 */
.store {
    --ok-glass:       rgba(37, 38, 49, .43);
    --ok-line-blue:   rgba(136, 201, 255, .50);
    --ok-line-violet: rgba(224, 184, 255, .50);
    --ok-grad-blue:   linear-gradient(rgba(96, 127, 255, .19), rgba(53, 0, 177, .19));
    --ok-grad-violet: linear-gradient(107deg, rgba(168, 142, 246, .19) 12%, rgba(218, 101, 248, .19) 88%);
    --ok-ice:         #caefff;
    --ok-pink:        #fec4ec;
    --ok-r:           17px;
}

/* 0. Hero banner（参考 OnlyKiss 顶部宣传卡）
   ── OnlyKiss 那边整张卡片是一张 350×144 的合成图（人是图里的），
      这里改用「渐变底 + 背景图槽位」实现：
      第 1 层 url() = 人物图，第 2/3 层 = 光晕与基底渐变。
   ── ⚠ 图片层放在最上面；文件缺失时浏览器只忽略该层，
      底下的渐变照常显示，因此不会出现破图。 */
.store-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 350 / 144;
    /* 桌面端列宽 760 时，按 350:144 算会撑到 313px 高，太占首屏；
       封顶 260px，图片用 cover 自动重裁。 */
    max-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background-color: #120a18;
    background-image:
        radial-gradient(110% 140% at 82% 50%, rgba(122, 92, 255, .30) 0%, rgba(122, 92, 255, 0) 62%),
        linear-gradient(100deg, #241229 0%, #150c1d 62%, #0d0713 100%);
    background-repeat: no-repeat;
    background-size: cover, cover;
    background-position: center, center;
}

/* 右侧人物图。
   ⚠ 用 ::after 而不是直接给 .store-hero 加背景层：
     遮罩（mask）会作用于元素的所有背景层，写成伪元素才能只蒙住图片、
     不影响卡片自己的渐变底。
   ⚠ 左侧 26% 做透明渐变遮罩，让人物边缘与卡面自然融合；
     上下各留 12% 的淡出，这样**白底照片**也不会在卡面上留下生硬的白边。
   ⚠ 文件不存在时该层仅仅没有图像，**不会出现破图图标**。 */
.store-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52%;
    pointer-events: none;
    /* ?v=2：图片已换成「背景图.png」转出的 webp（900×1080，带 alpha），
       加版本号是为了让浏览器丢掉旧 banner.webp 的缓存。 */
    background-image: url('/assets/img/banner.webp?v=2');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 12%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 26%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0%, #000 26%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.store-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 60%;
    padding-inline: clamp(18px, 6.5vw, 26px);
}

.store-hero__line {
    margin: 0;
    font-size: clamp(15px, 4.9vw, 19px);
    line-height: 1.1;
    font-weight: 500;
    color: #fff;
}

/* 数字：OnlyKiss 用 上青下蓝 的渐变字（#30cdf9 → #406cff），字重 800 */
.store-hero__num {
    margin-inline-end: 3px;
    font-size: 1.14em;
    font-weight: 800;
    background-image: linear-gradient(180deg, #30cdf9 0%, #406cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.store-hero__lock {
    display: inline-flex;
    margin-inline-start: 3px;
    vertical-align: -3px;
    color: #fff;
}

/* ---------------------------------------------------------
   Phase 17：标题删除后的排版
   ---------------------------------------------------------
   删掉「Store」标题后，页面上只剩 banner / 充值卡 / 钱包卡三块。
   ⚠ 原先三块宽度各不相同（banner 420、充值卡 560、钱包卡满宽 1180），
     没有标题压顶时看起来就是三块参差的豆腐块，所以这里统一收成一列并居中。
   ⚠ max-width 用 760px：桌面端仍在舒适阅读宽度内；
     移动端（< 760）不受影响，依旧是满宽。 */
.store {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

/* 两块内容型卡片的内部宽度限制不再单独生效，改为跟随列宽 */
.store .store-hero { max-width: none; }
.store .topup-grid { max-width: none; }

/* 钱包卡 → 玻璃质感 + 彩色边框 */
.store .wallet {
    border-color: var(--ok-line-blue);
    border-radius: var(--ok-r);
    background: var(--ok-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.store .wallet--guest { border-color: var(--ok-line-violet); }
.store .wallet__icon { background: rgba(255, 255, 255, .08); }
/* Phase 32：color 已删 —— 钱包图标已换成 gem.webp（<img>），
   父级 color 对位图没有任何作用。 */
.store .wallet__stat-value { color: #fff; }

/* Phase 25：钱包图标改成钻石图片（与充值卡同一颗 gem.webp）。
   外层 40×40 圆角方块不动，只把里面的图标换成 24px 图片。 */
.store .wallet__icon-gem {
    display: block;
    width: 24px;
    height: 24px;
}

/* 参考 OnlyKiss：卡片用**实线细边框**，不再用虚线。
   OnlyKiss 全站没有虚线框，虚线的"占位感"在玻璃卡上显得廉价。 */
.store .wallet--guest { border-style: solid; }

/* 未登录态布局：图标 + 文案占第一行，按钮**下移到第二行**（左对齐）。
   ⚠ 用 grid 而不是 flex-wrap 强推换行：
     flex 下想让按钮独占一行，只能给它 flex-basis:100%，
     那样按钮会被拉成满宽，不是这里想要的效果。
   ⚠ 只作用于 .wallet--guest：登录态（含 .wallet__stats）仍用原来的 flex，
     否则 dl 会被塞进 40px 的第一列。 */
.store .wallet--guest {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-3) 14px;
}

.store .wallet--guest .wallet__text { grid-column: 2; min-width: 0; }

.store .wallet--guest .btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 2px;
}

/* 登录态保持原有的横向 flex 排布 */
.store .wallet__text { flex: 1 1 140px; min-width: 0; }

/* 充值卡 → 蓝 / 紫交替渐变（对应 OnlyKiss 的 VIP / SVIP 两档视觉）
   ⚠ Phase 20：用户要求「三张卡片都要有 VIP 的背景」，
     因此卡面默认统一为蓝调 VIP；**但第 2 张保留紫罗兰 SVIP**（用户后续确认要恢复），
     实际效果是蓝 / 紫 / 蓝。
     同时补上 position / isolation / overflow，给下面的渐变文字水印做容器。 */
.store .topup-card {
    position: relative;
    isolation: isolate;   /* 让 z-index:-1 的水印只沉到本卡片内部，不会钻到底层背景之后 */
    overflow: hidden;
    border-color: var(--ok-line-blue);
    border-radius: var(--ok-r);
    background: var(--ok-grad-blue);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.store .topup-card__credits { color: #fff; }
/* Phase 32：`.store .topup-card__price { color: var(--ok-ice) }` 已删 ——
   Phase 19 的同名规则（白色 + 1.15rem）在后面覆盖了它，这条颜色永远不生效。 */

/* 第 2 张卡片：紫罗兰 SVIP 卡面（Phase 20 保留）
   ⚠ Phase 21：用户要求「加强紫色光晕」——
     · 第 1 层 radial-gradient 是卡片内部的紫色晕光（落在右上角，
       正好托住 VIP 水印与价格，和 onlykiss 卡面上的 glow 层作用一致）
     · box-shadow 是卡外的柔和紫雾，让这张卡在黑底上「发光」，
       与左右两张蓝卡拉开层级
     两层都用 rgba 叠加，不改动 --ok-grad-violet 这个取自 onlykiss 的基准色。 */
.store .topup-card:nth-child(even) {
    border-color: var(--ok-line-violet);
    background:
        radial-gradient(120% 190% at 84% -18%, rgba(180, 74, 251, .40) 0%, rgba(180, 74, 251, 0) 62%),
        var(--ok-grad-violet);
    box-shadow:
        0 0 0 1px rgba(224, 184, 255, .10),
        0 8px 32px rgba(160, 70, 240, .22);
}

/* hover：原来的 --border-strong 是白灰，在彩色边框上看不出变化，改用强调色 */
.store .topup-card:hover { border-color: var(--ok-ice); }
.store .topup-card:nth-child(even):hover {
    border-color: var(--ok-pink);
    box-shadow:
        0 0 0 1px rgba(224, 184, 255, .20),
        0 10px 40px rgba(180, 74, 251, .34);
}

/* 页面顶部光晕 —— ⚠ Phase 18：**已删除**（用户要求「不要有一层雾的感觉」）。
   原规则 .store::before 是一层 340px 高的蓝紫径向渐变，铺在 banner / 卡片后面，
   视觉上就是顶栏下方那条发雾的横带；配合卡片的 backdrop-filter 更是糊成一片。
   一并去掉 .store 的 position:relative / isolation:isolate —— 它们只为这层伪元素服务，
   留着就是无用声明。 */

/* Phase 17：原「Store」标题已删除，.store .section__title 的渐变字规则随之移除
   （不然就是一条永远匹配不到元素的死规则）。 */

/* CTA → OnlyKiss 的蓝紫渐变（只覆盖 Store 内的 .btn--primary，
   站内其它按钮仍是品牌粉） */
.store .pricing-cta__btn.btn--primary {
    background: linear-gradient(112deg, #4355f4 0%, #5089f3 100%);
    box-shadow: 0 6px 20px rgba(80, 137, 243, .32);
}

.store .pricing-cta__btn.btn--primary:hover {
    box-shadow: 0 8px 26px rgba(80, 137, 243, .46);
    filter: brightness(1.06);
}

/* 未登录时的 ghost 按钮：在彩色卡面上用纯 --surface-2 会显脏，改半透明白 */
.store .topup-card .pricing-cta__btn.btn--ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.store .topup-card .pricing-cta__btn.btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

/* ---------------------------------------------------------
   Phase 19：Pricing 页整体氛围对齐 onlykiss.tv/pricing
   ---------------------------------------------------------
   参考点（2026-10-25 实测 onlykiss.tv/pricing 的版式层级）：
     · 内容列极窄（桌面约 350px），两侧是大片黑，视线集中在卡片本身
     · 分组标题只是 13–14px 的普通白字，不是大号粗体
     · 卡片里的价格用白色粗体，不靠强调色区分
     · 卡片底部有一条发丝线，动作（Buy）是线上的白色粗体文字，
       而不是一整块填充按钮
   ⚠ 只借版式与层级关系，不复制对方的任何图片 / 文案 / 代码。
   ⚠ Phase 18「不要雾」的结论保持不变：这里不加任何背景光晕。 */
.store { max-width: 560px; }

.store .store-group__title {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fafaf7;
}

.store .topup-card__price {
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: .01em;
}

/* VIP 水印 —— 参考 onlykiss 卡片里那层大字：800 字重、渐变色文字、透明度极低
   （实测 onlykiss 是 background-clip:text 的渐变字，z-index:-1 沉在内容下面）
   ⚠ Phase 24：按用户要求从「右上角小字」改为「卡片居中大字」——
     用 top/left 50% + translate 居中，字号 clamp(72px, 22vw, 112px)；
     仍用 z-index:-1，所以只会在数字/价格/发丝线底下当底纹，不影响可读性。 */
.store .topup-card__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    font-family: var(--font-sans);
    font-size: clamp(72px, 22vw, 112px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    pointer-events: none;
    user-select: none;
    background-image: linear-gradient(rgba(77, 127, 243, .18), rgba(53, 0, 177, .16));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 紫罗兰卡片上的水印跟着换色（对应 onlykiss 的 SVIP：粉→紫渐变）。
   ⚠ Phase 21：透明度 .10 → .18，让紫色晕光里能看清这个字。 */
.store .topup-card:nth-child(even) .topup-card__watermark {
    background-image: linear-gradient(rgba(255, 120, 190, .18), rgba(190, 90, 255, .18));
}

/* 发丝线页脚：CTA 变成线上的文字，而不是填充按钮 */
.store .topup-card .pricing-cta {
    flex: 1 1 100%;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.store .topup-card .pricing-cta__btn,
.store .topup-card .pricing-cta__btn.btn--primary,
.store .topup-card .pricing-cta__btn.btn--ghost {
    width: 100%;
    justify-content: flex-end;
    padding: 2px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
    /* onlykiss 的 Buy 是 14px 粗体白字，比站内 .btn--sm 略大一点 */
    font-size: .9rem;
    font-weight: 700;
    filter: none;
}

.store .topup-card .pricing-cta__btn:hover,
.store .topup-card .pricing-cta__btn.btn--primary:hover,
.store .topup-card .pricing-cta__btn.btn--ghost:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: none;
    color: var(--ok-ice);
}

/* 不可购买（禁用）状态仍要能看出「点不了」 */
.store .topup-card .pricing-cta__btn:disabled {
    color: rgba(255, 255, 255, .38);
    cursor: not-allowed;
}

/* ---------------------------------------------------------
   Phase 22：Pricing 页背景紫色氛围光（用户指定）
   ---------------------------------------------------------
   ⚠ 只覆盖「有 .store 的页面」，用 :has() 选择，不需要给 <body> 加 class，
     因此首页 / Saved / 登录页的环境光完全不受影响。
   ⚠ 三团光都挂在 body 的 background-image 上（fixed），
     是「整页环境光」而不是某一块区域的雾带 ——
     Phase 18 删掉的是 .store::before 那条 340px 高的局部横带，两者不是一回事。
   ⚠ 不支持 :has() 的旧浏览器会直接退回 base.css 的默认背景，
     属于纯装饰降级，不影响任何功能。 */
body:has(.store) {
    background-image:
        radial-gradient(1000px 700px at 10% -10%, rgba(124, 58, 255, .42), transparent 64%),
        radial-gradient(820px 600px at 94% 0%, rgba(200, 92, 255, .30), transparent 66%),
        radial-gradient(1100px 780px at 50% 114%, rgba(102, 44, 220, .26), transparent 68%),
        radial-gradient(1200px 900px at 50% 40%, rgba(78, 44, 160, .10), transparent 72%);
}

/* ============================================================
   Phase 16：结账面板（HandyPay）
   ⚠ 只用既有设计令牌，不引入任何新颜色 ——
     结账页不该看起来像另一个站点。
   ⚠ 错误色用 --brand（项目里没有 --danger 令牌，
     已有的 .auth-alert--error 也是用 rgba(255,77,126,*)）。
   ============================================================ */
.checkout {
    margin: 0 0 var(--sp-5);
    padding: var(--sp-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    background: var(--surface-2);
}

.checkout__head { margin-bottom: var(--sp-4); }

.checkout__title {
    margin: 0 0 var(--sp-2);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.checkout__summary {
    margin: 0;
    font-size: .86rem;
    color: var(--text-dim);
}

.checkout__ref {
    font-family: var(--font-mono);
    color: var(--text-mute);
}

.checkout__body {
    display: grid;
    gap: var(--sp-5);
    margin-top: var(--sp-4);
}

.checkout__subtitle {
    margin: 0 0 var(--sp-3);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* ⚠ Phase 16m 起「供应商 SDK 输入框」已不存在（改走托管收银台），
   .checkout__element 因此成了死规则 —— Phase 16y 删除。

   ⚠ Phase 18：.checkout__message 同样删除 —— 它服务的是结算面板里一个
     只等 JS 写入的 <p role="alert">，而全站已无一行脚本会写它。 */

/* ⚠ Phase 16y：账单输入框整体删除（用户要求隐藏账单详情、直接跳收银台）。
   .checkout__grid / .checkout__field / .checkout__label / .checkout__input
   四条规则随之移除 —— 它们的使用点本来就只有结账面板一处。 */

.checkout__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
}

.checkout__note {
    margin: 0;
    flex: 1 1 220px;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--text-mute);
}

/* 窄屏：两张卡竖排；宽屏：卡片表单 + 账单信息并排 */
@media (min-width: 720px) {
    .checkout__body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: start;
    }
}

/* =========================================================
   Secupay 内嵌收银台（Phase 19）
   只在结账面板的「内嵌」分支渲染；HandyPay 走 302，不会用到。
   ========================================================= */
.spay {
    display: grid;
    gap: var(--sp-4);
}

.spay__card {
    padding: var(--sp-5);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
}

.spay__hint {
    margin: 0 0 var(--sp-4);
    font-size: .9rem;
    color: var(--text-dim);
}

.spay__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
}

.spay__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spay__field--full {
    grid-column: 1 / -1;
}

.spay__field > span {
    font-size: .86rem;
    color: var(--text-dim);
}

.spay__field > span small {
    color: var(--text-mute);
}

.spay__field input,
.spay__field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    /* ≥16px：iOS 聚焦时才不会自动放大整页 */
    font-size: 16px;
}

.spay__field input:focus,
.spay__field select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

/* 供应商 JS 注入卡表单的挂载点 */
.spay__element {
    min-height: 46px;
}

.spay__error {
    margin: var(--sp-3) 0 0;
    font-size: .9rem;
    color: #f87171;
}

.spay__status {
    margin: var(--sp-2) 0 0;
    font-size: .9rem;
    color: var(--text-dim);
}

@media (max-width: 720px) {
    .spay__card {
        padding: var(--sp-4);
    }

    .spay__grid {
        grid-template-columns: 1fr;
    }

    .spay__field--full {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   Phase 44 — 账户页 ?page=account

   Saved 从主导航降为账户页的二级页，订单历史从 Pricing 页搬进来。
   版式：**从上到下的流式卡片**（flex column + gap）——
     窄屏自然堆叠，不需要任何额外断点，也不做左右分栏。
   ============================================================ */
.account-page {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

/* 父级 gap 已负责间距，标题栏不再额外下推 */
.account-page > .section__head {
    margin-bottom: 0;
}

.account-page .section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.account-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    min-width: 0;
}

.account-card__head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.account-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--text-dim);
}

.account-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.account-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.account-card__desc {
    font-size: .83rem;
    color: var(--text-mute);
    line-height: 1.45;
}

/* 入口卡：整块可点，所以是 <a>；移动端依然是一行一个 */
.account-card--link {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.account-card--link:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-1px);
}

.account-card--link:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
}

.account-card__chev {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--text-mute);
}

/* 账号信息：label 左 / value 右，行间用发丝线分隔 */
.account-details {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.account-details__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.account-details__row:first-child {
    border-top: 0;
    padding-top: 0;
}

.account-details__row:last-child {
    padding-bottom: 0;
}

.account-details__label {
    margin: 0;
    flex: 0 0 auto;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.account-details__value {
    margin: 0;
    font-size: .9rem;
    text-align: right;
    color: var(--text);
    overflow-wrap: anywhere;
}

.account-details__value--strong {
    font-size: 1.05rem;
    font-weight: 700;
}

/* 两个二级页入口：纵向排列（页面自上而下流式），宽屏也不并排 */
.account-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* 浏览页工具栏（Phase 45）：搜索 + 排序 + 过滤，全部流式换行排列 */
.account-browse__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
}

.account-browse__search {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex: 1 1 240px;
    min-width: 0;
}

.account-browse__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    font: inherit;
    font-size: .88rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.account-browse__input::placeholder {
    color: var(--text-mute);
}

.account-browse__input:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 1px;
}

/* 去掉 WebKit 自带的搜索清除按钮（与自定义清空链接重复） */
.account-browse__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* 浏览页分页：父级 gap 已经给了间距，不再叠加 */
.account-page .pagination {
    margin-top: 0;
}

/* Pricing 页的新入口说明文字 */
.store-group__note {
    margin: 0;
    font-size: .85rem;
    color: var(--text-mute);
}

/* =========================================================
   Phase 80 — 关于页（?page=about）
   ---------------------------------------------------------
   纯长文页：78ch 限宽保证可读性（桌面整屏宽的行太长，很难读）。
   ⚠ 不引入新颜色：标题提亮、正文用 --text-dim，与全站一致。
   ========================================================= */
.about {
    max-width: 78ch;
}

.about__hero {
    display: grid;
    gap: var(--sp-2);
}

.about__eyebrow {
    margin: 0;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.about__title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

.about__lede {
    margin: 0;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

.about__body {
    display: grid;
    gap: var(--sp-3);
}

.about__body h2 {
    margin: var(--sp-4) 0 0;
    font-size: 1.06rem;
    line-height: 1.35;
    color: var(--text);
}

.about__body h3 {
    margin: var(--sp-3) 0 0;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--text);
}

.about__body p {
    margin: 0;
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.75;
}

/* 章节标题后的括注（Leading Benchmark Partners）—— 降一级，不抢主标题 */
.about__h2-note {
    color: var(--text-mute);
    font-size: .9em;
    font-weight: 500;
}

/* 结尾段：比正文亮一级，作为收束 */
.about__body p.about__closing {
    margin-top: var(--sp-3);
    color: var(--text);
}

/* =================================================================
   Phase 86（2026-11-15）— 视频详情页 ?video=<slug>
   卡片 href 一直是 ?video=，但该路由曾被删成 404 ⇒ Ctrl+点击/中键/分享
   全部落地失败。这里给它一个真正的 SSR 页面。
   ================================================================= */
.vp__back {
    margin: 0 0 var(--sp-4);
    font-size: .86rem;
}

.vp__back a {
    color: var(--text-dim);
    text-decoration: none;
}

.vp__back a:hover {
    color: var(--text);
}

.vp__grid {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: start;
}

.vp__poster {
    position: relative;
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    aspect-ratio: 2 / 3;
}

.vp__poster-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp__poster-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 77, 126, .35), transparent 60%),
        var(--surface-2);
}

.vp__lock {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(8, 10, 16, .72);
    color: var(--text);
    backdrop-filter: blur(6px);
}

.vp__info {
    min-width: 0;
}

.vp__title {
    margin: 0 0 var(--sp-2);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -.01em;
}

.vp__meta {
    margin: 0 0 var(--sp-3);
    color: var(--text-mute);
    font-size: .86rem;
}

.vp__series {
    margin: 0 0 var(--sp-3);
    color: var(--text-dim);
    font-size: .9rem;
}

.vp__series a {
    color: var(--brand);
    text-decoration: none;
}

.vp__desc {
    margin: 0 0 var(--sp-4);
    max-width: 62ch;
    color: var(--text-dim);
    line-height: 1.65;
}

.vp__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.vp__play {
    gap: var(--sp-2);
}

.vp__noscript,
.vp__hint {
    color: var(--text-mute);
    font-size: .82rem;
}

.vp__hint {
    margin: 0 0 var(--sp-4);
}

.vp__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.vp__tags a {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-dim);
    font-size: .78rem;
    text-decoration: none;
}

.vp__tags a:hover {
    border-color: var(--brand);
    color: var(--text);
}

.vp__h2 {
    margin: var(--sp-6) 0 var(--sp-3);
    font-size: 1.1rem;
}

.vp__episodes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.vp__ep-link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text-dim);
    font-size: .84rem;
    text-decoration: none;
}

.vp__ep-link:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.vp__ep.is-current .vp__ep-link {
    border-color: var(--brand);
    color: var(--text);
}

.vp__ep-num {
    font-weight: 700;
    color: var(--text);
}

.vp__ep-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--text-mute);
    font-size: .78rem;
}

.vp__ep-now {
    display: none;
}

@media (max-width: 720px) {
    .vp__grid {
        grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
        gap: var(--sp-3);
    }

    .vp__episodes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 419px) {
    .vp__grid {
        grid-template-columns: 1fr;
    }

    .vp__poster {
        max-width: 180px;
    }
}

