/**
 * 虾卡拉卡娱乐 — 统一主题样式
 * 设计规范：深蓝背景 + 品牌蓝主色 + 白色内容卡片
 */

/* ── 1. 设计令牌 ── */
:root {
    --primary: #2aa9ff;
    --primary-600: #1b8fe6;
    --primary-rgb: 42, 169, 255;
    --bg-dark: #0f2233;
    --bg-dark-rgb: 15, 34, 51;
    --bg-card: #ffffff;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-on-dark: #ffffff;
    --border-color: #e1e5e9;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-card: 0 0 20px rgba(0, 0, 0, 0.1);
    --shadow-card-lg: 0 0 30px rgba(0, 0, 0, 0.12);
    --sidebar-width: 300px;
    --footer-height: 60px;
    --font-base: "Arial", "微软雅黑", "Helvetica", "sans-serif";
    --transition: 0.3s ease;
}

/* ── 2. 全局基础 ── */
html.theme-back-dark {
    background: var(--bg-dark);
}

html.theme-back-dark body {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-family: var(--font-base);
}

body.home {
    min-height: 80vh;
    padding-bottom: calc(var(--footer-height) + 80px);
}

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

/* ── 3. 主题色覆盖 skin 层 ── */
html.theme-back-dark .g_header {
    background: var(--bg-dark);
}

html.theme-back-dark .g_header .nav > li .sub {
    background: rgba(var(--bg-dark-rgb), 0.95);
    border-left-color: var(--primary);
}

html.theme-back-dark .g_header .nav > li .sub > li a:hover {
    background: var(--bg-dark);
}

html.theme-back-dark .g_tool > li > a {
    background: var(--bg-dark);
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus,
.g_page > ul.list > li a:hover,
.g_page > ul.list > li a.on,
.g_header .nav > li a::after,
.g_header .nav > li.on a em,
.g_header .nav > li .sub,
.g_book:hover table .btn,
.g_tool > li > a:hover,
.bannerhome .frames .txt .t1,
.bannersingle .txt .t1,
.contacthome .third a:hover i.fa,
.contacthome .book:hover table .btn,
.newslist .offset .list > li a .time,
.newslist .offset .list > li a:hover .title,
.tt2list .offset .list > li a:hover .title,
.tt2list .offset .list > li a:hover .out {
    /* 由下方规则统一覆盖 */
}

.g_page > ul.list > li a:hover,
.g_page > ul.list > li a.on {
    background: var(--primary);
}

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

.g_header .nav > li a::after {
    border-bottom-color: var(--primary);
}

.g_header .nav > li:hover a,
.g_header .nav > li.on a,
.g_header .nav > li a:hover,
html.theme-back-dark .g_header .nav > li:hover a,
html.theme-back-dark .g_header .nav > li.on a,
html.theme-back-dark .g_header .nav > li a:hover {
    color: var(--primary);
}

.g_header .nav > li.on a em {
    border-bottom-color: var(--primary);
}

.g_header .nav > li .sub {
    border-left-color: var(--primary);
}

.g_header .nav > li .sub > li.on a,
.g_header .nav > li .sub > li:hover a,
.g_header .nav > li .sub > li a:hover,
html.theme-back-dark .g_header .nav > li .sub > li.on a,
html.theme-back-dark .g_header .nav > li .sub > li:hover a,
html.theme-back-dark .g_header .nav > li .sub > li 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(--primary);
}

.g_tool > li > a:hover {
    border-color: var(--primary);
}

.g_header .box {
    margin-bottom: 16px;
}

