/* 流光引擎 — 管理系统样式 */

/* ===== 基础变量 ===== */
:root {
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1e1e35;
    --bg-sidebar: #12121f;
    --bg-input: #16162a;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #5c5c78;
    --border-color: #2a2a45;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-3: linear-gradient(135deg, #10b981, #34d399);
    --gradient-4: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-5: linear-gradient(135deg, #8b5cf6, #ec4899);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--accent-primary); text-decoration: none; }
.page { display: none; min-height: 100vh; }
.page.active { display: flex; }

/* ===== 登录页 ===== */
#login-page {
    align-items: center;
    justify-content: center;
    position: relative;
}
.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatGlow 10s ease-in-out infinite;
}
.glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -150px; left: -150px;
}
.glow-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: -120px; right: -120px;
    animation-delay: -3s;
}
.glow-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 40%; left: 55%;
    animation-delay: -6s;
    opacity: 0.35;
}
.glow-4 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    top: 70%; left: 10%;
    animation-delay: -2s;
    opacity: 0.25;
}
.glow-5 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    top: 10%; right: 20%;
    animation-delay: -7s;
    opacity: 0.3;
}
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -50px) scale(1.15); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(20px, 40px) scale(1.05); }
}

/* 流光光线 */
.light-streak {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.6), transparent);
    animation: streakMove 6s ease-in-out infinite;
    opacity: 0;
}
.streak-1 { left: 15%; top: 0; animation-delay: 0s; }
.streak-2 { left: 55%; top: 0; animation-delay: 2s; width: 3px; height: 160px; }
.streak-3 { left: 80%; top: 0; animation-delay: 4s; }
@keyframes streakMove {
    0% { opacity: 0; transform: translateY(-120px); }
    20% { opacity: 0.8; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(100vh); }
}

/* 粒子背景 */
.particles {
    position: absolute;
    inset: 0;
}
.particle {
    position: absolute;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
    animation: particleFloat 7s ease-in-out infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.7; }
    50% { opacity: 0.4; }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.login-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 48px 40px 36px;
    box-shadow: 0 8px 64px rgba(0,0,0,0.5), 0 0 120px rgba(99,102,241,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: cardGlow 4s ease-in-out infinite alternate;
}
@keyframes cardGlow {
    0% { box-shadow: 0 8px 64px rgba(0,0,0,0.5), 0 0 80px rgba(99,102,241,0.08); }
    100% { box-shadow: 0 8px 64px rgba(0,0,0,0.5), 0 0 140px rgba(139,92,246,0.15), 0 0 60px rgba(99,102,241,0.1); }
}
.login-header {
    text-align: center;
    margin-bottom: 36px;
}
.logo-icon {
    margin-bottom: 16px;
    animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.login-title {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-wrapper input::placeholder {
    color: var(--text-muted);
}
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 16px;
}
.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.login-btn:active {
    transform: scale(0.98);
}
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== 后台布局 ===== */
#dashboard-page {
    flex-direction: row;
}
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}
.nav-menu {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}
.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-primary);
    font-weight: 500;
}
.nav-item.active svg { stroke: var(--accent-primary); }
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 0;
    min-height: 100vh;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar h2 {
    font-size: 18px;
    font-weight: 600;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--success);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.user-info {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Tab 内容 */
.tab-content {
    display: none;
    padding: 24px 28px;
}
.tab-content.active { display: block; }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.stat-gradient-1 { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.06)); border-color: rgba(99,102,241,0.15); }
.stat-gradient-2 { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(59,130,246,0.06)); border-color: rgba(6,182,212,0.15); }
.stat-gradient-3 { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(52,211,153,0.06)); border-color: rgba(16,185,129,0.15); }
.stat-gradient-4 { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.06)); border-color: rgba(245,158,11,0.15); }
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-gradient-1 .stat-icon { background: rgba(99,102,241,0.15); color: #818cf8; }
.stat-gradient-2 .stat-icon { background: rgba(6,182,212,0.15); color: #22d3ee; }
.stat-gradient-3 .stat-icon { background: rgba(16,185,129,0.15); color: #34d399; }
.stat-gradient-4 .stat-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 面板 */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
}
.panel-body {
    padding: 16px 20px;
    min-height: 200px;
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state svg { margin-bottom: 12px; }
.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.empty-state span { font-size: 12px; }

/* 按钮 */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.3); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-group { display: flex; gap: 6px; }

/* 列表项 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.list-item:last-child { border-bottom: none; }
.list-item-info { flex: 1; }
.list-item-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.list-item-meta { font-size: 12px; color: var(--text-muted); }

/* 状态标签 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(99,102,241,0.15); color: var(--accent-primary); }
.badge-muted { background: rgba(88,88,168,0.1); color: var(--text-muted); }

/* 响应式 */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { width: 200px; }
    .main-content { margin-left: 200px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ===== 模态框 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.06);
    animation: slideUp 0.25s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.modal-body {
    padding: 20px 24px;
}
.modal-body .form-group {
    margin-bottom: 16px;
}
.modal-body .form-group:last-of-type {
    margin-bottom: 8px;
}
.modal-body .input-wrapper input {
    padding: 10px 14px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}
.modal-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
}
.required {
    color: var(--danger);
}
.form-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

/* 表单行（双列） */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row .form-group {
    margin-bottom: 16px;
}

/* 下拉框 */
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* 多行输入 */
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: var(--transition);
    line-height: 1.6;
}
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 2000;
    animation: slideInRight 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}
