/* ============================================
   ContentFlow SaaS 样式
   现代化内容获客平台
   ============================================ */

/* 变量 */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: #eef2ff;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #1e1b4b;
    --bg-sidebar-hover: #312e81;
    --bg-sidebar-active: #3730a3;

    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-on-dark: #e2e8f0;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

    --sidebar-width: 260px;
    --topbar-height: 64px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ============ 认证页面 ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    padding: 20px;
}

.auth-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    min-height: 560px;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand { margin-bottom: 40px; position: relative; z-index: 1; }

.brand-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.auth-brand h1 { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.brand-subtitle { font-size: 16px; color: rgba(255,255,255,0.7); }

.auth-features { position: relative; z-index: 1; }

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.feature-item p { font-size: 13px; color: rgba(255,255,255,0.6); }

.auth-right {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-wrapper { width: 100%; max-width: 360px; }
#auth-title { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.auth-desc { color: var(--text-secondary); margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-secondary:hover { background: var(--primary-bg); }

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }

.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.auth-switch a { color: var(--text-light); }
.auth-switch a:hover { color: var(--primary); }
.auth-notice { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-light); }

/* 登录方式切换标签 */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}
.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.login-tab:hover { color: var(--primary); }
.login-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 支付二维码 */
.pay-qr-wrapper {
    text-align: center;
    padding: 24px;
}
.pay-qr-wrapper .qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.pay-qr-wrapper .qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pay-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--danger);
    margin: 8px 0;
}
.pay-amount small {
    font-size: 16px;
    font-weight: 400;
}

/* 套餐卡片 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan-card.current { border-color: var(--success); background: var(--success-bg); }
.plan-card.popular { border-color: var(--primary); }
.plan-card .popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.plan-features { text-align: left; margin: 16px 0; }
.plan-features li { padding: 4px 0; font-size: 13px; color: var(--text-secondary); list-style: none; }
.plan-features li::before { content: '✓ '; color: var(--success); font-weight: bold; }

/* ============ 主布局 ============ */
#main-app { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar.collapsed { transform: translateX(-100%); }

.sidebar-header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon-sm {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.brand-name { font-size: 18px; font-weight: 700; }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
    text-decoration: none;
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: white; text-decoration: none; }
.nav-item.active { background: var(--bg-sidebar-active); color: white; }
.nav-item i { width: 20px; text-align: center; font-size: 15px; }

.nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 10px 14px; }

.sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 13px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { display: block; font-size: 11px; color: rgba(255,255,255,0.5); }

/* 主内容 */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar-actions { display: flex; gap: 10px; align-items: center; position: relative; }

.sidebar-toggle { display: none; }
.page-title { font-size: 18px; font-weight: 700; flex: 1; }

.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ============ 通用组件 ============ */

/* 卡片 */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 600; }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon.purple { background: var(--primary-bg); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }

.stat-info { flex: 1; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* 表格 */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); border-bottom: 2px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; vertical-align: middle; }
tr:hover td { background: var(--primary-bg); }

/* 徽标 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-purple { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: var(--border-light); color: var(--text-secondary); }

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--border-light);
    color: var(--text-secondary);
    margin: 2px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; color: var(--text-light); }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
    min-width: 300px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s;
}
.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden; /* 禁止横向滚动条 */
    animation: scaleIn 0.2s;
}
.modal.modal-lg {
    max-width: 960px;
    max-height: 94vh;
    padding: 24px 28px;
}
.modal h2 { font-size: 20px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 进度条 */
.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 加载动画 */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
}

