/**
 * 杰亦直播 — 浅色主题设计
 * 浅灰白背景 + 紫粉渐变品牌色 + 白色卡片
 */

/* ── 设计令牌 ── */
:root {
    --primary: #8b5cf6;
    --primary-2: #ec4899;
    --primary-600: #7c3aed;
    --primary-rgb: 139, 92, 246;
    --accent-rgb: 236, 72, 153;
    --bg-base: #f5f7fa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --border-color: #e8ecef;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #8899a6;
    --gradient-brand: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-brand-soft: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.08));
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-glow: 0 4px 20px rgba(139,92,246,0.15);
    --transition: 0.3s ease;
    --font-base: "Arial", "微软雅黑", "Helvetica", "sans-serif";
}

/* ── 全局基础 ── */
html {
    background: var(--bg-base);
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-base);
}

body.home {
    min-height: 80vh;
    padding-bottom: 40px;
}

.main-content {
    padding-bottom: 20px;
}

/* ── 品牌渐变覆盖 ── */
.g_page > ul.list > li a:hover,
.g_page > ul.list > li a.on {
    background: var(--gradient-brand);
}

.g_page > ul.list > li.prev a:hover,
.g_page > ul.list > li.next a:hover {
    color: var(--primary);
}

.g_book:hover table .btn,
.g_tool > li > a:hover,
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
    background: var(--gradient-brand);
}

.g_tool > li > a:hover {
    border-color: transparent;
}

/* ── 栅格系统 ── */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.row.align-items-center {
    align-items: center;
}

[class*="col-"] {
    padding: 0 12px;
    box-sizing: border-box;
    width: 100%;
}

