/* ============================================================
   CX CINEMA — 西瓜视频 全站独立设计系统
   暗黑影院风 / 金铜主色 / 小圆角 / 大海报流
   命名空间：cx-  （不依赖 rou_tailwind.css，零冲突）
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --cx-bg: #0a0a0c;
    --cx-bg-soft: #101014;
    --cx-surface: #16161b;
    --cx-surface-2: #1d1d24;
    --cx-surface-3: #262630;
    --cx-line: #2b2b35;
    --cx-line-soft: #212129;
    --cx-text: #eceae4;
    --cx-text-2: #b9b5ab;
    --cx-text-3: #807b71;
    --cx-gold: #e6b325;
    --cx-gold-2: #c9962a;
    --cx-gold-ink: #2a1f04;
    --cx-gold-soft: rgba(230, 179, 37, .12);
    --cx-gold-line: rgba(230, 179, 37, .35);
    --cx-danger: #e5484d;
    --cx-radius: 6px;
    --cx-radius-lg: 10px;
    --cx-shadow: 0 10px 30px rgba(0, 0, 0, .55);
    --cx-shadow-sm: 0 4px 14px rgba(0, 0, 0, .4);
    --cx-max: 1500px;
    --cx-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html:not(.dark) {
    --cx-bg: #f4f1ea;
    --cx-bg-soft: #ffffff;
    --cx-surface: #ffffff;
    --cx-surface-2: #f7f4ed;
    --cx-surface-3: #ece7dc;
    --cx-line: #ddd7ca;
    --cx-line-soft: #e9e4d9;
    --cx-text: #1b1a17;
    --cx-text-2: #514c44;
    --cx-text-3: #8b857a;
    --cx-gold: #a97a10;
    --cx-gold-2: #8a6410;
    --cx-gold-ink: #ffffff;
    --cx-gold-soft: rgba(169, 122, 16, .1);
    --cx-gold-line: rgba(169, 122, 16, .35);
    --cx-shadow: 0 10px 30px rgba(60, 50, 20, .12);
    --cx-shadow-sm: 0 4px 14px rgba(60, 50, 20, .1);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.cx-body {
    margin: 0;
    font-family: var(--cx-font);
    background: var(--cx-bg);
    color: var(--cx-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.cx-body h1, .cx-body h2, .cx-body h3, .cx-body h4, .cx-body p, .cx-body ul, .cx-body figure {
    margin: 0;
    padding: 0;
}

.cx-body ul { list-style: none; }

.cx-body a { color: inherit; text-decoration: none; }

.cx-body img { display: block; max-width: 100%; border: 0; }

.cx-body button { font-family: inherit; }

.cx-body svg { display: block; }

.hidden { display: none !important; }

.cx-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cx-noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.cx-noscroll::-webkit-scrollbar { display: none; }

.cx-app { min-height: 100vh; display: flex; flex-direction: column; }
.cx-main { flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; }

/* ---------- 3. 容器 ---------- */
.cx-container { width: 100%; max-width: var(--cx-max); margin: 0 auto; padding: 0 14px; }
.cx-container--md { max-width: 1040px; }
.cx-container--sm { max-width: 720px; }

.cx-page-head { padding: 26px 0 16px; }
.cx-page-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; letter-spacing: .01em;
}
.cx-page-title .cx-mark { width: 4px; height: 22px; background: var(--cx-gold); border-radius: 2px; }
.cx-page-sub { margin-top: 6px; padding-left: 14px; font-size: 13px; color: var(--cx-text-3); }

.cx-gold-text { color: var(--cx-gold); }

/* ---------- 4. 按钮 ---------- */
.cx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--cx-radius);
    background: var(--cx-surface-2); color: var(--cx-text);
    font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.cx-btn:hover { background: var(--cx-surface-3); }
.cx-btn svg { width: 16px; height: 16px; }

.cx-btn--gold { background: var(--cx-gold); color: var(--cx-gold-ink); }
.cx-btn--gold:hover { background: var(--cx-gold-2); }

