/* AIGC视频生产平台 - 暗色主题 (剪映风格) */

:root {
    --bg-base: #0f0f1a;
    --bg-surface: #1a1a2e;
    --bg-elevated: #252540;
    --bg-hover: #2d2d4a;
    --bg-active: #363660;
    --border-color: #333355;
    --border-light: #2a2a48;
    --text-primary: #e8e8f0;
    --text-secondary: #9999bb;
    --text-muted: #666688;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-hover: #7c6ff7;
    --success: #00cec9;
    --warning: #fdcb6e;
    --danger: #ff6b6b;
    --info: #74b9ff;
    --sidebar-width: 208px;
    --topbar-height: 48px;
    --timeline-height: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body, #app {
    height: 100%;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    overflow: hidden;
}

/* ===== Element Plus Dark Overrides ===== */
.el-card { background: var(--bg-surface); border-color: var(--border-color); color: var(--text-primary); }
.el-card__header { border-bottom-color: var(--border-color); }
.el-input__wrapper, .el-textarea__inner { background: var(--bg-elevated) !important; border-color: var(--border-color) !important; color: var(--text-primary) !important; }
.el-select .el-input__wrapper { background: var(--bg-elevated) !important; }
.el-button--primary { background: var(--accent); border-color: var(--accent); }
.el-button--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.el-radio-button__inner { background: var(--bg-elevated); border-color: var(--border-color); color: var(--text-secondary); }
.el-radio-button__original-radio:checked + .el-radio-button__inner { background: var(--accent); border-color: var(--accent); color: #fff; }
.el-divider { border-color: var(--border-color); }
.el-divider__text { background: var(--bg-surface); color: var(--text-secondary); }
.el-dialog { background: var(--bg-surface); border: 1px solid var(--border-color); }
.el-dialog__title { color: var(--text-primary); }
.el-table { --el-table-bg-color: var(--bg-surface); --el-table-tr-bg-color: var(--bg-surface); --el-table-header-bg-color: var(--bg-elevated); --el-table-text-color: var(--text-primary); --el-table-border-color: var(--border-color); }
.el-scrollbar__bar { opacity: 0.4; }
.el-form-item__label { color: var(--text-secondary) !important; }

/* ===== Layout ===== */

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.layout-content {
    flex: 1;
    overflow: hidden;
}

/* ===== Sidebar ===== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 20;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #e84393);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 14px;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    padding: 0 8px;
}

/* [v2.1-9menu] 可折叠父菜单(横向 icon + label + 折叠箭头) */
.sidebar-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    user-select: none;
}
.sidebar-parent:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-parent.parent-active { color: var(--accent-light); }
.sidebar-parent .icon { font-size: 16px; line-height: 1; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-parent .label { flex: 1; }
.sidebar-parent .arrow { font-size: 15px; color: var(--text-muted); transition: transform 0.18s; }
.sidebar-parent .arrow.open { transform: rotate(90deg); }

/* 二级子菜单(缩进, 小字) */
.sidebar-children {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 1px 0 5px 0;
}
.sidebar-subitem {
    padding: 7px 10px 7px 40px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-muted);
    font-size: 12.5px;
    user-select: none;
}
.sidebar-subitem:hover { background: var(--bg-hover); color: var(--text-secondary); }
.sidebar-subitem.active { background: var(--accent); color: #fff; }

.sidebar-divider { height: 1px; background: var(--border-light); margin: 8px 12px; }

/* 旧 flat item 兼容(若有残留引用) */
.sidebar-item {
    display: flex; flex-direction: row; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px; cursor: pointer;
    color: var(--text-secondary); font-size: 13.5px; user-select: none;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-item.active { background: var(--accent); color: #fff; }
.sidebar-item .icon { font-size: 16px; line-height: 1; }

/* ===== Topbar ===== */

.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Produce Page ===== */

.produce-layout {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 16px;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
}

.produce-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.card-header .num {
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 16px;
}

/* ===== Avatar Grid ===== */

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.avatar-card {
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 6px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.avatar-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.avatar-card:hover .avatar-preview-btn { opacity: 1 !important; }
.avatar-card.selected { border-color: var(--accent); background: rgba(108,92,231,0.15); }

.avatar-icon { font-size: 28px; margin-bottom: 4px; }
.avatar-name { font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-gender { font-size: 11px; color: var(--text-muted); }

/* ===== Voice List ===== */

.voice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.voice-row:hover { border-color: var(--accent); }
.voice-row.selected { border-color: var(--accent); background: rgba(108,92,231,0.15); }

.voice-name { flex: 1; font-size: 13px; }
.voice-meta { font-size: 11px; color: var(--text-muted); }

.play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.play-btn:hover { background: var(--accent-hover); }
.play-btn.playing { background: var(--danger); }

/* ===== Summary / Generate ===== */

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.summary-label { color: var(--text-secondary); }
.summary-value { color: var(--text-primary); font-weight: 500; }

.generate-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #e84393);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 16px;
}

.generate-btn:hover { opacity: 0.9; }
.generate-btn:active { transform: scale(0.98); }
.generate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Editor Page ===== */

.editor-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-top {
    flex: 1;
    display: flex;
    min-height: 0;
}

.editor-assets {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.editor-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    min-width: 0;
}

.editor-props {
    width: 260px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow-y: auto;
}

.editor-timeline {
    height: var(--timeline-height);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
}

/* ===== Preview Player ===== */

.preview-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.preview-video {
    max-width: 100%;
    max-height: calc(100vh - var(--topbar-height) - var(--timeline-height) - 60px);
    border-radius: 4px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.preview-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.ctrl-btn:hover { opacity: 1; }

.ctrl-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.ctrl-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s;
}

.ctrl-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

/* ===== Asset Panel ===== */

.asset-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.asset-tab {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.asset-tab:hover { color: var(--text-secondary); }
.asset-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.asset-list {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-primary);
}

.asset-item:hover { background: var(--bg-hover); }

.asset-item .asset-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-active);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.asset-item .asset-name { flex: 1; }
.asset-item .asset-add {
    opacity: 0;
    color: var(--accent-light);
    font-size: 18px;
    transition: opacity 0.15s;
}
.asset-item:hover .asset-add { opacity: 1; }

/* ===== Property Panel ===== */

.props-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.props-body {
    padding: 12px 16px;
}

.props-group {
    margin-bottom: 16px;
}

.props-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.props-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.props-row > * { flex: 1; }

.props-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Timeline ===== */

.timeline-header {
    height: 28px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.timeline-tool {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.timeline-tool:hover { color: var(--text-primary); background: var(--bg-hover); }
.timeline-tool.active { color: var(--accent-light); }

.timeline-body {
    display: flex;
    height: calc(var(--timeline-height) - 28px);
}

.timeline-labels {
    width: 80px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.track-label {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    gap: 4px;
}

.track-label .track-icon { font-size: 14px; }

.timeline-canvas-wrap {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.timeline-canvas {
    display: block;
}

.playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--danger);
    pointer-events: none;
    z-index: 10;
    transition: left 0.05s linear;
}

.playhead::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ===== History Page ===== */

.history-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 56px);
}

.history-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}

.history-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(108,92,231,0.15); }

.history-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted);
    position: relative;
}

