/* Google Bonano & Material 3 / Gemini Aesthetic Modern Design */
:root {
    --bg-main: #0e1217;
    --bg-surface: #171b22;
    --bg-surface-elevated: #212631;
    --primary: #4285f4;
    --primary-gradient: linear-gradient(135deg, #4285f4, #9b72cb 50%, #d96570);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text-main: #f0f4f9;
    --text-secondary: #9aa0a6;
    --text-muted: #646c79;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.ambient-glow {
    position: fixed;
    top: -200px;
    left: 20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(66,133,244,0.18) 0%, rgba(155,114,203,0.12) 40%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 14s infinite alternate ease-in-out;
}
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

header.app-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(14, 18, 23, 0.85);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
    cursor: pointer;
}
.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(66, 133, 244, 0.4);
}
.brand-icon svg { width: 18px; height: 18px; fill: white; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface-elevated);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}
.user-badge .avatar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge-live {
    font-size: 11px;
    background: rgba(52, 168, 83, 0.15);
    color: #34a853;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}
.gallery-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    background: #1c222c;
    transition: transform 0.4s ease;
}
.gallery-card:hover img {
    transform: scale(1.03);
}
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 18, 23, 0.95) 10%, rgba(14, 18, 23, 0.4) 60%, transparent 100%);
    padding: 16px 14px 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.gallery-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.card-prompt {
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}
.card-like-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.card-like-btn:hover { background: rgba(234, 67, 53, 0.3); color: #ea4335; }

.generator-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 96px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.panel-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.prompt-box {
    width: 100%;
    min-height: 120px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
}
.prompt-box:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-radio {
    display: none;
}
.pill-label {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.pill-radio:checked + .pill-label {
    background: rgba(66, 133, 244, 0.18);
    border-color: #4285f4;
    color: #8ab4f8;
    font-weight: 600;
}

.aspect-ratios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ratio-label {
    text-align: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.pill-radio:checked + .ratio-label {
    background: rgba(66, 133, 244, 0.18);
    border-color: #4285f4;
    color: #8ab4f8;
    font-weight: 600;
}

.btn-generate {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.35);
}
.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
}
.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}
.btn-primary {
    background: #4285f4;
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #3367d6; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    animation: modalIn 0.25s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; color: #fff; }
.close-btn {
    background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer;
}
.close-btn:hover { color: #fff; }

.input-field {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
}
.input-field:focus { border-color: #4285f4; }
.code-inline-group {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.code-inline-group .input-field { margin-bottom: 0; }
.btn-send-code {
    white-space: nowrap;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: #8ab4f8;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-send-code:disabled { color: var(--text-muted); cursor: not-allowed; }
/* 验证码行（cvsp.cn/sss 风格：6 位数字 + 深色玻璃图块 + hover 显示「点击刷新」） */
.captcha-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.captcha-row .input-field { flex: 1 1 auto; min-width: 0; margin: 0; letter-spacing: .28em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; height: 46px; }
.captcha-box { flex: none; width: 132px; height: 46px; padding: 0; margin: 0; cursor: pointer; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(48,90,190,.65); background: rgba(12,22,48,.65); transition: border-color .16s, transform .12s, box-shadow .16s; }
.captcha-box:hover { border-color: rgba(90,140,255,.95); box-shadow: 0 0 0 3px rgba(60,110,230,.22); }
.captcha-box:active { transform: scale(.98); }
.captcha-box img { width: 100%; height: 100%; display: block; }
.captcha-box::after { content: "点击刷新"; position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font-size: 10px; line-height: 1.4; text-align: center; color: rgba(255,255,255,.88); background: rgba(0,0,0,.5); opacity: 0; transition: opacity .16s; pointer-events: none; }
.captcha-box:hover::after { opacity: 1; }

#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #202124;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.2,0,0,1);
    opacity: 0;
}
#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .app-container { grid-template-columns: 1fr; }
    .generator-panel { position: static; }
    .masonry-grid { column-count: 2; }
}
@media (max-width: 640px) {
    .masonry-grid { column-count: 1; }
    header.app-header { padding: 0 16px; }
    .app-container { padding: 16px; }
}

/* ===== XY画舫新增：导航 / 品牌 / 灯箱 / 个人中心 / 后台 ===== */
.brand-cn { font-size: 12px; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--border-color); padding: 2px 8px; border-radius: 12px; margin-left: 2px; }
.header-nav { display: flex; gap: 6px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 16px; transition: all .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #8ab4f8; background: rgba(66,133,244,.15); font-weight: 600; }
.nav-admin { color: #fbbc04; }
.badge-admin { font-size: 10px; background: rgba(251,188,4,.2); color: #fbbc04; padding: 2px 6px; border-radius: 8px; margin-left: 4px; }
.hint-line { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.opt-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.btn-opt { flex: 1; background: linear-gradient(135deg, rgba(66,133,244,.2), rgba(155,114,203,.2)); border: 1px solid rgba(66,133,244,.4); color: #8ab4f8; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-opt:hover:not(:disabled) { background: rgba(66,133,244,.3); transform: translateY(-1px); }
.btn-opt:disabled { opacity: .6; cursor: wait; }
.opt-channel { font-size: 11px; color: #34a853; white-space: nowrap; }
.opt-result { margin-top: 10px; background: var(--bg-surface-elevated); border: 1px solid rgba(66,133,244,.3); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.6; }
.opt-text { white-space: pre-wrap; color: var(--text-main); max-height: 180px; overflow-y: auto; }
.opt-btns { display: flex; gap: 8px; margin-top: 10px; }
.btn-xs { font-size: 12px !important; padding: 5px 12px !important; }
.model-tag { position: absolute; top: 8px; left: 8px; font-size: 10px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); color: #8ab4f8; padding: 3px 8px; border-radius: 10px; border: 1px solid rgba(138,180,248,.3); }
.result-img-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-hover); cursor: zoom-in; }
.zoom-tip { position: absolute; bottom: 8px; right: 8px; font-size: 11px; background: rgba(0,0,0,.7); color: #fff; padding: 4px 10px; border-radius: 12px; opacity: 0; transition: opacity .2s; }
.result-img-wrap:hover .zoom-tip { opacity: 1; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; z-index: 3000; padding: 24px; }
.lightbox.show { display: flex; animation: modalIn .25s ease; }
.lightbox-inner { position: relative; max-width: 1100px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-hover); border-radius: 20px; overflow: hidden; }
.lightbox-inner img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #000; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.lightbox-close:hover { background: rgba(234,67,53,.7); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.lightbox-prompt { font-size: 13px; color: var(--text-secondary); flex: 1; max-height: 130px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; cursor: pointer; }
.lightbox-prompt:hover { color: #8ab4f8; }
/* ===== 灯箱增强：队列浏览 / 玻璃按钮 / 缩放 ===== */
.lightbox { gap: 14px; padding: 20px; background: radial-gradient(ellipse at center, rgba(8,10,18,.82) 0%, rgba(4,5,10,.95) 100%); }
.lightbox-inner { flex: 1; min-width: 0; box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06); animation: lbPop .3s cubic-bezier(.2,.9,.3,1.15); }
@keyframes lbPop { from { opacity: 0; transform: scale(.955); } to { opacity: 1; transform: scale(1); } }
.lb-nav { flex: none; width: 52px; height: 96px; border-radius: 18px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(255,255,255,.88); font-size: 38px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s ease; opacity: .55; user-select: none; touch-action: manipulation; font-family: inherit; }
.lb-nav:hover { opacity: 1; background: rgba(138,180,248,.22); border-color: rgba(138,180,248,.55); box-shadow: 0 0 30px rgba(138,180,248,.3); transform: scale(1.08); }
.lb-nav:active { transform: scale(.95); }
.lightbox.lb-single .lb-nav, .lightbox.lb-single .lb-counter { display: none; }
.lb-counter { position: absolute; top: 14px; right: 58px; z-index: 2; font-size: 12px; letter-spacing: 1.5px; color: rgba(255,255,255,.85); background: rgba(10,12,20,.5); border: 1px solid rgba(255,255,255,.14); padding: 5px 13px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox-close { background: rgba(10,12,20,.45); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: all .22s ease; }
.lightbox-close:hover { transform: rotate(90deg) scale(1.1); background: rgba(234,67,53,.75); }
.lb-imgbox { position: relative; overflow: hidden; background: #000; border-radius: 20px 20px 0 0; }
.lb-imgbox img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; transition: transform .22s ease; cursor: zoom-in; -webkit-user-drag: none; user-select: none; }
.lb-imgbox img.lb-zoomed { cursor: grab; }
.lb-imgbox img.lb-zoomed:active { cursor: grabbing; }
.lb-imgbox img.lb-fade { animation: lbImgFade .3s ease; }
.lb-imgbox img.lb-fade-r { animation: lbImgR .3s ease; }
.lb-imgbox img.lb-fade-l { animation: lbImgL .3s ease; }
@keyframes lbImgFade { from { opacity: 0; transform: scale(.985); } }
@keyframes lbImgR { from { opacity: 0; transform: translateX(36px) scale(.985); } }
@keyframes lbImgL { from { opacity: 0; transform: translateX(-36px) scale(.985); } }
.lb-hint { position: absolute; bottom: 10px; right: 12px; font-size: 11px; color: rgba(255,255,255,.6); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1); padding: 4px 11px; border-radius: 999px; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); letter-spacing: .5px; }
.lightbox-bar { background: linear-gradient(180deg, transparent, rgba(10,12,20,.28)); }
/* 16:9 宽屏：灯箱加宽 + 图片限高放宽，小图等比放大铺满宽度 */
.lightbox.lb-wide .lightbox-inner { max-width: 1320px; }
.lightbox.lb-wide .lb-imgbox img { max-height: calc(92vh - 80px); }
@media (max-width: 720px) { .lb-nav { width: 38px; height: 68px; font-size: 28px; border-radius: 14px; opacity: .8; } .lightbox { gap: 6px; padding: 10px; } .lb-hint { display: none; } }
@media (max-width: 720px) {
    .lightbox { align-items: center; }
    .lightbox-inner { max-height: 94vh; border-radius: 16px; }
    .lb-imgbox { border-radius: 16px 16px 0 0; }
    .lb-imgbox img { border-radius: 16px 16px 0 0; }
    .lightbox-close, .lb-counter { position: fixed; top: env(safe-area-inset-top, 0px); }
    .lightbox-close { right: calc(10px + env(safe-area-inset-right, 0px)); }
    .lb-counter { right: calc(58px + env(safe-area-inset-right, 0px)); top: calc(14px + env(safe-area-inset-top, 0px)); }
    .lightbox-bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
}
.probe-list { margin-top: 8px; background: var(--bg-surface-elevated); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; font-size: 12px; }
.probe-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-secondary); }
.probe-row .ok { color: #34a853; }
.probe-row .bad { color: #ea4335; }
/* 智能优化通道自定义下拉：分组 + 存活蓝色高亮 / 屏蔽不可用 */
.opt-dd { position: relative; flex: 1; min-width: 0; }
.opt-dd-trigger { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-surface-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: #fff; font-size: 13px; cursor: pointer; user-select: none; }
.opt-dd-trigger:hover { border-color: #4285f4; }
.opt-dd-caret { color: var(--text-muted); font-size: 11px; margin-left: 8px; }
.opt-dd-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--bg-surface-elevated); border: 1px solid var(--border-color); border-radius: 12px; padding: 6px; max-height: 320px; overflow: auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.opt-dd-group { font-size: 11px; color: var(--text-muted); padding: 6px 10px 4px; letter-spacing: .5px; }
.opt-dd-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #fff; }
.opt-dd-item:hover { background: rgba(66,133,244,.14); }
.opt-dd-item.opt-dd-alive .opt-dd-name { color: #8ab4f8; font-weight: 600; }
.opt-dd-item.opt-dd-alive .opt-dd-st { color: #34a853; font-size: 11px; }
.opt-dd-item.opt-dd-dead { opacity: .55; }
.opt-dd-item.opt-dd-dead .opt-dd-st { color: #ea4335; font-size: 11px; }
.opt-dd-item.opt-dd-hide { display: none; }
.opt-dd-hidden { font-size: 11px; color: var(--text-muted); padding: 6px 10px; }
.opt-dd-hidden a { color: #8ab4f8; cursor: pointer; }
.ref-drop { border: 1.5px dashed var(--border-color); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; background: var(--bg-surface-elevated); transition: all .2s; }
.ref-drop.drag { border-color: #4285f4; background: rgba(66,133,244,.08); }
.ref-hint { font-size: 12px; color: var(--text-muted); }
#refPreview img { max-width: 100%; max-height: 160px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.strength-row { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.strength-row input[type=range] { width: 100%; }

/* 通用页面 */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px; position: relative; z-index: 1; }
.muted { color: var(--text-secondary); font-size: 13px; }
.divider { border: none; border-top: 1px solid var(--border-color); margin: 18px 0; }
.profile-grid { display: grid; grid-template-columns: 493px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-grid > div { min-width: 0; }
.profile-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px; text-align: center; position: sticky; top: 96px; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: #fff; margin: 0 auto 12px; box-shadow: 0 0 24px rgba(66,133,244,.4); }
.profile-card h2 { font-size: 20px; margin-bottom: 4px; }
.profile-card .form-group { text-align: left; }
.stat-row { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 22px; }
.stat span { font-size: 12px; color: var(--text-muted); }

/* 后台 */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.admin-stat b { font-size: 28px; display: block; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.admin-stat span { font-size: 12px; color: var(--text-muted); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tab { background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 10px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; }
.admin-tab.active { background: rgba(66,133,244,.18); border-color: #4285f4; color: #8ab4f8; font-weight: 600; }
.admin-panel { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; white-space: nowrap; }
.admin-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.row-btns { display: flex; gap: 6px; }
.danger:hover { border-color: #ea4335 !important; color: #ea4335 !important; }
.admin-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.admin-work { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: var(--bg-surface-elevated); }
.admin-work img { width: 100%; height: 160px; object-fit: cover; cursor: zoom-in; }
.admin-work-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.admin-work-prompt { font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } .profile-card { position: static; } .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== 移动端 UI 优化：生成器置顶 / 导航横向滚动可见 / 触屏常显遮罩 / 触控放大 / 安全区 ===== */
@media (max-width: 1024px) {
    .app-container { display: flex; flex-direction: column; gap: 22px; padding: 18px; }
    .generator-panel { order: -1; position: static; height: auto; padding: 20px; }
    .generator-panel .panel-header h2 { font-size: 21px; }
}
@media (max-width: 900px) {
    header.app-header { height: auto; flex-wrap: wrap; padding: 10px 12px; row-gap: 8px; column-gap: 10px; }
    .page-wrap { padding: 14px 10px; }
    header.app-header .brand { font-size: 18px; }
    .brand-icon { width: 28px; height: 28px; }
    .brand-cn { font-size: 11px; padding: 2px 6px; }
    .header-nav { order: 3; flex-basis: 100%; display: flex !important; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
    .header-nav::-webkit-scrollbar { display: none; }
    .header-nav .nav-link { white-space: nowrap; font-size: 13px; padding: 8px 12px; }
    .header-actions { margin-left: auto; gap: 10px; }
    .header-actions .btn-outline { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 640px) {
    .app-container { padding: 12px; }
    .masonry-grid { column-count: 1; }
    .generator-panel { padding: 16px; border-radius: 18px; }
    .prompt-box { min-height: 110px; font-size: 16px; }
    .input-field { font-size: 16px; }
    .pill-label { padding: 9px 14px; font-size: 13px; min-height: 38px; display: inline-flex; align-items: center; }
    .ratio-label { padding: 10px 4px; font-size: 12px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .modal-box { padding: 22px 18px; border-radius: 20px; }
    .btn-generate { padding: 15px; font-size: 16px; }
    .lightbox-bar { flex-wrap: wrap; }
    .card-overlay { opacity: .94; transform: translateY(0); }
}
@media (hover: none) {
    .card-overlay { opacity: .94; transform: translateY(0); }
    .gallery-card:active { transform: scale(.985); }
    .result-img-wrap .zoom-tip { opacity: 1; }
}

/* ===== 热粒卡（一站化：数据来自 rewen） ===== */
.pts-card { margin-top: 18px; position: relative; overflow: hidden; border-radius: 16px; padding: 16px 18px; text-align: left; color: #fff; background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 55%, #fb923c 100%); box-shadow: 0 10px 26px rgba(244, 63, 94, .28); }

/* ===== GO 同款组件：热粒弹窗/奖励/日历/全景卡/指南/任务/流水 ===== */
/* 亮色卡片变量别名（soragg 主题是深色，此处只作用于亮色卡片内部） */
.um-card, .uc-card, .reward-card, .cal-card {
    --brand: #f43f5e; --brand2: #fb923c;
    --line: #eef0f3; --ink: #1f2937; --muted: #9ca3af;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
    --shadow-hover: 0 12px 30px rgba(0,0,0,.12);
}
/* 通用小弹窗基座（避开站内 .modal-overlay/.modal-box 深色体系） */
.go-modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,14,22,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.go-modal[hidden] { display: none; }
.go-modal-box { background: #fff; color: var(--ink); border-radius: 20px; max-width: 560px; width: 100%; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); max-height: 88vh; overflow: auto; position: relative; }
.go-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--ink); font-weight: 800; font-size: 16px; }
.go-x { border: 0; border-radius: 50%; width: 30px; height: 30px; background: #fff1f3; color: var(--brand); font-size: 16px; cursor: pointer; flex: none; }
.go-x:hover { background: #ffe0e6; }
.go-modal-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
/* 首页热粒胶囊按钮 */
.credits-pill { border: 1px solid rgba(249,115,22,.45); background: linear-gradient(180deg, rgba(249,115,22,.16), rgba(249,115,22,.06)); color: #fdba74; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: .18s; }
.credits-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(249,115,22,.3); }
/* 个人中心弹窗（userModal） */
#userModal .go-modal-box.um-card { max-width: 560px; padding: 0; overflow: hidden; border-radius: 24px; }
.um-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 16px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: .2s; }
.um-close:hover { background: rgba(255,255,255,.35); transform: scale(1.05); }
.um-hero { position: relative; background: linear-gradient(135deg,#f43f5e 0%,#fb923c 100%); padding: 40px 24px 32px; color: #fff; text-align: center; overflow: hidden; }
.um-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(circle,rgba(255,255,255,.25) 0%,transparent 70%); pointer-events: none; }
.um-level { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.um-level-clickable { cursor: pointer; transition: .2s; }
.um-level-clickable:hover { background: rgba(255,255,255,.3); transform: scale(1.05); }
.um-big-num { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.um-flame { font-size: 36px; display: inline-block; margin-left: 8px; animation: um-bob 2s ease-in-out infinite; }
@keyframes um-bob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.1); } }
.um-big-num em { font-size: 18px; font-style: normal; font-weight: 700; opacity: .9; margin-left: 6px; }
.um-sub { font-size: 13px; opacity: .9; margin-top: 12px; }
.um-sub b { font-weight: 800; }
.um-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 24px; background: #fff; }
.um-action-card { border: 0; border-radius: 16px; padding: 18px 12px; text-align: center; cursor: pointer; text-decoration: none; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; }
.um-action-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.um-ac-icon { font-size: 28px; margin-bottom: 4px; }
.um-ac-title { font-size: 14px; font-weight: 800; color: #111827; }
.um-ac-desc { font-size: 11px; color: #6b7280; }
.um-action-checkin { background: linear-gradient(180deg,#fef3c7,#fde68a); }
.um-action-checkin.checked { filter: grayscale(.4); opacity: .75; }
.um-action-pay { background: linear-gradient(180deg,#fee2e2,#fecaca); }
.um-action-more { background: linear-gradient(180deg,#e0e7ff,#c7d2fe); }
.um-today { display: flex; align-items: center; justify-content: space-around; padding: 16px 24px; background: #fafbfc; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
.um-today-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.um-today-label { font-size: 11px; color: #9ca3af; font-weight: 600; }
.um-today-num { font-size: 20px; font-weight: 900; }
.um-earn { color: #f97316; } .um-spend { color: #6b7280; }
.um-today-divider { width: 1px; height: 32px; background: #e5e7eb; }
.um-log-section { background: #fff; padding: 20px 24px; }
.um-log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.um-log-head span { font-size: 14px; font-weight: 800; color: #111827; }
.um-log-btn { background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.2); color: var(--brand); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: .2s; text-decoration: none; }
.um-log-btn:hover { transform: scale(1.05); }
.uc-logs { max-height: 200px; overflow: auto; }
.uc-log { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; color: var(--ink); }
.uc-log:last-child { border-bottom: 0; }
.uc-log .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-log .time { color: var(--muted); font-size: 11px; flex: none; }
.uc-log .amt { font-weight: 800; flex: none; }
/* 等级弹窗 */
.level-list { display: flex; flex-direction: column; gap: 10px; }
.level-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #f9fafb; transition: .2s; }
.level-item:hover { background: #f3f4f6; transform: translateX(4px); }
.level-item.level-current { background: linear-gradient(135deg,#fef3c7,#fde68a); border: 1px solid #fcd34d; }
.level-badge { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#f43f5e,#fb923c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; flex: none; }
.level-current .level-badge { background: linear-gradient(135deg,#f59e0b,#f97316); }
.level-name { font-size: 15px; font-weight: 800; color: #111827; }
.level-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }
/* 等级弹窗深色主题：去白底刺眼，标题渐变高亮 */
#levelModal .go-modal-box { background: linear-gradient(160deg,#181e36,#0f1330 70%); color: #eef1f8; border: 1px solid rgba(251,191,36,.28); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 44px rgba(249,115,22,.14); }
#levelModal .lv-title { font-size: 19px; font-weight: 900; letter-spacing: .5px; background: linear-gradient(90deg,#fde68a,#f59e0b 55%,#fb7185); -webkit-background-clip: text; background-clip: text; color: transparent; }
#levelModal .lv-fire { font-size: 19px; filter: drop-shadow(0 0 8px rgba(249,115,22,.6)); }
#levelModal .go-x { background: rgba(255,255,255,.1); color: #fcd34d; }
#levelModal .go-x:hover { background: rgba(255,255,255,.22); }
#levelModal .level-sub { color: #9aa3c0 !important; }
#levelModal .level-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
#levelModal .level-item:hover { background: rgba(255,255,255,.1); }
#levelModal .level-item.level-current { background: linear-gradient(135deg,rgba(245,158,11,.28),rgba(249,115,22,.12)); border: 1px solid #f59e0b; box-shadow: 0 0 18px rgba(245,158,11,.28); }
#levelModal .level-name { color: #fff; }
#levelModal .level-desc { color: #9aa3c0; }
#levelModal .go-modal-foot .btn-outline { color: #fcd34d; border-color: rgba(252,211,77,.45); background: transparent; }
/* 个人中心卡：与等级弹窗同一 UI 体系 */
#userModal .go-modal-box.um-card { background: linear-gradient(160deg,#181e36,#0f1330 70%); color: #eef1f8; border: 1px solid rgba(251,191,36,.28); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 44px rgba(249,115,22,.14); }
#userModal .um-hero { background: radial-gradient(120% 110% at 50% 0%, rgba(245,158,11,.22), transparent 60%), linear-gradient(180deg,#1a2140,#0f1330); }
#userModal .um-level { background: rgba(245,158,11,.14); border: 1px solid rgba(252,211,77,.45); color: #fde68a; }
#userModal .um-big-num { color: #fff; text-shadow: 0 0 26px rgba(245,158,11,.35); }
#userModal .um-sub { color: #9aa3c0; }
#userModal .um-sub b { color: #fde68a; }
#userModal .um-action-checkin, #userModal .um-action-pay, #userModal .um-action-more { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
#userModal .um-action-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.4); border-color: rgba(252,211,77,.35); }
#userModal .um-ac-title { color: #fff; }
#userModal .um-ac-desc { color: #9aa3c0; }
#userModal .um-actions { background: transparent; }
#userModal .um-today { background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
#userModal .um-today-divider { background: rgba(255,255,255,.12); }
#userModal .um-spend { color: #9aa3c0; }
#userModal .um-log-section { background: transparent; }
#userModal .um-log-head span { color: #fff; }
#userModal .uc-log { border-bottom: 1px solid rgba(255,255,255,.07); color: #eef1f8; }
#userModal .uc-log .time { color: #8b93b0; }
/* 奖励弹窗 */
.reward-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15,18,34,.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.reward-modal.show { display: flex; }
.reward-card { position: relative; text-align: center; background: linear-gradient(160deg,#ffffff,#fff7ed); border-radius: 26px; padding: 40px 46px; box-shadow: 0 30px 80px rgba(244,63,94,.4); animation: rewardPop .5s cubic-bezier(.2,1.6,.4,1); overflow: hidden; cursor: pointer; }
.reward-card::before { content: ""; position: absolute; inset: -40% -20%; background: radial-gradient(circle at 50% 30%,rgba(244,63,94,.12),transparent 55%); pointer-events: none; }
@keyframes rewardPop { 0% { transform: scale(.55); opacity: 0; } 55% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.reward-emoji { position: relative; font-size: 54px; line-height: 1; animation: rewardBounce 1s ease-in-out infinite; }
@keyframes rewardBounce { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-12px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }
.reward-points { position: relative; font-size: 60px; font-weight: 900; line-height: 1.1; margin-top: 12px; background: linear-gradient(135deg,#f43f5e,#fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(244,63,94,.3)); }
.reward-title { position: relative; font-size: 18px; font-weight: 800; margin-top: 10px; color: #1f2937; }
.reward-sub { position: relative; font-size: 13px; color: #9ca3af; margin-top: 8px; }
.reward-hint { position: relative; margin-top: 18px; font-size: 12px; color: #cbd5e1; }
/* 签到日历 */
.cal-modal { position: fixed; inset: 0; z-index: 350; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15,18,34,.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.cal-modal.show { display: flex; }
.cal-card { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 24px 70px rgba(15,18,34,.32); animation: rewardPop .4s cubic-bezier(.2,1.4,.4,1); }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-nav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #f0e4e4; background: #fff; color: var(--brand); font-size: 16px; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-h-title { flex: 1; text-align: center; }
.cal-h-title b { font-size: 16px; color: #1f2937; }
.cal-h-title span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cal-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff1f3; color: var(--brand); font-size: 16px; cursor: pointer; }
.cal-week { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-cell { height: 42px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 10px; background: #fafafa; color: #374151; cursor: default; }
.cal-cell.empty { background: transparent; }
.cal-cell.done { background: #fff1f2; font-size: 17px; }
.cal-cell.today { background: linear-gradient(135deg,var(--brand),var(--brand2)); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(244,63,94,.35); }
.cal-cell.today:hover { transform: scale(1.08); }
.cal-cell.fut { background: #f7f7f9; font-size: 17px; opacity: .7; }
.cal-cell.miss { background: #fafafa; color: #d1d5db; }
.cal-foot { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }
/* 账户全景卡 + 任务 + 指南 + 流水 */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:680px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.uc-balance { position: relative; overflow: hidden; background: linear-gradient(135deg,#1a56db 0%,#4285f4 55%,#7ab8ff 100%); color: #fff; box-shadow: 0 12px 30px rgba(66,133,244,.30); }
.uc-balance::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 100% 0%,rgba(255,255,255,.20),transparent 55%); pointer-events: none; }
.uc-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.uc-orb-1 { width: 140px; height: 140px; right: -50px; top: -46px; background: rgba(255,255,255,.16); filter: blur(2px); }
.uc-orb-2 { width: 96px; height: 96px; left: -34px; bottom: 150px; background: rgba(255,255,255,.10); filter: blur(2px); }
.ub-top { display: flex; align-items: center; gap: 14px; position: relative; }
.ub-avatar { width: 60px; height: 60px; border-radius: 20px; background: linear-gradient(135deg,#fff,rgba(255,255,255,.55)); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.8); flex: none; overflow: hidden; }
.ub-avatar img { width: 60px; height: 60px; object-fit: cover; border-radius: 20px; display: block; }
.ub-avatar:hover { box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 0 2px #fff; transform: translateY(-2px); transition: .18s; }
.ub-id { flex: 1; min-width: 0; }
.ub-welcome { font-size: 17px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-welcome b { color: #ffe08a; }
.ub-sub { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-balance { margin-top: 18px; position: relative; cursor: pointer; }
.uc-balance .lbl { font-size: 12px; letter-spacing: 1.5px; color: rgba(255,255,255,.85); }
.ub-bal-num { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.ub-bal-num #balance { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -1px; color: #fff; text-shadow: 0 4px 18px rgba(255,255,255,.35); }
.ub-bal-num .flame { font-size: 22px; animation: ub-bob 2s ease-in-out infinite; }
@keyframes ub-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.ub-profiles { margin-top: 18px; position: relative; }
.ub-nick { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 11px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ub-nick-ic { font-size: 17px; }
.ub-nick-lbl { font-size: 11px; color: rgba(255,255,255,.75); letter-spacing: 1px; }
.ub-nick-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uc-balance .prof-val { color: #fff; font-size: 15px; }
.uc-balance .prof-input { background: rgba(255,255,255,.92); color: #111; border: none; border-radius: 9px; padding: 8px 12px; font-size: 13px; flex: 1; min-width: 140px; max-width: 220px; }
.btn-light { background: #fff; color: #1a56db; border: 0; border-radius: 9px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn-light:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
#btnSaveNick { background: #7c3aed; color: #fff; border: 0; border-radius: 9px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.uc-balance #nickTip { color: rgba(255,255,255,.9); font-size: 12px; margin-top: 8px; }
.ub-binds { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
@media(max-width:680px) { .ub-binds { grid-template-columns: 1fr 1fr; } }
.ub-bind { appearance: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 14px; padding: 13px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: .2s; text-align: left; color: inherit; font-family: inherit; font-size: 13px; }
.ub-bind:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.10); }
.ub-bind:active { transform: scale(.97); }
.ub-bind-ic { font-size: 18px; line-height: 1; }
.ub-bind-t b { display: block; font-size: 13px; color: #fff; }
.ub-bind-t i { display: block; font-size: 11px; font-style: normal; color: rgba(255,255,255,.7); margin-top: 2px; }
.ub-bind-coming { align-self: flex-start; font-size: 10px; font-weight: 700; color: #ffe08a; background: rgba(255,224,138,.15); border: 1px solid rgba(255,224,138,.35); border-radius: 999px; padding: 2px 8px; letter-spacing: .5px; transition: .2s; }
.ub-bind-coming:hover { box-shadow: 0 0 12px rgba(255,224,138,.5); background: rgba(255,224,138,.25); }
.ub-hint { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 12px; line-height: 1.7; }
.ub-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; position: relative; }
.ub-btn { border: 0; border-radius: 12px; padding: 11px 18px; font-size: 13px; font-weight: 800; cursor: pointer; transition: .18s; font-family: inherit; }
.ub-btn-solid { background: #fff; color: #1a56db; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.ub-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.ub-btn-glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.ub-btn-glass:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.uc-task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.uc-task:last-child { border-bottom: 0; }
.uc-task .t { flex: 1; font-size: 14px; color: var(--ink); }
.uc-task .d { font-size: 12px; color: var(--muted); }
.uc-task button { white-space: nowrap; }
.task-reward { color: var(--brand); font-weight: 800; font-size: 13px; white-space: nowrap; }
.task-done { color: #059669; font-weight: 800; font-size: 13px; white-space: nowrap; }
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.spec-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.spec-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spec-recharge { background: linear-gradient(135deg,var(--brand),var(--brand2)); color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; padding: 9px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(244,63,94,.3); transition: .18s; }
.spec-recharge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,63,94,.4); }
.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media(max-width:680px) { .spec-cols { grid-template-columns: 1fr; } }
.spec-col { border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.spec-earn { background: linear-gradient(180deg,rgba(16,185,129,.10),rgba(255,255,255,.5)); }
.spec-spend { background: linear-gradient(180deg,rgba(124,58,237,.08),rgba(255,255,255,.5)); }
.spec-col-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.spec-tag-earn { font-size: 10px; font-weight: 800; color: #059669; background: rgba(5,150,105,.12); border-radius: 999px; padding: 2px 8px; letter-spacing: .5px; }
.spec-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef0f3; transition: .15s; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { transform: translateX(3px); }
.spec-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,.06); flex: none; }
.spec-t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.spec-d { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; white-space: normal; }
.spec-amt { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 800; flex: none; }
.spec-amt.earn { color: #059669; background: rgba(5,150,105,.12); }
.spec-amt.spend { color: #7c3aed; background: rgba(124,58,237,.10); }
.spec-free { margin-top: 14px; display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 13px 16px; background: linear-gradient(135deg,#1a56db,#4285f4 60%,#5ea1ff); color: #fff; box-shadow: 0 8px 20px rgba(66,133,244,.28); }
.spec-free-ic { font-size: 20px; }
.spec-free b { font-size: 14px; display: block; }
.spec-free i { font-size: 12px; font-style: normal; opacity: .9; display: block; margin-top: 2px; }
.spec-free-chip { flex: none; font-size: 10px; font-weight: 900; letter-spacing: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px 10px; margin-left: auto; }
.spec-mine { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 12px; padding: 10px 14px; flex-wrap: wrap; }
.spec-mine b { color: var(--brand); font-size: 15px; }
.spec-cta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: #fff; flex-wrap: wrap; }
.spec-cta span { font-size: 12px; color: var(--muted); }
.btn-recharge2 { background: linear-gradient(135deg,var(--brand),var(--brand2)); color: #fff; text-decoration: none; font-size: 13px; font-weight: 800; padding: 10px 18px; border-radius: 12px; white-space: nowrap; box-shadow: 0 6px 18px rgba(244,63,94,.3); transition: .18s; }
.btn-recharge2:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,63,94,.4); }
.rec { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; color: var(--ink); }
.rec .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec .time { color: var(--muted); font-size: 11px; flex: none; }
.rec .amt { font-weight: 800; min-width: 56px; text-align: right; flex: none; }
.rec-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rec-pager .pg-info { color: var(--muted); font-size: 12px; }
@media(max-width:680px) { .go-modal-box { padding: 18px; } .um-actions { gap: 8px; padding: 18px; } .um-big-num { font-size: 44px; } }
.pts-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 55%); pointer-events: none; }
.pts-top { display: flex; align-items: center; gap: 8px; position: relative; }
.pts-label { font-size: 12px; opacity: .95; font-weight: 600; }
.pts-vip { font-size: 10px; font-weight: 900; background: rgba(255,255,255,.92); color: #7c3aed; padding: 2px 9px; border-radius: 999px; letter-spacing: 1px; }
.pts-grid { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; position: relative; }
.pts-num { font-size: 34px; font-weight: 900; letter-spacing: -1px; text-shadow: 0 4px 18px rgba(255,255,255,.35); }
.pts-side { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.pts-side .btn-xs { white-space: nowrap; }
.pts-tip { position: relative; margin-top: 8px; font-size: 11px; opacity: .92; line-height: 1.6; }
.badge-credits { font-size: 11px; font-weight: 800; color: #ffe08a; background: rgba(251, 188, 4, .14); border: 1px solid rgba(251, 188, 4, .35); padding: 2px 8px; border-radius: 999px; }

/* ---- 热粒消耗确认弹窗：深色玻璃 · 温和协调 ---- */
.go-modal-box.charge-box {
    background: linear-gradient(165deg, rgba(28, 34, 45, .96), rgba(17, 22, 30, .96));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #eef2f8;
}
.charge-box .go-x { background: rgba(255, 255, 255, .08); color: #cfd6e4; }
.charge-box .go-x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.charge-box .go-modal-head { color: #f2f5fa; letter-spacing: .3px; margin-bottom: 6px; }
.charge-box .charge-line { font-size: 12px; color: #98a4b8; letter-spacing: .5px; }
.charge-box .charge-title { font-size: 16px; font-weight: 700; color: #fff; margin: 4px 0 14px; }
.charge-box .charge-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    padding: 15px 16px;
    color: #cdd6e4;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.charge-box .charge-card b { font-weight: 700; }
.charge-box .charge-cost { font-size: 15px; margin-top: 6px; line-height: 1.7; }
.charge-box .charge-note {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .12);
    font-size: 12px; color: #8fa0b8;
}
.charge-box #chargeConfirm {
    background: var(--primary-gradient);
    border: 0; color: #fff;
    padding: 8px 22px; border-radius: 999px;
    font-size: 13px; font-weight: 700; font-family: inherit;
    box-shadow: 0 6px 20px rgba(99, 102, 241, .4);
    cursor: pointer; transition: filter .2s, transform .1s;
}
.charge-box #chargeConfirm:hover { filter: brightness(1.1); }
.charge-box #chargeConfirm:active { transform: scale(.97); }
.charge-box .btn-outline { color: #c6cfdd; border-color: rgba(255, 255, 255, .14); }
.charge-box .btn-outline:hover { background: rgba(255, 255, 255, .06); color: #fff; }
/* 生图模型自定义下拉：选中态 + 移动端大触控区（替代原生 select） */
.opt-dd-item.sel { background: rgba(66,133,244,.18); }
.opt-dd-item.sel .opt-dd-name { color: #8ab4f8; font-weight: 600; }
.opt-dd-item.sel .opt-dd-st { color: #34a853; font-size: 12px; }
#modelDd { width: 100%; }
#modelDdLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
    .opt-dd-trigger { padding: 13px 16px; font-size: 15px; border-radius: 14px; }
    .opt-dd-panel { max-height: 52vh; border-radius: 16px; padding: 8px; }
    .opt-dd-item { padding: 13px 12px; font-size: 15px; }
    .opt-dd-group { font-size: 12px; padding: 8px 12px 5px; }
}