.cx-btn--outline { background: transparent; border-color: var(--cx-line); color: var(--cx-text); }
.cx-btn--outline:hover { border-color: var(--cx-gold); color: var(--cx-gold); background: var(--cx-gold-soft); }

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

.cx-btn--danger { background: transparent; color: var(--cx-danger); border-color: var(--cx-line); }
.cx-btn--danger:hover { background: rgba(229, 72, 77, .1); border-color: var(--cx-danger); }

.cx-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.cx-btn--lg { height: 46px; padding: 0 26px; font-size: 15px; }
.cx-btn--block { width: 100%; }
.cx-btn:disabled { opacity: .55; cursor: not-allowed; }

/* 图标方钮 */
.cx-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid transparent; border-radius: var(--cx-radius);
    background: transparent; color: var(--cx-text-2); cursor: pointer; transition: .18s;
}
.cx-icon-btn:hover { background: var(--cx-surface-2); color: var(--cx-gold); }
.cx-icon-btn svg { width: 20px; height: 20px; }

/* ---------- 5. 头部 ---------- */
.cx-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--cx-bg-soft);
    border-bottom: 1px solid var(--cx-line-soft);
}
.cx-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cx-gold-line) 20%, var(--cx-gold) 50%, var(--cx-gold-line) 80%, transparent);
    opacity: .55;
}
.cx-header__inner {
    max-width: var(--cx-max); margin: 0 auto; padding: 0 14px;
    height: 58px; display: flex; align-items: center; gap: 14px;
}

.cx-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.cx-brand__logo { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.cx-brand__text { font-size: 18px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.cx-brand__text b { color: var(--cx-gold); }

.cx-nav { display: none; align-items: center; gap: 4px; margin-left: 10px; }
.cx-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 58px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--cx-text-2);
    transition: color .18s;
}
.cx-nav__link svg { width: 16px; height: 16px; }
.cx-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
    background: var(--cx-gold); transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.cx-nav__link:hover { color: var(--cx-text); }
.cx-nav__link:hover::after, .cx-nav__link.is-active::after { transform: scaleX(1); }
.cx-nav__link.is-active { color: var(--cx-gold); }

.cx-header__spacer { flex: 1 1 auto; }
.cx-header__actions { display: flex; align-items: center; gap: 8px; }

/* 搜索框（方形小圆角，金色聚焦） */
.cx-search { display: none; position: relative; width: 230px; }
.cx-search__ico {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--cx-text-3); pointer-events: none;
}
.cx-search__input {
    width: 100%; height: 36px; padding: 0 12px 0 34px;
    background: var(--cx-surface-2); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius); color: var(--cx-text); font-size: 13px; outline: none;
    transition: border-color .18s, background .18s;
}
.cx-search__input::placeholder { color: var(--cx-text-3); }
.cx-search__input:focus { border-color: var(--cx-gold); background: var(--cx-surface); }

.cx-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--cx-gold); color: var(--cx-gold-ink);
    font-size: 14px; font-weight: 800; text-transform: uppercase;
}

/* ---------- 6. 移动抽屉 ---------- */
#drawerOverlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
#drawerOverlay.open { opacity: 1; visibility: visible; }

#mobileDrawer {
    position: fixed; top: 0; left: 0; z-index: 100;
    width: 285px; max-width: 84vw; height: 100%;
    display: flex; flex-direction: column;
    background: var(--cx-bg-soft); border-right: 1px solid var(--cx-line);
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
#mobileDrawer.open { transform: translateX(0); }

.cx-drawer__head {
    position: relative; display: flex; align-items: center; gap: 9px;
    padding: 16px 18px; border-bottom: 1px solid var(--cx-line);
    background: linear-gradient(90deg, var(--cx-gold-soft), transparent);
}
.cx-drawer__head img { width: 30px; height: 30px; border-radius: 6px; }
.cx-drawer__head span { font-size: 17px; font-weight: 800; }
.cx-drawer__head b { color: var(--cx-gold); }
.cx-drawer__close {
    position: absolute; top: 12px; right: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 0; border-radius: var(--cx-radius);
    background: transparent; color: var(--cx-text-2); cursor: pointer;
}
.cx-drawer__close:hover { background: var(--cx-surface-2); color: var(--cx-text); }
.cx-drawer__close svg { width: 16px; height: 16px; }