.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
    to { opacity: 0; }
}

/* ===== 第5统计卡 ===== */
.stat-gradient-5 { background: var(--gradient-5); }

/* ===== 产品卡片 ===== */
.product-card { cursor: pointer; transition: var(--transition); }
.product-card:hover { background: var(--bg-card-hover); transform: translateX(4px); }

/* ===== 进度条 ===== */
.progress-bar { height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-1); border-radius: 2px; transition: width 0.5s ease; min-width: 0; }

/* ===== 复选框组 ===== */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--text-primary); transition: var(--transition); }
.checkbox-item:hover { border-color: var(--accent-primary); }
.checkbox-item input[type="checkbox"] { accent-color: var(--accent-primary); }

/* ===== 表单内联样式 ===== */
.inline-form { display: flex; gap: 8px; align-items: center; padding: 12px 0; }
.inline-form-vertical { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }

/* ===== 分区块 ===== */
.section-block { padding: 16px; background: var(--bg-input); border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-header h4 { font-size: 14px; color: var(--text-primary); font-weight: 600; }

/* ===== 迷你列表 ===== */
.mini-list-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; color: var(--text-primary); }
.mini-list-item:last-child { border-bottom: none; }
.mini-tag { display: inline-block; padding: 2px 8px; background: var(--accent-glow); color: var(--accent-primary); border-radius: 4px; font-size: 11px; font-weight: 500; }
.btn-icon { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: var(--transition); }
.btn-icon:hover { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ===== 模态框大尺寸 ===== */
.modal-lg { max-width: 640px; width: 95%; }

/* ===== 辅助 ===== */
.text-muted { color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* ===== 范围滑块 ===== */
.range-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--bg-input); border: 1px solid var(--border-color); outline: none; cursor: pointer; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gradient-1); border: 2px solid var(--bg-card); cursor: pointer; }

/* ===== 关键词标签 ===== */
.keyword-tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; min-height: 0; }
.keyword-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25); color: var(--text-primary); padding: 5px 10px; border-radius: 20px; font-size: 13px; animation: tagFadeIn 0.2s ease; }
@keyframes tagFadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.keyword-tag-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; transition: color 0.2s; }
.keyword-tag-remove:hover { color: var(--danger); }
.keyword-input-row { display: flex; gap: 8px; align-items: stretch; }
.keyword-add-btn { width: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--radius-sm); }

/* ===== 帮助中心布局（全宽双列） ===== */
.guide-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } }
.guide-col-main { min-width: 0; }
.guide-col-side { min-width: 0; }
.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .guide-cards { grid-template-columns: 1fr; } }
.guide-list { list-style: none; padding: 0; }
.guide-list li { position: relative; padding: 6px 0 6px 18px; color: var(--text-secondary); line-height: 1.6; font-size: 13px; }
.guide-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-primary); font-weight: 700; }

/* 流程图 */
.flow-chart { display: flex; align-items: flex-start; gap: 0; padding: 12px 0; overflow-x: auto; justify-content: center; }
.flow-step { background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 12px; padding: 16px 14px; text-align: center; min-width: 110px; flex: 1; transition: transform 0.2s, background 0.2s; }
.flow-step:hover { transform: translateY(-3px); background: rgba(99, 102, 241, 0.14); }
.flow-icon { font-size: 28px; margin-bottom: 8px; }
.flow-label { font-weight: 600; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.flow-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.flow-arrow { color: var(--accent-primary); font-size: 18px; font-weight: 700; display: flex; align-items: center; padding: 0 4px; }

/* FAQ */
.faq-item { background: var(--bg-input); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border-color); }
.faq-q { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; font-size: 13px; }
.faq-a { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