/* 标签选择器 */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.tag-option {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.tag-option:hover { border-color: var(--primary); color: var(--primary); }
.tag-option.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* 搜索框 */
.search-box {
    position: relative;
}
.search-box input {
    padding-left: 38px;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-bar select, .filter-bar input {
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: white;
}

/* 内容编辑器 */
.content-preview {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: auto;
}
.content-preview h1, .content-preview h2, .content-preview h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.content-preview p { margin-bottom: 12px; }

/* 平台图标色 */
.platform-wechat { color: #07C160; }
.platform-weibo { color: #E6162D; }
.platform-xiaohongshu { color: #FE2C55; }
.platform-douyin { color: #000; }
.platform-zhihu { color: #0066FF; }
.platform-toutiao { color: #F85959; }

/* 热度条 */
.heat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.heat-bar .bar {
    width: 60px;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.heat-bar .bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
}

/* 侧边栏新建创作按钮 */
.nav-create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    margin: 4px 10px 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}
.nav-create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99,102,241,0.45);
    text-decoration: none;
    color: white;
}
.nav-create-btn:active { transform: translateY(0); }

/* 顶栏用户区 */
.topbar-user {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.topbar-user:hover { background: var(--bg); }

.topbar-notify { position: relative; }
.notify-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* 顶栏下拉菜单 */
.topbar-dropdown {
    position: absolute;
    top: calc(var(--topbar-height) - 8px);
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
    animation: fadeIn 0.15s;
}
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
}
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.dropdown-item:hover { background: var(--primary-bg); text-decoration: none; }
.dropdown-item i { width: 16px; text-align: center; }

/* 工作台英雄区 */
.dashboard-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4f46e5 100%);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(129,140,248,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.hero-greeting { font-size: 26px; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.hero-subtitle { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 24px; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; position: relative; z-index: 1; }
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* 快速操作卡片组 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.quick-action-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.quick-action-card .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.quick-action-card .qa-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.quick-action-card .qa-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.quick-action-card .qa-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.2s;
}
.quick-action-card:hover .qa-arrow {
    color: var(--primary);
    transform: translateY(-50%) translateX(3px);
}

.qa-card-create .qa-icon { background: var(--primary-bg); color: var(--primary); }
.qa-card-create:hover { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }

.qa-card-topic .qa-icon { background: #fef3c7; color: #d97706; }
.qa-card-topic:hover { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }

.qa-card-publish .qa-icon { background: var(--success-bg); color: var(--success); }
.qa-card-publish:hover { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }

.qa-card-account .qa-icon { background: var(--info-bg); color: var(--info); }
.qa-card-account:hover { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }

/* 最近内容列表 */
.recent-content-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.recent-header h3 { font-size: 16px; font-weight: 600; }
.recent-list { }
.recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
    cursor: pointer;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--primary-bg); }
.recent-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-secondary);
}
.recent-item-info { flex: 1; min-width: 0; }
.recent-item-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-item-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    display: flex;
    gap: 12px;
}
.recent-item-status { flex-shrink: 0; }

/* 套餐进度条 */
.plan-progress-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.plan-progress-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.plan-progress-info { flex: 1; }
.plan-progress-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.plan-progress-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.plan-progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.plan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 响应式 */
/* 个人中心页面 */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
}
.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.profile-header-info { flex: 1; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.profile-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.profile-meta i { margin-right: 4px; }
.profile-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.profile-col { display: flex; flex-direction: column; }

.profile-info-list { padding: 4px 0; }
.profile-info-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.profile-info-row:last-child { border-bottom: none; }
.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    width: 80px;
    flex-shrink: 0;
}
.info-value { font-size: 14px; color: var(--text); flex: 1; }

.profile-plan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid;
    border-radius: var(--radius);
    background: var(--bg);
}
.plan-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.plan-card-info { flex: 1; }

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
}
.profile-stat-item {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}
.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
}
.shortcut-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.shortcut-item:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    text-decoration: none;
    color: var(--primary);
}
.shortcut-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}
.shortcut-item:hover i { color: var(--primary); }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .auth-left { display: none; }
    .auth-container { max-width: 420px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .dashboard-hero { padding: 28px 20px; }
    .hero-greeting { font-size: 20px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-header-card { flex-wrap: wrap; padding: 20px; }
    .profile-avatar-lg { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; }
    .profile-name { font-size: 18px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}