.col-lg-3 { width: 25%; }
.col-lg-8 { width: 66.666%; }
.col-lg-9 { width: 75%; }
.col-xl-6 { width: 50%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-4 { width: 33.333%; }
.col-md-10 { width: 83.333%; }

.offset-lg-2 { margin-left: 16.666%; }
.offset-xl-3 { margin-left: 25%; }
.offset-md-1 { margin-left: 8.333%; }

@media (max-width: 991px) {
    .col-lg-3,
    .col-lg-8,
    .col-lg-9,
    .col-xl-6,
    .offset-lg-2,
    .offset-xl-3 {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-10,
    .offset-md-1 {
        width: 100%;
        margin-left: 0;
    }

    .text-md-end {
        text-align: left !important;
    }
}

/* ── 工具类 ── */
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.p-md-0 { padding: 0; }

.color-primary {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.color-primary:hover {
    color: var(--primary-600);
}

/* ── 内容页 ── */
.page-content {
    padding: 40px 24px 48px;
    min-height: 400px;
    box-sizing: border-box;
}

.page-content__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.page-content--wide .page-content__inner {
    max-width: 1100px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 28px;
    padding-bottom: 16px;
    text-align: center;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 3px;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.content-box .content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-box .content h1,
.content-box .content h2,
.content-box .content h3,
.content-box .content h4 {
    color: var(--text-primary);
    margin: 1.6em 0 0.8em;
    line-height: 1.4;
    font-weight: 600;
}

.content-box .content h1 { font-size: 22px; }
.content-box .content h2 { font-size: 19px; }
.content-box .content h3 { font-size: 17px; }

.content-box .content p {
    margin-bottom: 1em;
}

.content-box .content ul,
.content-box .content ol {
    margin: 0 0 1em;
    padding-left: 1.6em;
}

.content-box .content li {
    margin-bottom: 0.5em;
}

.content-box .content a {
    color: var(--primary);
    text-decoration: none;
}

.content-box .content a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

.content-box .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: var(--radius-sm);
}

.content-box .content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 14px;
}

.content-box .content table th,
.content-box .content table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.content-box .content table th {
    background: rgba(139,92,246,0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.content-box .content blockquote {
    margin: 1em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--primary);
    background: rgba(139,92,246,0.04);
    color: var(--text-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

html.um .page-content {
    padding: 24px 16px 40px;
}

html.um .page-content__inner {
    max-width: 100%;
}

html.um .content-box {
    padding: 24px 20px;
}

html.um .page-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

@media (max-width: 991px) {
    .page-content {
        padding: 28px 20px 40px;
    }

    .page-content__inner,
    .page-content--wide .page-content__inner {
        max-width: 100%;
    }

    .content-box {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .page-content {
        padding: 20px 12px 32px;
    }

    .content-box {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .content-box .content {
        font-size: 14px;
        line-height: 1.75;
    }
}

/* ── 登录 / 注册 ── */
.login-section {
    padding: 60px 0 48px;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.form-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px;
    color: var(--text-primary);
}

.form-block .page-title {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-block .text-muted {
    color: var(--text-muted);
}

.form-block h6 {
    color: var(--text-muted);
    font-size: 14px;
}

.form-block h6 a {
    color: var(--primary);
}

.form-block .checkbox-container {
    color: var(--text-muted);
}

.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    box-sizing: border-box;
    color: var(--text-primary);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-container input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.input-container input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.input-container span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-container .btn-outline-primary {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.cus-btn {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.cus-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(139,92,246,0.3);
}

.cus-btn--outline:hover {
    background: rgba(139,92,246,0.06);
    border-color: var(--primary);
    box-shadow: none;
}

.cus-btn--vip {
    background: linear-gradient(135deg, #e6a23c, #f5c96a) !important;
    color: #fff !important;
    border: none !important;
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid rgba(139,92,246,0.3);
    background: transparent;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-primary:disabled {
    background: #f0f2f5;
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-code {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    border: 1px solid rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.06);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-code:hover {
    background: rgba(139,92,246,0.12);
}

.btn-code:disabled {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: #f0f2f5;
    cursor: not-allowed;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: var(--text-secondary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #f0f2f5;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: .2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(139,92,246,0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.toggle-password {
    cursor: pointer;
}

/* ── 首页 Hero ── */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 24px;
    box-sizing: border-box;
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.host-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition);
}

.host-card:hover {
    transform: translateY(-6px);
}

.host-card__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
    background: #f0f2f5;
}

.host-card__media::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
    transition: opacity var(--transition);
}

.host-card:hover .host-card__media::before {
    opacity: 0.5;
}

.host-card__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(520px, calc(100vh - 300px));
    object-fit: cover;
    vertical-align: middle;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.host-card__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 48px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.05em;
    z-index: 2;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.home-hero__actions {
    width: 100%;
    text-align: center;
}

.home-hero__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    padding: 14px 36px;
    background: var(--gradient-brand);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.home-hero__download .fa {
    font-size: 20px;
}

.home-hero__download:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.35);
}

html.um .home-hero {
    min-height: calc(100vh - 160px);
    padding: 24px 16px 40px;
}

html.um .home-hero__inner {
    max-width: 320px;
    gap: 24px;
}

html.um .host-card__media img {
    max-height: min(420px, calc(100vh - 260px));
}

html.um .host-card__name {
    font-size: 16px;
    padding: 40px 20px 16px;
}

/* ── 主播列表 ── */
.performer-section {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.performer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.performer-grid li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.performer-grid li a:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.performer-grid .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139,92,246,0.2);
    transition: border-color var(--transition);
}

.performer-grid li a:hover .avatar {
    border-color: var(--primary);
}

.performer-grid .username {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    transition: color var(--transition);
}

.performer-grid li a:hover .username {
    color: var(--primary);
}

html.um .performer-section {
    padding: 24px 16px;
}

html.um .performer-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* ── 页脚 ── */
.g_footer {
    clear: both;
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: #8899a6;
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    line-height: 2em;
}

.g_footer a {
    color: var(--primary);
    transition: color .3s ease;
}

.g_footer a:hover {
    color: var(--primary-600);
}

/* ── 二维码弹窗 ── */
#qrModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 320px;
    width: 90%;
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s ease;
}

.qr-modal-close:hover {
    color: var(--primary);
}

.qr-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.qr-modal-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.qr-modal-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Toast ── */
.theme-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.theme-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.theme-toast--success {
    background: #f0fdf4;
    border: 1px solid rgba(34,197,94,0.3);
    color: #16a34a;
}

.theme-toast--error {
    background: #fef2f2;
    border: 1px solid rgba(239,68,68,0.3);
    color: #dc2626;
}

.theme-toast--info {
    background: #f5f3ff;
    border: 1px solid rgba(139,92,246,0.3);
    color: #7c3aed;
}

/* ── 个人中心 ── */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-card);
}

.account-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.account-card__title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 3px;
}

.account-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-info__row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.account-info__label {
    width: 120px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.account-info__value {
    color: var(--text-primary);
    font-size: 15px;
}

.account-info__value--highlight {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
}

.account-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

html.um .account-card {
    padding: 24px 20px;
}

html.um .account-info__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

html.um .account-info__label {
    width: auto;
}

html.um .account-actions {
    flex-direction: column;
}

html.um .account-actions .cus-btn {
    width: 100%;
}

/* ── 充值页 ── */
.charge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.charge-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.charge-card__title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 3px;
}

.charge-user {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2;
}

.charge-user strong {
    color: var(--text-primary);
}

.charge-balance {
    color: var(--primary) !important;
    font-size: 18px;
    font-weight: 600;
}

.charge-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

.charge-section {
    margin-bottom: 20px;
}

.charge-section__label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 500;
}

.charge-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.charge-package {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: #fff;
}

.charge-package:hover {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.03);
}