.cx-drawer__search { padding: 12px 14px; border-bottom: 1px solid var(--cx-line); }
.cx-drawer__search .cx-search { display: block; width: 100%; }

.cx-drawer__nav { flex: 1 1 auto; overflow-y: auto; padding: 10px; }
.cx-drawer__label {
    padding: 6px 10px; font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--cx-text-3);
}
.cx-drawer__link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 10px; border-radius: var(--cx-radius);
    font-size: 14px; font-weight: 600; color: var(--cx-text-2); transition: .18s;
}
.cx-drawer__link:hover { background: var(--cx-surface-2); color: var(--cx-text); }
.cx-drawer__link.is-active { background: var(--cx-gold-soft); color: var(--cx-gold); }
.cx-drawer__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--cx-radius);
    background: var(--cx-surface-2); color: var(--cx-text-2);
}
.cx-drawer__ico svg { width: 16px; height: 16px; }
.cx-drawer__link.is-active .cx-drawer__ico { background: var(--cx-gold); color: var(--cx-gold-ink); }

.cx-drawer__foot { padding: 14px; border-top: 1px solid var(--cx-line); }
.cx-drawer__foot-row { display: flex; align-items: center; justify-content: space-between; }
.cx-drawer__theme { display: flex; align-items: center; gap: 8px; color: var(--cx-text-3); font-size: 13px; }

/* ---------- 7. 吸顶标签栏 ---------- */
.cx-tabbar {
    position: sticky; top: 58px; z-index: 40;
    background: color-mix(in srgb, var(--cx-bg-soft) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cx-line-soft);
}
.cx-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 14px; max-width: var(--cx-max); margin: 0 auto; }
.cx-tab {
    flex-shrink: 0; position: relative; height: 44px; padding: 0 14px;
    border: 0; background: transparent; color: var(--cx-text-3);
    font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .18s;
}
.cx-tab:hover { color: var(--cx-text); }
.cx-tab::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
    background: var(--cx-gold); transform: scaleX(0); transition: transform .2s;
}
.cx-tab.is-active { color: var(--cx-gold); }
.cx-tab.is-active::after { transform: scaleX(1); }

/* ---------- 8. 区块 ---------- */
.cx-section { margin: 26px 0; scroll-margin-top: 120px; }
.cx-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cx-section__bar { width: 4px; height: 18px; background: var(--cx-gold); border-radius: 2px; }
.cx-section__title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.cx-section__title svg { width: 18px; height: 18px; color: var(--cx-gold); }
.cx-section__more {
    margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--cx-text-3); transition: color .18s;
}
.cx-section__more:hover { color: var(--cx-gold); }
.cx-section__more svg { width: 15px; height: 15px; }

/* ---------- 9. 海报网格 ---------- */
.cx-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-grid--xs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cx-grid--xs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cx-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .cx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
    .cx-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cx-grid--xs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 10. 影片卡片 ---------- */
.cx-card { display: block; position: relative; }
.cx-card__link { display: block; }
.cx-card__media {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    overflow: hidden; border-radius: var(--cx-radius);
    background: var(--cx-surface-2); border: 1px solid var(--cx-line-soft);
    transition: border-color .22s, box-shadow .22s;
}
.cx-card:hover .cx-card__media { border-color: var(--cx-gold-line); box-shadow: 0 0 0 1px var(--cx-gold-line), var(--cx-shadow-sm); }
.cx-card__blur {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 20%; filter: blur(14px) brightness(.4); transform: scale(1.1);
}
.cx-card__cover {
    position: relative; width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s, filter .35s;
}
.cx-card:hover .cx-card__cover { transform: scale(1.05); filter: brightness(.82); }
.cx-card__shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .12) 42%, transparent 70%);
    opacity: 0; transition: opacity .25s;
}
.cx-card:hover .cx-card__shade { opacity: 1; }

