/**
 * 社区页面样式 - 我的工作流（已发布）
 * 深色主题，匹配 Figma 设计稿
 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #151519;
    --bg-tertiary: #1e1e24;
    --bg-hover: #252530;
    --bg-card: #141419;
    --border-color: #2a2a35;
    --border-light: #3a3a48;
    --text-primary: #f0f0f5;
    --text-secondary: #a1a1a1;
    --text-muted: #6b7280;
    --accent-primary: #C9FF85;
    --accent-secondary: #95FF0F;
    --accent-light: rgba(201, 255, 133, 0.12);
    --accent-glow: rgba(201, 255, 133, 0.25);
    --danger: #ff8585;
    --warning: #ffc485;
    --success: #c9ff85;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f5;
    --bg-hover: #f0f0f1;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f0f0f1;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #C9FF85;
    --accent-secondary: #b8f070;
    --accent-light: rgba(201, 255, 133, 0.18);
    --accent-glow: rgba(201, 255, 133, 0.3);
    --danger: #ef4444;
    --warning: #f59e0b;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* ========== 主内容区 ========== */
.community-main {
    flex: 1;
    padding: 32px 48px 64px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ========== 顶部工具栏 ========== */
.community-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* 搜索框 */
.community-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.community-search-box .search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    pointer-events: none;
    transition: stroke var(--transition-fast);
    z-index: 1;
}

.community-search-input {
    width: 448px;
    max-width: 100%;
    padding: 13px 40px 13px 46px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

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

.community-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(201, 255, 133, 0.15);
}

.community-search-box:focus-within .search-icon {
    stroke: var(--accent-primary);
}

/* 搜索清除按钮 */
.community-search-clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.community-search-clear svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
}

.community-search-clear:hover {
    background: rgba(255, 107, 107, 0.2);
}

.community-search-clear:hover svg {
    stroke: #ff6b6b;
}

/* 工具栏右侧 */
.community-toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.community-stats-count {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.community-stats-count strong {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 17px;
}

/* 新建工作流按钮 */
.btn-new-workflow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-new-workflow:hover {
    background: var(--accent-secondary);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 255, 133, 0.3);
}

.btn-new-workflow svg {
    width: 16px;
    height: 16px;
    stroke: #1a1a1a;
    stroke-width: 2.5;
}

/* ========== 筛选栏 ========== */
.community-filter-bar {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
}

.filter-label {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Tab 切换 */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.filter-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.filter-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ========== 工作流卡片网格 ========== */
.workflow-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========== 工作流卡片 ========== */
.wf-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.wf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 卡片封面 */
.wf-card-cover {
    position: relative;
    aspect-ratio: 416.67 / 242.25;
    background: linear-gradient(135deg, #1a1a22 0%, #252530 100%);
    overflow: hidden;
}

.wf-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

/* 封面渐变遮罩 */
.wf-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* 状态标签 */
.wf-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    z-index: 2;
    white-space: nowrap;
    line-height: 1.5;
}

.wf-status-badge.status-reviewing {
    background: rgba(255, 196, 133, 0.15);
    color: #ffc485;
}

.wf-status-badge.status-published {
    background: linear-gradient(117deg, rgba(168, 224, 101, 0.15) 0%, rgba(201, 255, 133, 0.15) 48%, rgba(168, 224, 101, 0.15) 100%);
    color: #c9ff85;
}

.wf-status-badge.status-rejected {
    background: rgba(255, 133, 133, 0.15);
    color: #ff8585;
}

/* 卡片内容区 */
.wf-card-body {
    padding: 14px 16px 16px;
}

/* 卡片标题 */
.wf-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

/* 卡片底部信息 */
.wf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 作者信息 */
.wf-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.wf-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #C9FF85 0%, #95FF0F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #0a0a0f;
    flex-shrink: 0;
}

.wf-author-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* 统计数据 */
.wf-card-stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wf-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
}

.wf-stat-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    fill: none;
    flex-shrink: 0;
}

/* 已发布卡片状态标签（社区卡片封面上） */
.community-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    z-index: 3;
    white-space: nowrap;
    line-height: 1.5;
}

.community-status-badge.status-draft {
    background: rgba(160, 160, 180, 0.18);
    color: #a0a0b4;
}

.community-status-badge.status-reviewing {
    background: rgba(255, 196, 133, 0.18);
    color: #ffc485;
}

