/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: #0f0f17;
    color: #e8e8f0;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: all .2s; }
a:hover { color: #ff4d8d; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; color: inherit; }

/* ===== 主题色 ===== */
:root {
    --primary: #ff4d8d;
    --primary-dark: #e63d7d;
    --accent: #7d5fff;
    --bg-card: #1a1a2a;
    --bg-card-hover: #23233a;
    --text: #e8e8f0;
    --text-muted: #8a8aa0;
    --border: #2a2a3e;
    --success: #2ed573;
    --warning: #ffa502;
    --danger: #ff4757;
    --info: #3742fa;
}

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.header {
    background: rgba(20, 20, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 22px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: 8px;
}
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-muted); font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--text); }
.user-area { display: flex; align-items: center; gap: 12px; }
.credits-pill {
    background: rgba(255, 77, 141, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.credits-pill .icon { margin-right: 4px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,77,141,0.4); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== 卡片 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 18px; font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #12121e;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all .2s;
}
.form-control:focus { border-color: var(--primary); background: #16162a; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== 首页 Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 77, 141, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(125, 95, 255, 0.15), transparent 50%);
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #ff4d8d, #7d5fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* ===== 特性卡片 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 60px 0;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; }

/* ===== 任务卡片 ===== */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
}
.task-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.task-thumb {
    aspect-ratio: 16/9;
    background: #0a0a14;
    position: relative;
    overflow: hidden;
}
.task-thumb img, .task-thumb video { width: 100%; height: 100%; object-fit: cover; }
.task-thumb .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}
.task-body { padding: 16px; }
.task-prompt {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 12px;
    min-height: 38px;
}
.task-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 状态徽章 ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.badge-gray   { background: #2a2a3e; color: #b0b0c0; }
.badge-blue   { background: rgba(55, 66, 250, 0.2); color: #5f7cff; }
.badge-green  { background: rgba(46, 213, 115, 0.2); color: #2ed573; }
.badge-red    { background: rgba(255, 71, 87, 0.2); color: #ff6b7a; }
.badge-orange { background: rgba(255, 165, 2, 0.2); color: #ffb733; }

/* ===== 进度条 ===== */
.progress {
    height: 6px;
    background: #1a1a2a;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .3s;
    border-radius: 3px;
}

/* ===== 分页 ===== */
.pager {
    display: flex; justify-content: center; align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pager a, .pager span {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    min-width: 38px;
    text-align: center;
}
.pager a:hover { border-color: var(--primary); }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .total { background: transparent; border: none; color: var(--text-muted); }

/* ===== 表格 ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}
.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.table th {
    background: rgba(0,0,0,0.2);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255, 77, 141, 0.05); }

/* ===== Alert ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.alert-info    { background: rgba(55,66,250,0.1);  border-color: rgba(55,66,250,0.3); color: #8a9aff; }
.alert-success { background: rgba(46,213,115,0.1); border-color: rgba(46,213,115,0.3); color: #5fe09a; }
.alert-warning { background: rgba(255,165,2,0.1);  border-color: rgba(255,165,2,0.3); color: #ffc966; }
.alert-danger  { background: rgba(255,71,87,0.1);  border-color: rgba(255,71,87,0.3); color: #ff8a96; }

/* ===== 上传区 ===== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #12121e;
}
.upload-area:hover, .upload-area.drag {
    border-color: var(--primary);
    background: rgba(255, 77, 141, 0.05);
}
.upload-area .icon { font-size: 48px; color: var(--text-muted); margin-bottom: 12px; }
.upload-area .tip { color: var(--text-muted); font-size: 13px; }
.upload-preview {
    margin-top: 12px;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
}
.upload-preview img { width: 100%; }

/* ===== Tabs ===== */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 4px;
}
.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--text); }

/* ===== 表单辅助 ===== */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
    .row, .row-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 50px 0; }
    .nav { display: none; }
}

/* ===== Modal ===== */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%; max-width: 500px;
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow: auto;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 10px;
}

/* ===== Loading ===== */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 页脚 ===== */
.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

/* ===== 后台布局 ===== */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    flex-shrink: 0;
}
.sidebar .logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.menu { list-style: none; }
.menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: all .2s;
}
.menu a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.menu a.active { color: var(--primary); border-left-color: var(--primary); background: rgba(255,77,141,0.08); }
.main { flex: 1; padding: 24px; overflow-x: auto; }
.admin-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-header h2 { font-size: 18px; }

