* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0f13;
    color: #fff;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a2a35;
}
/* 品牌Logo整体容器：横向排列 + 垂直居中 */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;          /* 图标与文字的间距，可按需微调 */
    cursor: pointer;    /* 鼠标悬停显示手型，适合点击跳首页 */
    transition: all 0.2s ease;
    user-select: none;
}

/* Logo 图片：固定尺寸 + 精致化处理 */
.brand-logo__img {
    width: 36px;
    height: 36px;
    object-fit: contain;  /* 保持图片比例，不变形 */
    border-radius: 6px;   /* 轻微圆角，更柔和精致；不喜欢可删除 */
}

/* Logo 文字：和原风格保持一致 */
.brand-logo__text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1;       /* 消除文字行高导致的错位 */
}

/* 悬停效果：提升交互感（可选） */
.brand-logo:hover {
    opacity: 0.88;
}
.brand-logo:hover .brand-logo__text {
    color: #6366f1;  /* 悬停时文字变主题紫，和全站风格呼应 */
}
.nav a {
    color: #999;
    text-decoration: none;
    margin-left: 24px;
    padding-bottom: 4px;
}
.nav a.active { color: #fff; border-bottom: 2px solid #6366f1; }

.main {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
}

/* 预览区 */
.preview-panel {
    background: #1a1a24;
    border-radius: 16px;
    padding: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a10;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-placeholder { text-align: center; color: #666; }
.preview-placeholder .icon { font-size: 48px; margin-bottom: 12px; }
.result-video { width: 100%; height: 100%; object-fit: contain; }

.loading-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 设置区 */
.settings-panel {
    background: #1a1a24;
    border-radius: 16px;
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a35;
}
.tab {
    padding: 8px 14px;
    background: #2a2a35;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab.active { background: #6366f1; color: #fff; }

.upload-section { margin-bottom: 16px; }
.upload-section label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}
.upload-box {
    border: 2px dashed #3a3a4a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}
.upload-box:hover { border-color: #6366f1; }
.upload-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.preview-img img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}
.ref-img-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.ref-img-list img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}
.prompt-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
}
.prompt-input:focus { border-color: #6366f1; }
.tip { font-size: 12px; color: #666; margin-top: 6px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.form-item label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}
.form-item select,
.form-item input {
    width: 100%;
    padding: 10px 12px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.form-item select:focus,
.form-item input:focus { border-color: #6366f1; }

.switches { align-items: center; }
.switch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s, opacity 0.2s;
}
.generate-btn:hover { transform: translateY(-1px); }
.generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* 历史页 */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.history-item {
    background: #1a1a24;
    border-radius: 12px;
    overflow: hidden;
}
.history-item video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.history-info { padding: 12px; }
.history-prompt {
    font-size: 13px;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.history-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}
.status-succeeded { background: #10b981; color: #fff; }
.status-failed { background: #ef4444; color: #fff; }
.status-running, .status-queued { background: #f59e0b; color: #fff; }

/* 响应式 H5 */
@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }
    .settings-panel {
        max-height: none;
    }
    .preview-panel {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .container { padding: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .mode-tabs { gap: 6px; }
    .tab { padding: 6px 10px; font-size: 12px; }
        .brand-logo__img {
        width: 30px;
        height: 30px;
    }
    .brand-logo__text {
        font-size: 17px;
    }
    .brand-logo {
        gap: 8px;
    }
}

/* 用户栏 */
.user-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.user-bar a {
    color: #6366f1;
    text-decoration: none;
    cursor: pointer;
}
.balance {
    color: #f59e0b;
    font-weight: 500;
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
}
.header .user-bar .balance {
    margin-top: 0;
    white-space: nowrap;
}

/* 弹窗 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #1a1a24;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
}
.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
}
.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    color: #fff;
    outline: none;
}
.modal-tip {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}
.modal-tip a {
    color: #6366f1;
    cursor: pointer;
}

/* 素材按钮 */
.btn-small {
    padding: 6px 12px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.btn-small:hover { border-color: #6366f1; }
.material-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* @提及下拉框 */
.mention-wrapper { position: relative; }
.mention-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #1a1a24;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mention-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2a2a35;
}
.mention-item:hover, .mention-item.active {
    background: #2a2a35;
}
/* 新增缩略图样式 */
.m-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.mention-item .m-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #6366f1;
    color: #fff;
    flex-shrink: 0;
}
.mention-item .m-name {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mention-del-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mention-del-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.cost-tip {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.ref-file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ref-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #2a2a35;
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
}
.ref-file-item .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}
.ref-file-item .remove-btn {
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
}

.modal-upload-box {
    margin: 12px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #3a3a4a;
    border-radius: 10px;
    color: #888;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative; /* 新增这一行，核心修复 */
}
.modal-upload-box:hover { border-color: #6366f1; }
.modal-upload-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.material-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* ========== 首页导航 ========== */
.home-main {
    max-width: 960px;
    margin: 0 auto;
}

/* 轮播广告 */
.carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #1a1a24;
}
.carousel-track {
    position: relative;
    height: 200px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    background: var(--slide-bg);
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    padding: 0 40px;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}
.carousel-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.carousel-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
}
.carousel-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 功能区块 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #1a1a24;
    border-radius: 14px;
    border: 1px solid #2a2a35;
    transition: all 0.2s ease;
    position: relative;
}
.feature-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.feature-card--link:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}
.feature-card--soon {
    cursor: pointer;
    opacity: 0.85;
}
.feature-card--soon:hover {
    border-color: #3a3a4a;
    background: #1e1e2a;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.feature-info {
    flex: 1;
    min-width: 0;
}
.feature-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.feature-info p {
    font-size: 13px;
    color: #888;
}
.feature-arrow {
    color: #6366f1;
    font-size: 18px;
    flex-shrink: 0;
}
.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 2px 8px;
    background: #2a2a35;
    color: #888;
    border-radius: 4px;
}
.home-footer-tip {
    text-align: center;
    font-size: 13px;
    color: #555;
    padding-bottom: 20px;
}

/* ========== 任务中心 ========== */
.tasks-main {
    max-width: 1100px;
    margin: 0 auto;
}
.tasks-header {
    margin-bottom: 24px;
}
.tasks-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tasks-subtitle {
    font-size: 14px;
    color: #888;
}
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a35;
}
.category-tabs .tab {
    border: none;
    font-family: inherit;
}
.task-stats {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}
.task-stats strong {
    color: #6366f1;
}
.task-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.task-card {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.task-card:hover {
    border-color: #3a3a4a;
}
.task-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.task-category {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #2a2a35;
    color: #ccc;
}
.task-category--电商 { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.task-category--企业 { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.task-category--短剧 { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.task-category--开发 { background: rgba(245,158,11,0.15); color: #fcd34d; }
.task-reward {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}
.task-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.task-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.task-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: #2a2a35;
    border-radius: 4px;
    color: #888;
}
.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #666;
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 1px solid #2a2a35;
}
.task-join-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-family: inherit;
}
.task-join-btn:hover {
    transform: translateY(-1px);
}
.task-empty {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}
.task-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2a2a35;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border: 1px solid #3a3a4a;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

a.brand-logo {
    text-decoration: none;
    color: inherit;
}

/* ========== 引导页（AI直播 / AI获客） ========== */
.guide-main {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.guide-hero {
    position: relative;
    text-align: center;
    padding: 40px 24px 32px;
    margin-bottom: 28px;
    border-radius: 20px;
    background: #1a1a24;
    border: 1px solid #2a2a35;
    overflow: hidden;
}
.guide-hero--live {
    background: linear-gradient(180deg, #1a1a24 0%, rgba(239,68,68,0.08) 100%);
}
.guide-hero--agent {
    background: linear-gradient(180deg, #1a1a24 0%, rgba(6,182,212,0.08) 100%);
}
.guide-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(239,68,68,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.guide-hero-glow--cyan {
    background: radial-gradient(ellipse, rgba(6,182,212,0.25) 0%, transparent 70%);
}
.guide-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.guide-hero--agent .guide-hero-badge {
    background: rgba(6,182,212,0.15);
    color: #22d3ee;
}
.guide-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.guide-hero-desc {
    font-size: 15px;
    color: #999;
    max-width: 420px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* AI直播 - 模拟直播画面 */
.guide-hero-visual {
    display: flex;
    justify-content: center;
}
.live-screen {
    width: 100%;
    max-width: 320px;
    background: #0a0a10;
    border-radius: 14px;
    border: 1px solid #2a2a35;
    overflow: hidden;
    text-align: left;
}
.live-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(239,68,68,0.12);
    font-size: 12px;
    color: #f87171;
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
    animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.live-viewers {
    color: #888;
}
.live-screen-body {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 140px;
}
.live-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.live-bubble {
    background: #2a2a35;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    max-width: 90%;
}
.live-screen-footer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #2a2a35;
    font-size: 12px;
    color: #888;
}

/* AI获客 - 模拟手机界面 */
.agent-phone {
    width: 220px;
    background: #0a0a10;
    border-radius: 28px;
    border: 3px solid #2a2a35;
    padding: 12px 10px 16px;
    position: relative;
}
.agent-phone-notch {
    width: 60px;
    height: 6px;
    background: #2a2a35;
    border-radius: 3px;
    margin: 0 auto 12px;
}
.agent-phone-screen {
    background: #1a1a24;
    border-radius: 16px;
    overflow: hidden;
}
.agent-chat {
    padding: 12px 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.agent-chat-item {
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 90%;
}
.agent-chat-item--user {
    background: #6366f1;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.agent-chat-item--ai {
    background: #2a2a35;
    color: #ccc;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.agent-ai-label {
    display: block;
    font-size: 10px;
    color: #22d3ee;
    margin-bottom: 4px;
    font-weight: 600;
}
.agent-input-bar {
    padding: 10px 12px;
    background: #0a0a10;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #2a2a35;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.guide-feature-item {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: border-color 0.2s;
}
.guide-feature-item:hover {
    border-color: #3a3a4a;
}
.guide-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}
.guide-feature-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.guide-feature-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.guide-slogan {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 16px;
}
.guide-slogan blockquote {
    font-size: 15px;
    color: #aaa;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    padding: 16px 24px;
    background: #1a1a24;
    border-radius: 12px;
    border-left: 3px solid #06b6d4;
}

.guide-action-card {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}
.guide-action-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.guide-action-tip {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
}
.guide-action-tip strong {
    color: #f59e0b;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}
.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #ccc;
}
.guide-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-link-box {
    background: #0a0a10;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.guide-link-box code {
    font-size: 13px;
    color: #a5b4fc;
    word-break: break-all;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.guide-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    text-decoration: none;
}
.guide-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.guide-cta-btn--live {
    background: linear-gradient(135deg, #ef4444, #f87171);
}
.guide-cta-btn--live:hover {
    box-shadow: 0 8px 24px rgba(239,68,68,0.3);
}
.guide-cta-btn--download {
    background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
    color: #0f0f13 !important;
    font-weight: 700;
}
.guide-cta-btn--download:hover {
    box-shadow: 0 8px 24px rgba(6,182,212,0.35) !important;
}

.guide-hero--agent-pro {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.18), transparent 70%);
}
.guide-hero-glow--pro {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
}
.guide-hero-badge--pro {
    background: rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.35);
}
.guide-cta-btn--pro {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #fff !important;
    font-weight: 700;
}
.guide-cta-btn--pro:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4) !important;
}
.agent-app-icon--pro {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}
.agent-version-tag--pro {
    background: rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
}

/* 获客Pro - 模拟电脑界面 */
.agent-pc {
    width: min(360px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.agent-pc-bezel {
    width: 100%;
    background: #12121a;
    border: 2px solid #2a2a38;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.agent-pc-screen {
    background: #1a1a26;
    border-radius: 8px;
    overflow: hidden;
}
.agent-pc-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-pc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3f3f4e;
}
.agent-pc-dot:nth-child(1) { background: #f87171; }
.agent-pc-dot:nth-child(2) { background: #fbbf24; }
.agent-pc-dot:nth-child(3) { background: #34d399; }
.agent-pc-title {
    margin-left: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}
.agent-pc-body {
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 110px;
}
.agent-pc-prompt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
}
.agent-pc-result {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 12px;
}
.agent-pc-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    color: #ddd6fe;
    background: rgba(124, 58, 237, 0.35);
}
.agent-pc-stand {
    width: 48px;
    height: 18px;
    background: linear-gradient(180deg, #2a2a35, #1a1a22);
    margin-top: -1px;
}
.agent-pc-base {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: #2a2a35;
}

.guide-feature-icon--violet {
    background: linear-gradient(145deg, #7c3aed, #8b5cf6);
}

.agent-app-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}
.agent-version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}
.agent-version-tag {
    padding: 2px 10px;
    background: rgba(6,182,212,0.15);
    color: #22d3ee;
    border-radius: 4px;
    font-size: 12px;
}
.guide-action-note {
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

@media (max-width: 640px) {
    .carousel-track { height: 160px; }
    .carousel-slide { padding: 0 24px; }
    .carousel-content h2 { font-size: 18px; }
    .carousel-content p { font-size: 12px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-card { padding: 14px; gap: 10px; }
    .feature-icon { width: 40px; height: 40px; font-size: 20px; }
    .feature-info h3 { font-size: 14px; }
    .feature-info p { font-size: 11px; }
    .feature-arrow { display: none; }
    .task-list { grid-template-columns: 1fr; }
    .tasks-header h1 { font-size: 22px; }
    .guide-hero h1 { font-size: 22px; }
    .guide-features { grid-template-columns: 1fr; }
    .guide-hero { padding: 28px 16px 24px; }
}

/* ===== GEO 图文 ===== */
.geo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.geo-preview-panel {
    position: sticky;
    top: 20px;
}
.geo-preview-box {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}
.geo-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: #555;
    text-align: center;
    padding: 40px;
}
.geo-preview-placeholder .icon { font-size: 48px; margin-bottom: 12px; }
.geo-result {
    padding: 24px;
    max-height: 600px;
    overflow-y: auto;
}
.geo-result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}
.geo-result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.geo-result-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.geo-result-content {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    white-space: pre-wrap;
    word-break: break-word;
}
.geo-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.geo-tag {
    padding: 3px 10px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #a5b4fc;
}
.geo-loading-mask {
    position: absolute;
    inset: 0;
    background: rgba(15,15,19,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.geo-progress-wrap {
    width: 80%;
    max-width: 320px;
    text-align: center;
}
.geo-progress-bar {
    height: 6px;
    background: #2a2a35;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}
.geo-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.geo-progress-text {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 10px;
}
.geo-progress-hint {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}
.geo-progress-hint a { color: #818cf8; }
.geo-settings-panel {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 24px;
}
.geo-page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.geo-page-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
}
.geo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.geo-upload-slot { position: relative; }
.geo-upload-box {
    aspect-ratio: 1;
    border: 2px dashed #3a3a4a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.geo-upload-box:hover { border-color: #6366f1; }
.geo-upload-box.uploading { opacity: 0.6; pointer-events: none; }
.geo-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.geo-upload-plus { font-size: 28px; color: #555; line-height: 1; }
.geo-upload-label { font-size: 12px; color: #666; margin-top: 4px; }
.geo-upload-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}
.geo-upload-remove {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 4px;
    background: transparent;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
}
.geo-upload-remove:hover { border-color: #ef4444; color: #ef4444; }
.generate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.geo-footer-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
.geo-footer-tip a { color: #818cf8; }

/* 业务描述输入框 */
.geo-kw-group { margin-bottom: 20px; }
.geo-kw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.geo-kw-header label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}
.geo-kw-count {
    font-size: 12px;
    color: #666;
    transition: color 0.2s;
}
.geo-kw-count--warn { color: #f59e0b; }
.geo-kw-wrap {
    background: #12121a;
    border: 1px solid #3a3a4a;
    border-radius: 12px;
    padding: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.geo-kw-wrap.focused {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.geo-kw-input {
    display: block;
    width: 100%;
    min-height: 140px;
    max-height: 280px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #f0f0f5;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.geo-kw-input::placeholder {
    color: #555;
    line-height: 1.7;
}
.geo-kw-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* GEO 图文库 */
.geo-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.geo-create-link {
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}
.geo-create-link:hover { background: #4f46e5; }
.geo-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.geo-history-item {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 12px;
    overflow: hidden;
}
.geo-history-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.geo-history-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a10;
    font-size: 32px;
    aspect-ratio: 16/9;
}
.geo-history-info { padding: 14px; }
.geo-history-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geo-history-kw {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geo-history-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}
.status-geo-queued { background: #374151; color: #d1d5db; }
.status-geo-running { background: #6366f1; color: #fff; }
.status-geo-succeeded { background: #10b981; color: #fff; }
.status-geo-failed { background: #ef4444; color: #fff; }
.geo-view-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
}
.geo-view-btn:hover { border-color: #6366f1; color: #fff; }
.geo-error-msg {
    margin-top: 8px;
    font-size: 12px;
    color: #ef4444;
}
.geo-item-progress { margin-top: 10px; }
.geo-item-progress-bar {
    height: 4px;
    background: #2a2a35;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}
.geo-item-progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    animation: geoProgressPulse 1.5s ease-in-out infinite;
}
@keyframes geoProgressPulse {
    0%, 100% { width: 30%; margin-left: 0; }
    50% { width: 70%; margin-left: 30%; }
}
.geo-item-progress-text { font-size: 11px; color: #888; }
.geo-empty {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}
.geo-empty-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    text-decoration: none;
}
.geo-pagination {
    text-align: center;
    margin-top: 30px;
    color: #666;
}
.geo-pagination a { color: #888; margin: 0 8px; }
.geo-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.geo-detail-content {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.geo-detail-content--wide {
    max-width: 720px;
}
.geo-article-count {
    font-size: 11px;
    color: #818cf8;
    background: rgba(99,102,241,0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 多图文展示 */
.geo-articles-view { width: 100%; }
.geo-articles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a35;
}
.geo-article-tab {
    padding: 6px 14px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 20px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.geo-article-tab:hover { border-color: #6366f1; color: #fff; }
.geo-article-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
.geo-articles-panels { position: relative; }
.geo-article-panel { display: none; }
.geo-article-panel.active { display: block; }
.geo-article-image {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a10;
}
.geo-article-image img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}
.geo-article-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #f0f0f5;
}
.geo-article-body { color: #ccc; font-size: 14px; line-height: 1.85; }
.geo-article-h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e8;
    margin: 16px 0 8px;
}
.geo-article-h4 {
    font-size: 15px;
    font-weight: 600;
    color: #c8c8d4;
    margin: 14px 0 8px;
}
.geo-article-p {
    margin-bottom: 12px;
    color: #bbb;
}
.geo-articles-empty {
    text-align: center;
    color: #666;
    padding: 40px 0;
}
#geoDetailTitle {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    margin-bottom: 16px;
    padding-right: 30px;
}
.geo-detail-content h3.geo-article-title {
    font-size: 18px;
    color: #f0f0f5;
    font-weight: 700;
}
.geo-detail-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.geo-detail-close:hover { color: #fff; }
.geo-detail-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-right: 30px;
}
.geo-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.geo-detail-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.geo-detail-body {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    white-space: pre-wrap;
    word-break: break-word;
}
.geo-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .geo-main { grid-template-columns: 1fr; }
    .geo-preview-panel { position: static; }
    .geo-upload-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .geo-upload-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .geo-settings-panel { padding: 16px; }
    .geo-history-list { grid-template-columns: 1fr; }
}

/* ===== 智能剪辑 ===== */
.edit-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.edit-preview-panel { position: sticky; top: 20px; }
.edit-preview-box {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}
.edit-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: #555;
    text-align: center;
    padding: 40px;
}
.edit-preview-placeholder .icon { font-size: 48px; margin-bottom: 12px; }
.edit-settings-panel {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 14px;
    padding: 24px;
}
.edit-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.edit-template-card {
    padding: 14px;
    border: 1px solid #3a3a4a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #12121a;
}
.edit-template-card:hover { border-color: #6366f1; }
.edit-template-card.active {
    border-color: #6366f1;
    background: rgba(99,102,241,0.12);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
.edit-template-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.edit-template-meta { font-size: 11px; color: #888; }
.edit-media-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.edit-add-media { width: 90px; min-height: 90px; flex-shrink: 0; }
.edit-media-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.edit-media-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a10;
}
.edit-media-item img { width: 100%; height: 100%; object-fit: cover; }
.edit-media-item--video {
    width: auto;
    min-width: 120px;
    height: auto;
    padding: 8px 28px 8px 10px;
    font-size: 12px;
    color: #aaa;
}
.edit-media-item button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.edit-checkbox-item .edit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    padding-top: 10px;
}
.edit-result-list { padding: 16px; max-height: 600px; overflow-y: auto; }
.edit-result-item { margin-bottom: 20px; }
.edit-result-label { font-size: 13px; color: #888; margin-bottom: 8px; }
.edit-result-video { width: 100%; border-radius: 10px; background: #000; }
.edit-result-item--fail { color: #ef4444; font-size: 13px; padding: 12px; background: rgba(239,68,68,0.1); border-radius: 8px; }

/* ===== 统一作品库 ===== */
.works-header { margin-bottom: 16px; }
.works-header h2 { margin-bottom: 6px; }
.works-desc { font-size: 13px; color: #888; }
.works-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a35;
}
.works-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: #2a2a35;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.works-tab:hover { color: #fff; border-color: #6366f1; }
.works-tab.active { background: #6366f1; color: #fff; }
.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.works-item {
    background: #1a1a24;
    border: 1px solid #2a2a35;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s;
}
.works-item-cover-wrap { position: relative; }
.works-item-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #0a0a10;
}
.works-item-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    aspect-ratio: 16/9;
}
.works-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.65);
    border-radius: 6px;
    font-size: 11px;
    color: #fff;
}
.works-item-info { padding: 14px; }
.works-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works-item-sub {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}
.works-item-actions { display: flex; gap: 8px; }
.works-action-btn {
    flex: 1;
    text-align: center;
    padding: 7px;
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.works-action-btn:hover { border-color: #6366f1; color: #fff; }
.works-action-btn--download {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.45);
    color: #a5b4fc;
}
.works-action-btn--download:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
.works-delete-btn {
    padding: 7px 12px;
    background: transparent;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}
.works-delete-btn:hover { border-color: #ef4444; color: #ef4444; }
.status-works-succeeded, .status-works-succeeded { background: #10b981; color: #fff; }
.status-works-running, .status-works-enhancing, .status-works-submitted { background: #6366f1; color: #fff; }
.status-works-failed, .status-works-expired { background: #ef4444; color: #fff; }
.status-works-queued { background: #374151; color: #d1d5db; }

.works-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.works-video-content {
    width: min(720px, 100%);
    background: #1a1a24;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}
.works-video-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}
.works-video-content h3 {
    margin: 0 36px 12px 0;
    font-size: 16px;
    color: #eee;
}
#worksVideoPlayer {
    width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    background: #000;
}
.works-video-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}
.works-video-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.works-video-actions .works-action-btn {
    flex: 1;
}

@media (max-width: 900px) {
    .edit-main { grid-template-columns: 1fr; }
    .edit-preview-panel { position: static; }
    .edit-template-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .works-list { grid-template-columns: 1fr; }
    .edit-settings-panel { padding: 16px; }
}

/* ===== 算力钱包 ===== */
.wallet-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}
.wallet-panel--records { grid-column: 1 / -1; }
.wallet-panel {
    background: #1a1a24;
    border-radius: 16px;
    padding: 20px;
}
.wallet-panel h2 { font-size: 18px; margin-bottom: 6px; }
.wallet-panel-desc { font-size: 12px; color: #666; }
.wallet-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.wallet-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}
.wallet-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: walletPulse 1.5s infinite;
}
@keyframes walletPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.wallet-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.wallet-stat-card {
    background: #12121a;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 12px;
}
.wallet-stat-card--accent {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}
.wallet-stat-label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 6px;
}
.wallet-stat-card strong { font-size: 20px; color: #fff; }
.wallet-stat-unit { font-size: 12px; color: #888; margin-left: 4px; }
.wallet-chart-wrap {
    background: #12121a;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 8px;
}
#walletChart { width: 100%; display: block; }
.wallet-chart-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}
.wallet-chart-foot strong { color: #aaa; }
.wallet-user-card,
.wallet-resale-card {
    background: #12121a;
    border: 1px solid #2a2a35;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
}
.wallet-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.wallet-user-label { color: #888; }
.wallet-level-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.wallet-level-0 { background: #2a2a35; color: #aaa; }
.wallet-level-1 { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.wallet-level-2 { background: rgba(245,158,11,0.2); color: #fbbf24; }
.wallet-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.wallet-balance-item {
    background: #1a1a24;
    border-radius: 8px;
    padding: 12px;
}
.wallet-balance-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}
.wallet-balance-item strong { font-size: 22px; color: #fff; }
.wallet-resale-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.wallet-resale-head h3 { font-size: 16px; margin-bottom: 4px; }
.wallet-resale-tip { font-size: 12px; color: #666; }
.wallet-resale-rules {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}
.wallet-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}
.wallet-switch input { opacity: 0; width: 0; height: 0; }
.wallet-switch-slider {
    position: absolute;
    inset: 0;
    background: #2a2a35;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}
.wallet-switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.wallet-switch input:checked + .wallet-switch-slider { background: #6366f1; }
.wallet-switch input:checked + .wallet-switch-slider::before { transform: translateX(20px); }
.wallet-switch input:disabled + .wallet-switch-slider { opacity: 0.55; cursor: not-allowed; }
.wallet-switch--locked input:checked + .wallet-switch-slider { background: #4f46e5; }
.wallet-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wallet-confirm-content {
    width: min(420px, 100%);
    background: #1a1a24;
    border-radius: 12px;
    padding: 20px;
}
.wallet-confirm-highlight { color: #fbbf24; font-weight: 600; margin: 8px 0; }
.wallet-confirm-sub { font-size: 13px; color: #888; line-height: 1.6; }
.wallet-confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.wallet-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    cursor: pointer;
}
.wallet-btn--ghost { background: #2a2a35; color: #ccc; }

/* 账户明细列表 */
.wallet-records-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.wallet-records-tabs { display: flex; gap: 8px; }
.wallet-records-tab {
    padding: 6px 14px;
    border: 1px solid #3a3a4a;
    border-radius: 999px;
    background: #12121a;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}
.wallet-records-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #12121a;
    border: 1px solid #2a2a35;
    border-radius: 12px;
    transition: border-color 0.15s;
}
.tx-item:hover { border-color: #3a3a4a; }
.tx-item-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.tx-type {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.tx-type--out {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.tx-type--in {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.tx-item-body { min-width: 0; }
.tx-remark {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tx-time { font-size: 11px; color: #555; }
.tx-item-right {
    text-align: right;
    flex-shrink: 0;
}
.tx-amount {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tx-amount--minus { color: #f87171; }
.tx-amount--plus { color: #34d399; }
.tx-balance { font-size: 11px; color: #666; }
.tx-empty {
    text-align: center;
    padding: 40px 16px;
    color: #666;
    font-size: 13px;
    background: #12121a;
    border: 1px dashed #2a2a35;
    border-radius: 12px;
}
.wallet-records-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    color: #888;
}
.wallet-records-pagination button {
    padding: 6px 12px;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    background: #2a2a35;
    color: #ccc;
    cursor: pointer;
}
.wallet-records-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .wallet-main { grid-template-columns: 1fr; }
    .wallet-chart-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tx-item { flex-direction: column; align-items: stretch; }
    .tx-item-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid #2a2a35;
    }
    .tx-amount { margin-bottom: 0; }
}