.cx-tag {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 4px;
    font-size: 11px; font-weight: 700; line-height: 1.5;
}
.cx-tag--vip { top: 7px; right: 7px; background: var(--cx-gold); color: var(--cx-gold-ink); }
.cx-tag--time { bottom: 7px; left: 7px; background: rgba(0, 0, 0, .78); color: #f2efe8; }
.cx-tag--time svg { width: 11px; height: 11px; }

.cx-card__body { padding: 9px 2px 0; }
.cx-card__title {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--cx-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .18s;
}
.cx-card:hover .cx-card__title { color: var(--cx-gold); }
.cx-card__meta {
    display: flex; align-items: center; gap: 12px; margin-top: 6px;
    font-size: 12px; color: var(--cx-text-3);
}
.cx-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.cx-card__meta svg { width: 13px; height: 13px; }

/* ---------- 11. 工具条 / 下拉 / 芯片 ---------- */
.cx-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cx-toolbar__spacer { flex: 1 1 auto; }

.cx-dd { position: relative; }
.cx-dd__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 12px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
    background: var(--cx-surface-2); color: var(--cx-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cx-dd__btn:hover { border-color: var(--cx-gold-line); }
.cx-dd__btn svg { width: 15px; height: 15px; color: var(--cx-text-3); }
.cx-dd__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
    min-width: 140px; padding: 5px;
    background: var(--cx-surface); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius); box-shadow: var(--cx-shadow);
}
.cx-dd__menu--left { right: auto; left: 0; }
.cx-dd__menu--scroll { max-height: 300px; overflow-y: auto; }
.cx-dd__item {
    display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px;
    background: transparent; color: var(--cx-text-2); font-size: 13px; text-align: left; cursor: pointer;
}
.cx-dd__item:hover { background: var(--cx-surface-2); color: var(--cx-text); }
.cx-dd__item.is-active { background: var(--cx-gold-soft); color: var(--cx-gold); font-weight: 700; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border: 1px solid var(--cx-line); border-radius: 100px;
    background: transparent; color: var(--cx-text-2); font-size: 13px; cursor: pointer; transition: .18s;
}
.cx-chip:hover { border-color: var(--cx-gold-line); color: var(--cx-gold); }
.cx-chip.is-active { background: var(--cx-gold); border-color: var(--cx-gold); color: var(--cx-gold-ink); font-weight: 700; }

/* ---------- 12. 分页 ---------- */
.cx-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 30px 0 10px; }
.cx-pager__btn, .cx-pager__num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
    background: transparent; color: var(--cx-text-2); font-size: 13px; cursor: pointer; transition: .18s;
}
.cx-pager__btn:hover, .cx-pager__num:hover { border-color: var(--cx-gold); color: var(--cx-gold); }
.cx-pager__num.is-current { background: var(--cx-gold); border-color: var(--cx-gold); color: var(--cx-gold-ink); font-weight: 700; }
.cx-pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.cx-pager__info { padding: 0 8px; font-size: 13px; color: var(--cx-text-3); }
.cx-pager__jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; color: var(--cx-text-3); }
.cx-pager__jump input {
    width: 52px; height: 34px; text-align: center;
    background: var(--cx-surface-2); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius); color: var(--cx-text); font-size: 13px; outline: none;
}
.cx-pager__jump input:focus { border-color: var(--cx-gold); }

/* ---------- 13. 表单 ---------- */
.cx-panel {
    background: var(--cx-surface); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius-lg); padding: 18px;
}
.cx-field { margin-bottom: 16px; }
.cx-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--cx-text-2); }
.cx-input {
    width: 100%; height: 44px; padding: 0 13px;
    background: var(--cx-surface-2); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius); color: var(--cx-text); font-size: 14px; outline: none;
    transition: border-color .18s, background .18s;
}
.cx-input::placeholder { color: var(--cx-text-3); }
.cx-input:focus { border-color: var(--cx-gold); background: var(--cx-surface); }
.cx-msg {
    margin-bottom: 16px; padding: 10px 12px; border-radius: var(--cx-radius);
    background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .35);
    color: #f08285; font-size: 13px;
}

