/* ===== 艺学堂CRM - 活动板块样式 ===== */

/* ---------- 4步法流程表单 ---------- */
.step-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-form .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-form .field-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.step-form .field-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.step-form .field-input:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.step-form .field-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.step-form .field-table {
    width: 100%;
    border-collapse: collapse;
}

.step-form .field-table th,
.step-form .field-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.step-form .field-table th {
    background: #fafafa;
    font-weight: 500;
}

/* ---------- 新增字段类型样式（v2.1 T02） ---------- */

/* select下拉框 */
.form-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
    transition: border-color 0.2s;
}

.form-select:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 表格字段(table类型) */
.field-table-wrapper {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.field-table th {
    background: #fafafa;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    font-size: 13px;
}

.field-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.field-table tr:last-child td {
    border-bottom: none;
}

.field-table .table-empty-row td {
    text-align: center;
    color: #999;
    padding: 16px;
}

.table-cell-input,
.table-cell-select,
.table-cell-textarea {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.table-cell-input:focus,
.table-cell-select:focus,
.table-cell-textarea:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.08);
}

.table-delete-row {
    padding: 2px 8px !important;
    font-size: 12px !important;
    color: #ff4d4f !important;
    border-color: #ff4d4f !important;
}

.table-delete-row:hover {
    background: #fff1f0 !important;
}