/* ── 侧栏：Logo + 导航整体布局 ── */
.g_header {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.g_header > table {
    display: none;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 0 20px;
    box-sizing: border-box;
}

.sidebar-logo {
    display: block;
    flex-shrink: 0;
    padding: 10px 24px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.sidebar-logo img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 12px;
}

.sidebar-nav .nav {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav .nav > li {
    margin: 0;
}

.sidebar-nav .nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 9px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.sidebar-nav .nav > li > a::after {
    display: none;
}

.sidebar-nav .nav > li > a .nav-label {
    flex: 1;
    min-width: 0;
    padding: 0;
    line-height: 1.4;
    border-bottom: none;
}

.sidebar-nav .nav > li > a em {
    padding: 0;
    border-bottom: none;
}

.sidebar-nav .nav > li > a .fa-angle-right {
    float: none;
    position: static;
    left: auto;
    padding: 0;
    font-size: 12px;
    opacity: 0.45;
    transition: opacity var(--transition), transform var(--transition);
}

.sidebar-nav .nav > li > a:hover,
.sidebar-nav .nav > li.on > a {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.sidebar-nav .nav > li > a:hover .fa-angle-right,
.sidebar-nav .nav > li.on > a .fa-angle-right {
    opacity: 1;
    transform: translateX(2px);
}

.sidebar-nav .nav > li.on > a {
    background: rgba(var(--primary-rgb), 0.14);
    box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-nav .nav > li.on > a .nav-label,
.sidebar-nav .nav > li.on > a em {
    border-bottom: none;
}

.sidebar-nav .nav > li.nav-auth {
    margin-top: 4px;
}

.sidebar-nav .nav > li.nav-auth:first-of-type {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.um .g_header {
    padding: 0;
}

html.um .sidebar-inner {
    padding: 60px 0 24px;
}

html.um .sidebar-logo {
    padding: 0 20px 16px;
}

html.um .sidebar-logo img {
    max-height: 56px;
}

html.um .sidebar-nav {
    padding: 0 10px;
}

html.um .sidebar-nav .nav > li > a {
    padding: 11px 14px;
    font-size: 15px;
}

/* ── 4. 轻量栅格（兼容现有 Bootstrap 类名） ── */
.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;
    }
}

/* ── 5. 工具类 ── */
.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);
}

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

.page-content__inner {
    width: 100%;
    max-width: min(1100px, calc(100vw - var(--sidebar-width) - 80px));
    margin: 0 auto;
}

.page-content--wide .page-content__inner {
    max-width: min(1200px, calc(100vw - var(--sidebar-width) - 64px));
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 28px;
    padding-bottom: 16px;
    text-align: center;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}

.content-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px 48px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.content-box .content {
    color: var(--text-primary);
    font-size: 16px;
    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: 24px; }
.content-box .content h2 { font-size: 20px; }
.content-box .content h3 { font-size: 18px; }

.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: 15px;
}

.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: #f5f7fa;
    font-weight: 600;
}

.content-box .content blockquote {
    margin: 1em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--primary);
    background: #f8f9fa;
    color: var(--text-secondary);
}

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: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

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

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

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

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

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

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

/* ── 7. 登录 / 注册 ── */
.login-section {
    padding: 60px 0 48px;
    min-height: 60vh;
}

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

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

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

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

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

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

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

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

.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover,
.input-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    box-shadow: 0 0 0 1000px #fff inset;
}

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

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

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

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

.cus-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    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: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

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

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

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

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

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

.toggle-password {
    cursor: pointer;
}

/* ── 8. 首页 Hero ── */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--footer-height) - 80px);
    padding: 32px 24px 48px;
    box-sizing: border-box;
}

.home-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 360px;
}

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

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

.host-card__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.host-card__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(520px, calc(100vh - 280px));
    object-fit: cover;
    vertical-align: middle;
}

.host-card__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 48px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.05em;
}

.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: 12px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.home-hero__download:hover {
    background: var(--primary-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

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

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

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

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

/* ── 8b. 分类页表演者列表 ── */
.performer-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    padding: 40px 20px;
}

.performer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.performer-grid > li,
.performer-grid > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-on-dark);
    transition: transform var(--transition);
}

.performer-grid > li:hover,
.performer-grid > a:hover {
    transform: translateY(-4px);
}

.performer-grid img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.performer-grid .username {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-on-dark);
}

.performer-grid--hero img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

@media (max-width: 767px) {
    .performer-grid {
        gap: 20px;
    }

    .performer-grid img {
        width: 160px;
        height: 240px;
    }

    .performer-grid--hero img {
        max-height: 360px;
    }
}

