/* CSS自定义属性 - 颜色管理 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #3498db;
    --white: #ffffff;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    --focus-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
}

/* 区域布局 */
.section {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    background: var(--background-light);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    font-size: 14px;
    min-height: 40px;
}

.section-content {
    padding: 15px;
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #ffffff;
}

.section-content::-webkit-scrollbar {
    width: 8px;
}

.section-content::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* 工作汇报区域 */
.work-report-section {
    flex: 1;
    min-height: 0;
}

.work-report-section .section-content {
    flex: 1;
}

.work-summary {
    background: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-primary);
    line-height: 1.6;
    height: 100%;
    overflow-y: auto;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.work-summary::-webkit-scrollbar {
    width: 6px;
}

.work-summary::-webkit-scrollbar-track {
    background: var(--background-light);
}

.work-summary::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

/* 反馈区域 */
.feedback-section {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

textarea.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn:focus {
    outline: none;
    box-shadow: var(--focus-shadow);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 15px;
}

/* 建议选项 */
.suggest-options {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--background-light);
    border-radius: 8px;
}

.suggest-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggest-btn {
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    color: var(--text-primary);
}

.suggest-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 图片预览 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.image-preview:empty {
    display: none;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 1);
}

/* 超时信息 */
.timeout-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.timeout-message {
    font-weight: 500;
}

#timeoutCountdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--danger-color);
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        height: calc(100vh - 20px);
    }
    
    body {
        padding: 10px;
    }
    
    .section-content {
        padding: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .suggest-list {
        flex-direction: column;
    }
    
    .suggest-btn {
        width: 100%;
        text-align: center;
    }
    
    .preview-image {
        width: 100px;
        height: 100px;
    }
} 