.community-status-badge.status-published {
    background: linear-gradient(117deg, rgba(168, 224, 101, 0.15) 0%, rgba(201, 255, 133, 0.15) 48%, rgba(168, 224, 101, 0.15) 100%);
    color: #c9ff85;
}

.community-status-badge.status-rejected {
    background: rgba(255, 133, 133, 0.18);
    color: #ff8585;
}

/* 拒绝原因提示 */
.community-card-reject {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: rgba(255, 133, 133, 0.08);
    border: 1px solid rgba(255, 133, 133, 0.15);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #ff8585;
}

.community-card-reject svg {
    margin-top: 1px;
    color: #ff8585;
}

.community-card-reject span {
    flex: 1;
    word-break: break-word;
}

/* 社区管理页卡片：覆盖 list.css 中的 overflow: visible，确保内容不溢出 */
.community-main .community-card {
    cursor: pointer;
    overflow: hidden;
}

/* 已发布卡片底部区域 */
.community-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 已发布卡片统计数据 */
.community-card-stats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.community-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
}

.community-stat-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    fill: none;
    flex-shrink: 0;
}

/* 卡片操作按钮组 - 重置 list.css 中的 absolute 定位，限定在社区管理页 */
.community-main .community-card-actions {
    position: static;
    display: flex;
    gap: 8px;
    margin-top: 12px;
    bottom: auto;
    right: auto;
}

/* 编辑工作流按钮 */
.community-main .community-card-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.community-main .community-card-edit-btn:hover {
    background: rgba(201, 255, 133, 0.1);
    border-color: rgba(201, 255, 133, 0.35);
    color: #C9FF85;
}
.community-main .community-card-edit-btn:hover svg {
    stroke: #C9FF85;
}
.community-main .community-card-edit-btn svg {
    width: 13px;
    height: 13px;
    stroke: rgba(255, 255, 255, 0.5);
    transition: stroke 0.2s;
    flex-shrink: 0;
}

/* 重新编辑按钮 */
.community-main .community-card-reedit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.06);
    color: #F59E0B;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.community-main .community-card-reedit-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
}
.community-main .community-card-reedit-btn svg {
    width: 13px;
    height: 13px;
    stroke: #F59E0B;
    flex-shrink: 0;
}

/* 继续发布按钮（draft 已下架状态） */
.community-main .community-card-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid rgba(201, 255, 133, 0.3);
    border-radius: 8px;
    background: rgba(201, 255, 133, 0.08);
    color: #C9FF85;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.community-main .community-card-publish-btn:hover {
    background: rgba(201, 255, 133, 0.18);
    border-color: rgba(201, 255, 133, 0.5);
    color: #C9FF85;
}
.community-main .community-card-publish-btn svg {
    width: 13px;
    height: 13px;
    stroke: #C9FF85;
    flex-shrink: 0;
}

/* 重新编辑确认弹窗 */
.reedit-modal .modal-content {
    max-width: 400px;
}
.reedit-modal-body {
    text-align: center;
    padding: 20px 24px !important;
}
.reedit-warning-icon {
    margin-bottom: 16px;
}
.reedit-warning-icon svg {
    width: 48px;
    height: 48px;
    stroke: #F59E0B;
}
.reedit-warning-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.reedit-warning-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}
.reedit-warning-desc strong {
    color: #F59E0B;
    font-weight: 600;
}
.reedit-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px !important;
}
.reedit-modal-footer .btn-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.reedit-modal-footer .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.reedit-modal-footer .btn-confirm {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #F59E0B;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.reedit-modal-footer .btn-confirm:hover {
    background: #D97706;
}
.reedit-modal-footer .btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 加载状态 ========== */
.community-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.community-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 空状态 ========== */
.community-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.community-empty svg {
    width: 72px;
    height: 72px;
    stroke: var(--accent-primary);
    opacity: 0.6;
    margin-bottom: 20px;
}

.community-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.community-empty p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.community-empty .btn-create-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: #0a0a0f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-empty .btn-create-empty:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 255, 133, 0.3);
}

.community-empty .btn-create-empty svg {
    width: 18px;
    height: 18px;
    stroke: #0a0a0f;
    opacity: 1;
}