/* ── 9. 页脚 ── */
.app-download-bar {
    text-align: center;
    padding: 20px 0;
}

.app-download-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.app-download-btn:hover {
    background: var(--primary-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.g_footer {
    flex-shrink: 0;
    margin-top: 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    min-height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 20px;
    box-sizing: border-box;
}

.g_footer a {
    color: var(--text-on-dark);
    text-decoration: underline;
}

.g_footer p {
    margin: 2px 0;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .g_footer {
        font-size: 12px;
        flex-direction: column;
        padding: 10px;
    }

    body.home {
        padding-bottom: calc(var(--footer-height) + 100px);
    }
}

/* ── 10. 二维码弹窗 ── */
#qrModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: themeFadeIn 0.3s ease;
    margin: 0;
    padding: 0;
    overflow: auto;
}

@keyframes themeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes themeSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qr-modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: themeSlideUp 0.3s ease;
    margin: auto;
    flex-shrink: 0;
}

.qr-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

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

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

.qr-modal-img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    margin: 0 auto;
    display: block;
}

.qr-modal-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ── 11. Toast 提示 ── */
.theme-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 20000;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.theme-toast--success { background: #28a745; }
.theme-toast--error { background: #dc3545; }
.theme-toast--info { background: var(--primary); }

/* ── 12. 个人中心 / 充值 ── */
.account-card,
.charge-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-primary);
}

.account-card__title,
.charge-card__title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.account-info__row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.account-info__label {
    color: var(--text-secondary);
}

.account-info__value {
    color: var(--text-primary);
    font-weight: 500;
}

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

.account-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.cus-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cus-btn--outline:hover {
    background: rgba(40, 167, 69, 0.08);
}

.charge-user {
    background: #f8faf8;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-primary);
}

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

.charge-balance {
    color: var(--primary);
}

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

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

.charge-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.charge-package {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.charge-package.is-active {
    border-color: var(--primary);
    background: rgba(40, 167, 69, 0.06);
}

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

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

.charge-total {
    font-size: 16px;
    margin: 0;
}

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

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

.charge-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition);
}

.charge-pay.is-active {
    border-color: var(--primary);
}

.charge-pay img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.charge-pay__icon {
    font-size: 28px;
    color: #1677ff;
    width: 32px;
    text-align: center;
}

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

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

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

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

/* ── 13. 漫画阅读 / 解锁 ── */
.manhua-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manhua-page {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.manhua-lock {
    margin-top: 8px;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f4e8 100%);
    border: 2px dashed rgba(var(--primary-rgb), 0.35);
    border-radius: var(--radius-md);
    text-align: center;
}

.manhua-lock__icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.manhua-lock__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.manhua-lock__desc,
.manhua-lock__balance {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.manhua-lock__desc strong,
.manhua-lock__balance strong {
    color: var(--primary);
    font-size: 18px;
}

.manhua-lock__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.manhua-lock__tip {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--primary);
    min-height: 20px;
}

.manhua-lock__tip.is-error {
    color: #dc3545;
}

#btnManhuaRecharge.is-highlight {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.input-container--code {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-container--code input {
    flex: 1;
}

