/* 办公页面专用样式 */

/* 页面布局 */
.office-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.office-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 功能标签栏 */
.feature-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
    font-size: 1.5rem;
}

.tab-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 功能面板 */
.feature-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feature-panel {
    display: none;
    padding: 2rem;
}

.feature-panel.active {
    display: block;
}

/* 演示场景 */
.demo-scenario {
    margin-bottom: 2rem;
}

.demo-scenario h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.scenario-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 输入区域 */
.input-section {
    margin-bottom: 2rem;
}

.input-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.input-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.input-area textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-options select {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 输出区域 */
.output-section {
    margin-top: 2rem;
}

.document-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-type {
    font-weight: 600;
    color: #667eea;
}

.generation-time {
    font-size: 0.9rem;
    color: #666;
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
}

.doc-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.doc-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.document-preview {
    padding: 2rem;
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    min-height: 400px;
}

.doc-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.doc-number {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 600;
}

.doc-recipients {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.doc-content {
    margin: 1.5rem 0;
}

.doc-section {
    margin: 1.5rem 0;
}

.doc-section h6 {
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.placeholder {
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.doc-footer {
    margin-top: 2rem;
}

.signature {
    text-align: right;
    margin-top: 1rem;
    font-weight: 600;
}

/* AI建议 */
.ai-suggestions {
    background: #e8f5e8;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.ai-suggestions h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.suggestion-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.suggestion-item i.fa-exclamation-triangle {
    color: #ffc107;
}

.suggestion-item i.fa-lightbulb {
    color: #17a2b8;
}

/* 会议管理 */
.meeting-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.meeting-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.meeting-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.meeting-content {
    margin-top: 2rem;
}

.meeting-feature {
    display: none;
}

.meeting-feature.active {
    display: block;
}

.meeting-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.participant-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.participant-tag {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.add-participant {
    background: #f0f0f0;
    color: #666;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px dashed #ddd;
}

.smart-suggestions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.suggestion-card i {
    font-size: 1.2rem;
    color: #667eea;
}

/* 会议纪要 */
.recording-simulation {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.recording-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.recording-status {
    color: #dc3545;
    font-weight: 600;
}

.recording-time {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.speech-to-text {
    margin-bottom: 1.5rem;
}

.speaker-segment {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.speaker {
    font-weight: 600;
    color: #667eea;
    margin-right: 0.5rem;
}

.ai-processing {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    font-style: italic;
}

.ai-processing i {
    color: #667eea;
    animation: pulse 2s infinite;
}

.minutes-output {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.minutes-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.minutes-section {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.minutes-section h5 {
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.minutes-section ul,
.minutes-section ol {
    margin-left: 1.5rem;
}

.minutes-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 任务跟踪 */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.task-column {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.task-column h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.task-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-item.pending {
    border-left-color: #ffc107;
}

.task-item.progress {
    border-left-color: #17a2b8;
}

.task-item.completed {
    border-left-color: #28a745;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.task-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.task-priority {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-priority.high {
    background: #f8d7da;
    color: #721c24;
}

.task-priority.medium {
    background: #fff3cd;
    color: #856404;
}

.task-priority.low {
    background: #d4edda;
    color: #155724;
}

.task-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.assignee,
.deadline,
.completed-date {
    font-size: 0.85rem;
}

.progress-bar {
    background: #e0e0e0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    background: #17a2b8;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #17a2b8;
    font-weight: 600;
}

/* 文件检索 */
.search-interface {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
}

.search-filters {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.search-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.result-item.featured {
    border-color: #ffc107;
    background: #fffbf0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.result-header h4 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.relevance-score {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.result-preview {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-preview mark {
    background: #fff3cd;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 流程辅助 */
.workflow-designer {
    margin-bottom: 2rem;
}

.workflow-designer h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.design-area {
    display: flex;
    gap: 2rem;
}

.workflow-canvas {
    flex: 2;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    text-align: center;
}

.workflow-step.start {
    background: #d4edda;
    color: #155724;
}

.workflow-step.process {
    background: #cce5ff;
    color: #004085;
}

.workflow-step.decision {
    background: #fff3cd;
    color: #856404;
}

.workflow-step.end {
    background: #f8d7da;
    color: #721c24;
}

.workflow-arrow {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.workflow-branch {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.workflow-tools {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.workflow-tools h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-palette {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.workflow-analysis {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.workflow-analysis h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.analysis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analysis-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.card-icon {
    font-size: 2rem;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.optimization-suggestions {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
}

.optimization-suggestions h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
}

.suggestion i {
    color: #28a745;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .office-main {
        padding: 1.5rem;
    }
    
    .design-area {
        flex-direction: column;
    }
    
    .task-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        flex-direction: row;
        justify-content: center;
    }
    
    .input-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .doc-actions {
        flex-direction: column;
    }
    
    .meeting-tabs {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions {
        flex-wrap: wrap;
    }
    
    .analysis-cards {
        grid-template-columns: 1fr;
    }
    
    .workflow-branch {
        flex-direction: column;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 动画效果 */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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