.charge-package.is-active {
    border-color: var(--primary);
    background: rgba(139,92,246,0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.charge-package__coin {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.charge-package__money {
    display: block;
    font-size: 14px;
    color: var(--primary);
}

.charge-submit {
    padding-top: 8px;
}

.charge-total {
    font-size: 16px;
    color: var(--text-secondary);
}

.charge-total strong {
    color: var(--primary);
    font-size: 22px;
}

.charge-paylist {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.charge-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg-card);
}

.charge-pay:hover {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.03);
}

.charge-pay.is-active {
    border-color: var(--primary);
    background: rgba(139,92,246,0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.charge-pay__icon {
    font-size: 20px;
    color: var(--text-secondary);
}

.charge-pay__icon--wx {
    color: #07c160;
}

.charge-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}


html.um .charge-card {
    padding: 24px 18px;
}

html.um .charge-packages {
    gap: 8px;
}

html.um .charge-package {
    min-width: 100px;
    padding: 12px 14px;
}

/* ── 漫画阅读器 ── */
.manhua-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.manhua-page {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.manhua-lock {
    width: 100%;
    max-width: 800px;
    padding: 48px 24px;
    text-align: center;
    background: rgba(139,92,246,0.03);
    border: 1px dashed rgba(139,92,246,0.2);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.manhua-lock__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.manhua-lock__icon {
    font-size: 36px;
    color: var(--primary);
    opacity: 0.6;
}

.manhua-lock__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.manhua-lock__desc {
    font-size: 14px;
    color: var(--text-muted);
}

.manhua-lock__actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* ── 支付弹窗 ── */
.pay-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-modal__mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
.pay-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}
.pay-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.pay-modal__title {
    margin: 0; font-size: 18px; font-weight: 600;
}
.pay-modal__close {
    background: none; border: none;
    font-size: 28px; line-height: 1;
    cursor: pointer; color: #999; padding: 0;
}
.pay-modal__body {
    padding: 24px 20px;
    text-align: center;
}
.pay-modal__payee {
    font-size: 14px; color: #333;
    font-weight: 600; margin-bottom: 12px;
}
.pay-modal__qr {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.pay-modal__qr img {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
}
.pay-modal__amount {
    font-size: 16px;
    margin: 12px 0 8px;
}
.pay-modal__amount strong {
    color: #e6a23c;
    font-size: 20px;
}
.pay-modal__tip {
    font-size: 13px;
    color: #999;
    margin: 4px 0;
}


/* ── VIP 徽章 ── */
.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e6a23c, #f5c96a);
    color: #fff !important;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}

/* ── 移动端适配 ── */
@media (max-width: 767px) {
    .home-hero__download {
        padding: 12px 28px;
        font-size: 15px;
    }

    .cus-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .form-block {
        padding: 28px 20px;
    }

    .login-section {
        padding: 30px 0 40px;
    }
}

/* ============================================================
   Homepage Styles
   ============================================================ */

/* ── Banner ── */
.home-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a2e;
}

.home-banner__slider {
    width: 100%;
}

.home-banner__slider .slick-list,
.home-banner__slider .slick-track {
    height: 100%;
}

.home-banner__slide {
    height: 380px;
}

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

.home-banner__slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-banner__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.7));
    padding: 12px 40px;
    border-radius: 50px;
    letter-spacing: 6px;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.home-banner__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-base));
    pointer-events: none;
    z-index: 2;
}