.btn-code {
    flex-shrink: 0;
    padding: 0 16px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── 14. 导航栏美化 ── */
.g_header {
    background: linear-gradient(180deg, #0a1628 0%, #0f2233 40%, #112a40 100%) !important;
    border-right: 1px solid rgba(42, 169, 255, 0.08);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-inner {
    padding: 28px 0 20px;
}

.sidebar-logo {
    padding: 0 20px 22px;
    border-bottom: 1px solid rgba(42, 169, 255, 0.12);
    margin-bottom: 16px;
}

.sidebar-logo::after {
    content: '虾卡拉卡娱乐';
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 10px;
    background: linear-gradient(135deg, #2aa9ff, #6dd5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 0 10px;
}

.sidebar-nav .nav > li > a {
    position: relative;
    margin-bottom: 2px;
    padding: 11px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-nav .nav > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 169, 255, 0.12), rgba(42, 169, 255, 0.04));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav .nav > li > a:hover::before,
.sidebar-nav .nav > li.on > a::before {
    opacity: 1;
}

.sidebar-nav .nav > li > a:hover,
.sidebar-nav .nav > li.on > a {
    color: #fff;
    background: transparent;
    transform: translateX(4px);
}

.sidebar-nav .nav > li.on > a {
    box-shadow: inset 3px 0 0 #2aa9ff, 0 0 20px rgba(42, 169, 255, 0.1);
}

.sidebar-nav .nav > li > a:hover .fa-angle-right,
.sidebar-nav .nav > li.on > a .fa-angle-right {
    opacity: 1;
    transform: translateX(4px);
    color: #2aa9ff;
}

.sidebar-nav .nav > li.nav-auth:first-of-type {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 169, 255, 0.1);
}

.sidebar-nav .nav > li.nav-auth > a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav .nav > li.nav-auth > a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Nav icons */
.sidebar-nav .nav > li:nth-child(1) > a .nav-label::before { content: '\f015'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(2) > a .nav-label::before { content: '\f0f0'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(3) > a .nav-label::before { content: '\f03d'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(4) > a .nav-label::before { content: '\f02d'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(5) > a .nav-label::before { content: '\f091'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(6) > a .nav-label::before { content: '\f00c'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(7) > a .nav-label::before { content: '\f023'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(8) > a .nav-label::before { content: '\f007'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(9) > a .nav-label::before { content: '\f0c6'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(10) > a .nav-label::before { content: '\f0e4'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }
.sidebar-nav .nav > li:nth-child(11) > a .nav-label::before { content: '\f21b'; font-family: FontAwesome; margin-right: 10px; font-size: 13px; opacity: 0.7; }

/* ── 15. 登录/注册页面美化 ── */
.login-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
    overflow: hidden;
}

.login-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(42, 169, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(109, 213, 250, 0.06) 0%, transparent 50%);
    animation: loginBgFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loginBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.login-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.form-block {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(42, 169, 255, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: formSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.form-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2aa9ff, #6dd5fa, transparent);
}

@keyframes formSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-block .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    border-bottom: none;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #6dd5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-block .text-muted {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

.form-block h6 {
    color: rgba(255, 255, 255, 0.5);
}

.form-block h6 a {
    color: #2aa9ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.form-block h6 a:hover {
    color: #6dd5fa;
}

.form-block .checkbox-container {
    color: rgba(255, 255, 255, 0.55);
}

.form-block .checkbox-container a {
    color: #2aa9ff;
    text-decoration: none;
}

.input-container {
    margin-bottom: 22px;
}

.input-container input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 1px solid rgba(42, 169, 255, 0.15);
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-container input:focus {
    border-color: rgba(42, 169, 255, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 169, 255, 0.1), 0 0 20px rgba(42, 169, 255, 0.05);
    background: rgba(255, 255, 255, 0.06);
}

.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover,
.input-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px rgba(15, 34, 51, 0.95) inset;
    border-color: rgba(42, 169, 255, 0.3);
}

.input-container > span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(42, 169, 255, 0.5);
    font-size: 16px;
    transition: color 0.3s;
    right: auto;
}

.input-container input:focus ~ span {
    color: #2aa9ff;
}

.input-container .toggle-password {
    left: auto;
    right: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.input-container .toggle-password:hover {
    color: #2aa9ff;
}

.cus-btn {
    position: relative;
    background: linear-gradient(135deg, #2aa9ff, #1b8fe6);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 169, 255, 0.3);
    letter-spacing: 1px;
    overflow: hidden;
}

.cus-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.cus-btn:hover::before {
    left: 100%;
}

.cus-btn:hover {
    background: linear-gradient(135deg, #3db5ff, #2aa9ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 169, 255, 0.45);
}

.cus-btn:active {
    transform: translateY(0);
}

.input-container--code {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-container--code input {
    flex: 1;
    padding-left: 20px;
}

.btn-code {
    flex-shrink: 0;
    padding: 0 20px;
    border: 1px solid rgba(42, 169, 255, 0.4);
    background: rgba(42, 169, 255, 0.08);
    color: #2aa9ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-code:hover:not(:disabled) {
    background: rgba(42, 169, 255, 0.15);
    border-color: rgba(42, 169, 255, 0.6);
}

.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(42, 169, 255, 0.3);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(42, 169, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2aa9ff;
    border-color: #2aa9ff;
}


/* ── 16. 文章页美化 ── */
.page-content {
    padding: 40px 40px 48px;
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(42, 169, 255, 0.1);
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(42, 169, 255, 0.4), transparent);
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(42, 169, 255, 0.15);
    padding-bottom: 18px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fff, #6dd5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-box .content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.9;
}

.content-box .content h1,
.content-box .content h2,
.content-box .content h3,
.content-box .content h4 {
    color: #1a1a2e;
    font-weight: 600;
}

.content-box .content a {
    color: #2aa9ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 169, 255, 0.3);
    transition: all 0.3s;
}

.content-box .content a:hover {
    color: #6dd5fa;
    border-bottom-color: #6dd5fa;
}

.content-box .content blockquote {
    background: rgba(42, 169, 255, 0.06);
    border-left-color: #2aa9ff;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0 8px 8px 0;
}

.content-box .content table th {
    background: rgba(42, 169, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.content-box .content table th,
.content-box .content table td {
    border-color: rgba(42, 169, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.content-box .content img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.content-box .content strong,
.content-box .content b {
    color: rgba(255, 255, 255, 0.85);
}

/* ── 17. 页脚美化 ── */
.g_footer {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95), rgba(8, 18, 32, 0.98)) !important;
    border-top: 1px solid rgba(42, 169, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.g_footer a {
    color: #2aa9ff;
    text-decoration: none;
    transition: color 0.3s;
}

.g_footer a:hover {
    color: #6dd5fa;
}

/* ── 18. 漫画卡片美化 ── */
.comic-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(42, 169, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease !important;
}

.comic-card:hover {
    border-color: rgba(42, 169, 255, 0.3);
    box-shadow: 0 8px 30px rgba(42, 169, 255, 0.15);
    transform: translateY(-6px) !important;
}

.comic-card__cover {
    background: rgba(15, 34, 51, 0.8) !important;
}

.comic-card__title {
    color: rgba(255, 255, 255, 0.9);
}

.comic-card__status {
    color: rgba(42, 169, 255, 0.7);
}

/* ── 19. 个人中心/充值页美化 ── */
.account-card,
.charge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(42, 169, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
}

.account-card__title,
.charge-card__title {
    color: rgba(255, 255, 255, 0.92);
}

.account-info__row {
    border-bottom-color: rgba(42, 169, 255, 0.1);
}

.account-info__label {
    color: rgba(255, 255, 255, 0.5);
}

.account-info__value {
    color: rgba(255, 255, 255, 0.85);
}

.charge-user {
    background: rgba(42, 169, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

.charge-user strong {
    color: rgba(255, 255, 255, 0.92);
}

.charge-package {
    border-color: rgba(42, 169, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.charge-package.is-active {
    border-color: #2aa9ff;
    background: rgba(42, 169, 255, 0.08);
}

.charge-package__coin {
    color: rgba(255, 255, 255, 0.9);
}

.charge-pay {
    border-color: rgba(42, 169, 255, 0.15);
}

.charge-pay.is-active {
    border-color: #2aa9ff;
}

/* ── 20. 响应式调整 ── */
@media (max-width: 767px) {
    .form-block {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .form-block .page-title {
        font-size: 24px;
    }

    .content-box {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .sidebar-nav .nav > li > a .nav-label::before {
        margin-right: 8px;
        font-size: 12px;
    }

    .page-content {
        padding: 20px 16px 32px;
    }
}


/* ── 21. 侧栏品牌图标 ── */
.sidebar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2aa9ff, #1b8fe6);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(42, 169, 255, 0.3);
    margin-bottom: 4px;
}