/* ===== 提示提示 ===== */
.tip-box {
    background: rgba(125, 95, 255, 0.08);
    border: 1px dashed rgba(125, 95, 255, 0.3);
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== 统计卡 ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-value {
    font-size: 28px; font-weight: 700;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-extra { font-size: 12px; color: var(--text-muted); }

/* ===== 用户中心左侧边栏布局 ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧边栏 */
.sidebar-left {
    width: 260px;
    min-height: 100vh;
    background: #13131f;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}
.sidebar-logo .logo-name {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 用户卡片 */
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.user-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-credits {
    font-size: 12px;
    color: var(--primary);
    margin-top: 3px;
}

/* 签到卡片 */
.checkin-box {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.checkin-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}
.checkin-streak {
    margin-bottom: 10px;
}
.streak-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.streak-label {
    font-size: 12px;
    color: var(--text-muted);
}
.btn-checkin {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.btn-checkin:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 77, 141, 0.4);
}
.btn-checkin.done {
    background: var(--bg-card);
    color: var(--success);
    cursor: default;
}
.checkin-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 导航菜单 */
.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 20px 6px;
    font-weight: 600;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all .15s;
    border-left: 2px solid transparent;
    text-decoration: none;
}
.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(255, 77, 141, 0.08);
}
.nav-item.logout { color: var(--text-muted); }
.nav-item.logout:hover { color: var(--danger); }
.nav-icon { font-size: 16px; flex-shrink: 0; }

/* 右侧主内容 */
.main-right {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
    max-width: 100%;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar-left {
        width: 100%;
        min-height: auto;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 12px;
    }
    .nav-section-title { display: none; }
    .nav-item {
        flex: 0 0 auto;
        padding: 8px 12px;
        border-left: none;
        border-radius: 8px;
        font-size: 13px;
        gap: 6px;
    }
    .nav-item.active {
        border-left: none;
        background: rgba(255, 77, 141, 0.15);
    }
    .main-right { padding: 16px; }
}

/* ====================================================
   Workbench 布局（首页仿 niuclip）
   ==================================================== */
body.workbench-page,
.workbench { /* wrapper 容器 */
    min-height: 100vh;
}

/* Workbench 主容器 */
.workbench {
    display: flex;
    min-height: 100vh;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}
body.no-topbar .workbench {
    max-width: 1400px;
    padding: 0;
}

/* 左侧栏 */
.wb-sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 24px 14px;
    border-right: 1px solid var(--border);
    background: rgba(20, 20, 32, 0.5);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
body.no-topbar .wb-sidebar {
    background: transparent;
}

.wb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    text-decoration: none;
}
.wb-logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #ff4d8d, #7d5fff);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 13px; font-weight: 800;
    box-shadow: 0 4px 14px rgba(255,77,141,0.35);
}
.wb-logo-name {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4d8d, #7d5fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wb-logo-name em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.85;
    font-size: 14px;
}

.wb-nav { display: flex; flex-direction: column; gap: 2px; }
.wb-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    text-decoration: none;
}
.wb-nav-item:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}
.wb-nav-item.active {
    color: var(--primary);
    background: rgba(255,77,141,0.12);
    box-shadow: inset 2px 0 0 var(--primary);
}
.wb-nav-icon { font-size: 16px; flex-shrink: 0; }

.wb-sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 6px;
}
.wb-user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4d8d, #7d5fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

/* 主区 */
.wb-main {
    flex: 1;
    min-width: 0;
    padding: 0 28px 28px;
    position: relative;
}

.wb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    margin-bottom: 8px;
}
.wb-breadcrumbs {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #6c5cff, #4dabf7);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(108,92,255,0.4);
    transition: all .2s;
}
.btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108,92,255,0.5); color: #fff; }
.btn-theme {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    margin-left: 8px;
}
.btn-theme:hover { background: rgba(255,255,255,0.1); }

/* 主内容 */
.wb-content { padding-top: 8px; }

.wb-hero {
    text-align: center;
    padding: 30px 0 24px;
}
.wb-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff, #ff4d8d 50%, #7d5fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.wb-title-emoji { -webkit-text-fill-color: initial; }
.wb-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 模式卡片 */
.wb-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.wb-mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    display: block;
}
.wb-mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255,77,141,0.2);
}
.wb-mode-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.wb-mode-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.wb-mode-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Section */
.wb-section { margin: 40px 0 30px; }
.wb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.wb-section-header h2 {
    font-size: 22px;
    margin: 0;
}

