/* ==================== 全局样式 ==================== */
:root {
    --primary-gradient: linear-gradient(135deg, #0062f2 0%, #00bdff 100%);
    --secondary-gradient: linear-gradient(135deg, #00bdff 0%, #00e5ff 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 浅色主题配色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: #f1f5f9;
    --bg-input-hover: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 98, 242, 0.2);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 背景动画 ==================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-svg {
    width: 100%;
    height: 100%;
}

.floating-circle {
    animation: float 20s ease-in-out infinite;
}

.c1 {
    animation-delay: 0s;
}

.c2 {
    animation-delay: -5s;
    animation-duration: 25s;
}

.c3 {
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* ==================== 主容器 ==================== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ==================== 头部样式 ==================== */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==================== 切换标签 ==================== */
.channel-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-btn:hover {
    background: var(--bg-input);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-icon {
    width: 24px;
    height: 24px;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

/* ==================== 时间轴容器 ==================== */
.timeline-wrapper {
    position: relative;
    padding: 20px 0 80px;
}

.timeline-container {
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.timeline-container.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    pointer-events: none;
}

.timeline-svg {
    width: 100%;
    height: 100%;
}

.timeline-path {
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
}

/* ==================== 时间轴项目 ==================== */
.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    animation: slideIn 0.6s ease-out both;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(even) {
    animation-name: slideInRight;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-node::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0;
}

.timeline-item:hover .timeline-node::before {
    opacity: 0.2;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.timeline-node.status-pending {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.timeline-node.status-ongoing {
    border-color: var(--success-color);
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.timeline-node.status-paused {
    border-color: var(--info-color);
    color: var(--info-color);
}

.timeline-node.status-completed {
    border-color: var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.timeline-content {
    flex: 1;
    max-width: calc(50% - 60px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.timeline-month {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.timeline-status.status-pending {
    background: #f1f5f9;
    color: var(--text-muted);
}

.timeline-status.status-ongoing {
    background: #d1fae5;
    color: var(--success-color);
}

.timeline-status.status-paused {
    background: #dbeafe;
    color: var(--info-color);
}

.timeline-status.status-completed {
    background: #fee2e2;
    color: var(--danger-color);
}

.timeline-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #0062f2 0%, #00bdff 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 98, 242, 0.3);
}

.guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 98, 242, 0.4);
}

.guide-btn svg {
    width: 14px;
    height: 14px;
}

.dingtalk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #0089ff 0%, #00c6ff 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 137, 255, 0.3);
}

.dingtalk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 255, 0.4);
}

.dingtalk-btn svg {
    width: 14px;
    height: 14px;
}

/* ==================== 管理后台入口 ==================== */
.admin-link-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    animation: fadeIn 1s ease-out 1s both;
}

.admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.admin-link:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: rotate(45deg);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-link svg {
    width: 18px;
    height: 18px;
}

/* ==================== 弹窗样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.detail-modal {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #0062f2;
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(0, 98, 242, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 15px;
    text-align: center;
}

/* ==================== 步骤容器 ==================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.steps-container::-webkit-scrollbar {
    width: 6px;
}

.steps-container::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.steps-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out both;
}

.step-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-deadline {
    color: var(--danger-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 8px 0 0 0;
}

.step-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 10px;
}

/* ==================== 管理后台样式 ==================== */
.admin-body {
    background: var(--bg-primary);
}

.admin-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.admin-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-logout svg {
    width: 16px;
    height: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.admin-content {
    animation: fadeInUp 0.8s ease-out;
}

.channel-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.selector-group {
    flex: 1;
    min-width: 200px;
}

.selector-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.selector-group select {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.selector-group select:focus {
    outline: none;
    border-color: #0062f2;
    background-color: var(--bg-secondary);
}

.steps-management {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* ==================== 步骤管理项 ==================== */
.step-manage-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.step-manage-item:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-manage-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-manage-content {
    flex: 1;
}

.step-manage-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.step-manage-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-manage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.status-btn.pending {
    border-color: #cbd5e1;
    color: var(--text-muted);
}

.status-btn.pending.active,
.status-btn.pending:hover {
    background: #94a3b8;
    color: white;
}

.status-btn.ongoing {
    border-color: #34d399;
    color: var(--success-color);
}

.status-btn.ongoing.active,
.status-btn.ongoing:hover {
    background: var(--success-color);
    color: white;
}

.status-btn.completed {
    border-color: #f87171;
    color: var(--danger-color);
}

.status-btn.completed.active,
.status-btn.completed:hover {
    background: var(--danger-color);
    color: white;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-node {
        left: 20px;
    }
    
    .timeline-content {
        max-width: 100%;
        width: 100%;
    }
    
    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .channel-tabs {
        flex-direction: row;
        gap: 10px;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .header {
        padding: 40px 10px 30px;
    }
    
    .main-container {
        padding: 10px;
    }
    
    /* 手机端时间轴优化 - 左侧直线 */
    .timeline-items {
        padding: 0 10px;
        padding-left: 0;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 50px;
        padding-right: 5px;
        gap: 15px;
    }
    
    .timeline-node {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        left: 5px;
        position: absolute;
        transform: none;
    }
    
    /* 手机端隐藏时间轴线 */
    .timeline-line {
        display: none;
    }
    
    .timeline-content {
        padding: 15px;
        width: 100%;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-desc {
        font-size: 0.8rem;
    }
    
    .timeline-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .timeline-status,
    .guide-btn, .dingtalk-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .admin-link-container {
        bottom: 15px;
        right: 15px;
    }
    
    .admin-link {
        width: 32px;
        height: 32px;
    }
    
    .admin-link svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-container {
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .step-item {
        padding: 15px;
    }
    
    .admin-header .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .channel-selector {
        flex-direction: column;
    }
    
    .step-manage-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-manage-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .timeline-node {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.75rem;
    }
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: #0062f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==================== 保存成功提示 ==================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger-color);
}

/* ==================== 管理后台标签页 ==================== */
.admin-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    background: var(--bg-input);
    border-color: var(--border-color-hover);
}

.admin-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.admin-tab svg {
    width: 20px;
    height: 20px;
}

/* ==================== 内容区域 ==================== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-add svg {
    width: 18px;
    height: 18px;
}

/* ==================== 通道卡片 ==================== */
.channels-list {
    display: grid;
    gap: 15px;
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.channel-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.channel-key {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.channel-actions {
    display: flex;
    gap: 10px;
}

/* ==================== 项目卡片 ==================== */
.project-selector {
    margin-bottom: 25px;
}

.project-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-selector select {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.project-selector select:focus {
    outline: none;
    border-color: #0062f2;
    background-color: var(--bg-secondary);
}

.projects-list {
    display: grid;
    gap: 15px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.project-order {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-info {
    flex: 1;
}

.project-month {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.project-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-meta {
    padding-left: 47px;
    margin-bottom: 15px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.meta-item.guide-indicator {
    color: #0062f2;
    background: rgba(0, 98, 242, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.meta-item.dingtalk-indicator {
    color: #0089ff;
    background: rgba(0, 137, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.meta-item.dingtalk-indicator svg {
    width: 14px;
    height: 14px;
}

.project-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ==================== 步骤选择器 ==================== */
.step-selectors {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.steps-list {
    min-height: 200px;
}

/* ==================== 图标按钮 ==================== */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover:not(:disabled) {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon-danger:hover:not(:disabled) {
    background: #fee2e2;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon-sm:hover:not(:disabled) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-icon-sm:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group .input-field,
.form-group select {
    padding: 14px 18px;
    padding-left: 18px;
    background: var(--bg-input);
}

.form-group select {
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

.form-group select:focus {
    background-color: var(--bg-secondary);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.btn-danger {
    padding: 12px 24px;
    background: var(--danger-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* ==================== 确认弹窗 ==================== */
.confirm-modal {
    max-width: 400px;
}

.confirm-modal .modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 登录弹窗 */
.login-modal {
    max-width: 420px;
    z-index: 2001;
    position: relative;
}

#loginModal {
    z-index: 2000 !important;
}

.login-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.login-modal .modal-body {
    padding-top: 10px;
}

.login-modal .error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ==================== 步骤状态区域 ==================== */
.step-status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.step-status-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-btn-mini {
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.status-btn-mini.pending {
    border-color: #cbd5e1;
    color: var(--text-muted);
}

.status-btn-mini.pending.active {
    background: #94a3b8;
    color: white;
}

.status-btn-mini.ongoing {
    border-color: #34d399;
    color: var(--success-color);
}

.status-btn-mini.ongoing.active {
    background: var(--success-color);
    color: white;
}

.status-btn-mini.completed {
    border-color: #f87171;
    color: var(--danger-color);
}

.status-btn-mini.completed.active {
    background: var(--danger-color);
    color: white;
}

/* ==================== 响应式补充 ==================== */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-add {
        width: 100%;
        justify-content: center;
    }
    
    .channel-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .channel-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .project-header {
        flex-direction: column;
    }
    
    .project-meta {
        padding-left: 0;
    }
    
    .project-actions {
        flex-wrap: wrap;
    }
    
    .step-selectors {
        flex-direction: column;
    }
    
    .step-manage-item {
        flex-wrap: wrap;
    }
    
    .step-status-section {
        width: 100%;
        align-items: flex-start;
        margin-top: 10px;
    }
    
    .step-status-buttons {
        justify-content: flex-start;
    }
    
    .step-manage-actions {
        width: 100%;
        margin-top: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-danger,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
