/* =========================================================
   fy-user.css · 前台统一皮肤（会员中心 / 工作台 / 登录注册 / 套餐）
   目标：与 CMS 前台（首页 / 栏目页 / 详情页）的 fy 黑白风格保持一致
   依赖：bootstrap.min.css + addons/cms/css/common.css + fy-v2.css
   ========================================================= */

/* 旧页面部分内联样式使用了这些变量，此处做别名，避免依赖 aiimage.css */
:root {
    /* ---- 品牌色（墨蓝）：与 fy-v2.css 保持同一套值 ---- */
    --brand: #2f47c9;
    --brand-dark: #2539a8;
    --brand-soft: #eef0fb;
    --brand-ink: #ffffff;
    --surface-dark: #141b3d;
    --surface-dark-2: #1b2450;

    /* 别名：旧模板/内联样式仍在引用 --primary / --violet */
    --primary: var(--brand);
    --primary-dark: var(--brand-dark);
    --primary-soft: var(--brand-soft);
    --violet: var(--brand);

    --dim: #adb3c9;
    --bg-soft: #f5f6fb;
    --green: #12805c;
    --shadow: 0 12px 32px rgba(20, 27, 61, .10);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body { font-family: var(--font); }

/* 修复：common.css 中的 body{display:flex;height:100%} + .main-content{flex-grow:1}
   会把主体区高度锁死在一屏内，内容超出时会溢出并压住页脚
   这里放开 height，改用 min-height，既保留页脚吸底又不会被内容覆盖 */
html, body { height: auto !important; }
body { min-height: 100vh; }

/* ---------- 主体留白 ---------- */
.main-content { min-height: calc(100vh - var(--header-h) - var(--notice-h) - 300px); }
.content { padding: 36px 0 60px; }
.user-wrap { max-width: 1240px; margin: 0 auto; padding: 32px 20px 70px; }

/* ---------- 两栏布局（侧边栏 + 内容） ---------- */
.user-layout { display: flex; gap: 24px; align-items: flex-start; }
.user-side-col { width: 220px; flex: none; }
.user-main { flex: 1; min-width: 0; }

.user-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    position: sticky;
    top: calc(var(--header-h) + var(--notice-h) + 16px);
    max-height: calc(100vh - var(--header-h) - var(--notice-h) - 32px);
    overflow-y: auto;
}
.user-side .side-heading { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 10px 12px 6px; letter-spacing: .5px; }
.user-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.user-side a:hover { background: var(--line-2); color: var(--ink); }
.user-side a.active { background: var(--primary); color: #fff; font-weight: 600; }
.user-side a i { width: 18px; text-align: center; }

/* 插件钩子注入的 list-group 结构（每日签到 / VIP中心 等）统一成侧栏条目样式 */
.user-side .sidebar-toggle { display: none; }
.user-side ul.list-group { margin: 0; padding: 0; list-style: none; background: none; border: 0; box-shadow: none; }
.user-side .list-group-item { margin: 0; padding: 0; border: 0; background: none; }
.user-side .list-group-heading { padding: 10px 12px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .5px; background: none; border: 0; }
.user-side .list-group-item > a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.user-side .list-group-item > a:hover { background: var(--line-2); color: var(--ink); }
.user-side .list-group-item.active > a,
.user-side .list-group-item.active > a:hover { background: var(--primary); color: #fff; font-weight: 600; }
.user-side .list-group-item > a i { width: 18px; text-align: center; }

/* ---------- 面板 ---------- */
.panel.panel-user { background: #fff; }
.panel-user .panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-user .panel-title { font-size: 16px; font-weight: 700; }
.user-main .page-header {
    font-size: 20px; font-weight: 800; margin: 0 0 22px; padding-bottom: 14px;
    border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}

/* ---------- 按钮（黑白化，覆盖 Bootstrap 默认蓝色） ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary,
.btn-primary:focus { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 12px 26px; font-size: 16px; border-radius: 12px; }
.text-primary { color: var(--primary) !important; }

/* ---------- 个人信息 ---------- */
.profile-box { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; flex: none; }
.profile-info { flex: 1; }
.profile-info .nickname { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.profile-info .bio { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.profile-meta .item { font-size: 14px; }
.profile-meta .item .k { color: var(--muted); font-size: 12.5px; }
.profile-meta .item .v { color: var(--ink); font-weight: 500; }

/* ---------- 余额/积分卡片 ---------- */
.balance-card { background: var(--surface-dark); border-radius: var(--radius-lg); padding: 26px 28px; color: #fff; margin-bottom: 24px; }
.balance-card .label { font-size: 13px; opacity: .7; margin-bottom: 6px; }
.balance-card .amount { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }

/* ---------- 表格 ---------- */
.user-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.user-table th { text-align: left; padding: 12px 14px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; background: #fafafb; }
.user-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.user-table tr:hover td { background: #fafafb; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--price); font-weight: 600; }
.empty { padding: 46px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 提示条 ---------- */
.notice-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 20px; background: #fafafb; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-lg); }
.notice-box > i { color: var(--ink); font-size: 18px; line-height: 1.4; flex: none; margin-top: 2px; }
.notice-box .notice-body b { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.notice-box .notice-body p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination > li > a, .pagination > li > span { border-radius: 8px !important; margin: 0; color: var(--ink-2); border-color: var(--line); }
.pagination > .active > span { background: var(--primary) !important; border-color: var(--primary) !important; }

/* =========================================================
   登录 / 注册
   ========================================================= */
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px 30px; box-shadow: var(--shadow-sm); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.auth-brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; }
.auth-brand .name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.auth-tabs { display: flex; gap: 6px; background: var(--line-2); border-radius: 12px; padding: 5px; margin-bottom: 24px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px 0; border-radius: 9px; font-size: 15px; color: var(--muted); }
.auth-tabs a.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-title { font-size: 23px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; text-align: center; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; text-align: center; }
.auth-switch { display: flex; gap: 4px; background: var(--line-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin: 2px 0 20px; }
.auth-switch a { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.auth-switch a.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.auth-field .controls input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--font); background: #fff; color: var(--ink); }
.auth-field .controls input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 71, 201, .16); }
.auth-field .controls .help-block { font-size: 12.5px; color: var(--price); margin-top: 5px; min-height: 16px; }
.auth-check { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.auth-check label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-btn { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .15s; }
.auth-btn:hover { background: var(--brand-dark); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--ink); font-weight: 500; }
.auth-captcha { display: flex; gap: 8px; align-items: center; }
.auth-captcha input { flex: 1; }
.auth-captcha img { height: 42px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.msg-box { display: block; font-size: 12.5px; color: var(--price); margin-top: 5px; min-height: 16px; }

/* =========================================================
   AI 工作台
   ========================================================= */
.wb { display: flex; align-items: flex-start; min-height: calc(100vh - var(--header-h) - var(--notice-h)); }
.wb-side {
    width: 264px; flex: none; background: #fff; border-right: 1px solid var(--line);
    padding: 20px 14px; position: sticky; top: calc(var(--header-h) + var(--notice-h));
    max-height: calc(100vh - var(--header-h) - var(--notice-h)); overflow-y: auto;
}
.tool-tabs { display: flex; flex-direction: column; gap: 6px; }
.tool-group { display: flex; align-items: center; gap: 9px; padding: 18px 12px 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tool-group::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); flex: none; }
.tool-group:first-child { padding-top: 0; }
.tool-tab {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; cursor: pointer;
    font-size: 14.5px; font-weight: 500; color: var(--ink-2); border: 1px solid transparent;
    background: transparent; width: 100%; text-align: left; font-family: var(--font); transition: all .15s var(--ease);
}
.tool-tab:hover { background: var(--line-2); color: var(--ink); }
.tool-tab.active { background: var(--primary); color: #fff; font-weight: 600; }
.tool-tab.active .t-ic { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.tool-tab .t-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.tc-image, .tc-video, .tc-replica, .tc-link, .tc-digital { background: #f0f0f3; color: var(--primary); }

.wb-main { flex: 1; min-width: 0; padding: 28px 36px 70px; }
.wb-head { margin-bottom: 24px; }
.wb-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.4px; }
.wb-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.wb-panel { display: none; }
.wb-panel.active { display: block; animation: fyFade .2s var(--ease); }
@keyframes fyFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wb-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.wb-col h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }

.upload-zone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s var(--ease); background: #fff; }
.upload-zone:hover { border-color: var(--primary); color: var(--ink); background: var(--line-2); }
.upload-zone .up-ic { font-size: 28px; margin-bottom: 10px; }
.upload-zone p { font-size: 13.5px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: var(--font); background: #fff; color: var(--ink); transition: border .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 84px; }
.result-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; color: var(--muted); text-align: center; background: var(--line-2); border-radius: var(--radius); padding: 28px; }
.result-zone .r-ic { font-size: 38px; margin-bottom: 12px; opacity: .5; }
.result-zone p { font-size: 13.5px; max-width: 260px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.beta-banner { display: flex; align-items: center; gap: 10px; background: #fafafb; border: 1px solid var(--line); color: var(--ink-2); border-radius: 12px; padding: 13px 18px; font-size: 14px; margin-bottom: 20px; }
.beta-banner b { white-space: nowrap; }

/* 弹窗（覆盖 Bootstrap .modal 定位，故提高选择器权重） */
.modal-mask { position: fixed; inset: 0; background: rgba(20, 27, 61, .5); display: none; align-items: center; justify-content: center; z-index: 1040; padding: 20px; }
.modal-mask.show { display: flex; }
.modal-mask .modal { position: static; background: #fff; border-radius: var(--radius-lg); max-width: 440px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(20, 27, 61, .28); max-height: 90vh; overflow-y: auto; }
.modal-mask .modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; padding-right: 28px; }
.modal-mask .modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-mask .modal .close { float: right; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; border: none; background: none; margin: -4px -4px 0 0; opacity: 1; }
.modal-mask .modal .wechat-box { display: none; background: #fafafb; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; margin-top: 4px; }
.modal-mask .modal .wechat-box.show { display: block; }
.modal-mask .modal .wechat-box .wxid { font-size: 20px; font-weight: 800; color: var(--ink); margin: 8px 0; }
.modal-mask .modal .tip { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* ---------- 二维码 / 客服浮层 ---------- */
.qr-wrap { display: flex; justify-content: center; margin: 16px 0; }
.qr-img { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.qr-fallback { display: none; width: 168px; height: 168px; border: 2px dashed var(--line); border-radius: 12px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; background: #fafafb; padding: 12px; }
/* 客服浮层 .kefu-float / 二维码弹窗 .qr-modal 样式已上移到 fy-v2.css
   （CMS 前台只加载 fy-v2.css，上移后 CMS / 工作台 / 画册三处共用同一份） */

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .user-layout { flex-direction: column; }
    .user-side-col { width: 100%; }
    .user-side { position: static; max-height: none; overflow: visible; }
    .wb { flex-direction: column; }
    .wb-side { width: 100%; position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--line); }
    .tool-tabs { flex-direction: row; flex-wrap: wrap; }
    .tool-group { display: none; }
    .tool-tab { width: auto; }
    .wb-main { padding: 22px 18px 60px; }
    .wb-grid { grid-template-columns: 1fr; }
    .profile-meta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .user-wrap { padding: 22px 14px 60px; }
    .result-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   四步创建流程（/create.html）：上传图片 → 生成商品图 → 生成商品视频 → 生成画册
   仅使用 fy-v2.css 的设计令牌（--brand / --line / --surface-dark ...）
   ============================================================ */
.cz { max-width: 1080px; margin: 0 auto; padding: 30px 20px 70px; }

/* ---------- 进度条 ---------- */
.cz-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 26px; }
.cz-step { display: flex; align-items: center; gap: 9px; flex: none; }
.cz-step .dot {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--line); background: #fff; color: var(--muted);
    font-size: 13.5px; font-weight: 700; line-height: 27px; text-align: center;
    transition: all .25s var(--ease);
}
.cz-step .nm { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .25s var(--ease); }
.cz-step.on .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); transform: scale(1.06); }
.cz-step.on .nm { color: var(--ink); font-weight: 800; }
.cz-step.done .dot { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.cz-step.done .dot::after { content: '✓'; }
.cz-step.done .dot { font-size: 0; }
.cz-step.done .dot::after { font-size: 14px; font-weight: 800; }
.cz-step.done .nm { color: var(--ink-2); }
.cz-line { flex: 1 1 auto; height: 2px; margin: 0 12px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 24px; }
.cz-line i { display: block; width: 0; height: 100%; background: var(--brand); border-radius: 2px; transition: width .35s var(--ease); }
.cz-line.done i { width: 100%; }

/* ---------- 卡片与面板 ---------- */
.cz-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; box-shadow: 0 14px 44px rgba(20, 27, 61, .07); }
.cz-panel { display: none; }
.cz-panel.active { display: block; animation: czIn .28s var(--ease); }
@keyframes czIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cz-head { margin-bottom: 20px; }
.cz-head h1 { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; margin-bottom: 8px; }
.cz-head p { font-size: 14px; color: var(--ink-2); line-height: 1.7; max-width: 760px; }
.cz-head b { color: var(--ink); }
.cz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cz-col { min-width: 0; }
.cz-col h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.cz-opt { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cz-req { color: #d93a3a; font-weight: 700; }
.cz-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.cz-note b { color: var(--ink); }
.cz-warn {
    display: block; background: var(--brand-soft); border: 1px solid #d8ddf6; color: var(--brand-dark);
    border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.7; margin: 0;
}
.cz-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cz-cost { font-size: 12.5px; color: var(--muted); }

/* ---------- 第 3 步：生视频能力说明条 / 时长分段 / 字数统计 ---------- */
.cz-tip {
    background: linear-gradient(135deg, rgba(47, 107, 255, .08) 0%, rgba(90, 140, 255, .05) 100%);
    border: 1px solid rgba(47, 107, 255, .16); border-radius: 12px;
    padding: 12px 16px; margin-bottom: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.cz-tip b { font-weight: 600; color: var(--ink); }
.cz-tip .cz-sub { display: block; margin-top: 2px; color: var(--muted); }
.cz-seg { display: inline-flex; gap: 6px; padding: 5px; background: var(--line-2); border-radius: 12px; }
.cz-seg-item {
    border: 0; background: transparent; cursor: pointer; padding: 9px 20px; border-radius: 9px;
    font-size: 14px; font-weight: 600; color: var(--muted); font-family: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    transition: all .2s var(--ease);
}
.cz-seg-item em { font-size: 11px; font-weight: 500; font-style: normal; opacity: .85; }
.cz-seg-item:hover { color: var(--ink); }
.cz-seg-item.on { background: #fff; color: var(--brand); box-shadow: 0 4px 14px rgba(27, 35, 51, .1); }
.cz-seg-item.on em { color: var(--brand); }
.cz-cnt { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cz-cnt b { color: var(--ink); font-weight: 600; }
/* 「跳过此步」与「下一步」并排成对：外观交给 .btn.btn-ghost，这里只保证不换行 */
.cz-skip { white-space: nowrap; }
.cz-alt-hint { color: var(--brand-dark); font-weight: 600; }
.cz-foot .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
/* 跳过的步骤以「–」标记，避免与已完成步骤混淆 */
.cz-step.skip .dot { background: #fff; border-color: var(--line); color: var(--muted); box-shadow: none; transform: none; }
.cz-step.skip .dot::after { content: '–'; font-size: 14px; font-weight: 800; }
.cz-step.skip .nm { color: var(--muted); }
.cz-step.skip .nm::after { content: '（已跳过）'; font-size: 12px; font-weight: 500; }

/* ---------- 未登录提示页 ---------- */
.cz-gate { max-width: 680px; margin: 0 auto; }
.cz-gate .cz-head { text-align: center; }
.cz-gate .cz-head p { margin: 0 auto; }
.cz-gate .cz-note { text-align: center; }
.gate-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; }

/* ---------- 上传区 ---------- */
.cz .upload-zone { position: relative; }
.cz .upload-zone .up-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cz .upload-zone.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.cz .upload-zone.loading { opacity: .6; pointer-events: none; }
.cz-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cz-thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.cz-thumb.mini { width: 68px; height: 68px; }
.cz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-thumb .rm {
    position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; line-height: 18px; text-align: center;
    border-radius: 50%; background: rgba(20, 27, 61, .7); color: #fff; font-size: 14px; cursor: pointer;
}
.cz-thumb .cv {
    position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11px;
    color: #fff; background: rgba(20, 27, 61, .72); padding: 2px 0;
}
/* 「查看大图」入口：与右上角的删除按钮左右镜像，互不遮挡 */
.cz-thumb .zoom, .cz-item .zoom, .cz-src-item .zoom {
    position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; line-height: 19px; text-align: center;
    border-radius: 50%; background: rgba(20, 27, 61, .7); color: #fff; font-size: 12px; cursor: pointer;
    z-index: 2; transition: background .15s var(--ease);
}
.cz-item .zoom, .cz-src-item .zoom { left: auto; right: 4px; }
.cz-thumb .zoom:hover, .cz-item .zoom:hover, .cz-src-item .zoom:hover { background: var(--brand); }
.cz-thumb .zoom svg, .cz-item .zoom svg, .cz-src-item .zoom svg { display: block; margin: 4.5px auto 0; }
/* 缩略图本身可点开大图，给出放大光标做提示 */
.cz-thumb img { cursor: zoom-in; }
.cz-thumbs.vid .cz-vid.mini { width: 150px; }

/* ---------- 选项 chips ---------- */
.cz-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cz-chip {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px;
    font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
    transition: all .18s var(--ease);
}
.cz-chip em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cz-chip:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.cz-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.cz-chip.on em { color: var(--brand-dark); }

/* ---------- 结果网格 ---------- */
.cz-prog { display: none; align-items: center; gap: 10px; margin-bottom: 12px; }
.cz-prog.on { display: flex; }
.cz-prog .tk { flex: 1; display: block; height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.cz-prog .tk i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .5s var(--ease); }
.cz-prog .tx { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cz-grid-img, .cz-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cz-grid-img:empty { display: none; }
.cz-item, .cz-src-item { position: relative; aspect-ratio: 1/1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.cz-item:hover, .cz-src-item:hover { transform: translateY(-3px); }
.cz-item img, .cz-src-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-item.on, .cz-src-item.on { border-color: var(--brand); }
.cz-item .ck, .cz-src-item .ck {
    position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11.5px;
    color: #fff; background: rgba(20, 27, 61, .55); padding: 3px 0;
}
.cz-item.on .ck { background: var(--brand); }
.cz-src-item.on .ck { background: var(--brand); }
.cz-src-item { border-color: var(--line); }
.cz-src-item:not(.on) { opacity: .45; }

.cz-grid-vid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cz-vid { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-dark); }
.cz-vid video { width: 100%; display: block; background: #000; }
.cz-vid .tag { position: absolute; top: 6px; left: 8px; font-size: 11px; color: #fff; background: rgba(20, 27, 61, .6); border-radius: 999px; padding: 2px 8px; }
.cz-vid .add {
    position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
    color: var(--ink); background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 5px 12px;
    box-shadow: 0 4px 14px rgba(20, 27, 61, .2);
}
.cz-vid .add.on { background: var(--brand); color: #fff; }
.cz-thumbs.vid { gap: 10px; }
.cz-thumbs.vid .cz-vid.mini { width: 156px; border-radius: 10px; }
.cz-thumbs.vid .cz-vid.mini video { height: 88px; object-fit: cover; }

/* ---------- 多语言 ---------- */
.cz-lang { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fafbff; }
.cz-lang-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cz-lang-h b { font-size: 14px; color: var(--ink); }
.cz-mini {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
    font-size: 12.5px; font-weight: 600; color: var(--brand); cursor: pointer; transition: all .18s var(--ease);
}
.cz-mini:hover { border-color: var(--brand); background: var(--brand-soft); }
.cz-mini[disabled] { opacity: .55; cursor: default; }
.cz-lang input, .cz-lang textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; background: #fff; color: var(--ink); margin-bottom: 8px; font-family: inherit; }
.cz-lang input:focus, .cz-lang textarea:focus { outline: none; border-color: var(--brand); }
.cz-lang textarea { min-height: 62px; resize: vertical; }

/* ---------- 完成态 ---------- */
.cz-done { margin-top: 20px; }
.cz-ok { background: #f6f8ff; border: 1px solid #dfe4f8; border-radius: 14px; padding: 22px; text-align: center; }
.cz-ok .ok-ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: #12805c; color: #fff; font-size: 24px; line-height: 46px; }
.cz-ok h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cz-ok p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.ok-link { display: flex; gap: 8px; margin-bottom: 14px; }
.ok-link input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; color: var(--ink); }
.ok-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- 底部操作条 ---------- */
.cz-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.cz-foot .btn { min-width: 120px; }
.cz-alt { flex: 1; font-size: 13px; color: var(--muted); text-align: center; }
.cz-alt a { color: var(--brand); font-weight: 600; }

/* ---------- 图片大图预览（轻量灯箱，无第三方依赖） ---------- */
body.cz-lb-open { overflow: hidden; }
.cz-lb {
    position: fixed; inset: 0; z-index: 1080; display: none;
    align-items: center; justify-content: center; padding: 44px 24px 28px;
    background: rgba(12, 17, 40, .9); cursor: zoom-out;
}
.cz-lb.on { display: flex; animation: czLbIn .18s var(--ease); }
.cz-lb img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
    background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.cz-lb .cz-lb-x {
    position: absolute; top: 16px; right: 20px; width: 38px; height: 38px; line-height: 36px; text-align: center;
    border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; cursor: pointer;
    transition: background .15s var(--ease);
}
.cz-lb .cz-lb-x:hover { background: rgba(255, 255, 255, .3); }
@keyframes czLbIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 991px) {
    .cz { padding: 22px 16px 60px; }
    .cz-card { padding: 24px 20px; border-radius: 16px; }
    .cz-grid2 { grid-template-columns: 1fr; gap: 22px; }
    .cz-step .nm { display: none; }
    .cz-step.on .nm { display: inline; }
}
@media (max-width: 640px) {
    .cz-grid-img, .cz-src { grid-template-columns: repeat(2, 1fr); }
    .cz-foot { flex-wrap: wrap; }
    .cz-foot .btn { flex: 1; min-width: 0; }
    .cz-alt { order: 3; flex-basis: 100%; }
}

/* ============================================================
   会员中心（我的会员 / 积分套餐 / 邀请好友 / 卡密兑换）
   仅使用 fy-v2.css 的设计令牌
   ============================================================ */
.mc-hero {
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
    border-radius: var(--radius-lg); padding: 26px 28px; color: #fff; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mc-hero .lv { display: flex; align-items: center; gap: 14px; }
.mc-hero .lv-ic {
    width: 52px; height: 52px; border-radius: 16px; flex: none;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
}
.mc-hero .lv-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.mc-hero .lv-sub { font-size: 13px; opacity: .78; margin-top: 4px; }
.mc-hero .lv-sub b { font-weight: 700; opacity: 1; }
.mc-hero .lv-right { text-align: right; }
.mc-hero .lv-right .score { font-size: 30px; font-weight: 800; line-height: 1.1; }
.mc-hero .lv-right .score em { font-size: 13px; font-style: normal; font-weight: 600; opacity: .75; margin-left: 4px; }
.mc-hero .lv-right .tip { font-size: 12.5px; opacity: .72; margin-top: 4px; }

.mc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.mc-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.mc-stat .k { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.mc-stat .v { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.mc-stat .v em { font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 4px; }

.mc-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 26px 0 14px; display: flex; align-items: center; gap: 8px; }
.mc-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }

.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.mc-plan {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 20px 18px; display: flex; flex-direction: column; position: relative;
    transition: all .2s var(--ease); margin: 0;
}
.mc-plan:hover { border-color: #c4c4cc; transform: translateY(-2px); }
.mc-plan.current { border-color: var(--brand); box-shadow: 0 8px 26px rgba(47, 71, 201, .12); }
.mc-plan .badge-cur {
    position: absolute; top: -1px; right: -1px; background: var(--brand); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 0 var(--radius-lg) 0 10px;
}
.mc-plan .name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mc-plan .price { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin: 6px 0 4px; }
.mc-plan .price em { font-size: 13px; font-style: normal; font-weight: 600; }
.mc-plan .price .unit { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.mc-plan .intro { color: var(--muted); font-size: 12.5px; line-height: 1.75; margin: 8px 0 12px; }
.mc-plan .rights { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.mc-plan .rights li { font-size: 12.5px; color: var(--ink-2); line-height: 1.95; display: flex; gap: 7px; align-items: flex-start; }
.mc-plan .rights li i { color: var(--brand); font-size: 12px; line-height: 1.95; }
.mc-plan select {
    width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px;
    padding: 0 10px; font-size: 13.5px; color: var(--ink); background: #fff; margin-bottom: 12px;
}
.mc-plan select:focus { outline: none; border-color: var(--brand); }
.mc-plan .buy {
    height: 42px; line-height: 40px; padding: 0 18px; border-radius: 10px; width: 100%;
    background: var(--brand); border: 1px solid var(--brand); color: #fff; cursor: pointer;
    font-size: 14.5px; font-weight: 600; transition: all .2s var(--ease); text-align: center;
}
.mc-plan .buy:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.mc-plan .buy.disabled { background: #c9cddc; border-color: #c9cddc; cursor: not-allowed; }

.mc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.mc-card + .mc-card { margin-top: 18px; }
.mc-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.mc-card .desc { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 16px; }

.mc-copy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mc-copy input {
    flex: 1; min-width: 200px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
    padding: 0 14px; font-size: 14px; color: var(--ink); background: #fafafb;
}
.mc-copy .btn { height: 42px; line-height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; }

.mc-redeem { max-width: 520px; }
.mc-redeem input[type=text] {
    width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    padding: 0 14px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink); margin-bottom: 14px; font-family: var(--font);
}
.mc-redeem input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 71, 201, .14); }
.mc-redeem .btn-submit {
    width: 100%; height: 46px; border: none; border-radius: 10px; background: var(--brand);
    color: #fff; font-size: 15.5px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.mc-redeem .btn-submit:hover { background: var(--brand-dark); }
.mc-off { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; padding: 18px 0; }

.mc-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.mc-badge.on { background: #e8f6ef; color: var(--ok); }
.mc-badge.off { background: #f0f0f3; color: var(--muted); }
.mc-badge.warn { background: #fdf1e6; color: #b26a12; }

@media (max-width: 640px) {
    .mc-hero { padding: 20px; }
    .mc-hero .lv-right { text-align: left; }
    .mc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   我的工作台 · 统一外壳（侧栏入口 / 页内工具切换条）
   主站页面与画册插件页面共用，保证两侧菜单视觉完全一致
   ============================================================ */
/* 工作台首页：置顶主入口，用品牌色卡片突出显示 */
.wb-nav-home {
    margin-bottom: 12px; padding: 12px 13px;
    font-size: 15px; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); border: 1px solid rgba(47, 71, 201, .16);
}
.wb-nav-home .t-ic { background: rgba(47, 71, 201, .12); color: var(--brand); }
.wb-nav-home:not(.active):hover {
    background: #e3e7f9; border-color: rgba(47, 71, 201, .26); color: var(--brand-dark);
}

.wb-nav-groups { margin-top: 2px; }

/* 页内顶部工具 / 工作流切换条（AI生图 / AI生视频） */
.wb-solo { min-height: calc(100vh - var(--header-h) - var(--notice-h)); }
.tool-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 10px 12px; margin-bottom: 22px;
}
.tool-bar .tool-group {
    width: auto; padding: 0 11px 0 2px; margin: 0; font-size: 12.5px; font-weight: 600;
    color: var(--muted); position: relative;
}
.tool-bar .tool-group::before { display: none; }
.tool-bar .tool-group::after {
    content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 16px; background: var(--line);
}
/* 未选中：浅品牌色块 + 品牌色文字（避免灰底灰字在白底工具栏上糊成一片） */
.tool-bar .tool-tab {
    width: auto; padding: 8px 14px; font-size: 13.5px; border-radius: 10px;
    background: var(--brand-soft); border: 1px solid transparent;
    color: var(--brand); font-weight: 500;
}
.tool-bar .tool-tab .t-ic {
    width: 24px; height: 24px; border-radius: 7px; font-size: 13px;
    background: rgba(255, 255, 255, .72); color: var(--brand);
}
.tool-bar .tool-tab:hover {
    background: #dde5fb; border-color: rgba(47, 71, 201, .32); color: var(--brand-dark);
}
/* 选中：品牌色实底 + 白字。
   特异性必须高于上面的 .tool-bar .tool-tab，否则灰底会盖掉主色底、
   只剩白字浮在浅灰上（对比度极低），故写成三个类并置于 hover 之后。 */
.tool-bar .tool-tab.active,
.tool-bar .tool-tab.active:hover {
    background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
    box-shadow: 0 6px 16px rgba(47, 71, 201, .3);
}
@media (max-width: 640px) {
    .tool-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
    .tool-bar .tool-tab { flex: none; }
}

/* ============================================================
   我的工作台 · 首页
   ============================================================ */
.wb-home { max-width: 1180px; }

.wb-hero {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, #4f6ef7 0%, #6e8bff 55%, #8aa0ff 100%);
    border-radius: var(--radius-lg); padding: 26px 28px; color: #fff;
    box-shadow: 0 14px 40px rgba(79, 110, 247, .22); margin-bottom: 22px;
}
.wb-hero-av {
    width: 66px; height: 66px; border-radius: 20px; object-fit: cover; flex: none;
    border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .18);
}
.wb-hero-txt { flex: 1; min-width: 220px; }
.wb-hero-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: #fff; margin: 0; }
.wb-hero-hello { font-size: 14.5px; font-weight: 500; opacity: .82; margin-left: 4px; }
.wb-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wb-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; color: #fff;
}
.wb-pill-tip { background: rgba(255, 255, 255, .22); }
.wb-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.wb-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 20px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
    color: #fff; transition: all .18s var(--ease); white-space: nowrap;
}
.wb-btn:hover { background: rgba(255, 255, 255, .3); color: #fff; transform: translateY(-1px); }
.wb-btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.wb-btn-primary:hover { background: #f2f4ff; color: var(--primary); }

.wb-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 26px; }
.wb-stat {
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 18px 20px; transition: all .2s var(--ease);
}
.wb-stat:hover { border-color: #c8d0f0; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(79, 110, 247, .1); }
.wb-stat-ic {
    width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 8px;
}
.is-money { background: #eef1ff; color: #4f6ef7; }
.is-score { background: #fdf3e6; color: #f59e0b; }
.is-asset { background: #e9f7f1; color: #16a34a; }
.is-album { background: #f2ecfe; color: #7c4dff; }
.is-create { background: #eef1ff; color: #4f6ef7; }
.is-member { background: #fdeef3; color: #ef4444; }
.wb-stat-num { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.6px; line-height: 1.15; }
.wb-stat-lb { font-size: 12.5px; color: var(--muted); }

.wb-sec-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 14px;
}
.wb-sec-title::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.wb-sec-more { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--primary); }

.wb-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-bottom: 28px; }
.wb-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 20px 22px; display: flex; flex-direction: column; transition: all .2s var(--ease);
}
.wb-card:hover { border-color: #c8d0f0; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(79, 110, 247, .12); }
.wb-card-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.wb-card-ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.wb-card-hd h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0; }
.wb-card-desc { font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1; margin: 0 0 14px; }
.wb-card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-card-links a {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--line-2); border-radius: 9px; padding: 8px 12px;
    font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s var(--ease);
}
.wb-card-links a:hover { background: var(--primary); color: #fff; }
.wb-card-links a i { font-size: 12px; }

.wb-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.wb-recent-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s var(--ease); }
.wb-recent-item:hover { border-color: #c8d0f0; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 22, 31, .08); }
.wb-recent-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--line-2); }
.wb-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-recent-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b9bdd0; font-size: 30px; }
.wb-recent-tag {
    position: absolute; left: 8px; top: 8px; font-style: normal;
    background: rgba(20, 22, 31, .62); color: #fff; font-size: 11px; font-weight: 600;
    border-radius: 6px; padding: 2px 8px;
}
.wb-recent-meta { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 12.5px; }
.wb-recent-meta .src { color: var(--ink-2); font-weight: 600; }
.wb-recent-meta .time { color: var(--muted); }

/* 工作台外壳响应式：小屏侧栏转为横向滚动条 */
@media (max-width: 991px) {
    .wb { flex-direction: column; }
    .wb-side {
        width: 100%; position: static; max-height: none; border-right: none;
        border-bottom: 1px solid var(--line); padding: 14px;
    }
    .wb-nav-groups { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
    .wb-nav-groups .tool-group { display: none; }
    .wb-nav-groups .tool-tab { width: auto; flex: none; white-space: nowrap; padding: 9px 14px; }
    .wb-main { padding: 20px 16px 60px; }
    .wb-hero { padding: 22px 20px; }
    .wb-hero-title { font-size: 19px; }
    .wb-hero-acts { width: 100%; }
    .wb-btn { flex: 1; justify-content: center; }
    .wb-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .wb-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .wb-stat { padding: 15px 16px; }
    .wb-stat-num { font-size: 22px; }
    .wb-card-grid { grid-template-columns: 1fr; }
    .wb-recent { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