.home-banner__search {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 90%;
    max-width: 520px;
}

.home-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.home-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 15px;
    background: transparent;
    color: var(--text-primary);
}

.home-search-form input::placeholder {
    color: var(--text-muted);
}

.home-search-form button {
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    padding: 0 24px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

.home-search-form button:hover {
    opacity: 0.9;
}

/* Slick overrides for banner */
.home-banner__slider .slick-dots {
    bottom: 12px;
    z-index: 4;
}

.home-banner__slider .slick-dots li button:before {
    color: #fff;
    opacity: 0.5;
    font-size: 10px;
}

.home-banner__slider .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

.home-banner__slider .slick-prev,
.home-banner__slider .slick-next {
    z-index: 4;
    width: 40px;
    height: 40px;
}

.home-banner__slider .slick-prev {
    left: 16px;
}

.home-banner__slider .slick-next {
    right: 16px;
}

.home-banner__slider .slick-prev:before,
.home-banner__slider .slick-next:before {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Categories ── */
.home-categories {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 50;
}

.home-categories__inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.home-categories__inner::-webkit-scrollbar {
    display: none;
}

.home-categories__item {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.home-categories__item:hover {
    color: var(--primary);
}

.home-categories__item--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ── Section ── */
.home-section {
    padding: 32px 0 16px;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.home-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding-left: 14px;
    position: relative;
}

.home-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.home-section__more {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.home-section__more:hover {
    color: var(--primary);
}

/* ── Live Grid ── */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Live Card ── */
.live-card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.live-card__cover {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #e2e8f0;
}

.live-card__cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-card:hover .live-card__cover img {
    transform: scale(1.05);
}

.live-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.live-card__badge i {
    font-size: 12px;
}

.live-card__info {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 10px;
}

.live-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.live-card__name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-card__city {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Empty State ── */
.home-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.home-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

.home-empty p {
    font-size: 15px;
    margin: 0;
}

/* ── Download Section ── */
.home-download {
    padding: 40px 0 48px;
}

.home-download__inner {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-download__text h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 700;
}

.home-download__text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
}

.home-download__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.home-download__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.home-download__btn i {
    font-size: 18px;
}

/* ── Homepage Responsive ── */
@media (max-width: 991px) {
    .home-banner__slide {
        height: 280px;
    }

    .home-banner__search {
        bottom: 24px;
    }

    .home-banner__label {
        font-size: 26px;
        padding: 10px 30px;
        letter-spacing: 4px;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-section {
        padding: 24px 0 12px;
    }

    .home-download__inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .home-banner__slide {
        height: 200px;
    }

    .home-banner__search {
        bottom: 16px;
        width: 92%;
    }

    .home-search-form input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .home-search-form button {
        padding: 0 18px;
    }

    .home-banner__label {
        font-size: 20px;
        padding: 8px 24px;
        letter-spacing: 3px;
    }

    .home-categories {
        top: 56px;
    }

    .home-categories__item {
        padding: 10px 16px;
        font-size: 13px;
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .home-section__title {
        font-size: 17px;
    }

    .live-card__info {
        padding: 10px 12px;
        gap: 8px;
    }

    .live-card__avatar {
        width: 34px;
        height: 34px;
    }

    .live-card__name {
        font-size: 14px;
    }

    .live-card__city {
        display: none;
    }

    .live-card__badge {
        font-size: 11px;
        padding: 2px 8px;
        top: 6px;
        left: 6px;
    }

    .home-download__inner {
        padding: 28px 20px;
    }

    .home-download__text h3 {
        font-size: 18px;
    }
}

/* ══════════════════════════════════════════════
   杰亦动漫 — 动漫频道页样式
   ══════════════════════════════════════════════ */

/* ── 顶部轮播 Banner ── */
.dongman-banner {
    position: relative;
    width: 100%;
    background: #0e0e1a;
    overflow: hidden;
}

.dongman-banner__slider .slick-list,
.dongman-banner__slider .slick-track {
    height: 100%;
}

.dongman-banner__slide {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.dongman-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 26, 0.92) 0%,
        rgba(10, 10, 26, 0.7) 40%,
        rgba(10, 10, 26, 0.15) 100%
    );
    z-index: 1;
}

.dongman-banner__info {
    position: relative;
    z-index: 2;
    padding: 48px 60px;
    max-width: 560px;
}

.dongman-banner__ep {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.dongman-banner__title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.dongman-banner__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dongman-banner__meta {
    margin-bottom: 20px;
}

.dongman-banner__score {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
}

.dongman-banner__score i {
    margin-right: 4px;
}

.dongman-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.dongman-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
    color: #fff;
    text-decoration: none;
}

.dongman-banner__slider .slick-dots {
    bottom: 20px;
    right: 40px;
    left: auto;
    width: auto;
}

.dongman-banner__slider .slick-dots li {
    margin: 0 4px;
}

.dongman-banner__slider .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
}

.dongman-banner__slider .slick-dots li button::before {
    display: none;
}

.dongman-banner__slider .slick-dots li.slick-active button {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.dongman-banner__slider .slick-arrow {
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}

.dongman-banner__slider .slick-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dongman-banner__slider .slick-arrow::before {
    font-family: 'slick';
    font-size: 18px;
    color: #fff;
    opacity: 0.9;
}

/* ── 分类标签栏 ── */
.dongman-genres {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dongman-genres__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dongman-genres__inner::-webkit-scrollbar {
    display: none;
}

.dongman-genres__item {
    flex-shrink: 0;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 24px;
    text-decoration: none;
    transition: all var(--transition);
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
}

.dongman-genres__item:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.06);
    text-decoration: none;
}

.dongman-genres__item--active {
    color: #fff;
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.dongman-genres__item--active:hover {
    color: #fff;
    background: var(--gradient-brand);
}

/* ── 通用区块 ── */
.dongman-section {
    padding: 36px 0;
}

.dongman-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dongman-section__title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dongman-section__title i {
    font-size: 20px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dongman-section__more {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dongman-section__more:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ── 动漫卡片网格 ── */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.anime-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.anime-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    text-decoration: none;
    color: inherit;
}

.anime-card__cover {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    overflow: hidden;
    background: #1a1a2e;
}

.anime-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.anime-card:hover .anime-card__cover img {
    transform: scale(1.08);
}

.anime-card__ep {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(139, 92, 246, 0.85);
    padding: 3px 10px;
    border-radius: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.anime-card__genre {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 8px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.anime-card__body {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.anime-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.anime-card__score {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
}

.anime-card__score i {
    margin-right: 2px;
    font-size: 11px;
}

/* ── 排行榜 + 侧栏布局 ── */
.dongman-layout {
    display: flex;
    gap: 28px;
}

.dongman-layout__main {
    flex: 1;
    min-width: 0;
}

.dongman-layout__side {
    width: 300px;
    flex-shrink: 0;
}

/* ── 排行榜列表 ── */
.anime-rank {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anime-rank__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
}

.anime-rank__item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-card-hover);
    text-decoration: none;
    color: inherit;
}

.anime-rank__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-muted);
    border-radius: 8px;
    background: var(--bg-base);
}

.anime-rank__num--top {
    color: #fff;
    background: var(--gradient-brand);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.anime-rank__cover {
    width: 56px;
    height: 75px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.anime-rank__info {
    flex: 1;
    min-width: 0;
}

.anime-rank__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-rank__score {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
}

.anime-rank__score i {
    margin-right: 3px;
}

.anime-rank__heat {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.anime-rank__heat i {
    color: #ef4444;
    margin-right: 3px;
}

/* ── 侧栏卡片 ── */
.dongman-side-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.dongman-side-card__title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dongman-side-card__title i {
    color: var(--primary);
}

.dongman-side-card__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.dongman-side-card__list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition);
}

.dongman-side-card__list li a:hover {
    background: rgba(139, 92, 246, 0.04);
}

.dongman-side-card__list li a span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

/* ── 动漫页响应式 ── */
@media (max-width: 991px) {
    .dongman-banner__slide {
        height: 340px;
    }

    .dongman-banner__info {
        padding: 32px 40px;
    }

    .dongman-banner__title {
        font-size: 28px;
    }

    .anime-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .dongman-layout {
        flex-direction: column;
    }

    .dongman-layout__side {
        width: 100%;
    }

    .dongman-side-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .dongman-banner__slide {
        height: 280px;
    }

    .dongman-banner__info {
        padding: 24px 20px;
        max-width: 100%;
    }

    .dongman-banner__title {
        font-size: 22px;
    }

    .dongman-banner__desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .dongman-banner__btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .dongman-banner__slider .slick-dots {
        right: 16px;
        bottom: 12px;
    }

    .dongman-banner__slider .slick-arrow {
        width: 32px;
        height: 32px;
    }

    .dongman-genres {
        padding: 12px 0;
    }

    .dongman-genres__item {
        padding: 6px 16px;
        font-size: 13px;
    }

    .dongman-section {
        padding: 24px 0;
    }

    .dongman-section__title {
        font-size: 18px;
    }

    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .anime-card__body {
        padding: 8px 10px;
    }

    .anime-card__title {
        font-size: 13px;
    }

    .anime-rank__item {
        padding: 10px 14px;
        gap: 10px;
    }

    .anime-rank__cover {
        width: 44px;
        height: 58px;
    }

    .anime-rank__heat {
        display: none;
    }
}

/* ── 动漫详情页 ── */
.anime-detail__header {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.anime-detail__cover {
    width: 220px;
    height: 293px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.anime-detail__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anime-detail__title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.anime-detail__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.anime-detail__score {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}

.anime-detail__score i {
    margin-right: 4px;
}

.anime-detail__ep,
.anime-detail__genre {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-brand);
    padding: 4px 14px;
    border-radius: 20px;
}

.anime-detail__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.anime-detail__gallery {
    margin-top: 20px;
}

.anime-detail__section-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anime-detail__section-title i {
    font-size: 20px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.anime-detail__images {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.anime-detail__images img {
    width: 100%;
    display: block;
    margin: 0 !important;
}

@media (max-width: 767px) {
    .anime-detail__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 20px;
    }

    .anime-detail__cover {
        width: 160px;
        height: 213px;
    }

    .anime-detail__title {
        font-size: 22px;
    }

    .anime-detail__meta {
        justify-content: center;
    }
}