/* Gallery */
.wb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.wb-gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s;
}
.wb-gallery-item:hover { transform: translateY(-2px); border-color: var(--primary); }
.wb-gallery-item video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #0a0a14;
}
.wb-gallery-info { padding: 14px; }
.wb-gallery-prompt {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 10px;
    min-height: 36px;
}
.wb-gallery-meta {
    display: flex; justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Notices */
.wb-notices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.wb-notice-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all .2s;
}
.wb-notice-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.wb-notice-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.wb-notice-content {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.wb-notice-date {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* 右侧浮动圆形视频 */
.wb-float-video {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 10px 40px rgba(255,77,141,0.5);
    z-index: 50;
    background: #0a0a14;
    animation: floatRotate 8s linear infinite;
}
.wb-float-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wb-float-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
@keyframes floatRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 主题：亮色模式（预留） */
body.theme-light {
    background: #f5f5fa;
    color: #1a1a2a;
}
body.theme-light .wb-sidebar { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.08); }
body.theme-light .wb-mode-card,
body.theme-light .wb-gallery-item,
body.theme-light .wb-notice-card { background: #fff; border-color: rgba(0,0,0,0.08); }
body.theme-light .wb-mode-desc,
body.theme-light .wb-gallery-prompt,
body.theme-light .wb-gallery-meta,
body.theme-light .wb-notice-content,
body.theme-light .wb-notice-date,
body.theme-light .wb-breadcrumbs { color: #6e6e8a; }
body.theme-light .wb-nav-item { color: #5a5a70; }
body.theme-light .wb-nav-item:hover { background: rgba(0,0,0,0.04); color: #1a1a2a; }
body.theme-light .btn-theme { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }
body.theme-light .wb-user { background: rgba(0,0,0,0.04); }

/* 移动端 */
@media (max-width: 900px) {
    .workbench { flex-direction: column; }
    .wb-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .wb-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .wb-nav-item { padding: 8px 12px; font-size: 13px; }
    .wb-logo { border-bottom: none; padding-bottom: 8px; margin-bottom: 8px; }
    .wb-sidebar-bottom { display: none; }
    .wb-main { padding: 0 16px 16px; }
    .wb-modes { grid-template-columns: 1fr; }
    .wb-title { font-size: 32px; }
    .wb-float-video { width: 130px; height: 130px; bottom: 16px; right: 16px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .wb-modes { grid-template-columns: 1fr 1fr; }
}

/* ====================================================
   用户中心 v2.6 —— 现代浅色主题（Light Modern）
   白底 + 青蓝色系 + 柔和阴影 + 圆角 16px
   仅作用于 .user-* 类名，避免污染 admin / public
   ==================================================== */

/* ----- 主题变量（user 区专用）----- */
body.user-layout-body {
    --user-bg:               #f5f7fb;
    --user-bg-soft:          #eef2f9;
    --user-surface:          #ffffff;
    --user-surface-2:        #f8fafc;
    --user-border:           #e6e9f2;
    --user-border-strong:    #d4d9e6;
    --user-text:             #0f172a;
    --user-text-muted:       #64748b;
    --user-text-faint:       #94a3b8;

    --user-primary:          #1cc4ff;
    --user-primary-dark:     #0a8aff;
    --user-primary-soft:     #e0f4ff;
    --user-accent:           #7c3aed;
    --user-success:          #10b981;
    --user-success-soft:     #d1fae5;
    --user-warning:          #f59e0b;
    --user-warning-soft:     #fef3c7;
    --user-danger:           #ef4444;
    --user-danger-soft:      #fee2e2;
    --user-info:             #0ea5e9;
    --user-info-soft:        #e0f2fe;

    --user-shadow-xs:        0 1px 2px rgba(15, 23, 42, .04);
    --user-shadow-sm:        0 2px 6px rgba(15, 23, 42, .06);
    --user-shadow-md:        0 6px 18px rgba(15, 23, 42, .08);
    --user-shadow-lg:        0 18px 40px rgba(15, 23, 42, .12);

    background: var(--user-bg);
    color: var(--user-text);
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", "Segoe UI", Arial, sans-serif;
}
body.user-layout-body * { box-sizing: border-box; }
body.user-layout-body a { color: inherit; text-decoration: none; }

.user-layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    grid-template-rows: 72px 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar main";
    min-height: 100vh;
}

/* ===== 左侧栏 ===== */
.user-sidebar {
    grid-area: sidebar;
    background: var(--user-surface);
    border-right: 1px solid var(--user-border);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: var(--user-shadow-xs);
}
.user-sidebar::-webkit-scrollbar { width: 6px; }
.user-sidebar::-webkit-scrollbar-thumb { background: var(--user-border-strong); border-radius: 3px; }

.user-sidebar-logo {
    display: flex;
    align-items: center;
    padding: 4px 6px 14px;
    border-bottom: 1px solid var(--user-border);
    text-decoration: none;
    margin-bottom: 4px;
}
.user-sidebar-logo img {
    height: 32px;
    max-width: 180px;
    object-fit: contain;
}
.user-sidebar-logo-fallback {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 用户卡片 */
.user-side-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--user-surface-2);
    border: 1px solid var(--user-border);
    border-radius: 14px;
    transition: all .25s;
}
.user-side-card:hover {
    background: var(--user-primary-soft);
    border-color: var(--user-primary);
}
.user-side-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(28, 196, 255, .35);
}
.user-side-meta { flex: 1; min-width: 0; }
.user-side-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--user-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-side-id {
    font-size: 11px;
    color: var(--user-text-muted);
    margin-top: 2px;
}
.user-side-logout {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--user-text-muted);
    background: transparent;
    border: 1px solid var(--user-border);
    transition: all .2s;
}
.user-side-logout:hover {
    color: var(--user-danger);
    background: var(--user-danger-soft);
    border-color: var(--user-danger);
}

/* 积分卡 */
.user-credit-card {
    position: relative;
    padding: 20px 18px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(28, 196, 255, .25), transparent 60%),
        linear-gradient(135deg, #1cc4ff 0%, #0a8aff 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10, 138, 255, .35);
}
.user-credit-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
}
.user-credit-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.user-credit-value {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.5px;
}
.user-credit-actions {
    margin-top: 14px;
    position: relative;
    z-index: 1;
}
.user-credit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0a8aff;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
}
.user-credit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    color: #0a8aff;
}

/* 签到卡 */
.user-checkin-card {
    padding: 16px;
    background: var(--user-surface-2);
    border: 1px solid var(--user-border);
    border-radius: 14px;
}
.user-checkin-streak {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}
.user-checkin-streak .streak-num {
    font-size: 28px;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}
.user-checkin-streak .streak-label {
    font-size: 12px;
    color: var(--user-text-muted);
    font-weight: 500;
}
.user-checkin-btn {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff8a4f, #ff5577);
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(255, 85, 119, .3);
}
.user-checkin-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 85, 119, .45);
}
.user-checkin-btn.done {
    background: var(--user-success-soft);
    color: var(--user-success);
    box-shadow: none;
    cursor: default;
}
.user-checkin-tip {
    margin-top: 8px;
    font-size: 11px;
    color: var(--user-text-faint);
    text-align: center;
}