/* ---------- 14. 认证页 ---------- */
.cx-auth { display: flex; justify-content: center; padding: 48px 14px 70px; }
.cx-auth__card { width: 100%; max-width: 400px; }
.cx-auth__title { font-size: 24px; font-weight: 800; text-align: center; }
.cx-auth__sub { margin: 8px 0 24px; text-align: center; font-size: 13px; color: var(--cx-text-3); }
.cx-auth__links { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; font-size: 13px; }
.cx-auth__links a { color: var(--cx-text-3); transition: color .18s; }
.cx-auth__links a:hover { color: var(--cx-gold); }

/* ---------- 15. 详情播放页 ---------- */
.cx-watch { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 18px 0 40px; }
@media (min-width: 1024px) { .cx-watch { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.cx-player {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #000; border-radius: var(--cx-radius); overflow: hidden;
    border: 1px solid var(--cx-line);
}
.cx-player__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cx-player__video { position: absolute; inset: 0; width: 100%; height: 100%; display: none; background: #000; }
.cx-player__logo { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; z-index: 5; border-radius: 6px; opacity: .85; }
.cx-player__overlay {
    position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: rgba(0, 0, 0, .28);
}
.cx-player__play {
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(230, 179, 37, .9); color: #1a1300;
    transition: transform .2s, background .2s;
}
.cx-player__overlay:hover .cx-player__play { transform: scale(1.08); background: var(--cx-gold); }
.cx-player__play svg { width: 26px; height: 26px; margin-left: 2px; }
.cx-player__tag {
    position: absolute; top: 10px; right: 10px; z-index: 9;
    padding: 3px 9px; border-radius: 4px;
    background: rgba(230, 179, 37, .92); color: var(--cx-gold-ink); font-size: 12px; font-weight: 700;
}
.cx-player__tips {
    position: absolute; inset: 0; z-index: 9; display: none;
    align-items: center; justify-content: center; text-align: center; padding: 20px;
    background: rgba(0, 0, 0, .78); color: #f0ede6; font-size: 14px; line-height: 1.7;
}

.cx-vtitle { margin-top: 16px; font-size: 20px; font-weight: 800; line-height: 1.4; }
.cx-metabar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--cx-text-3); }
.cx-metabar span { display: inline-flex; align-items: center; gap: 5px; }
.cx-metabar svg { width: 15px; height: 15px; }
.cx-metabar a.cx-modlink {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    background: var(--cx-gold-soft); border: 1px solid var(--cx-gold-line);
    border-radius: 100px; color: var(--cx-gold); font-weight: 600; transition: .18s;
}
.cx-metabar a.cx-modlink:hover { background: var(--cx-gold); color: var(--cx-gold-ink); }

.cx-actions { display: flex; gap: 10px; margin-top: 16px; }
.cx-fav {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 16px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
    background: transparent; color: var(--cx-text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
.cx-fav svg { width: 17px; height: 17px; }
.cx-fav:hover { border-color: var(--cx-gold-line); color: var(--cx-gold); }
.cx-fav.is-active { border-color: var(--cx-gold); color: var(--cx-gold); }

.cx-side { border-left: 1px solid var(--cx-line-soft); padding-left: 20px; }
@media (max-width: 1023px) { .cx-side { border-left: 0; padding-left: 0; } }
.cx-side__title { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.cx-mini {
    display: flex; gap: 11px; padding: 11px 0;
    border-bottom: 1px solid var(--cx-line-soft); transition: .18s;
}
.cx-mini:last-child { border-bottom: 0; }
.cx-mini:hover { background: var(--cx-surface-2); }
.cx-mini__thumb {
    position: relative; flex-shrink: 0; width: 118px; aspect-ratio: 16 / 10;
    border-radius: var(--cx-radius); overflow: hidden; background: var(--cx-surface-2);
}
.cx-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cx-mini__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cx-mini__title {
    font-size: 13px; font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cx-mini:hover .cx-mini__title { color: var(--cx-gold); }
.cx-mini__meta { margin-top: 5px; font-size: 12px; color: var(--cx-text-3); }

/* ---------- 16. 分类页 ---------- */
.cx-cats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cx-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cx-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cx-cat {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 14px; overflow: hidden;
    background: var(--cx-surface); border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius); transition: border-color .2s, background .2s;
}
.cx-cat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--cx-gold); transform: scaleY(0); transform-origin: top; transition: transform .22s;
}
.cx-cat:hover { border-color: var(--cx-gold-line); background: var(--cx-surface-2); }
.cx-cat:hover::before { transform: scaleY(1); }
.cx-cat__ico {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--cx-radius);
    background: var(--cx-gold-soft); color: var(--cx-gold);
}
.cx-cat__ico svg { width: 20px; height: 20px; }
.cx-cat__name { font-size: 14px; font-weight: 700; transition: color .18s; }
.cx-cat:hover .cx-cat__name { color: var(--cx-gold); }
.cx-cat__count { margin-top: 3px; font-size: 12px; color: var(--cx-text-3); }
.cx-cat__arrow { margin-left: auto; color: var(--cx-text-3); }
.cx-cat__arrow svg { width: 16px; height: 16px; }
.cx-cat:hover .cx-cat__arrow { color: var(--cx-gold); }

/* ---------- 17. 个人中心 ---------- */
.cx-hero {
    position: relative; overflow: hidden; margin-bottom: 20px;
    padding: 26px 24px; border-radius: var(--cx-radius-lg);
    background: linear-gradient(120deg, var(--cx-surface-2), var(--cx-surface));
    border: 1px solid var(--cx-line);
}
.cx-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: var(--cx-gold-soft);
}
.cx-hero__top { position: relative; display: flex; align-items: center; gap: 16px; }
.cx-hero__avatar {
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 12px; flex-shrink: 0;
    background: var(--cx-gold); color: var(--cx-gold-ink); font-size: 26px; font-weight: 800;
}
.cx-hero__name { font-size: 21px; font-weight: 800; }
.cx-hero__badge {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
    padding: 3px 11px; border-radius: 100px; font-size: 12px; font-weight: 700;
    background: var(--cx-surface-3); color: var(--cx-text-2);
}
.cx-hero__badge.is-vip { background: var(--cx-gold); color: var(--cx-gold-ink); }
.cx-hero__badge svg { width: 13px; height: 13px; }
.cx-hero__sub { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 13px; color: var(--cx-text-3); }
.cx-hero__sub svg { width: 14px; height: 14px; }
.cx-hero__cta {
    position: absolute; right: 24px; top: 26px;
}
@media (max-width: 640px) { .cx-hero__cta { position: static; margin-top: 18px; } }

