/* 引导式立案工作台样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.guide-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

/* 顶部栏 */
.guide-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    gap: 16px;
}

.guide-header h1 {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.25);
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* 步骤导航 */
.steps-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8f9fb;
    border-bottom: 1px solid #eee;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.step.active .step-num,
.step.completed .step-num {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 500;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 16px;
}

/* 内容区域 */
.content-area {
    padding: 32px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.step-desc {
    color: #666;
    margin-bottom: 24px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9fb;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-icon {
    color: #667eea;
    margin-bottom: 16px;
}

.upload-area p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.85rem;
    color: #999;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploaded-files {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 0.85rem;
    color: #999;
}

.file-remove {
    color: #999;
    cursor: pointer;
}

.file-remove:hover {
    color: #ff4757;
}

/* 案件类型 */
.case-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.type-category {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px;
}

.type-category h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.type-item:hover {
    background: #f0f4ff;
}

.type-item input {
    display: none;
}

.type-item span {
    position: relative;
    padding-left: 24px;
}

.type-item span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    transition: all 0.2s;
}

.type-item input:checked + span::before {
    border-color: #667eea;
    background: #667eea;
}

.type-item input:checked + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* 表单样式 */
.parties-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.party-section {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
}

.party-section h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.required {
    color: #ff4757;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 诉讼请求 */
.claims-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.claim-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.claim-num {
    color: #667eea;
    font-weight: 600;
    min-width: 24px;
}

.claim-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.add-claim-btn {
    padding: 10px 16px;
    border: 1px dashed #667eea;
    border-radius: 8px;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.add-claim-btn:hover {
    background: #f0f4ff;
}

/* 按钮 */
.btn-group {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* 预览区域 */
.preview-area {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 1rem;
    color: #333;
}

.info-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

/* 生成区域 */
.generate-section {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f0ff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

/* 文档预览 */
.document-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
}

.document-preview h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #333;
}

.document-content {
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.document-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 768px) {
    .steps-nav {
        padding: 16px;
        overflow-x: auto;
    }
    
    .step-line {
        width: 30px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