/* 导航 */
.user-side-nav { flex: 1; }
.user-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--user-text-faint);
    letter-spacing: 1.2px;
    margin: 4px 10px 10px;
    font-weight: 600;
}
.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--user-text-muted);
    text-decoration: none;
    margin-bottom: 2px;
    transition: all .2s;
    position: relative;
    font-weight: 500;
}
.user-nav-item:hover {
    background: var(--user-surface-2);
    color: var(--user-text);
}
.user-nav-item.active {
    background: linear-gradient(135deg, #e0f4ff, #f0faff);
    color: var(--user-primary-dark);
    font-weight: 600;
}
.user-nav-item.active::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--user-primary), var(--user-primary-dark));
    border-radius: 0 3px 3px 0;
}
.user-nav-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.user-nav-arrow {
    margin-left: auto;
    color: var(--user-primary);
    display: inline-flex;
    align-items: center;
}
.user-sidebar-footer {
    text-align: center;
    font-size: 11px;
    color: var(--user-text-faint);
    padding-top: 14px;
    border-top: 1px solid var(--user-border);
}

/* ===== 顶部条 ===== */
.user-topbar {
    grid-area: topbar;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--user-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.user-topbar-left { display: flex; flex-direction: column; }
.user-topbar-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--user-text);
    margin: 0;
    letter-spacing: -.3px;
}
.user-topbar-subtitle {
    font-size: 12px;
    color: var(--user-text-muted);
    margin-top: 2px;
}
.user-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-topbar-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--user-text);
    background: var(--user-surface-2);
    border: 1px solid var(--user-border);
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
}
.user-topbar-credit:hover {
    background: var(--user-primary-soft);
    border-color: var(--user-primary);
    color: var(--user-primary-dark);
}
.user-topbar-credit-icon { color: var(--user-primary); display: inline-flex; }
.user-topbar-credit-num { font-weight: 700; color: var(--user-primary-dark); }
.user-topbar-credit-label { font-size: 12px; color: var(--user-text-muted); }

.user-topbar-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    transition: all .2s;
    box-shadow: 0 6px 16px rgba(10, 138, 255, .3);
}
.user-topbar-create:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 10px 22px rgba(10, 138, 255, .45);
}

/* ===== 主内容区 ===== */
.user-main {
    grid-area: main;
    padding: 28px 32px 40px;
    overflow-y: auto;
    min-height: 0;
    max-width: 100%;
}

/* 欢迎横幅 */
.user-hero {
    position: relative;
    padding: 36px 40px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(28, 196, 255, .15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(124, 58, 237, .12), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--user-border);
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--user-shadow-sm);
}
.user-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    opacity: .35;
}
.user-hero-blob-1 {
    width: 260px; height: 260px;
    background: #1cc4ff;
    top: -120px; right: 10%;
}
.user-hero-blob-2 {
    width: 220px; height: 220px;
    background: #7c3aed;
    bottom: -100px; left: 5%;
}
.user-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.user-hero-greet {
    font-size: 14px;
    color: var(--user-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.user-hero-greet strong {
    color: var(--user-text);
    font-weight: 700;
}
.user-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--user-text);
    margin-bottom: 10px;
    letter-spacing: -.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 30%, #0a8aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.user-hero-sub {
    font-size: 14px;
    color: var(--user-text-muted);
    margin-bottom: 22px;
    max-width: 520px;
    line-height: 1.6;
}
.user-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.user-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--user-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--user-border);
    transition: all .2s;
    box-shadow: var(--user-shadow-xs);
}
.user-hero-btn:hover {
    border-color: var(--user-primary);
    color: var(--user-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--user-shadow-sm);
}
.user-hero-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(10, 138, 255, .35);
}
.user-hero-btn.primary:hover {
    color: #fff;
    box-shadow: 0 12px 28px rgba(10, 138, 255, .45);
}
.user-hero-btn-icon { font-size: 16px; }

/* 装饰插画 */
.user-hero-illu {
    position: relative;
    width: 220px;
    height: 180px;
    flex-shrink: 0;
    z-index: 1;
}
.user-hero-illu-card {
    position: absolute;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f0f9ff);
    box-shadow: var(--user-shadow-md);
    border: 1px solid var(--user-border);
}
.user-hero-illu-card.c1 {
    width: 140px; height: 90px;
    top: 20px; left: 0;
    transform: rotate(-8deg);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.user-hero-illu-card.c2 {
    width: 130px; height: 90px;
    top: 50px; right: 0;
    transform: rotate(6deg);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.user-hero-illu-card.c3 {
    width: 110px; height: 80px;
    bottom: 10px; left: 60px;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.user-hero-illu-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 30px rgba(10, 138, 255, .45);
    z-index: 2;
}
@media (max-width: 900px) { .user-hero-illu { display: none; } }

/* 统计网格 */
.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.user-stat-card {
    position: relative;
    padding: 22px 22px 18px;
    border-radius: 16px;
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all .3s;
    overflow: hidden;
    box-shadow: var(--user-shadow-xs);
}
.user-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--user-shadow-md);
}
.user-stat-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    opacity: .12;
    pointer-events: none;
}
.user-stat-card.stat-blue::before   { background: var(--user-primary); }
.user-stat-card.stat-green::before  { background: var(--user-success); }
.user-stat-card.stat-yellow::before { background: var(--user-warning); }
.user-stat-card.stat-purple::before { background: var(--user-accent); }