.history-thumb img { width: 100%; height: 100%; object-fit: cover; }

.history-info {
    padding: 12px;
}

.history-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Settings Page ===== */

.settings-layout {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    max-width: 900px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ===== Task Progress Dialog ===== */

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-step.active { color: var(--accent-light); font-weight: 500; }
.progress-step.done { color: var(--success); }
.progress-step.error { color: var(--danger); }

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.progress-step.active .progress-dot { background: var(--accent-light); box-shadow: 0 0 8px var(--accent); }
.progress-step.done .progress-dot { background: var(--success); }
.progress-step.error .progress-dot { background: var(--danger); }

/* ===== Utilities ===== */

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.gap-8 { gap: 8px; }
/* ===== AI Activity Panel ===== */

.ai-activity-panel {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    max-height: 300px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: max-height 0.2s;
}

.ai-activity-panel.collapsed {
    max-height: 36px;
    overflow: hidden;
}

.ai-activity-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.ai-filter-chip {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.ai-filter-chip.active {
    background: var(--accent);
    color: #fff;
}

.ai-activity-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.ai-activity-item {
    padding: 6px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
}

.ai-act-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-act-module { font-size: 12px; }
.ai-act-module-label { color: var(--text-muted); font-size: 11px; }
.ai-act-action { color: var(--text-primary); font-weight: 500; }

.ai-act-body {
    padding: 4px 0 2px 20px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ai-act-body.thinking { color: var(--accent-light); }
.ai-act-body.error { color: var(--danger); }

.thinking-dots::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.ai-act-context {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 2px 0 0 20px;
}

.ai-ctx-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: var(--bg-active);
    border-radius: 3px;
    color: var(--text-muted);
}

/* ===== AI Assistant Float ===== */

.ai-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #e84393);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108,92,231,0.4);
    z-index: 100;
    transition: transform 0.15s;
}

.ai-fab:hover { transform: scale(1.1); }
.ai-fab.active { background: var(--bg-active); box-shadow: none; }

.ai-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 520px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 99;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.ai-panel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 4px;
}
.ai-panel-btn:hover { color: var(--text-primary); }

