/* 全局重置与设计变量 - 现代 SaaS 浅色科技风格 */
:root {
    --bg-main: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-glass: #ffffff;
    --border-glass: #e2e8f0;
    --border-glass-focus: #3b82f6;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --color-primary: #3b82f6;
    --accent-purple: #6366f1;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    
    --color-dy: #0f172a;
    --color-xhs: #ef4444;
    --color-tiktok: #000000;
    --color-twitter: #0ea5e9;
    
    --shadow-main: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 8px 16px -4px rgba(59, 130, 246, 0.25);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 优雅滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 布局框架 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边导航栏 */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition-smooth);
}

.nav-item i {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background: #f8fafc;
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--color-primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.nav-item.active i {
    color: var(--color-primary);
    transform: scale(1.1);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 8px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.version {
    font-size: 12px;
    color: var(--text-muted);
}

.status-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.status-online .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}

/* 头部条 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* 标签页显示/隐藏控制 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-purple {
    background: #eef2ff;
    color: #6366f1;
}

.icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-pink {
    background: #fdf2f8;
    color: #ec4899;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1;
}

/* 过滤器控制台 */
.filter-panel {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-main);
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 平台微标组 */
.platform-tags {
    display: flex;
    gap: 8px;
}

.platform-tag {
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.platform-tag:hover {
    color: var(--text-primary);
    background: #e2e8f0;
}

.platform-tag.active {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* 搜索框 */
.search-box-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

#search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    border-color: var(--border-glass-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.filter-row.second-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
}

/* 区间输入容器 */
.range-input-container, .date-range-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-input {
    width: 75px !important;
    text-align: center;
    padding: 8px 6px !important;
    -moz-appearance: textfield;
}

.range-input::-webkit-outer-spin-button,
.range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-split {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* 排序下拉 */
.custom-select {
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.custom-select:focus {
    border-color: var(--border-glass-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

/* 瀑布流/网格布局 */
.content-waterfall {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 200px;
}

.task-tabs-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.task-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.task-tab-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 18px;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-main);
}

.task-tab-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-hover);
}

.task-tab-card.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.task-tab-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.task-tab-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.task-tab-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.task-tab-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-tab-meta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.task-tab-panel {
    display: block;
}

.task-content-group {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-main);
}

.task-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.task-content-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.task-content-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.task-content-summary {
    min-width: 64px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 700;
}

.task-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.task-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 12px;
}

.task-meta-chip i {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.cycle-content-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cycle-content-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.cycle-content-label i {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.platform-content-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.platform-content-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.platform-content-count {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 爆款数据卡片 */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-main);
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-hover);
}

.card-media {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.content-card:hover .card-cover {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-dy { background: var(--color-dy); }
.badge-xhs { background: var(--color-xhs); }
.badge-tt { background: var(--color-tiktok); }
.badge-tw { background: var(--color-twitter); }

.card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.9;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-card:hover .card-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
    color: #ffffff;
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.author-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片数据展示 */
.card-data-row {
    display: flex;
    gap: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.data-item i {
    width: 14px;
    height: 14px;
}

.data-item span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* 卡片操作按钮 */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.card-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* 空白状态 */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    stroke-width: 1.5;
    color: #cbd5e1;
}

/* 任务列表 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.task-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.task-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-title-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.task-title-group .platform-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #64748b;
}

.task-stats {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.task-stat-row span:last-child {
    font-weight: 700;
    color: var(--color-primary);
}

.task-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.task-footer .btn {
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

.task-meta-info {
    gap: 8px !important;
}

.task-meta-info > div:first-child {
    gap: 10px;
    flex-wrap: wrap;
}

.task-time-box,
.task-status-box {
    min-width: 0;
}

.task-error-text {
    color: #ef4444;
    font-size: 11px;
    line-height: 1.45;
    margin-top: 4px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.inline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.inline-banner-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1e3a8a;
}

.selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-main);
}

.selection-toolbar.compact {
    margin-bottom: 0;
    padding: 12px 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.selection-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.selection-summary strong {
    color: var(--color-primary);
}

.selection-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.card-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-check span {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.card-check input:checked + span {
    background: var(--color-primary);
    border-color: #ffffff;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.page-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    color: var(--text-primary);
    transform: translateY(-1px);
    background: #f8fafc;
}

.page-btn.active {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 灵感布局 */
.inspiration-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
}

.folders-panel {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-main);
    align-self: start;
}