.user-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.user-stat-card.stat-blue   .user-stat-icon { background: linear-gradient(135deg, #1cc4ff, #0a8aff); }
.user-stat-card.stat-green  .user-stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.user-stat-card.stat-yellow .user-stat-icon { background: linear-gradient(135deg, #fbbf24, #f97316); }
.user-stat-card.stat-purple .user-stat-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.user-stat-body { flex: 1; }
.user-stat-label {
    font-size: 13px;
    color: var(--user-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.user-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--user-text);
    line-height: 1;
    letter-spacing: -.5px;
}
.user-stat-extra {
    font-size: 12px;
    color: var(--user-text-muted);
    padding-top: 12px;
    border-top: 1px dashed var(--user-border);
    font-weight: 500;
}

/* 双栏 */
.user-two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* 通用面板 */
.user-panel {
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: var(--user-shadow-xs);
}
.user-panel:last-child { margin-bottom: 0; }
.user-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--user-border);
    gap: 12px;
    flex-wrap: wrap;
}
.user-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--user-text);
}
.user-panel-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--user-text-muted);
}
.user-panel-more {
    font-size: 13px;
    color: var(--user-primary-dark);
    text-decoration: none;
    transition: color .2s;
    font-weight: 500;
}
.user-panel-more:hover { color: var(--user-primary); }
.user-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-panel-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--user-text);
    text-decoration: none;
    background: var(--user-surface-2);
    border: 1px solid var(--user-border);
    transition: all .2s;
}
.user-panel-action:hover {
    color: var(--user-primary-dark);
    border-color: var(--user-primary);
    background: var(--user-primary-soft);
}
.user-panel-action.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    border-color: transparent;
}
.user-panel-action.primary:hover {
    color: #fff;
    box-shadow: 0 6px 16px rgba(10, 138, 255, .35);
}

.user-panel-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--user-text-muted);
    font-size: 14px;
}
.user-panel-empty.large { padding: 60px 20px; }
.user-empty-icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: .8;
}
.user-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--user-text);
    margin-bottom: 6px;
}
.user-empty-sub {
    font-size: 13px;
    color: var(--user-text-muted);
}

/* 公告列表 */
.user-notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.user-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--user-surface-2);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
}
.user-notice-item:hover {
    background: var(--user-primary-soft);
    border-color: var(--user-primary);
    transform: translateX(2px);
}
.user-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.user-notice-body { flex: 1; min-width: 0; }
.user-notice-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--user-text);
    margin-bottom: 4px;
}
.user-notice-text {
    font-size: 12px;
    color: var(--user-text-muted);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.user-notice-date {
    font-size: 11px;
    color: var(--user-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    font-weight: 500;
}

/* 快捷入口网格 */
.user-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.user-quick-card {
    padding: 16px;
    border-radius: 14px;
    background: var(--user-surface-2);
    border: 1px solid var(--user-border);
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.user-quick-card:hover {
    background: #fff;
    border-color: var(--user-primary);
    transform: translateY(-2px);
    box-shadow: var(--user-shadow-md);
}
.user-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}
.user-quick-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--user-text);
    margin-bottom: 4px;
}
.user-quick-desc {
    font-size: 12px;
    color: var(--user-text-muted);
    line-height: 1.5;
}

/* 任务网格 */
.user-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.user-task-card {
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
    opacity: 0;
    transform: translateY(16px);
    animation: userTaskFadeIn .5s ease forwards;
    box-shadow: var(--user-shadow-xs);
}
@keyframes userTaskFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.user-task-card:hover {
    transform: translateY(-4px);
    border-color: var(--user-primary);
    box-shadow: var(--user-shadow-md);
}
.user-task-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #0f172a;
    overflow: hidden;
}
.user-task-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-task-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    background: linear-gradient(135deg, #f0f9ff, #ede9fe);
}
.user-task-placeholder-icon {
    font-size: 36px;
    opacity: .6;
}
.user-task-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.user-task-body {
    padding: 14px 16px;
}
.user-task-prompt {
    font-size: 13px;
    color: var(--user-text);
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    font-weight: 500;
}
.user-task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--user-text-muted);
}
.user-task-meta-bottom {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--user-border);
}
.user-task-tag {
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--user-primary-soft);
    color: var(--user-primary-dark);
    font-weight: 500;
}
.user-task-time {
    color: var(--user-text-muted);
}
.user-task-cost {
    color: var(--user-text-muted);
    font-size: 11px;
}

/* 进度条 */
.user-progress {
    height: 6px;
    background: var(--user-bg-soft);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}
.user-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--user-primary), var(--user-primary-dark));
    transition: width .3s;
    border-radius: 3px;
}

/* ===== 标签 tabs ===== */
.user-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--user-border);
    margin-bottom: 20px;
}
.user-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--user-text-muted);
    text-decoration: none;
    transition: all .2s;
    border: 1px solid transparent;
    border-bottom: none;
    position: relative;
}
.user-tab:hover {
    color: var(--user-text);
    background: var(--user-surface-2);
}
.user-tab.active {
    color: var(--user-primary-dark);
    background: var(--user-primary-soft);
    font-weight: 600;
}
.user-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    border-radius: 999px;
    background: var(--user-surface);
    color: var(--user-text-muted);
    border: 1px solid var(--user-border);
    font-weight: 600;
}
.user-tab.active .user-tab-count {
    background: var(--user-primary);
    color: #fff;
    border-color: transparent;
}