/* 日期范围字段(date-range类型) */
.date-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.date-range-group input[type="date"]:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 结构化字段(structured类型) */
.structured-section {
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.structured-section-header {
    background: #fafafa;
    padding: 10px 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.structured-section-header:hover {
    background: #f0f0f0;
}

.structured-section-body {
    padding: 12px 14px;
}

.structured-section.collapsed .structured-section-body {
    display: none;
}

.structured-section.collapsed .structured-toggle-icon {
    transform: rotate(-90deg);
}

.structured-toggle-icon {
    transition: transform 0.2s;
}

/* 只读字段(readonly类型) */
.field-readonly {
    color: var(--gray, #999);
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

/* AI可映射标记 */
.ai-badge {
    font-size: 12px;
    margin-left: 4px;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ai-badge:hover {
    opacity: 1;
}

/* 必填标记 */
.required {
    color: #ff4d4f;
    margin-left: 2px;
}

/* 步骤被驳回状态 */
.step-rejected .node-circle {
    background: #ff4d4f !important;
    color: #fff !important;
}

.pipeline-node.step-rejected {
    border-color: #ff4d4f;
}

.pipeline-node.step-rejected .node-label {
    color: #ff4d4f;
}

/* ---------- AI对话面板（v3.0完整版） ---------- */
.ai-chat-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #f7f8fa;
    height: 100%;
    min-height: 400px;
}

.ai-chat-panel.ai-chat-collapsed {
    min-height: auto;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #1890ff;
}

.ai-chat-title i {
    font-size: 16px;
}

.ai-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-apply-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-chat-apply-btn:hover {
    background: #73d13d;
}

.ai-chat-toggle-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: all 0.2s;
}

.ai-chat-toggle-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 460px;
}

.ai-chat-welcome {
    text-align: center;
    padding: 24px 16px;
    color: #666;
}

.ai-welcome-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.ai-chat-welcome p {
    margin: 6px 0;
    font-size: 14px;
}

.ai-quick-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ai-quick-q {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    font-size: 13px;
    color: #1890ff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ai-quick-q:hover {
    border-color: #1890ff;
    background: #e6f7ff;
}

.ai-chat-message {
    max-width: 90%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.ai-chat-message.user {
    align-self: flex-end;
    background: #1890ff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-chat-message.assistant {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
}

.ai-chat-message.system {
    align-self: center;
    background: transparent;
    color: #999;
    font-size: 12px;
    padding: 4px 12px;
    border: none;
}

.ai-message-content {
    white-space: pre-wrap;
}

.ai-message-content code {
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 13px;
}

.ai-message-content strong {
    color: #1890ff;
}

/* AI建议提示条 */
.ai-suggestion-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    font-size: 12px;
    color: #389e0d;
}

.ai-suggestion-hint i {
    color: #52c41a;
}

.ai-apply-inline-btn {
    margin-left: auto;
    padding: 2px 10px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-apply-inline-btn:hover {
    background: #73d13d;
}

.ai-message-time {
    font-size: 11px;
    color: #bfbfbf;
    margin-top: 4px;
    text-align: right;
}

/* AI打字动画 */
.ai-typing {
    padding: 14px 18px !important;
}

.ai-typing-dots {
    display: flex;
    gap: 4px;
}

.ai-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bfbfbf;
    animation: ai-typing-bounce 1.4s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ai-typing-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.ai-chat-input textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
}

.ai-chat-input textarea:focus {
    border-color: #1890ff;
    outline: none;
}

.ai-chat-input button {
    padding: 8px 16px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.ai-chat-input button:hover {
    background: #40a9ff;
}

.ai-chat-input button:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

.ai-chat-status {
    padding: 6px 16px;
    font-size: 12px;
    color: #999;
    background: #f7f8fa;
    border-top: 1px solid #f0f0f0;
}

.ai-chat-status.thinking {
    color: #1890ff;
}

.ai-field-highlight {
    background: rgba(24, 144, 255, 0.08);
    border-color: #91d5ff;
    transition: background 0.3s, border-color 0.3s;
}

.ai-field-highlight:hover {
    background: rgba(24, 144, 255, 0.15);
}

/* ---------- 双栏布局 ---------- */
.step-layout {
    display: flex;
    height: 600px;
    min-height: 500px;
    max-height: 75vh;
}

.step-layout .chat-side {
    flex: 0 0 40%;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8e8e8;
    background: #f7f8fa;
}

.step-layout .form-side {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    background: #fff;
}

/* 双栏布局下modal-body无padding */
.modal-body:has(.step-layout) {
    padding: 0 !important;
}

/* 兼容不支持:has的浏览器 */
.step-layout > .chat-side + .form-side {
    /* 确保form-side在chat-side旁边正确排列 */
}

/* ---------- AI对话面板头部 ---------- */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.ai-chat-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ai-chat-header-actions {
    display: flex;
    gap: 4px;
}

.ai-chat-btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chat-btn-icon:hover {
    background: #f0f0f0;
    color: #333;
}

/* ---------- AI对话面板：收起状态 ---------- */
.ai-chat-panel.collapsed .ai-chat-messages,
.ai-chat-panel.collapsed .ai-chat-input,
.ai-chat-panel.collapsed .ai-chat-status,
.ai-chat-panel.collapsed .ai-chat-welcome {
    display: none;
}

/* ---------- AI对话欢迎区域 ---------- */
.ai-chat-welcome {
    padding: 24px 16px;
    text-align: center;
    color: #666;
}

.ai-welcome-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.ai-chat-welcome p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.ai-quick-start {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.ai-quick-btn {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.ai-quick-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #f0f8ff;
}

/* ---------- AI建议应用按钮 ---------- */
.ai-suggestion-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-apply-btn {
    padding: 6px 14px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.ai-apply-btn:hover {
    background: #40a9ff;
}

.ai-suggestion-count {
    font-size: 12px;
    color: #999;
}

/* ---------- AI模板模式标记 ---------- */
.ai-template-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 4px;
    font-size: 12px;
    color: #d48806;
    margin-bottom: 8px;
}

/* ---------- 审批时间线 ---------- */
.approval-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
}

.approval-node {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    position: relative;
}

.approval-node::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -16px;
    width: 2px;
    background: #e8e8e8;
}

.approval-node:last-child::before {
    display: none;
}

.approval-node .node-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: #f0f0f0;
    color: #999;
}

.approval-node.approved .node-icon {
    background: #52c41a;
    color: #fff;
}

.approval-node.rejected .node-icon {
    background: #ff4d4f;
    color: #fff;
}

.approval-node.pending .node-icon {
    background: #faad14;
    color: #fff;
}

/* ---------- 执行看板 ---------- */
.execute-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.execute-board .clue-counter {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.execute-board .clue-counter .counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.execute-board .clue-counter .counter-value {
    font-size: 28px;
    font-weight: 600;
    color: #1890ff;
}

.execute-board .clue-counter .counter-label {
    font-size: 12px;
    color: #999;
}

.execute-board .task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.execute-board .task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

/* ---------- 复盘面板 ---------- */
.review-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
}

.review-auto-summary {
    padding: 20px;
    background: linear-gradient(135deg, #f6ffed 0%, #fff 100%);
    border: 1px solid #b7eb8f;
    border-radius: 8px;
}

.review-auto-summary h3 {
    margin: 0 0 12px 0;
    color: #389e0d;
    font-size: 16px;
}

.review-resource-detail {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-resource-detail h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.review-resource-detail table {
    width: 100%;
    border-collapse: collapse;
}

.review-resource-detail th,
.review-resource-detail td {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
    font-size: 14px;
}

.review-resource-detail th {
    background: #fafafa;
    font-weight: 500;
}

/* ---------- 执行看板 3列布局 ---------- */
.execute-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.execute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.execute-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.execute-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.execute-board-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
    min-height: 400px;
}

.kanban-column {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.kanban-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.kanban-dot.dot-orange { background: #faad14; }
.kanban-dot.dot-blue { background: #1890ff; }
.kanban-dot.dot-green { background: #52c41a; }

.kanban-count {
    margin-left: auto;
    background: #e8e8e8;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kanban-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 32px 16px;
}

.kanban-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1890ff;
}

.kanban-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kanban-card-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-countdown {
    font-size: 12px;
    color: #faad14;
    white-space: nowrap;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.kanban-phase-badge {
    background: #e6f7ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.kanban-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: #999;
    min-width: 36px;
    text-align: right;
}

.kanban-card-assignee {
    font-size: 12px;
    color: #999;
}

/* ---------- 物料管理页面 ---------- */
.material-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.material-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.material-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.material-header-actions {
    display: flex;
    gap: 8px;
}

.material-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.material-stat-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.material-stat-item .stat-label {
    font-size: 12px;
    color: #999;
}

.material-stat-item .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.material-table-wrap {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.material-table th {
    background: #fafafa;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    text-align: left;
    color: #333;
    white-space: nowrap;
}

.material-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.material-table tr:last-child td {
    border-bottom: none;
}

.material-table tr:hover td {
    background: #fafafa;
}

.material-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.material-type-badge.type-海报 { background: #e6f7ff; color: #1890ff; }
.material-type-badge.type-视频 { background: #f6ffed; color: #52c41a; }
.material-type-badge.type-线下物料 { background: #fff7e6; color: #faad14; }
.material-type-badge.type-线上素材 { background: #f9f0ff; color: #722ed1; }
.material-type-badge.type-其他 { background: #f5f5f5; color: #999; }

.material-status-select {
    padding: 4px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

.material-status-select:focus {
    border-color: #1890ff;
    outline: none;
}

.material-empty {
    text-align: center;
    padding: 40px 16px;
    color: #999;
}

.material-empty i {
    font-size: 36px;
    color: #d9d9d9;
    margin-bottom: 12px;
}

.material-empty p {
    margin: 4px 0;
    font-size: 14px;
}

/* ---------- 复盘面板页面 ---------- */
.review-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.review-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.review-header-actions {
    display: flex;
    gap: 8px;
}

.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.review-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-summary-label {
    font-size: 12px;
    color: #999;
}

.review-summary-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.review-comparison {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-comparison h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.review-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.review-comparison-table th,
.review-comparison-table td {
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.review-comparison-table th {
    background: #fafafa;
    font-weight: 500;
}

.review-rate-bar {
    position: relative;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.review-rate-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.review-rate-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.review-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.review-status-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.review-status-warning { background: #fff7e6; color: #faad14; border: 1px solid #ffd591; }
.review-status-danger { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }

/* 成本明细 */
.review-cost-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-cost-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.review-cost-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.review-cost-card {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.review-cost-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.review-cost-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.review-budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.review-budget-table th,
.review-budget-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.review-budget-table th {
    background: #fafafa;
    font-weight: 500;
}

.review-percent-bar {
    position: relative;
    height: 16px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 80px;
}

.review-percent-fill {
    height: 100%;
    background: #1890ff;
    border-radius: 8px;
    opacity: 0.3;
}

.review-percent-bar span {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 500;
}

/* 时间轴回顾 */
.review-timeline-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-timeline-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.review-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.review-timeline-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.review-timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -12px;
    width: 2px;
    background: #e8e8e8;
}

.review-timeline-item:last-child::before {
    display: none;
}

.review-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8e8e8;
    flex-shrink: 0;
    margin-top: 2px;
}

.review-timeline-item.past .review-timeline-dot {
    background: #52c41a;
}

.review-timeline-item.current .review-timeline-dot {
    background: #1890ff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.2);
}

.review-timeline-content {
    flex: 1;
}

.review-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.review-timeline-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.review-timeline-date {
    font-size: 12px;
    color: #999;
}

.review-timeline-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* 人员贡献 */
.review-team-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-team-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.review-team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.review-team-table th,
.review-team-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.review-team-table th {
    background: #fafafa;
    font-weight: 500;
}

/* 经验沉淀 */
.review-experience-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-experience-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.review-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.review-experience-card {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid;
}

.review-experience-card.review-good {
    background: #f6ffed;
    border-color: #b7eb8f;
}

.review-experience-card.review-improve {
    background: #fff7e6;
    border-color: #ffd591;
}

.review-experience-card.review-lesson {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.review-experience-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.review-experience-content {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* ---------- AI搜索栏样式 ---------- */
.ai-search-bar {
    position: relative;
}

.ai-search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-search-input-wrap:focus-within {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ai-search-mode-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    font-size: 12px;
    color: #1890ff;
    font-weight: 500;
    white-space: nowrap;
    border-right: 1px solid #f0f0f0;
    background: #f0f8ff;
    height: 100%;
    min-height: 32px;
}

.ai-search-bar[data-mode="exact"] .ai-search-mode-indicator {
    color: #666;
    background: #f5f5f5;
}

.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: 13px;
    min-width: 0;
}

.ai-search-voice-btn {
    border: none;
    background: transparent;
    color: #999;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
}

.ai-search-voice-btn:hover {
    color: #1890ff;
}

.ai-search-btn {
    border: none;
    background: #1890ff;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.ai-search-btn:hover {
    background: #40a9ff;
}

.ai-search-toggle {
    border: none;
    background: transparent;
    color: #999;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    border-left: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.ai-search-toggle:hover {
    color: #1890ff;
}

.ai-search-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ai-search-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-search-tag:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

.ai-search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 4px;
}

.ai-search-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.ai-search-history-clear {
    border: none;
    background: transparent;
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
}

.ai-search-history-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-search-history-item:hover {
    background: #f5f5f5;
}

.ai-search-result-hint {
    margin-top: 6px;
    padding: 6px 12px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 6px;
    font-size: 12px;
    color: #1890ff;
}

.ai-search-result-hint i {
    margin-right: 4px;
}


/* ===== T05: 执行看板3列布局 ===== */
.execute-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.execute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.execute-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.execute-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.execute-board-3col {
    display: flex;
    gap: 16px;
    flex: 1;
    min-height: 400px;
}

.kanban-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    font-size: 14px;
}

.kanban-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-orange { background: #faad14; }
.dot-blue { background: #1890ff; }
.dot-green { background: #52c41a; }

.kanban-count {
    margin-left: auto;
    background: #f0f0f0;
    color: #666;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: normal;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-card:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.12);
}

.kanban-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.kanban-card-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.kanban-countdown {
    font-size: 12px;
    color: #faad14;
    white-space: nowrap;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.kanban-phase-badge {
    padding: 1px 8px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 11px;
}

.kanban-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #52c41a);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: #999;
    min-width: 36px;
    text-align: right;
}

.kanban-card-assignee {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.kanban-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 24px;
}

/* ===== T05: 物料管理样式 ===== */
.material-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.material-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.material-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.material-header-actions {
    display: flex;
    gap: 8px;
}

.material-stats {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.material-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.material-stat-item .stat-label {
    font-size: 12px;
    color: #999;
}

.material-stat-item .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.material-table-wrap {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.material-table th {
    background: #fafafa;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.material-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.material-table tr:last-child td {
    border-bottom: none;
}

.material-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.material-type-badge.type-海报 { background: #e6f7ff; color: #1890ff; }
.material-type-badge.type-视频 { background: #fff0f6; color: #eb2f96; }
.material-type-badge.type-线下物料 { background: #f6ffed; color: #52c41a; }
.material-type-badge.type-线上素材 { background: #fff7e6; color: #fa8c16; }
.material-type-badge.type-其他 { background: #f5f5f5; color: #999; }

.material-status-select {
    padding: 3px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
}

.material-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.material-empty i {
    margin-bottom: 12px;
}

.material-empty p {
    margin: 4px 0;
}

/* ===== T05: 复盘面板样式 ===== */
.review-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.review-header-actions {
    display: flex;
    gap: 8px;
}

.review-info-bar {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    color: #666;
}

.review-info-bar i {
    color: #1890ff;
    margin-right: 4px;
}

.review-summary-content {
    line-height: 1.8;
}

.summary-item {
    padding: 4px 0;
    font-size: 14px;
}

.summary-item strong {
    color: #389e0d;
    margin-right: 4px;
}

.review-comparison {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-comparison h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.review-comparison-table-inner {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.review-comparison-table-inner th {
    background: #fafafa;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    font-weight: 500;
    text-align: left;
}

.review-comparison-table-inner td {
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
}

.review-experience {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-experience h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.review-experience-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.review-experience-textarea:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.review-experience-items {
    margin-top: 16px;
}

.review-experience-items h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.review-experience-item {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.review-steps-snapshot {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.review-steps-snapshot h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.review-step-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.review-step-card-empty {
    opacity: 0.5;
}

.review-step-card-header {
    background: #fafafa;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.review-step-card-body {
    padding: 8px 12px;
}

.review-data-row {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    font-size: 13px;
}

.review-data-key {
    color: #999;
    min-width: 80px;
    flex-shrink: 0;
}

.review-data-value {
    color: #333;
    word-break: break-all;
}

.review-no-data {
    color: #ccc;
    font-size: 12px;
}

.review-empty-hint {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

/* ===== T05: AI搜索栏样式 ===== */
.ai-search-bar {
    position: relative;
}

.ai-search-bar[data-mode="natural"] .ai-search-input-wrap {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.08);
}

.ai-search-bar[data-mode="exact"] .ai-search-input-wrap {
    border-color: #52c41a;
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.08);
}

.ai-search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 2px 4px 2px 12px;
    transition: all 0.2s;
}

.ai-search-mode-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1890ff;
    white-space: nowrap;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #e8e8e8;
}

.ai-search-mode-indicator i {
    font-size: 12px;
}

.ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 6px 0;
    background: transparent;
}

.ai-search-input::placeholder {
    color: #bfbfbf;
}

.ai-search-voice-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-search-voice-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.ai-search-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #1890ff;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-search-btn:hover {
    background: #40a9ff;
}

.ai-search-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-search-toggle:hover {
    background: #f0f0f0;
    color: #333;
}

.ai-search-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.ai-search-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-search-tag:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #e6f7ff;
}

.ai-search-history {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 4px;
}

.ai-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.ai-search-history-clear {
    border: none;
    background: transparent;
    color: #1890ff;
    cursor: pointer;
    font-size: 12px;
}

.ai-search-history-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.ai-search-history-item:hover {
    background: #f5f5f5;
}

.ai-search-result-hint {
    margin-top: 6px;
    padding: 6px 12px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 6px;
    font-size: 12px;
    color: #1890ff;
}

.ai-search-result-hint i {
    margin-right: 4px;
}

/* ===== T05: Missing supplementary classes ===== */
.review-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.review-loading i {
    font-size: 24px;
    margin-bottom: 8px;
}

.review-experience-editor {
    margin-bottom: 16px;
}

.review-step-empty .review-step-card-header {
    color: #ccc;
}

.material-form .form-group {
    margin-bottom: 12px;
}

/* ================================================================
   v2 活动管理模块 — 4步法样式
   ================================================================ */

/* ---------- 4步进度条 ---------- */
.v2-step-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    margin-bottom: 16px;
}

.v2-step-bar::before {
    content: '';
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;
    height: 3px;
    background: #f0f0f0;
    transform: translateY(-50%);
    z-index: 0;
}

.v2-step-bar .step-bar-progress {
    position: absolute;
    left: 40px;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #52c41a);
    transform: translateY(-50%);
    z-index: 0;
    transition: width 0.5s ease;
}

.v2-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    flex: 1;
}

.v2-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 3px solid #f0f0f0;
    background: #fff;
    color: #999;
    transition: all 0.3s;
}

.v2-step-node.active .v2-step-circle {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15);
}

.v2-step-node.completed .v2-step-circle {
    background: #52c41a;
    border-color: #52c41a;
    color: #fff;
}

.v2-step-node.rejected .v2-step-circle {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
}

.v2-step-label {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
}

.v2-step-node.active .v2-step-label {
    color: #1890ff;
    font-weight: 600;
}

.v2-step-node.completed .v2-step-label {
    color: #52c41a;
}

.v2-step-sub {
    font-size: 10px;
    color: #ccc;
    margin-top: -2px;
}

.v2-step-node.active .v2-step-sub {
    color: #1890ff;
}

/* ---------- 活动详情头部 ---------- */
.v2-detail-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.v2-detail-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.v2-detail-title-area {
    flex: 1;
}

.v2-detail-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-detail-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.v2-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.v2-type-badge.type-音乐会 { background: #f0f5ff; color: #2f54eb; border: 1px solid #adc6ff; }
.v2-type-badge.type-体验课 { background: #e6fffb; color: #13c2c2; border: 1px solid #87e8de; }
.v2-type-badge.type-促销活动 { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.v2-type-badge.type-节日活动 { background: #fff0f6; color: #eb2f96; border: 1px solid #ffadd2; }
.v2-type-badge.type-考级 { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.v2-type-badge.type-夏令营 { background: #fffbe6; color: #fadb14; border: 1px solid #ffe58f; }
.v2-type-badge.type-其他 { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }

.v2-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.v2-status-badge.status-草稿 { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }
.v2-status-badge.status-待审批 { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.v2-status-badge.status-待执行 { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.v2-status-badge.status-执行中 { background: #f0f5ff; color: #2f54eb; border: 1px solid #adc6ff; }
.v2-status-badge.status-已完成 { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.v2-status-badge.status-已复盘 { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }

.v2-detail-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.v2-detail-meta-row {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.v2-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.v2-detail-meta-item i {
    width: 16px;
    color: #999;
}

/* ---------- 活动详情内容区域 ---------- */
.v2-detail-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.v2-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    overflow-x: auto;
}

.v2-detail-tab {
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.v2-detail-tab:hover {
    color: #1890ff;
    background: #f0f8ff;
}

.v2-detail-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    background: #fff;
}

.v2-detail-tab .tab-badge {
    background: #f0f0f0;
    color: #999;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
}

.v2-detail-tab.active .tab-badge {
    background: #e6f7ff;
    color: #1890ff;
}

.v2-detail-body {
    padding: 20px 24px;
    min-height: 300px;
}

/* ---------- 策划阶段 (Plan) ---------- */
.v2-plan-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v2-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.v2-form-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.v2-form-label .required-mark {
    color: #ff4d4f;
    margin-left: 2px;
}

.v2-form-input,
.v2-form-select,
.v2-form-textarea {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.v2-form-input:focus,
.v2-form-select:focus,
.v2-form-textarea:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.v2-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.v2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v2-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ---------- 目标设定卡片 ---------- */
.v2-target-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.v2-target-card {
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.v2-target-card .target-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.v2-target-card .target-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.v2-target-card .target-unit {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.v2-target-card .target-input {
    width: 80px;
    text-align: center;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
}

/* ---------- 审批阶段 ---------- */
.v2-approval-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.v2-approval-node {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    position: relative;
}

.v2-approval-node::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 36px;
    bottom: -14px;
    width: 2px;
    background: #f0f0f0;
}

.v2-approval-node:last-child::before {
    display: none;
}

.v2-approval-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: #f5f5f5;
    color: #999;
}

.v2-approval-node.approved .v2-approval-icon {
    background: #52c41a;
    color: #fff;
}

.v2-approval-node.rejected .v2-approval-icon {
    background: #ff4d4f;
    color: #fff;
}

.v2-approval-node.pending .v2-approval-icon {
    background: #faad14;
    color: #fff;
}

.v2-approval-content {
    flex: 1;
}

.v2-approval-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.v2-approval-name {
    font-weight: 500;
    font-size: 14px;
}

.v2-approval-time {
    font-size: 12px;
    color: #999;
}

.v2-approval-comment {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 4px;
}

.v2-approval-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.v2-approval-textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    min-height: 36px;
    resize: vertical;
}

.v2-approval-btn-group {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* ---------- 执行清单 ---------- */
.v2-execution-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-task-group {
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.v2-task-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.v2-task-group-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.v2-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.v2-task-item:last-child {
    border-bottom: none;
}

.v2-task-item:hover {
    background: #fafafa;
}

.v2-task-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.v2-task-checkbox.completed {
    background: #52c41a;
    border-color: #52c41a;
    color: #fff;
}

.v2-task-checkbox:hover {
    border-color: #1890ff;
}

.v2-task-info {
    flex: 1;
    min-width: 0;
}

.v2-task-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.v2-task-name.completed-text {
    text-decoration: line-through;
    color: #999;
}

.v2-task-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.v2-task-assignee {
    color: #1890ff;
}

.v2-task-deadline {
    color: #faad14;
}

.v2-task-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.v2-task-btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.v2-task-btn-icon:hover {
    background: #f0f0f0;
    color: #333;
}

/* ---------- 复盘阶段 ---------- */
.v2-review-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.v2-review-card {
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.v2-review-card .review-target {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.v2-review-card .review-actual {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.v2-review-card .review-rate {
    font-size: 12px;
    margin-top: 4px;
}

.v2-review-card .review-rate.good { color: #52c41a; }
.v2-review-card .review-rate.warning { color: #faad14; }
.v2-review-card .review-rate.bad { color: #ff4d4f; }

.v2-review-section {
    margin-bottom: 20px;
}

.v2-review-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

.v2-review-textarea:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* ---------- 时间轴配置 ---------- */
.v2-timeline-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-timeline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.v2-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-timeline-dot.t-phase-teaser { background: #1890ff; }
.v2-timeline-dot.t-phase-registration_open { background: #52c41a; }
.v2-timeline-dot.t-phase-registration_close { background: #faad14; }
.v2-timeline-dot.t-phase-reminder { background: #722ed1; }
.v2-timeline-dot.t-phase-live { background: #eb2f96; }
.v2-timeline-dot.t-phase-review { background: #13c2c2; }

.v2-timeline-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.v2-timeline-date {
    font-size: 12px;
    color: #666;
}

.v2-timeline-channel {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* ---------- 我的待执行页面 ---------- */
.my-tasks-page {
    padding: 16px 0;
}

.my-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.my-tasks-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-tasks-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.my-task-stat-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.my-task-stat-card .stat-num {
    font-size: 28px;
    font-weight: 600;
}

.my-task-stat-card .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.my-task-stat-card.stat-pending .stat-num { color: #1890ff; }
.my-task-stat-card.stat-in-progress .stat-num { color: #faad14; }
.my-task-stat-card.stat-completed .stat-num { color: #52c41a; }
.my-task-stat-card.stat-overdue .stat-num { color: #ff4d4f; }

.my-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.my-task-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #1890ff;
}

.my-task-activity {
    font-size: 13px;
    font-weight: 500;
    color: #1890ff;
    min-width: 120px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-task-content {
    flex: 1;
    min-width: 0;
}

.my-task-content .task-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.my-task-content .task-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* ---------- 全校执行总览 ---------- */
.overview-page {
    padding: 16px 0;
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.overview-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.overview-summary-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
}

.overview-summary-card .ov-num {
    font-size: 30px;
    font-weight: 600;
}

.overview-summary-card .ov-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.overview-summary-card .ov-sub {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
}

.overview-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.overview-activity-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: #1890ff;
}

.overview-activity-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.overview-activity-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.overview-activity-progress {
    width: 120px;
}

/* ---------- 凭证上传 ---------- */
.v2-proof-upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.v2-proof-upload-area:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.v2-proof-upload-area.has-file {
    border-color: #52c41a;
    background: #f6ffed;
}

.v2-proof-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.v2-proof-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.v2-proof-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-proof-item .proof-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 空状态 ---------- */
.v2-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #999;
}

.v2-empty-state i {
    font-size: 48px;
    color: #d9d9d9;
    margin-bottom: 12px;
}

.v2-empty-state p {
    font-size: 14px;
    margin: 4px 0;
}

/* ---------- 推送配置 ---------- */
.v2-push-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 8px;
}

.v2-push-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e6f7ff;
    color: #1890ff;
}

.v2-push-info {
    flex: 1;
}

.v2-push-title {
    font-size: 14px;
    font-weight: 500;
}

.v2-push-time {
    font-size: 12px;
    color: #999;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .v2-form-row {
        grid-template-columns: 1fr;
    }
    .overview-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .my-tasks-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .v2-detail-header-top {
        flex-direction: column;
    }
    .v2-detail-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ================================================================
   v2 活动详情页样式 (ActivityDetailPage)
   ================================================================ */

/* ---------- 外层容器 ---------- */
.activity-detail-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.ad-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.ad-loading i {
    font-size: 24px;
    margin-right: 8px;
}

.ad-empty {
    text-align: center;
    padding: 48px 16px;
    color: #999;
}

.ad-empty i {
    font-size: 40px;
    color: #d9d9d9;
    margin-bottom: 12px;
}

.ad-empty p {
    font-size: 14px;
    margin: 6px 0;
}

/* ---------- 顶部返回栏 ---------- */
.ad-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.ad-back-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.ad-back-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #f0f8ff;
}

.ad-top-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ad-id {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---------- 活动信息卡片 ---------- */
.ad-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
}

.ad-info-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ad-activity-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.ad-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ad-status-badge.status-planning { background: #f5f5f5; color: #666; border: 1px solid #d9d9d9; }
.ad-status-badge.status-pending { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.ad-status-badge.status-running { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.ad-status-badge.status-rejected { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.ad-status-badge.status-ended { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.ad-status-badge.status-reviewed { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.ad-status-badge.status-archived { background: #f0f0f0; color: #8c8c8c; border: 1px solid #d9d9d9; }

.ad-info-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ad-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.ad-meta-item i {
    width: 14px;
    color: #999;
    font-size: 12px;
}

.ad-meta-label {
    color: #999;
}

.ad-meta-value {
    color: #333;
    font-weight: 500;
}

.ad-info-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ad-info-desc p {
    margin: 0;
}

/* ---------- 4步流程管道 ---------- */
.ad-pipeline {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    position: relative;
}

.ad-pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
    position: relative;
    z-index: 1;
    transition: all 0.2s;
    padding: 4px 0;
}

.ad-pipeline-node:hover {
    transform: translateY(-2px);
}

.ad-pipeline-node:hover .ad-node-circle {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ad-pipeline-connector {
    flex: 0 0 auto;
    width: 100%;
    max-width: 60px;
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 0 4px;
    margin-bottom: 28px;
    transition: background 0.3s;
}

.ad-pipeline-connector.connector-done {
    background: #52c41a;
}

.ad-node-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-node-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 3px solid #f0f0f0;
    background: #fff;
    color: #999;
    transition: all 0.3s;
}

.ad-pipeline-node.node-done .ad-node-circle {
    background: #52c41a;
    border-color: #52c41a;
    color: #fff;
}

.ad-pipeline-node.node-active .ad-node-circle {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15);
    animation: ad-pulse 2s infinite;
}

.ad-pipeline-node.node-rejected .ad-node-circle {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
}

.ad-pipeline-node.node-current .ad-node-circle {
    transform: scale(1.1);
}

@keyframes ad-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(24, 144, 255, 0.08); }
}

.ad-node-reject-mark {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.ad-node-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.ad-node-icon {
    font-size: 11px;
    opacity: 0.6;
}

.ad-pipeline-node.node-done .ad-node-label,
.ad-pipeline-node.node-done .ad-node-icon {
    color: #52c41a;
}

.ad-pipeline-node.node-active .ad-node-label,
.ad-pipeline-node.node-active .ad-node-icon {
    color: #1890ff;
    font-weight: 600;
}

.ad-pipeline-node.node-rejected .ad-node-label {
    color: #ff4d4f;
}

.ad-node-done-tag,
.ad-node-reject-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.ad-node-done-tag {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.ad-node-reject-tag {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

/* ---------- Tab内容区域 ---------- */
.ad-tab-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    min-height: 400px;
    overflow: hidden;
}

/* ---------- 底部操作栏 ---------- */
.ad-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 0;
}

/* ================================================================
   策划Tab
   ================================================================ */

.ad-plan-tab {
    padding: 20px 24px;
}

.ad-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ad-plan-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-plan-header h3 i {
    color: #1890ff;
}

.ad-plan-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ad-plan-readonly-badge {
    font-size: 12px;
    color: #999;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* 子步骤列表 */
.ad-plan-sub-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-plan-sub-step {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ad-plan-sub-step:hover {
    border-color: #d9d9d9;
}

.ad-plan-sub-step.sub-filled {
    border-color: #b7eb8f;
}

.ad-plan-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s;
    user-select: none;
}

.ad-plan-sub-header:hover {
    background: #f0f0f0;
}

.ad-plan-sub-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-plan-sub-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.sub-filled .ad-plan-sub-num {
    background: #52c41a;
    color: #fff;
}

.ad-plan-sub-icon {
    font-size: 14px;
    color: #1890ff;
    width: 18px;
    text-align: center;
}

.ad-plan-sub-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ad-plan-sub-desc {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.ad-plan-sub-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-plan-filled-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #f6ffed;
    color: #52c41a;
    border-radius: 8px;
}

.ad-plan-empty-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #f5f5f5;
    color: #bbb;
    border-radius: 8px;
}

.ad-plan-toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.ad-plan-sub-body {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.ad-plan-sub-body.ad-collapsed {
    display: none;
}

.ad-plan-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-plan-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.ad-field-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
    font-family: inherit;
}

.ad-field-input:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ad-field-textarea {
    min-height: 80px;
    resize: vertical;
}

.ad-field-value-readonly {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    min-height: 36px;
}

.ad-empty-value {
    color: #ccc;
    font-style: italic;
}

/* AI操作 */
.ad-plan-ai-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 模板列表 */
.ad-template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.ad-template-item {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-template-item:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.ad-template-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.ad-template-desc {
    font-size: 12px;
    color: #999;
}

/* ================================================================
   审批Tab
   ================================================================ */

.ad-approve-tab {
    padding: 20px 24px;
}

.ad-approve-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ad-approve-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-approve-header h3 i {
    color: #faad14;
}

.ad-approve-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ad-approve-node {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    position: relative;
}

.ad-approve-node::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 44px;
    bottom: -16px;
    width: 2px;
    background: #f0f0f0;
}

.ad-approve-node:last-child::before {
    display: none;
}

.ad-approve-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: #f5f5f5;
    color: #999;
}

.ad-approve-node.approved .ad-approve-dot {
    background: #52c41a;
    color: #fff;
}

.ad-approve-node.rejected .ad-approve-dot {
    background: #ff4d4f;
    color: #fff;
}

.ad-approve-node.pending .ad-approve-dot {
    background: #faad14;
    color: #fff;
}

.ad-approve-body {
    flex: 1;
}

.ad-approve-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.ad-approve-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.ad-approve-comment {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
}

.ad-approve-reject-reason {
    font-size: 13px;
    color: #ff4d4f;
    line-height: 1.6;
    background: #fff1f0;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 6px;
}

/* 审批降级 */
.ad-approve-fallback {
    min-height: 200px;
}

/* ================================================================
   执行Tab
   ================================================================ */

.ad-execute-tab {
    padding: 20px 24px;
}

.ad-execute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ad-execute-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-execute-header h3 i {
    color: #52c41a;
}

.ad-execute-stats {
    display: flex;
    gap: 16px;
}

.ad-execute-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ad-execute-stat .stat-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.ad-execute-stat .stat-label {
    font-size: 11px;
    color: #999;
}

.ad-execute-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ad-execute-tasks {
    min-height: 200px;
}

.ad-execute-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ad-execute-table th {
    background: #fafafa;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    text-align: left;
    color: #333;
    white-space: nowrap;
}

.ad-execute-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ad-execute-table tr:last-child td {
    border-bottom: none;
}

.ad-execute-table tr:hover td {
    background: #fafafa;
}

.ad-task-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* 任务表单 */
.ad-task-form .form-group {
    margin-bottom: 14px;
}

.ad-task-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.ad-task-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ad-task-form .form-control:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* ================================================================
   复盘Tab
   ================================================================ */

.ad-review-tab {
    padding: 20px 24px;
}

.ad-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ad-review-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-review-header h3 i {
    color: #722ed1;
}

.ad-review-header-actions {
    display: flex;
    gap: 8px;
}

.ad-review-section {
    margin-bottom: 24px;
}

.ad-review-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-review-section h4 i {
    color: #722ed1;
    font-size: 14px;
}

.ad-review-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.ad-review-goal-card {
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.ad-review-goal-card .goal-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.ad-review-goal-card .goal-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.ad-review-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-review-form label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.ad-review-form .form-control {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ad-review-form .form-control:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ad-review-form textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* ================================================================
   我的任务页增强样式
   ================================================================ */

.my-tasks-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.my-task-stat-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.my-task-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.my-task-stat-card.active {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
}

.my-task-stat-card.stat-total .stat-num { color: #333; }

/* 筛选标签栏 */
.my-tasks-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.filter-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.filter-tag:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.filter-tag.active {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
    font-weight: 500;
}

/* 按活动分组 */
.my-tasks-list-by-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-tasks-activity-group {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.my-tasks-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    user-select: none;
    gap: 16px;
}

.my-tasks-group-header:hover {
    background: #f0f0f0;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.group-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.group-activity-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-task-count {
    font-size: 12px;
    color: #999;
}

.group-activity-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.group-activity-status.status-running { background: #e6f7ff; color: #1890ff; }
.group-activity-status.status-planning { background: #f5f5f5; color: #999; }
.group-activity-status.status-pending { background: #fff7e6; color: #fa8c16; }
.group-activity-status.status-ended { background: #f6ffed; color: #52c41a; }
.group-activity-status.status-reviewed { background: #f9f0ff; color: #722ed1; }
.group-activity-status.status-archived { background: #f0f0f0; color: #8c8c8c; }
.group-activity-status.status-rejected { background: #fff1f0; color: #ff4d4f; }
.group-activity-status.status-default { background: #f5f5f5; color: #999; }

.group-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.group-progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.group-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #52c41a);
    border-radius: 3px;
    transition: width 0.3s;
}

.group-progress-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    min-width: 32px;
    text-align: right;
}

.my-tasks-group-body {
    display: flex;
    flex-direction: column;
}

.my-tasks-group-body.ad-collapsed {
    display: none;
}

/* 增强任务项样式 */
.my-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.my-task-item:last-child {
    border-bottom: none;
}

.my-task-item:hover {
    background: #fafafa;
}

.my-task-item.task-overdue {
    background: #fff7f7;
}

.my-task-item.task-done {
    background: #fafffa;
    opacity: 0.8;
}

.my-task-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.my-task-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #52c41a;
}

.my-task-checkbox:disabled {
    cursor: default;
}

.my-task-content {
    flex: 1;
    min-width: 0;
}

.my-task-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.my-task-name.completed-text {
    text-decoration: line-through;
    color: #999;
}

.my-task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}

.task-desc {
    color: #999;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-deadline {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-deadline.overdue {
    color: #ff4d4f;
}

.overdue-tag {
    background: #fff1f0;
    color: #ff4d4f;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.my-task-signal {
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.my-task-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* 任务状态徽章（降级） */
.my-task-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.my-task-status.status-todo { background: #f5f5f5; color: #999; }
.my-task-status.status-running { background: #e6f7ff; color: #1890ff; }
.my-task-status.status-done { background: #f6ffed; color: #52c41a; }

/* ================================================================
   我的任务页 (my-tasks-v2) 样式
   ================================================================ */

.my-tasks-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.mt-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

.mt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-header-left h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-header-sub {
    font-size: 12px;
    color: #999;
}

.mt-header-right {
    display: flex;
    gap: 8px;
}

/* 筛选栏 */
.mt-filters {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
}

.mt-filter-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.mt-filter-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.mt-filter-tab.active {
    background: #1890ff;
    color: #fff;
}

/* 任务卡片列表 */
.mt-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 卡片 */
.mt-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.mt-card:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 10px rgba(24, 144, 255, 0.1);
    transform: translateY(-1px);
}

.mt-card-left {
    flex-shrink: 0;
}

.mt-card-signal {
    min-width: 60px;
    text-align: center;
}

.mt-card-body {
    flex: 1;
    min-width: 0;
}

.mt-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.mt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #666;
}

.mt-card-meta i {
    width: 14px;
    color: #999;
    margin-right: 3px;
}

.mt-card-role {
    background: #f0f8ff;
    color: #1890ff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.mt-card-node {
    color: #888;
}

.mt-card-deadline {
    color: #fa8c16;
}

.mt-card-action {
    flex-shrink: 0;
}

/* 空状态 */
.mt-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.mt-empty i {
    font-size: 56px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

.mt-empty p {
    font-size: 15px;
    margin: 4px 0;
}

.mt-empty-hint {
    font-size: 13px;
    color: #ccc;
}

/* 页脚 */
.mt-footer {
    text-align: center;
    padding: 8px 0;
}

.mt-footer .btn-block {
    width: 100%;
}

.mt-footer-done {
    font-size: 13px;
    color: #999;
}

/* 信号灯降级 */
.mt-signal-fallback {
    font-size: 12px;
    padding: 2px 10px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #666;
}

/* ================================================================
   全校执行总览 (overview-v2) 样式
   ================================================================ */

.overview-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.ov-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

.ov-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ov-header-left h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-header-sub {
    font-size: 12px;
    color: #999;
}

.ov-header-right {
    display: flex;
    gap: 8px;
}

/* 统计卡片 */
.ov-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ov-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
}

.ov-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ov-card-total .ov-card-icon  { background: #e6f7ff; color: #1890ff; }
.ov-card-running .ov-card-icon { background: #f0f5ff; color: #2f54eb; }
.ov-card-done .ov-card-icon    { background: #f6ffed; color: #52c41a; }
.ov-card-pending .ov-card-icon { background: #fff7e6; color: #fa8c16; }

.ov-card-body {
    flex: 1;
}

.ov-card-num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.ov-card-total .ov-card-num  { color: #1890ff; }
.ov-card-running .ov-card-num { color: #2f54eb; }
.ov-card-done .ov-card-num    { color: #52c41a; }
.ov-card-pending .ov-card-num { color: #fa8c16; }

.ov-card-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 双列网格 */
.ov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ov-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.ov-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.ov-section-header h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ov-section-header h3 i {
    color: #1890ff;
    font-size: 14px;
}

.ov-section-badge {
    font-size: 11px;
    padding: 2px 10px;
    background: #fff7e6;
    color: #fa8c16;
    border-radius: 10px;
    border: 1px solid #ffd591;
}

/* 部门进度表格 */
.ov-dept-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ov-dept-table th {
    background: #fafafa;
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    font-size: 12px;
}

.ov-dept-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ov-dept-table tr:last-child td {
    border-bottom: none;
}

.ov-dept-table tr:hover td {
    background: #fafafa;
}

/* 完成率进度条 */
.ov-rate-bar {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 18px;
    background: #f0f0f0;
    border-radius: 9px;
    overflow: hidden;
    vertical-align: middle;
}

.ov-rate-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 0.4s;
}

.ov-rate-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 18px;
}

/* 近期截止活动列表 */
.ov-upcoming-list {
    display: flex;
    flex-direction: column;
}

.ov-upcoming-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}

.ov-upcoming-item:last-child {
    border-bottom: none;
}

.ov-upcoming-item:hover {
    background: #f0f8ff;
}

.ov-upcoming-left {
    flex-shrink: 0;
}

.ov-upcoming-days {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f8ff;
    color: #1890ff;
}

.ov-upcoming-days.urgent {
    background: #fff1f0;
    color: #ff4d4f;
}

.ov-upcoming-days.warning {
    background: #fff7e6;
    color: #fa8c16;
}

.days-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.days-label {
    font-size: 10px;
    margin-top: 2px;
}

.ov-upcoming-body {
    flex: 1;
    min-width: 0;
}

.ov-upcoming-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.ov-upcoming-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.ov-upcoming-status {
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 960px) {
    .ov-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .ov-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 活动概览页 (ad-overview-*) ---------- */
.ad-overview-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0;
    max-width: 1200px;
}

.ad-overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ad-overview-title h2 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-overview-title h2 i {
    color: #1890ff;
}

.ad-overview-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.ad-overview-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* 筛选栏 */
.ad-overview-filters {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 18px;
}

.ad-filter-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ad-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.ad-filter-item label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-filter-item select,
.ad-filter-item input {
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.ad-filter-item select:focus,
.ad-filter-item input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.ad-filter-search {
    flex: 1;
    min-width: 200px;
}

.ad-filter-search input {
    width: 100%;
}

/* 统计卡片区 */
.ad-overview-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.ad-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s;
}

.ad-stat-card.ad-stat-clickable {
    cursor: pointer;
}

.ad-stat-card.ad-stat-clickable:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
    transform: translateY(-1px);
}

.ad-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ad-stat-info {
    flex: 1;
    min-width: 0;
}

.ad-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.ad-stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 快捷入口 */
.ad-overview-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ad-quicklink-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-quicklink-card:hover {
    border-color: #d9d9d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.ad-quicklink-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ad-quicklink-info {
    flex: 1;
    min-width: 0;
}

.ad-quicklink-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ad-quicklink-desc {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.ad-quicklink-arrow {
    font-size: 14px;
    color: #ccc;
    flex-shrink: 0;
}

/* 活动列表区域 */
.ad-overview-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.ad-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.ad-section-header h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-section-header h3 i {
    color: #1890ff;
}

.ad-section-count {
    font-size: 12px;
    color: #999;
}

.ad-overview-list {
    display: flex;
    flex-direction: column;
}

/* 活动卡片 */
.ad-overview-card {
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.ad-overview-card:last-child {
    border-bottom: none;
}

.ad-overview-card:hover {
    background: #fafafa;
}

.ov-card-header {
    padding: 16px 18px 8px 18px;
}

.ov-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ov-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ov-card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.ov-card-overdue {
    font-size: 11px;
    color: #ff4d4f;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ov-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #888;
}

.ov-card-meta i {
    width: 12px;
    margin-right: 2px;
    color: #bbb;
}

.ov-card-body {
    padding: 8px 18px;
    cursor: pointer;
}

.ov-card-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ov-step-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.ov-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: all 0.3s;
}

.ov-step-dot.done {
    background: #52c41a;
}

.ov-step-dot.active {
    background: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}

.ov-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.ov-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ov-card-actions {
    display: flex;
    gap: 6px;
    padding: 8px 18px 14px 18px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .ad-overview-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .ad-overview-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ad-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .ad-overview-quicklinks {
        grid-template-columns: 1fr;
    }
    .ad-overview-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ad-overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .ad-filter-row {
        flex-direction: column;
    }
    .ad-filter-item {
        min-width: 100%;
    }
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
    .ad-pipeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .ad-pipeline-connector {
        display: none;
    }
    .ad-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ad-info-meta {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .ad-execute-stats {
        gap: 8px;
    }
    .ad-execute-stat .stat-value {
        font-size: 18px;
    }
    .ad-review-goals {
        grid-template-columns: repeat(2, 1fr);
    }
    .ad-execute-table {
        font-size: 12px;
    }
    .ad-execute-table th,
    .ad-execute-table td {
        padding: 8px;
    }
}