.cx-stats { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.cx-stat { padding: 16px; text-align: center; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); }
.cx-stat__num { font-size: 20px; font-weight: 800; color: var(--cx-gold); }
.cx-stat__label { margin-top: 5px; font-size: 12px; color: var(--cx-text-3); }

.cx-menu { overflow: hidden; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); }
.cx-menu__item {
    display: flex; align-items: center; gap: 14px; padding: 15px 18px;
    border-bottom: 1px solid var(--cx-line-soft); transition: background .18s;
}
.cx-menu__item:last-child { border-bottom: 0; }
.cx-menu__item:hover { background: var(--cx-surface-2); }
.cx-menu__ico { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--cx-radius); background: var(--cx-gold-soft); color: var(--cx-gold); flex-shrink: 0; }
.cx-menu__ico svg { width: 19px; height: 19px; }
.cx-menu__body { min-width: 0; }
.cx-menu__title { font-size: 14px; font-weight: 700; }
.cx-menu__meta { margin-top: 3px; font-size: 12px; color: var(--cx-text-3); }
.cx-menu__arrow { margin-left: auto; color: var(--cx-text-3); }
.cx-menu__arrow svg { width: 16px; height: 16px; }
.cx-menu__item:hover .cx-menu__arrow { color: var(--cx-gold); }
.cx-menu__item.is-danger .cx-menu__ico { background: rgba(229, 72, 77, .12); color: var(--cx-danger); }
.cx-menu__item.is-danger .cx-menu__title { color: var(--cx-danger); }
.cx-menu__item.is-danger:hover { background: rgba(229, 72, 77, .08); }