/* ===== 分页 ===== */
.user-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0 6px;
    flex-wrap: wrap;
}
.user-pager a, .user-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--user-text);
    transition: all .2s;
    text-decoration: none;
    font-weight: 500;
}
.user-pager a:hover {
    border-color: var(--user-primary);
    color: var(--user-primary-dark);
    background: var(--user-primary-soft);
}
.user-pager .cur {
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(10, 138, 255, .3);
}
.user-pager .total {
    background: transparent;
    border: none;
    color: var(--user-text-muted);
    cursor: default;
}

/* ===== 表格（积分历史） ===== */
.user-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--user-border);
    border-radius: 12px;
    background: var(--user-surface);
}
.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.user-table th, .user-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--user-border);
    white-space: nowrap;
}
.user-table th {
    background: var(--user-surface-2);
    font-weight: 600;
    color: var(--user-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.user-table tr:last-child td { border-bottom: none; }
.user-table tbody tr {
    transition: background .2s;
}
.user-table tbody tr:hover {
    background: var(--user-primary-soft);
}
.user-table-time {
    color: var(--user-text-muted);
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
}
.user-table-balance {
    font-weight: 700;
    color: var(--user-text);
}
.user-table-remark {
    color: var(--user-text-muted);
    white-space: normal;
    max-width: 260px;
}

/* 积分余额徽章 */
.user-credit-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--user-primary-soft);
    color: var(--user-primary-dark);
    border: 1px solid var(--user-primary);
}
.user-credit-balance-label {
    font-size: 12px;
    font-weight: 500;
}
.user-credit-balance-num {
    font-size: 15px;
    font-weight: 800;
}

/* 金额正负 */
.user-amount {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 6px;
}
.user-amount.pos { color: var(--user-success); background: var(--user-success-soft); }
.user-amount.neg { color: var(--user-danger);  background: var(--user-danger-soft); }

/* 通用 chip 徽章（用于状态） */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--user-surface-2);
    color: var(--user-text);
    border: 1px solid var(--user-border);
}
.user-chip.badge-success { background: var(--user-success-soft); color: var(--user-success); border-color: rgba(16, 185, 129, .25); }
.user-chip.badge-warning { background: var(--user-warning-soft); color: #b45309; border-color: rgba(245, 158, 11, .3); }
.user-chip.badge-danger  { background: var(--user-danger-soft);  color: var(--user-danger); border-color: rgba(239, 68, 68, .25); }
.user-chip.badge-info    { background: var(--user-info-soft);    color: var(--user-info); border-color: rgba(14, 165, 233, .25); }
.user-chip.badge-blue,
.user-chip.badge-gray    { background: var(--user-surface-2);    color: var(--user-text-muted); }
.user-chip.badge-orange  { background: var(--user-warning-soft); color: #b45309; border-color: rgba(245, 158, 11, .3); }
.user-chip.badge-green   { background: var(--user-success-soft); color: var(--user-success); border-color: rgba(16, 185, 129, .25); }
.user-chip.badge-red     { background: var(--user-danger-soft);  color: var(--user-danger); border-color: rgba(239, 68, 68, .25); }

/* 兼容旧 badge-*（卡片状态） */
.badge-success { background: var(--user-success); color: #fff; }
.badge-warning { background: var(--user-warning); color: #fff; }
.badge-danger  { background: var(--user-danger);  color: #fff; }
.badge-info    { background: var(--user-primary); color: #fff; }
.badge-default { background: var(--user-surface-2); color: var(--user-text-muted); }
.badge-blue    { background: var(--user-info-soft); color: var(--user-info); }
.badge-orange  { background: var(--user-warning); color: #fff; }
.badge-green   { background: var(--user-success); color: #fff; }
.badge-red     { background: var(--user-danger); color: #fff; }
.badge-gray    { background: var(--user-surface-2); color: var(--user-text-muted); }

/* ===== 表单 ===== */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}
.user-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}
.user-form-label {
    display: block;
    font-size: 13px;
    color: var(--user-text);
    margin-bottom: 8px;
    font-weight: 600;
}
.user-form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--user-surface);
    border: 1px solid var(--user-border-strong);
    border-radius: 10px;
    color: var(--user-text);
    font-size: 14px;
    transition: all .2s;
}
.user-form-control:focus {
    border-color: var(--user-primary);
    box-shadow: 0 0 0 3px rgba(28, 196, 255, .15);
    background: #fff;
}
.user-form-control:disabled {
    background: var(--user-surface-2);
    color: var(--user-text-muted);
    cursor: not-allowed;
}
.user-form-hint {
    font-size: 12px;
    color: var(--user-text-muted);
    margin-top: 6px;
}
.user-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

/* ===== 通用按钮 ===== */
.user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.user-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    box-shadow: 0 6px 16px rgba(10, 138, 255, .3);
}
.user-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(10, 138, 255, .4);
}
.user-btn-secondary {
    color: var(--user-text);
    background: var(--user-surface);
    border-color: var(--user-border-strong);
}
.user-btn-secondary:hover {
    color: var(--user-primary-dark);
    border-color: var(--user-primary);
    background: var(--user-primary-soft);
}

/* ===== 提示 alerts ===== */
.user-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
    font-weight: 500;
}
.user-alert-success { background: var(--user-success-soft); border-color: rgba(16, 185, 129, .3); color: #047857; }
.user-alert-warning { background: var(--user-warning-soft); border-color: rgba(245, 158, 11, .3); color: #b45309; }
.user-alert-danger  { background: var(--user-danger-soft);  border-color: rgba(239, 68, 68, .3); color: #b91c1c; }
.user-alert-info    { background: var(--user-info-soft);    border-color: rgba(14, 165, 233, .3); color: #0369a1; }

/* ===== 个人资料头 ===== */
.user-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--user-primary-soft), #f5f3ff);
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid var(--user-border);
}
.user-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--user-primary), var(--user-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(10, 138, 255, .35);
}
.user-profile-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--user-text);
}
.user-profile-id {
    font-size: 13px;
    color: var(--user-text-muted);
    margin-top: 4px;
}

/* ===== 任务详情 ===== */
.user-breadcrumb {
    margin-bottom: 18px;
}
.user-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--user-text-muted);
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    transition: all .2s;
}
.user-breadcrumb-link:hover {
    color: var(--user-primary-dark);
    border-color: var(--user-primary);
    background: var(--user-primary-soft);
}