.panel-head h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.panel-head p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.folder-card {
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}

.folder-card:hover {
    background: #f1f5f9;
}

.folder-card.active {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.folder-card-main {
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.folder-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.folder-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.folder-card-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 999px;
}

.folder-card-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.folder-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.inspiration-main {
    min-width: 0;
}

.inspiration-toolbar {
    margin-bottom: 20px;
}

.inspiration-grid {
    min-height: 260px;
}

.inspiration-card {
    height: 100%;
}

.inspiration-card .card-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.inspiration-card .card-info {
    gap: 16px;
    height: 100%;
}

.inspiration-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inspiration-author-img {
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    background: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.inspiration-author-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inspiration-author-name {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

.inspiration-origin-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    line-height: 1.5;
    min-height: 3em;
    color: var(--text-secondary);
}

.inspiration-title {
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    min-height: calc(1.45em * 3);
}

.inspiration-copywriting {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-line-clamp: 4;
    min-height: calc(1.7em * 4);
}

.inspiration-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.inspiration-stats .data-item span {
    color: var(--text-secondary);
    font-size: 13px;
}

.card-actions-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.card-actions-stack .card-btn {
    width: 100%;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}

.meta-text {
    color: var(--text-muted);
    font-size: 12px;
}

.import-summary {
    justify-content: center;
    padding: 10px 0 18px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Switch 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 小号管理 - 浅色轻量科技感 */
.accounts-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-main);
    position: relative;
    overflow: hidden;
}

.accounts-shell::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.accounts-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 20px;
    padding: 32px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.accounts-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.accounts-hero-copy h2 {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.accounts-hero-copy .section-desc {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.accounts-hero-brief {
    display: grid;
    gap: 12px;
    align-content: center;
}

.hero-brief-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: var(--transition-smooth);
}

.hero-brief-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

.hero-brief-card > i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--color-primary);
}

.hero-brief-card span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.hero-brief-card strong {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.accounts-protocol-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.protocol-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.protocol-chip:hover {
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.protocol-chip i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.account-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.account-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #e2e8f0;
    transition: var(--transition-smooth);
}

.account-card:hover::before {
    background: var(--color-primary);
}

.account-card.lock {
    opacity: 0.65;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.acc-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.acc-brand h3 {
    font-size: 18px;
    margin-top: 4px;
    font-weight: 700;
    color: var(--text-primary);
}

.acc-kicker {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.acc-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acc-panel {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid transparent;
}

.acc-panel-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.acc-info {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.acc-meta {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 20px;
}

.acc-footer {
    margin-top: auto;
}

.acc-footer .btn-secondary {
    min-height: 48px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.acc-footer .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Modal 弹窗 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal-backdrop.show .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.btn-close:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}

/* 表单控 */
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Toast 通知 */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
}

.toast i {
    color: var(--color-primary);
}

@keyframes slideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

.toast.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* 任务状态徽章 */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-idle {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.status-running {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

.status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 呼吸点动画 */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDotAnim 1.5s infinite;
}

@keyframes pulseDotAnim {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@media (max-width: 960px) {
    .main-content {
        margin-left: 0;
        padding: 24px 16px 40px;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .app-container {
        flex-direction: column;
    }

    .top-bar,
    .section-header,
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tasks-grid,
    .accounts-list {
        grid-template-columns: 1fr;
    }

    .selection-toolbar,
    .inline-banner,
    .section-header-actions,
    .selection-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .selection-summary {
        justify-content: center;
    }

    .accounts-hero {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .accounts-hero-copy h2 {
        font-size: 28px;
    }

    .accounts-protocol-strip {
        gap: 10px;
    }

    .protocol-chip {
        width: 100%;
        justify-content: center;
    }

    .task-tabs-grid {
        grid-template-columns: 1fr;
    }

    .task-content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .task-content-summary {
        align-self: flex-start;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .inspiration-layout {
        grid-template-columns: 1fr;
    }

    .acc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .acc-brand {
        width: 100%;
    }
}