/* ---------- 18. 空态 ---------- */
.cx-empty { padding: 70px 20px; text-align: center; }
.cx-empty svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--cx-text-3); opacity: .5; }
.cx-empty__text { font-size: 15px; color: var(--cx-text-3); margin-bottom: 20px; }

/* ---------- 19. VIP ---------- */
.cx-vip-head { text-align: center; padding: 30px 0 26px; }
.cx-vip-head h1 { font-size: 28px; font-weight: 800; }
.cx-vip-head p { margin-top: 10px; font-size: 14px; color: var(--cx-text-3); }

.cx-plans { display: grid; gap: 14px; grid-template-columns: repeat(1, minmax(0, 1fr)); margin-bottom: 26px; }
@media (min-width: 640px) { .cx-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cx-plan {
    position: relative; padding: 24px 16px; text-align: center; cursor: pointer;
    background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg);
    transition: border-color .2s, background .2s;
}
.cx-plan:hover { border-color: var(--cx-gold-line); }
.cx-plan.is-selected { border-color: var(--cx-gold); background: var(--cx-gold-soft); }
.cx-plan.is-selected::after {
    content: "✓"; position: absolute; top: 10px; left: 12px;
    font-size: 13px; font-weight: 800; color: var(--cx-gold);
}
.cx-plan__badge {
    position: absolute; top: 0; right: 12px; transform: translateY(-50%);
    padding: 2px 10px; border-radius: 100px;
    background: var(--cx-gold); color: var(--cx-gold-ink); font-size: 11px; font-weight: 800;
}
.cx-plan__name { font-size: 13px; font-weight: 700; color: var(--cx-text-2); }
.cx-plan__price { margin: 12px 0 4px; font-size: 30px; font-weight: 800; color: var(--cx-gold); }
.cx-plan__price small { font-size: 15px; font-weight: 700; }
.cx-plan__term { font-size: 12px; color: var(--cx-text-3); }
.cx-plan__permonth { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--cx-gold); }
.cx-plan__save { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 100px; background: var(--cx-gold-soft); color: var(--cx-gold); font-size: 11px; font-weight: 700; }

.cx-block { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); padding: 18px; margin-bottom: 20px; }
.cx-block__title { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.cx-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-channel {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border: 1px solid var(--cx-line); border-radius: 100px;
    background: transparent; color: var(--cx-text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
.cx-channel:hover { border-color: var(--cx-gold-line); color: var(--cx-gold); }
.cx-channel.is-selected { border-color: var(--cx-gold); background: var(--cx-gold); color: var(--cx-gold-ink); }

.cx-faq__item { padding: 12px 0; border-bottom: 1px solid var(--cx-line-soft); font-size: 14px; }
.cx-faq__item:last-child { border-bottom: 0; }
.cx-faq__q { font-weight: 700; margin-bottom: 4px; }
.cx-faq__a { color: var(--cx-text-3); font-size: 13px; line-height: 1.7; }
.cx-faq__a a { color: var(--cx-gold); }
.cx-faq__a a:hover { text-decoration: underline; }

.cx-tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--cx-text-3); line-height: 1.8; }
.cx-tip a { color: var(--cx-gold); }

/* ---------- 20. 订单 / 支付 ---------- */
.cx-order { display: grid; gap: 0; }
.cx-order__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--cx-line-soft); }
.cx-order__row:last-child { border-bottom: 0; }
.cx-order__k { font-size: 13px; color: var(--cx-text-3); }
.cx-order__v { font-size: 14px; font-weight: 600; text-align: right; word-break: break-all; }
.cx-amount { font-size: 26px; font-weight: 800; color: var(--cx-gold); }