.user-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}
@media (max-width: 1024px) {
    .user-detail-grid { grid-template-columns: 1fr; }
}

.user-video-wrap {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-video-wrap video {
    width: 100%;
    max-height: 480px;
}
.user-video-placeholder {
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}
.user-video-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    border-color: rgba(255, 255, 255, .15);
    border-top-color: var(--user-primary);
}

.user-info-table {
    width: 100%;
    border-collapse: collapse;
}
.user-info-table tr {
    border-bottom: 1px dashed var(--user-border);
}
.user-info-table tr:last-child { border-bottom: none; }
.user-info-key {
    width: 130px;
    color: var(--user-text-muted);
    padding: 12px 12px 12px 0;
    font-size: 13px;
    font-weight: 500;
}
.user-info-val {
    padding: 12px 0;
    font-size: 13px;
    color: var(--user-text);
}
.user-info-val.mono {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.user-prompt-box {
    background: var(--user-surface-2);
    padding: 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--user-text);
    border: 1px solid var(--user-border);
}
.user-media-thumb {
    max-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--user-border);
}

.user-details summary {
    cursor: pointer;
    color: var(--user-text-muted);
    font-size: 13px;
    padding: 8px 12px;
    background: var(--user-surface-2);
    border-radius: 8px;
    border: 1px solid var(--user-border);
    transition: all .2s;
}
.user-details summary:hover {
    color: var(--user-primary-dark);
    background: var(--user-primary-soft);
}
.user-debug-box {
    background: #0f172a;
    color: #cbd5e1;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    max-height: 320px;
    overflow: auto;
    margin-top: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ===== 全局 toast ===== */
.user-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -20px);
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--user-text);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all .25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.user-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.user-toast-success { background: var(--user-success); }
.user-toast-error   { background: var(--user-danger); }
.user-toast-info    { background: var(--user-primary-dark); }
.user-toast-warning { background: var(--user-warning); }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .user-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .user-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body.user-layout-body .user-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "main";
    }
    .user-sidebar { display: none; }
    .user-topbar { padding: 0 16px; }
    .user-main { padding: 18px 16px 30px; }
    .user-hero { padding: 24px; flex-direction: column; align-items: flex-start; gap: 18px; }
    .user-hero-title { font-size: 22px; }
    .user-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .user-task-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .user-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .user-form-row { grid-template-columns: 1fr; }
    .user-table th, .user-table td { padding: 12px 14px; font-size: 13px; }
}

/* ====================================================
   全屏视频落地页（OnlyFace Ai 首页）
   ==================================================== */
/* 落地页容器只占第一屏高度，保留页面整体滚动 */
html, body.home-landing {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.landing {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #0a0a14;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景视频 */
.landing-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.landing-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 20, 0.75) 0%,
        rgba(10, 10, 20, 0.5) 50%,
        rgba(10, 10, 20, 0.8) 100%
    );
}

/* 左上角 Logo */
.landing-logo {
    position: absolute;
    top: 28px;
    left: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all .2s;
}
.landing-logo:hover { transform: scale(1.03); opacity: 0.9; }
.landing-logo-img {
    height: 42px;
    width: auto;
    max-width: 220px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
.landing-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.landing-logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff4d8d, #7d5fff);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255, 77, 141, 0.4);
}
.landing-logo-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.landing-logo-name em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.8;
}

/* 右上角按钮（玻璃风） */
.landing-top-right {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-glass {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 18px rgba(0, 0, 0, 0.25);
    transition: all .25s;
}
.landing-glass:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 6px 22px rgba(0, 0, 0, 0.32);
}
.landing-glass-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.55), rgba(0, 120, 255, 0.55));
    border-color: rgba(120, 200, 255, 0.45);
}
.landing-glass-primary:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.75), rgba(0, 140, 255, 0.75));
}

