/* 文件：css/zhongyaoanquan_tanchuang.css */
/* 中药安全警示弹窗样式 */

/* 中药安全警示弹窗样式 */
.zhongyao-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.zhongyao-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.zhongyao-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.zhongyao-modal-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.zhongyao-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zhongyao-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.zhongyao-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zhongyao-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f8fafc;
}

.zhongyao-input-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.zhongyao-section-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zhongyao-section-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.zhongyao-textarea-container {
    border: 2px solid #dc2626;
    border-radius: 10px;
    background: #fef2f2;
    overflow: hidden;
    margin-bottom: 12px;
}

.zhongyao-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1f2937;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.zhongyao-textarea:focus {
    outline: none;
    background: #fecaca;
}

.zhongyao-textarea::placeholder {
    color: #dc2626;
    opacity: 0.7;
}

.zhongyao-hint {
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    border-radius: 8px;
    padding: 10px;
    color: #92400e;
    font-size: 0.9rem;
    text-align: center;
}

.zhongyao-options-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.zhongyao-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.zhongyao-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.zhongyao-option:hover {
    background: #f1f5f9;
    border-color: #dc2626;
}

.zhongyao-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #dc2626;
}

.zhongyao-option-text {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.zhongyao-buttons-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.zhongyao-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.zhongyao-btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.zhongyao-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.zhongyao-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.zhongyao-btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.zhongyao-btn-tertiary {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.zhongyao-btn-tertiary:hover {
    background: #fde68a;
    color: #78350f;
}

.zhongyao-result-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
    animation: zhongyao-fadeIn 0.3s ease;
}

@keyframes zhongyao-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.zhongyao-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.zhongyao-result-actions {
    display: flex;
    gap: 8px;
}

.zhongyao-btn-small {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.zhongyao-btn-small:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.zhongyao-result-content {
    line-height: 1.6;
    color: #1f2937;
}

.zhongyao-result-content h4 {
    color: #dc2626;
    margin: 16px 0 8px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zhongyao-result-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.zhongyao-result-content li {
    margin-bottom: 6px;
}

.zhongyao-result-content .zhongyao-warning-item {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.zhongyao-result-content .zhongyao-safe-item {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.zhongyao-result-content .zhongyao-danger-item {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.zhongyao-result-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.zhongyao-warning {
    background: #fef3c7;
    border-radius: 8px;
    padding: 12px;
    color: #92400e;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #f59e0b;
}

.zhongyao-progress-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid #dc2626;
    margin-top: 20px;
}

.zhongyao-progress-text {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.zhongyao-progress-bar {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.zhongyao-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    width: 0%;
    transition: width 0.3s;
    border-radius: 5px;
}

.zhongyao-progress-percent {
    color: #dc2626;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.zhongyao-cancel-btn {
    padding: 10px 24px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.zhongyao-cancel-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.zhongyao-modal-footer {
    background: #f8fafc;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.zhongyao-footer-text {
    color: #64748b;
    font-size: 0.85rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .zhongyao-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .zhongyao-modal-body {
        padding: 16px;
    }
    
    .zhongyao-btn {
        min-width: 100%;
        margin-bottom: 8px;
    }
    
    .zhongyao-buttons-section {
        flex-direction: column;
    }
    
    .zhongyao-options-grid {
        grid-template-columns: 1fr;
    }
    
    .zhongyao-result-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .zhongyao-btn-small {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .zhongyao-modal-header {
        padding: 16px;
    }
    
    .zhongyao-modal-title {
        font-size: 1.2rem;
    }
    
    .zhongyao-input-section,
    .zhongyao-options-section,
    .zhongyao-result-section {
        padding: 16px;
    }
    
    .zhongyao-progress-section {
        padding: 20px;
    }
}
/* 文件：css/zhongyaoanquan_tanchuang.css */