.ai-func-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.ai-func-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.ai-func-tab:hover { color: var(--text-secondary); }
.ai-func-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.ai-msg {
    margin-bottom: 8px;
}

.ai-msg.user .ai-msg-content {
    background: var(--accent);
    color: #fff;
    margin-left: 40px;
    border-radius: 12px 12px 4px 12px;
}

.ai-msg.ai .ai-msg-content {
    background: var(--bg-elevated);
    color: var(--text-primary);
    margin-right: 40px;
    border-radius: 12px 12px 12px 4px;
}

.ai-msg-content {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-msg-content.error { color: var(--danger); }

.ai-chat-input {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--border-color);
}

.ai-chat-input input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.ai-chat-input input:focus { border-color: var(--accent); }

.ai-chat-input button {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}
.ai-chat-input button:disabled { opacity: 0.4; }

.ai-func-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.slide-enter-active, .slide-leave-active { transition: all 0.2s; }
.slide-enter-from, .slide-leave-to { opacity: 0; transform: translateY(20px); }

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }

/* ========== 着陆页 (LoginPage landing view) ========== */
.lp-nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(10,10,26,0.85);backdrop-filter:blur(20px);border-bottom:1px solid #2a2a50;padding:0 40px;height:64px;display:flex;align-items:center;justify-content:space-between}
.lp-logo{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}
.lp-logo span{width:36px;height:36px;background:linear-gradient(135deg,#6c5ce7,#e84393);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff}
.lp-links{display:flex;gap:32px}
.lp-links a{color:#8888aa;text-decoration:none;font-size:14px;transition:color .2s;cursor:pointer}
.lp-links a:hover{color:#e8e8f0}
.lp-cta{padding:8px 24px;background:linear-gradient(135deg,#6c5ce7,#e84393);border:none;border-radius:8px;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s;text-decoration:none}
.lp-cta:hover{opacity:.85}
.lp-hero{padding:160px 40px 100px;text-align:center;position:relative}
.lp-hero::before{content:'';position:absolute;top:-200px;left:50%;transform:translateX(-50%);width:800px;height:800px;background:radial-gradient(circle,rgba(108,92,231,0.15) 0%,transparent 70%);pointer-events:none}
.lp-hero h1{font-size:56px;font-weight:800;line-height:1.2;margin-bottom:24px;background:linear-gradient(135deg,#6c5ce7,#e84393);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.lp-hero p{font-size:20px;color:#8888aa;max-width:640px;margin:0 auto 40px}
.lp-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.lp-btn1{padding:14px 36px;background:linear-gradient(135deg,#6c5ce7,#e84393);border:none;border-radius:12px;color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s;text-decoration:none}
.lp-btn1:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(108,92,231,0.4)}
.lp-btn2{padding:14px 36px;background:transparent;border:2px solid #2a2a50;border-radius:12px;color:#e8e8f0;font-size:16px;font-weight:500;cursor:pointer;transition:border-color .2s;text-decoration:none}
.lp-btn2:hover{border-color:#6c5ce7}
.lp-stats{display:flex;gap:48px;justify-content:center;margin-top:60px}
.lp-stat{text-align:center}
.lp-stat .num{font-size:36px;font-weight:800;background:linear-gradient(135deg,#6c5ce7,#e84393);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.lp-stat .label{font-size:14px;color:#8888aa;margin-top:4px}
.lp-section{padding:100px 40px;max-width:1200px;margin:0 auto}
.lp-sh{text-align:center;margin-bottom:60px}
.lp-tag{display:inline-block;padding:4px 14px;background:rgba(108,92,231,0.15);border:1px solid rgba(108,92,231,0.3);border-radius:20px;font-size:13px;color:#6c5ce7;margin-bottom:16px}
.lp-sh h2{font-size:40px;font-weight:700;margin-bottom:16px}
.lp-sh p{font-size:18px;color:#8888aa;max-width:600px;margin:0 auto}
.lp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.lp-card{background:#1a1a35;border:1px solid #2a2a50;border-radius:16px;padding:32px;transition:border-color .2s,transform .2s}
.lp-card:hover{border-color:#6c5ce7;transform:translateY(-4px)}
.lp-icon{width:48px;height:48px;background:rgba(108,92,231,0.15);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:20px}
.lp-card h3{font-size:18px;margin-bottom:10px}
.lp-card p{font-size:14px;color:#8888aa;line-height:1.7}
.lp-steps{display:flex;gap:24px}
.lp-step{flex:1;background:#1a1a35;border:1px solid #2a2a50;border-radius:16px;padding:32px 24px;text-align:center;position:relative}
.lp-snum{width:40px;height:40px;background:linear-gradient(135deg,#6c5ce7,#e84393);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;margin-bottom:16px}
.lp-step h3{margin-bottom:8px}
.lp-step p{font-size:13px;color:#8888aa}
.lp-arrow{position:absolute;right:-18px;top:50%;transform:translateY(-50%);font-size:20px;color:#6c5ce7;z-index:2}
.lp-cta-sec{text-align:center;padding:100px 40px;background:linear-gradient(180deg,transparent,rgba(108,92,231,0.08))}
.lp-cta-sec h2{font-size:36px;margin-bottom:16px}
.lp-cta-sec p{color:#8888aa;margin-bottom:32px;font-size:18px}
.lp-footer{border-top:1px solid #2a2a50;padding:40px;max-width:1200px;margin:0 auto;text-align:center;font-size:12px;color:#8888aa}
/* 登录表单 */
.login-box{max-width:400px;margin:0 auto;padding:120px 20px 60px;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}
.login-card{background:#1a1a35;border:1px solid #2a2a50;border-radius:20px;padding:48px 36px;width:100%;text-align:center}
.login-card h2{font-size:24px;margin-bottom:8px}
.login-card p{color:#8888aa;margin-bottom:24px;font-size:14px}
@media(max-width:900px){.lp-grid{grid-template-columns:1fr 1fr}.lp-steps{flex-direction:column}.lp-arrow{display:none}.lp-hero h1{font-size:36px}.lp-stats{gap:24px}}
@media(max-width:600px){.lp-grid{grid-template-columns:1fr}.lp-links{display:none}.lp-section{padding:60px 16px}.lp-hero{padding:120px 16px 60px}}

/* ===== Trending Dashboard ===== */
.trend-shell{height:100%;overflow-y:auto;padding:16px;background:radial-gradient(circle at top left,rgba(108,92,231,.18),transparent 28%),radial-gradient(circle at top right,rgba(0,206,201,.12),transparent 26%),linear-gradient(180deg,#111123 0%,#0d0d18 100%)}
.trend-hero{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;padding:18px 22px;border:1px solid rgba(162,155,254,.16);border-radius:22px;background:linear-gradient(135deg,rgba(108,92,231,.18),rgba(24,24,44,.92)),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));box-shadow:0 12px 34px rgba(0,0,0,.22)}
.trend-eyebrow{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#9bc1ff;margin-bottom:10px}
.trend-hero-copy h2{font-size:28px;line-height:1.05;margin-bottom:10px}
.trend-hero-copy p{max-width:620px;font-size:14px;line-height:1.65;color:var(--text-secondary)}
.trend-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.trend-hero-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.trend-stat-card{display:flex;flex-direction:column;justify-content:center;min-height:76px;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.06);background:rgba(10,10,24,.55)}
.trend-stat-card strong{font-size:22px;font-weight:700;color:#fff}
.trend-stat-card span{margin-top:6px;font-size:12px;color:var(--text-secondary)}
.trend-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 14px}
.trend-toolbar-title{display:block;font-size:20px;font-weight:700}
.trend-toolbar-sub{display:block;margin-top:4px;font-size:13px;color:var(--text-muted)}
.trend-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.trend-platform-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.trend-platform-card{appearance:none;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(33,33,58,.94),rgba(22,22,37,.94));color:var(--text-primary);border-radius:20px;padding:16px;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.trend-platform-card:hover{transform:translateY(-2px);border-color:rgba(162,155,254,.35);box-shadow:0 10px 28px rgba(0,0,0,.24)}
.trend-platform-card.active{border-color:rgba(162,155,254,.7);box-shadow:0 0 0 1px rgba(162,155,254,.4),0 16px 32px rgba(67,54,162,.22)}
.trend-platform-head{display:flex;align-items:center;gap:12px}
.trend-platform-icon{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.trend-platform-title strong{display:block;font-size:16px}
.trend-platform-title span{display:block;margin-top:2px;font-size:12px;color:var(--text-muted)}
.trend-platform-pill{margin-left:auto;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;color:#76ffd9;background:rgba(0,206,201,.12)}
.trend-platform-pill.warm{color:#ffd36e;background:rgba(253,203,110,.12)}
.trend-platform-meta{display:flex;justify-content:space-between;gap:10px;margin-top:14px;font-size:12px;color:var(--text-secondary)}
.trend-platform-session{margin-top:8px;font-size:12px;color:#7ef0b5;min-height:18px}
.trend-platform-cats{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.trend-platform-cats span{padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.04);color:var(--text-secondary);font-size:11px}
.trend-main{display:grid;grid-template-columns:280px minmax(0,1.2fr) minmax(320px,.9fr);gap:14px;margin-top:16px;min-height:640px}
.trend-panel{min-width:0;border:1px solid rgba(255,255,255,.06);border-radius:22px;background:linear-gradient(180deg,rgba(24,24,40,.96),rgba(16,16,28,.98));box-shadow:0 14px 30px rgba(0,0,0,.22)}
.trend-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.06)}
.trend-panel-head h3{font-size:20px;margin-bottom:4px}
.trend-panel-head p{font-size:12px;color:var(--text-muted)}
.trend-badge{padding:6px 10px;border-radius:999px;font-size:11px;font-weight:700;color:#151525;background:#d9d8ff}
.trend-badge.alt{background:#ffdfd7}
.trend-side-panel,.trend-preview-panel{display:flex;flex-direction:column}
.trend-side-meta{display:grid;grid-template-columns:1fr;gap:10px;padding:16px 18px 0}
.trend-side-meta div{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.03)}
.trend-side-meta span{display:block;font-size:11px;color:var(--text-muted);margin-bottom:6px}
.trend-side-meta strong{font-size:14px}
.trend-cookie-hint{margin:14px 18px 0;padding:12px 14px;border-radius:16px;background:rgba(253,203,110,.1);color:#ffd46d;font-size:12px;line-height:1.6}
.trend-session-card{margin:14px 18px 0;padding:14px;border-radius:16px;background:rgba(82,196,26,.08);border:1px solid rgba(82,196,26,.12)}
.trend-session-label{display:block;font-size:11px;color:var(--text-muted);margin-bottom:6px}
.trend-session-card strong{display:block;font-size:15px}
.trend-session-card p{margin-top:6px;font-size:12px;line-height:1.6;color:var(--text-secondary)}
.trend-session-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.trend-login-overlay{position:fixed;inset:0;z-index:1200;padding:24px;background:rgba(8,10,18,.82);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center}
.trend-login-shell{width:min(1360px,calc(100vw - 48px));height:min(860px,calc(100vh - 48px));border-radius:28px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(20,22,34,.98),rgba(12,14,24,.98));box-shadow:0 30px 80px rgba(0,0,0,.45);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.trend-login-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid rgba(255,255,255,.06)}
.trend-login-topbar h3{font-size:28px;line-height:1.1;margin-top:6px}
.trend-login-topbar p{margin-top:8px;font-size:14px;line-height:1.7;color:var(--text-secondary)}
.trend-login-topbar-actions{display:flex;gap:10px;flex-wrap:wrap}
.trend-login-workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) 320px;gap:0}
.trend-login-canvas{min-width:0;min-height:0;padding:22px 22px 24px}
.trend-login-shot,.trend-login-placeholder{height:100%;min-height:520px;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:#0d0f16}
.trend-login-shot img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.trend-login-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}
.trend-login-placeholder strong{font-size:24px}
.trend-login-placeholder p{margin-top:10px;font-size:14px;line-height:1.7;color:var(--text-secondary);max-width:420px}
.trend-login-side{border-left:1px solid rgba(255,255,255,.06);padding:22px;display:flex;flex-direction:column;gap:14px;background:rgba(255,255,255,.02)}
.trend-login-status-card,.trend-login-tips{padding:18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.trend-login-status-card strong{display:block;font-size:20px}
.trend-login-status-card p,.trend-login-tips p{margin-top:8px;font-size:13px;line-height:1.8;color:var(--text-secondary)}
.trend-category-wrap{display:flex;flex-wrap:wrap;gap:10px;align-content:flex-start;padding:16px 18px 18px}
.trend-category-chip{appearance:none;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:var(--text-secondary);border-radius:999px;padding:10px 14px;cursor:pointer;transition:all .16s ease;font-size:13px;font-weight:600}
.trend-category-chip:hover,.trend-category-chip.active{color:#fff;border-color:rgba(162,155,254,.5);background:linear-gradient(135deg,rgba(108,92,231,.42),rgba(67,54,162,.42))}
.trend-empty-mini{font-size:12px;line-height:1.7;color:var(--text-muted)}
.trend-list-panel{display:flex;flex-direction:column;min-height:0}
.trend-list-head{align-items:center}
.trend-count{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.05);color:var(--text-secondary);font-size:12px;font-weight:600}
.trend-list{flex:1;overflow-y:auto;padding:10px}
.trend-list-item{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 92px;gap:14px;align-items:start;margin-bottom:10px;padding:14px;text-align:left;color:var(--text-primary);border:1px solid transparent;border-radius:18px;background:rgba(255,255,255,.025);cursor:pointer;transition:all .16s ease}
.trend-list-item:hover,.trend-list-item.active{background:rgba(108,92,231,.12);border-color:rgba(162,155,254,.36)}
.trend-rank{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#ff6b6b,#ff9472);color:#fff;font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:center}
.trend-list-copy{min-width:0}
.trend-list-title{font-size:18px;font-weight:700;line-height:1.4}
.trend-list-sub{margin-top:6px;font-size:12px;color:var(--text-muted)}
.trend-list-desc{margin-top:8px;font-size:13px;line-height:1.7;color:var(--text-secondary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.trend-list-metric{text-align:right;padding-top:4px}
.trend-list-metric strong{display:block;font-size:18px;color:#ff8a80}
.trend-list-metric span{display:block;margin-top:4px;font-size:11px;color:var(--text-muted)}
.trend-empty-state,.trend-preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;text-align:center;color:var(--text-secondary);padding:28px}
.trend-empty-icon{font-size:42px;margin-bottom:12px}
.trend-empty-state strong,.trend-preview-empty strong{font-size:18px;margin-bottom:8px}
.trend-empty-state p,.trend-preview-empty p{max-width:320px;line-height:1.7;color:var(--text-muted)}
.trend-preview-panel{padding-bottom:18px}
.trend-topic-bridge{padding:14px 18px 4px}
.trend-topic-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted)}
.trend-topic-title{margin-top:6px;font-size:16px;font-weight:700;line-height:1.5}
.trend-topic-content-list{padding:12px 18px 6px;max-height:260px;overflow-y:auto}
.trend-topic-content-item{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:8px;border:1px solid transparent;border-radius:16px;background:rgba(255,255,255,.03);color:var(--text-primary);text-align:left;cursor:pointer;transition:all .16s ease}
.trend-topic-content-item:hover,.trend-topic-content-item.active{background:rgba(0,206,201,.08);border-color:rgba(0,206,201,.22)}
.trend-topic-content-copy{min-width:0}
.trend-topic-content-copy strong{display:block;font-size:14px;line-height:1.5}
.trend-topic-content-copy span{display:block;margin-top:6px;font-size:11px;color:var(--text-muted)}
.trend-topic-content-hot{flex-shrink:0;font-size:12px;font-weight:700;color:#ff8a80}
.trend-preview-cover{margin:16px 18px 0;border-radius:20px;overflow:hidden;background:rgba(255,255,255,.04);min-height:180px}
.trend-preview-cover img{width:100%;height:220px;object-fit:cover;display:block}
.trend-preview-cover.noimg{height:220px}
.trend-preview-fallback{height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff}
.trend-preview-fallback span{font-size:34px}
.trend-preview-title{padding:16px 18px 0;font-size:24px;line-height:1.35;font-weight:700}
.trend-preview-meta{padding:8px 18px 0;font-size:12px;color:var(--text-muted)}
.trend-preview-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:16px 18px 0}
.trend-preview-metrics div{padding:14px;border-radius:16px;background:rgba(255,255,255,.04)}
.trend-preview-metrics span{display:block;font-size:11px;color:var(--text-muted)}
.trend-preview-metrics strong{display:block;margin-top:6px;font-size:20px}
.trend-preview-summary{margin:16px 18px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.035);font-size:14px;line-height:1.8;color:var(--text-secondary);white-space:pre-wrap;max-height:260px;overflow-y:auto}
.trend-preview-actions{display:flex;flex-wrap:wrap;gap:10px;padding:16px 18px 0}
.trend-compact-empty{min-height:180px;padding:20px 8px}
@media (max-width:1400px){.trend-main{grid-template-columns:250px minmax(0,1fr) minmax(280px,.85fr)}}
@media (max-width:1120px){.trend-hero{grid-template-columns:1fr}.trend-main{grid-template-columns:1fr}.trend-preview-cover img,.trend-preview-cover.noimg{height:180px}.trend-login-shell{width:calc(100vw - 20px);height:calc(100vh - 20px)}.trend-login-workspace{grid-template-columns:1fr}.trend-login-side{border-left:0;border-top:1px solid rgba(255,255,255,.06)}}
@media (max-width:720px){.trend-login-overlay{padding:10px}.trend-login-topbar{padding:18px 16px 14px;flex-direction:column}.trend-login-topbar h3{font-size:22px}.trend-login-canvas{padding:14px}.trend-login-shot,.trend-login-placeholder{min-height:340px}.trend-login-side{padding:14px}}

/* [v2.0-merge] 分组导航 section 标题 */
.sidebar-section-title {
    font-size: 10px;
    color: var(--text-muted, #888);
    padding: 10px 0 2px;
    text-align: center;
    letter-spacing: 2px;
    user-select: none;
}