/* 中央主内容（居左） */
.landing-center {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 32px;
}
.landing-headline {
    max-width: 720px;
    width: 100%;
    animation: fadeUpIn 0.8s ease both;
}
.landing-headline-main {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.landing-headline-accent {
    background: linear-gradient(135deg, #ff4d8d, #7d5fff, #ff9a8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}
.landing-headline-sub {
    font-size: clamp(14px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin: 0 0 36px;
    line-height: 1.85;
    font-weight: 400;
    animation: fadeUpIn 0.8s 0.2s ease both;
}

/* CTA 按钮 —— 青蓝胶囊（带魔法图标 + 右侧箭头） */
.landing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1cc4ff 0%, #0a8aff 100%);
    box-shadow:
        0 8px 28px rgba(10, 138, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: all .3s;
    animation: fadeUpIn 0.8s 0.4s ease both;
    overflow: hidden;
    position: relative;
}
.landing-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 38px rgba(10, 138, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    color: #fff;
}
.landing-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #d6f0ff;
}
.landing-cta-text {
    flex: 1;
    letter-spacing: 1px;
}
.landing-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transition: all .3s;
}
.landing-cta-btn:hover .landing-cta-arrow {
    background: rgba(255, 255, 255, 0.32);
    transform: translateX(3px);
}

/* 底部模式入口（居中底部） */
.landing-bottom {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    pointer-events: none;
    animation: fadeUpIn 0.8s 0.6s ease both;
}
.landing-mode-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
}
.landing-mode-chip {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all .2s;
}
.landing-mode-chip:hover {
    color: #fff;
    background: rgba(28, 196, 255, 0.18);
    border-color: rgba(120, 200, 255, 0.4);
    transform: translateY(-1px);
}

/* 滚动提示（右下角） */
.landing-scroll-hint {
    position: absolute;
    bottom: 20px;
    right: 32px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all .25s;
    animation: floatY 2s ease-in-out infinite;
}
.landing-scroll-hint:hover {
    color: #fff;
    background: rgba(28, 196, 255, 0.18);
    border-color: rgba(120, 200, 255, 0.4);
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* ====================================================
   第二屏：作品广场
   ==================================================== */
.gallery-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a14 0%, #13131f 100%);
    padding: 80px 0 60px;
}
.gallery-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}
.gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #fff, #c5b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gallery-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin: 0;
}
.gallery-view-all {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: rgba(28, 196, 255, 0.15);
    border: 1px solid rgba(28, 196, 255, 0.35);
    backdrop-filter: blur(10px);
    transition: all .2s;
}
.gallery-view-all:hover {
    background: rgba(28, 196, 255, 0.28);
    border-color: rgba(28, 196, 255, 0.6);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.gallery-item {
    background: rgba(26, 26, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s;
    opacity: 0;
    transform: translateY(20px);
    animation: itemFadeIn 0.6s ease forwards;
}
@keyframes itemFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 196, 255, 0.4);
    box-shadow: 0 16px 40px rgba(28, 196, 255, 0.18);
}
.gallery-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #0a0a14;
    overflow: hidden;
}
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(28, 196, 255, 0.85);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(28, 196, 255, 0.5);
    padding-left: 4px;
    transition: transform .2s;
    cursor: pointer;
    border: none;
}
.gallery-play:hover { transform: scale(1.1); color: #fff; }

.gallery-info { padding: 16px; }
.gallery-prompt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
    min-height: 38px;
    line-height: 1.6;
}
.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.gallery-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(28, 196, 255, 0.12);
    color: #6cc4ff;
    font-weight: 500;
}
.gallery-author {
    color: rgba(255, 255, 255, 0.6);
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}
.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 封面图 */
.gallery-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity .3s;
}
.gallery-thumb:hover .gallery-cover-img { opacity: 0; }

/* Showcase 徽章 */
.gallery-badge-showcase {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.85);
    color: #1a1a2a;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

/* 竖版 9:16 */
.gallery-thumb-portrait { aspect-ratio: 9/16; max-height: 320px; }
/* 方版 1:1 */
.gallery-thumb-square   { aspect-ratio: 1/1; }

/* 动画 */
@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* ================================================================
   视频预览弹窗（Video Preview Modal）
   ================================================================ */
#videoPreviewModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#videoPreviewModal.show { display: flex; }

.vpm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: vpmFadeIn .2s ease;
}
@keyframes vpmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vpm-card {
    position: relative;
    z-index: 1;
    background: #13131f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
    animation: vpmSlideIn .28s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}
@keyframes vpmSlideIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.vpm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.vpm-close:hover { background: rgba(255, 71, 87, 0.85); border-color: rgba(255, 71, 87, 0.5); }

.vpm-video-wrap {
    background: #000;
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vpm-video-wrap video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.vpm-info {
    padding: 18px 22px;
    flex: 1;
    overflow-y: auto;
}
.vpm-prompt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin: 0 0 12px;
    font-weight: 500;
}
.vpm-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}
.vpm-author { color: rgba(28, 196, 255, 0.85); font-weight: 600; }

/* 响应式 */
@media (max-width: 600px) {
    .landing-logo { top: 20px; left: 16px; }
    .landing-logo-img { height: 34px; }
    .landing-top-right { top: 18px; right: 12px; gap: 6px; z-index: 20; }
    .landing-glass { padding: 7px 12px; font-size: 13px; }
    .landing-headline-sub { margin-bottom: 28px; }
    .landing-cta-btn { padding: 11px 11px 11px 16px; font-size: 14px; gap: 8px; }
    .landing-cta-icon, .landing-cta-arrow { width: 28px; height: 28px; }
    .landing-bottom { bottom: 50px; }
    .landing-scroll-hint { right: 16px; bottom: 14px; }
    .gallery-section { padding: 50px 0 30px; }
    .gallery-inner { padding: 0 16px; }
    .gallery-title { font-size: 24px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