.cx-methods { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-method {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 12px; cursor: pointer;
    background: var(--cx-surface-2); border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
    color: var(--cx-text-2); font-size: 14px; font-weight: 600; transition: .18s;
}
.cx-method:hover { border-color: var(--cx-gold-line); }
.cx-method.is-selected { border-color: var(--cx-gold); background: var(--cx-gold-soft); color: var(--cx-gold); }
.cx-method svg { width: 30px; height: 30px; }

.cx-qr { text-align: center; }
.cx-qr__img { width: 210px; height: 210px; margin: 0 auto 14px; border-radius: var(--cx-radius); background: #fff; padding: 6px; }
.cx-qr__amount { font-size: 22px; font-weight: 800; color: var(--cx-gold); margin-bottom: 10px; }
.cx-qr__addr {
    display: block; padding: 10px 12px; margin-bottom: 12px;
    background: var(--cx-surface-2); border: 1px dashed var(--cx-line);
    border-radius: var(--cx-radius); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; word-break: break-all; color: var(--cx-text-2);
}
.cx-cd { font-size: 17px; font-weight: 800; color: var(--cx-gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cx-status { margin-top: 14px; font-size: 14px; color: var(--cx-gold); }

/* ---------- 20b. APP 下载 ---------- */
.cx-apphero { position: relative; overflow: hidden; padding: 46px 20px 40px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, var(--cx-gold-soft), transparent 62%); }
.cx-apphero__title { font-size: 26px; font-weight: 800; letter-spacing: .01em; }
.cx-apphero__title b { color: var(--cx-gold); }
.cx-apphero__sub { margin-top: 12px; font-size: 14px; color: var(--cx-text-3); }
.cx-shots { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 36px 0 30px; }
.cx-shot { width: 150px; transition: transform .3s; }
.cx-shot img { display: block; width: 100%; border-radius: var(--cx-radius-lg); box-shadow: var(--cx-shadow); }
.cx-shot--l { transform: rotate(-5deg); }
.cx-shot--r { transform: rotate(5deg); }
.cx-shot:hover { transform: rotate(0) scale(1.03); }
@media (min-width: 640px) { .cx-shot { width: 200px; } }
.cx-dl-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cx-meta-list { margin-top: 26px; font-size: 13px; color: var(--cx-text-3); line-height: 2; }
.cx-meta-list strong { color: var(--cx-text); }
.cx-meta-list a { color: var(--cx-gold); }

/* ---------- 21. 页脚 ---------- */
.cx-footer { margin-top: auto; padding: 40px 0 26px; background: var(--cx-bg-soft); border-top: 1px solid var(--cx-line-soft); }
.cx-footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cx-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.cx-footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.cx-footer__brand img { width: 30px; height: 30px; border-radius: 6px; }
.cx-footer__brand span { font-size: 17px; font-weight: 800; }
.cx-footer__brand b { color: var(--cx-gold); }
.cx-footer__desc { font-size: 13px; color: var(--cx-text-3); line-height: 1.8; max-width: 340px; }
.cx-footer__h { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-gold); margin-bottom: 13px; }
.cx-footer__link { display: block; font-size: 13px; color: var(--cx-text-3); padding: 4px 0; transition: color .18s; }
.cx-footer__link:hover { color: var(--cx-gold); }
.cx-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.cx-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--cx-line); border-radius: var(--cx-radius);
    color: var(--cx-text-2); transition: .18s;
}
.cx-footer__social a:hover { border-color: var(--cx-gold); color: var(--cx-gold); }
.cx-footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--cx-line-soft); text-align: center; font-size: 12px; color: var(--cx-text-3); }
.cx-footer__bottom a { color: var(--cx-gold); }

/* ---------- 22. 响应式头部 ---------- */
@media (min-width: 1024px) {
    .cx-nav { display: flex; }
    .cx-header__inner { height: 62px; }
    .cx-nav__link { height: 62px; }
    .cx-tabbar { top: 62px; }
    .cx-header #mobileMenuBtn { display: none; }
}
@media (max-width: 1023px) {
    .cx-header .cx-search { display: none; }
    .cx-search-link { display: inline-flex; }
}
@media (min-width: 1180px) {
    .cx-header .cx-search { display: block; }
    .cx-header .cx-search-link { display: none; }
}

/* ---------- 23. 动效 ---------- */
@keyframes cx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.cx-rise { animation: cx-rise .45s ease both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