/* ========== 加载更多 ========== */
.community-loading-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.community-loading-more::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.community-no-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 0 16px;
    color: var(--text-muted);
    font-size: 13px;
    opacity: 0.6;
}

/* ========== 分页 ========== */
.community-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0a0a0f;
}

.page-btn:hover:not(:disabled) svg {
    stroke: #0a0a0f;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-number:hover:not(.active) {
    background: rgba(201, 255, 133, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.page-number.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0a0a0f;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(201, 255, 133, 0.25);
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ========== 消息提示 ========== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: var(--text-primary);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

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

/* ========== 自定义导航栏样式 ========== */
.header {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    height: 70px !important;
    padding: 0 2.208vw;
}

.header .headxin {
    height: 70px !important;
    background: transparent !important;
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo a {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.header .logo a img {
    height: 24px;
    width: auto;
}

.header .logo a span {
    color: var(--text-primary) !important;
    margin-left: 16px;
    font-size: 16px;
    font-weight: 700;
}

.header .logo .nav-slogan {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 20px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 24px;
}

.header .nav .menu li a,
.header .nav .menu li .btn-text {
    color: var(--text-primary) !important;
    font-size: 14px;
}

.header .nav .menu li a:hover,
.header .nav .menu li .btn-text:hover {
    color: var(--text-primary) !important;
}

.header .nav ul,
.header .nav ul li {
    list-style: none;
}

.header .nav .menu li {
    margin: 0 0.875vw !important;
}

.flex-yc {
    margin-left: 0.875vw;
}

.nav .menu {
    margin-right: 0vw !important;
}

/* 用户积分+会员 */
.nav-credits-vip-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-credits-vip-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.credits-icon {
    width: 16px;
    height: 16px;
}

.credits-num {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(117deg, #C9FF85 27%, #95FF0F 105%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-divider {
    color: #9ca3af;
    font-size: 11px;
}

.vip-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(153deg, #C9FF85 27%, #95FF0F 105%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-icon {
    width: 18px;
    height: 15px;
}

.recharge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--accent-primary);
    border: 1px solid #4e7608;
    border-radius: 999px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recharge-btn:hover {
    background: var(--accent-secondary);
    color: #1a1a1a;
}

/* 已登录用户 */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    color: #fff;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.5);
}

/* 登录按钮 */
.header .signup-btn {
    background: rgba(30, 30, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 8px 16px !important;
    color: var(--text-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
}

.header .signup-btn img {
    width: 18px;
    height: 18px;
}

.header .signup-btn .btn-fill {
    display: none !important;
}

/* ========== 社区页面工作流容器 ========== */
.community-main .workflow-container {
    position: relative;
    min-height: 400px;
}

/* 社区页面的 empty-state 样式覆盖 */
.community-main .empty-state {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .community-main .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .community-main .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .community-main {
        padding: 24px 20px 48px;
    }

    .community-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .community-search-input {
        width: 100%;
    }
    
    .community-toolbar-right {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .community-main .workflow-grid {
        grid-template-columns: 1fr;
    }
    .community-main .community-grid {
        grid-template-columns: 1fr;
    }

    .community-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .community-main {
        padding: 16px 16px 40px;
    }
}


/* ============================================
   亮色模式 — 全局覆盖
   ============================================ */

/* --- 导航栏 --- */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid #f0f0f1 !important;
    backdrop-filter: saturate(180%) blur(16px);
}

[data-theme="light"] .header .logo a img {
    filter: brightness(0);
}

[data-theme="light"] .header .logo a span {
    color: #1a1a1a !important;
}

[data-theme="light"] .header .logo .nav-slogan {
    color: #94a3b8 !important;
}

[data-theme="light"] .header .nav .menu li a,
[data-theme="light"] .header .nav .menu li .btn-text {
    color: #475569 !important;
}

[data-theme="light"] .header .signup-btn {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

[data-theme="light"] .header .signup-btn img {
    filter: invert(1);
}

[data-theme="light"] .header .user-dropdown .user-name {
    color: #1a1a1a !important;
}

[data-theme="light"] .header .user-dropdown .dropdown-arrow {
    color: #94a3b8;
}

[data-theme="light"] .header .notification-bell-icon svg {
    color: #475569;
}

[data-theme="light"] .credits-num {
    background: none;
    -webkit-text-fill-color: #2d6a0f;
    color: #2d6a0f;
}

[data-theme="light"] .vip-label {
    background: none;
    -webkit-text-fill-color: #2d6a0f;
    color: #2d6a0f;
}

[data-theme="light"] .nav-credits-vip-group {
    background: #f8faf5;
    border-color: #d4e8b8;
}

[data-theme="light"] .recharge-btn {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #C9FF85;
}

[data-theme="light"] .recharge-btn:hover {
    background: #333;
}

/* --- 筛选栏 --- */
[data-theme="light"] .filter-label {
    color: #1a1a1a;
}

[data-theme="light"] .filter-tab {
    color: #64748b;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

[data-theme="light"] .filter-tab:hover:not(.active) {
    color: #1a1a1a;
    background: #f4f4f5;
    border-color: #cbd5e1;
}

[data-theme="light"] .filter-tab.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* --- 工作流卡片 --- */
[data-theme="light"] .workflow-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .workflow-card:hover {
    border-color: #c2e89a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .workflow-tag {
    border-color: #e5e7eb;
    background: #f8faf5;
    color: #2d6a0f;
}

[data-theme="light"] .workflow-tag svg {
    stroke: #2d6a0f;
}

/* --- 搜索框 --- */
[data-theme="light"] .community-search-input {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1a1a1a;
}

[data-theme="light"] .community-search-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .community-search-input:focus {
    border-color: #a3d96c;
    box-shadow: 0 0 0 3px rgba(201, 255, 133, 0.2);
}

[data-theme="light"] .community-search-clear {
    background: #f4f4f5;
}

[data-theme="light"] .community-search-clear svg {
    stroke: #94a3b8;
}

/* --- 弹窗 --- */
[data-theme="light"] .reedit-warning-title {
    color: #1a1a1a;
}

[data-theme="light"] .reedit-warning-desc {
    color: #64748b;
}

[data-theme="light"] .reedit-modal-footer .btn-cancel {
    border-color: #e5e7eb;
    color: #64748b;
}

[data-theme="light"] .reedit-modal-footer .btn-cancel:hover {
    background: #f4f4f5;
    color: #1a1a1a;
}

/* --- 分页器 --- */
[data-theme="light"] .page-number {
    color: #64748b;
    border-color: #e5e7eb;
    background: #ffffff;
}

[data-theme="light"] .page-number:hover {
    border-color: #cbd5e1;
    color: #1a1a1a;
}

[data-theme="light"] .page-number.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: none;
}


[data-theme="light"] .community-stats-count strong {
    color: #1a1a1a;
}

[data-theme="light"] .wf-status-badge.status-published,
[data-theme="light"] .community-status-badge.status-published {
    background: #f0fae4;
    color: #2d6a0f;
}

[data-theme="light"] .community-main .community-card-edit-btn {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #475569;
}

[data-theme="light"] .community-main .community-card-edit-btn svg {
    stroke: #64748b;
}

[data-theme="light"] .community-main .community-card-edit-btn:hover {
    background: #f0fae4;
    border-color: #d4e8b8;
    color: #2d6a0f;
}

[data-theme="light"] .community-main .community-card-edit-btn:hover svg {
    stroke: #2d6a0f;
}

[data-theme="light"] .community-main .community-card-reedit-btn {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

[data-theme="light"] .community-main .community-card-reedit-btn svg {
    stroke: #b45309;
}

[data-theme="light"] .community-main .community-card-reedit-btn:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

[data-theme="light"] .community-main .community-card-publish-btn {
    background: #f0fae4;
    border-color: #d4e8b8;
    color: #2d6a0f;
}

[data-theme="light"] .community-main .community-card-publish-btn:hover {
    background: #e1f5c4;
    border-color: #a3d96c;
    color: #2d6a0f;
}

/* --- 社区卡片文字 --- */
[data-theme="light"] .community-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .community-card:hover {
    border-color: #c2e89a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .community-card-cover {
    background: #f0f0f1;
}

[data-theme="light"] .community-card-title {
    color: #1a1a1a;
}

[data-theme="light"] .author-name {
    color: #64748b;
}

[data-theme="light"] .community-stat-item {
    color: #94a3b8;
}

[data-theme="light"] .community-stat-item:hover {
    color: #64748b;
}

[data-theme="light"] .community-card-overlay {
    background: none;
}

[data-theme="light"] .community-card-reject span {
    color: #dc2626;
}
