/* 移动端优先 - 工具页面样式 */

/* 图片压缩工具样式 */
#app {
    max-width: 1200px;
    margin: 0 auto;
}

#app .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#app .card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#app .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    padding: 12px 16px;
}

#app .card-body {
    padding: 16px;
}

/* 拖放区域样式 */
#app .card.bg-light {
    border: 2px dashed #ced4da;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease;
}

#app .card.bg-light:hover {
    border-color: #667eea;
    background-color: #f0f4ff !important;
}

#app .card.bg-light .card-body {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app .card.bg-light label {
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

#app .card.bg-light label:hover {
    color: #667eea;
    text-decoration: underline;
}

/* 表单样式 */
#app .form-group {
    margin-bottom: 1rem;
}

#app .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

#app .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#app .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 按钮样式 */
.btn-primary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文本域样式 */
#batchAmounts {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    resize: vertical;
    max-height: 200px;
    min-height: 120px;
}

#batchAmounts:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* 使用说明样式 */
#help .col-md-6 {
    padding: 8px;
}

#help .text-center {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 12px;
}

#help .text-center:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#help .text-center i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 8px;
}

#help h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

#help ul {
    padding-left: 0;
}

#help li {
    padding: 1px 0;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #495057;
    display: flex;
    align-items: center;
}

#help li i {
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}

#help .alert {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#help .alert h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

#help .alert ul {
    padding-left: 20px;
}

#help .alert li {
    padding: 4px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 图像显示区域 */
#app .card-body img {
    max-height: 200px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 图像信息 */
#app dl {
    margin-bottom: 0;
}

#app dt {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

#app dd {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* 下载按钮 */
#app .btn-sm {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#app .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

#app .btn-outline-primary:hover {
    background-color: #667eea;
    color: white;
}

/* 图像比较区域 */
#app .vue-compare-image {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #app .col-lg-4,
    #app .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #app .card.bg-light .card-body {
        min-height: 120px;
    }
    
    #app .card-body img {
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    #app .card-header {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    #app .card-body {
        padding: 12px;
    }
    
    #app .card.bg-light .card-body {
        min-height: 100px;
    }
    
    #app .card-body img {
        max-height: 120px;
    }
}

/* 人民币金额转换器样式 */
#converterTabs .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem 0.25rem 0 0;
    transition: all 0.2s ease;
}

#converterTabs .nav-link.active {
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #f8f9fa;
    font-weight: 600;
    color: #667eea;
}

#converterTabs .nav-link:hover {
    color: #667eea;
    border-color: #e9ecef #e9ecef #dee2e6;
}

/* 结果显示区域 */
.result-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #721c24;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
    line-height: 1.4;
}

.error-box i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #dc3545;
}

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

.amount-display {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 8px;
}

.chinese-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #667eea;
}

/* 批量转换结果 */
.batch-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.batch-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.batch-item.success {
    border-left: 4px solid #28a745;
}

.batch-item.error {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
}

.batch-item .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #converterTabs .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .result-box,
    .error-box {
        padding: 12px;
    }
    
    .batch-item {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    #converterTabs {
        flex-direction: column;
    }
    
    #converterTabs .nav-item {
        margin-bottom: 4px;
    }
    
    #converterTabs .nav-link {
        border-radius: 0.25rem;
    }
}

/* ===== 全局优化 ===== */
#breadcrumbs {
    padding: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

#breadcrumbs h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

#breadcrumbs .title_defined {
    display: none !important;
}

/* ===== 表单容器优化 ===== */
#tools {
    padding: 20px 0;
    background: #f8f9fa;
}

/* ===== 表单卡片样式 ===== */
#tools_form {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease;
}

/* ===== 表单字段网格布局 ===== */
#tools_form .form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

/* 表单字段项 */
#tools_form .form-field {
    grid-column: span 1;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    #tools_form .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    #tools_form .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #tools_form .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #tools_form .form-field {
        grid-column: span 1;
    }
}

/* 表单标签 */
#tools_form .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    height: 1.2rem;
}

#tools_form .form-label .text-danger {
    margin-left: 2px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 输入框组 */
#tools_form .input-group {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 8px;
    display: flex;
    align-items: stretch;
}

#tools_form .input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#tools_form .form-control {
    border: none;
    padding: 6px 10px;
    font-size: 14px;
    color: #2c3e50;
    height: 32px;
    flex: 1;
}

#tools_form .form-select {
    border: none;
    padding: 6px 10px;
    font-size: 14px;
    color: #2c3e50;
    height: 32px;
    flex: 1;
}

#tools_form .form-control::placeholder {
    color: #adb5bd;
}

#tools_form .input-group-text {
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 6px 8px;
    font-weight: 500;
    height: 32px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#tools_form .input-group-text i {
    display: flex;
    align-items: center;
    justify-content: center;
}

#tools_form .input-group-text .bi-question-circle {
    color: #667eea;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

#tools_form .input-group-text .bi-question-circle:hover {
    transform: scale(1.1);
}

/* ===== 表单字段分组标题 ===== */
#tools_form .form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

#tools_form .form-section-title i {
    color: #667eea;
    margin-right: 6px;
}

/* ===== 按钮样式 ===== */
#tools_form .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    margin: 3px;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#tools_form .btn i {
    margin-right: 4px;
    font-size: 0.9rem;
}

#tools_form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

#tools_form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

#tools_form .btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
}

#tools_form .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

#tools_form .btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
}

#tools_form .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* ===== 交通事故赔偿指引按钮样式 ===== */
.btn-guide {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    margin: 3px;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    vertical-align: middle;
}

.btn-guide i {
    margin-right: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-guide:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* ===== 咨询按钮样式 ===== */
#consult_button {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #dc3545;
    color: #dc3545;
    transition: all 0.3s ease;
    margin: 3px;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    vertical-align: middle;
}

#consult_button i {
    margin-right: 4px;
    font-size: 0.9rem;
}

#consult_button:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* ===== 紫色按钮样式 ===== */
.btn-purple {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #764ba2;
    color: #764ba2;
    transition: all 0.3s ease;
    margin: 3px;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    vertical-align: middle;
}

.btn-purple i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.btn-purple:hover {
    background: #764ba2;
    color: white;
    transform: translateY(-1px);
}

/* ===== 弹窗按钮样式 ===== */
#supportModal .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 3px;
    min-width: 90px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#supportModal .btn i {
    margin-right: 4px;
    font-size: 0.9rem;
}

#supportModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    border: none;
}

#supportModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

#supportModal .btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

#supportModal .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* ===== 结果区域样式 ===== */
#tools_result {
    padding: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.5s ease;
}

#tools_result .result-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

#tools_result .result-title i {
    margin-right: 8px;
    color: #667eea;
}

#tools_result .section-inner {
    padding: 20px;
}

/* tools_result 区域样式 */
#tools_result {
    font-size: 0.85rem;
    line-height: 1.5;
}

#tools_result h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

#tools_result p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 表格样式 */
#tools_result .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

#tools_result .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
}

#tools_result .table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 10px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    text-align: left;
}

#tools_result .table thead th:nth-child(1) {
    width: 20%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tools_result .table thead th:nth-child(2) {
    width: 15%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tools_result .table thead th:nth-child(3) {
    width: 65%;
}

#tools_result .table tbody tr {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

#tools_result .table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#tools_result .table tbody td {
    padding: 10px;
    vertical-align: top;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

#tools_result .table tbody td:nth-child(1) {
    width: 20%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tools_result .table tbody td:nth-child(2) {
    width: 15%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tools_result .table tbody td:nth-child(3) {
    width: 65%;
}

#tools_result .table tbody td {
    line-height: 1.5;
}

#tools_result .table tbody .text-danger {
    color: #dc3545 !important;
}

/* 分类标题行 */
#tools_result .table tbody tr.table-info td {
    background-color: #f8f9fa !important;
    color: #2c3e50;
    font-weight: 700;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 10px;
    font-size: 0.85rem;
}

#tools_result .table tbody tr.table-warning td {
    background-color: #f8f9fa !important;
    color: #2c3e50;
    font-weight: 700;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 10px;
    font-size: 0.85rem;
}

#tools_result .table tbody tr.table-danger td {
    background-color: #f8f9fa !important;
    color: #2c3e50;
    font-weight: 700;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 10px;
    font-size: 0.85rem;
}

/* 总计行 */
#tools_result .table tbody tr.table-success td {
    background-color: #f8f9fa !important;
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
    padding: 12px 10px;
    font-size: 0.85rem;
}

#tools_result .table tbody tr.table-success .total_fee_label {
    font-size: 1.1rem;
    color: #dc3545 !important;
}

/* ===== 模态框优化 ===== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 12px 20px;
}

/* ===== 提示信息 ===== */
.alert-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    color: #084298;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #d8f5e7 100%);
    border: 1px solid #badbcc;
    color: #0f5132;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* ===== 移动端优化 (768px 及以下) ===== */
@media (max-width: 768px) {
    /* 头部优化 */
    #breadcrumbs {
        padding: 15px 0;
        min-height: 70px;
    }
    
    #breadcrumbs h2 {
        font-size: 1.2rem;
        width: 100%;
        margin-bottom: 8px;
    }
    
    #breadcrumbs .title_defined {
        display: none !important;
    }
    
    /* 表单优化 */
    #tools {
        padding: 15px 0;
    }
    
    #tools_form {
        padding: 16px 12px;
    }

    #tools_form .form-label {
        font-size: 0.85rem;
    }

    #tools_form .input-group {
        flex-wrap: nowrap;
    }

    #tools_form .input-group-text {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    /* 按钮全宽显示 */
    #tools_form .btn {
        width: 100%;
        margin: 3px 0;
    }
    
    /* 结果表格 */
    #tools_result .result-title {
        font-size: 1.2rem;
    }
    
    #tools_result .section-inner {
        padding: 15px;
    }
    
    .table thead th {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .table tbody td {
        padding: 8px 8px;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .table tbody tr.table-success .total_fee_label {
        font-size: 1rem;
    }
    
    /* 模态框 */
    .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }
}

/* ===== 小屏幕手机优化 (576px 及以下) ===== */
@media (max-width: 576px) {
    /* 头部 */
    #breadcrumbs h2 {
        font-size: 1rem;
    }
    
    #breadcrumbs .title_defined {
        display: none !important;
    }
    
    /* 工伤赔偿案件处理流程在超小屏幕不显示 */
    #section-horizontal-timeline {
        display: none !important;
    }
    
    /* 表单 */
    #tools__form {
        padding: 12px 8px;
        border-radius: 8px;
    }

    #tools_form .form-label {
        font-size: 0.8rem;
    }

    #tools_form .form-select {
        font-size: 14px;
        padding: 6px 8px;
    }

    #tools_form .input-group-text {
        font-size: 0.7rem;
        padding: 6px;
    }
    
    /* 按钮 */
    #tools_form .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* 结果 */
    #tools_result {
        padding: 15px 0;
    }
    
    #tools_result .result-title {
        font-size: 1.1rem;
    }
    
    #tools_result .section-inner {
        padding: 10px;
    }
    
    .table thead th {
        font-size: 0.75rem;
        padding: 6px;
    }
    
    .table tbody td {
        padding: 6px 6px;
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .table tbody tr.table-success .total_fee_label {
        font-size: 0.9rem;
    }
    
    /* 模态框 */
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px 12px;
    }
    
    .modal-footer {
        padding: 10px 15px;
    }
    
    /* 提示信息 */
    .alert-info {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .alert-success {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
}

/* ===== 工具提示 ===== */
.tooltip-inner {
    background: #2c3e50;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 300px;
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== 必填标记 ===== */
.text-danger {
    color: #dc3545 !important;
}

/* ===== 伤残/死亡项目显示控制 ===== */
.is_dead {
    display: block !important;
}

.is_injury {
    display: block !important;
}

/* 表格中的死亡专属项目行 */
tr.is_dead {
    display: table-row !important;
}

/* 表格中的伤残专属项目行 */
tr.is_injury {
    display: table-row !important;
}

/* ===== 按钮点击效果 ===== */
.btn:active {
    transform: scale(0.98);
}

/* ===== 自定义样式 ===== */

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

/* 网格布局 */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 间距 */
.gap-4 {
    gap: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

/* 弹性布局 */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* 字体 */
.font-medium {
    font-weight: 500;
}

.font-weight-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

/* 阴影 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 不透明度 */
.opacity-80 {
    opacity: 0.8;
}

/* 圆角 */
.rounded-full {
    border-radius: 9999px;
}

/* 宽度和高度 */
.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

/* 边距 */
.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

/* 内边距 */
.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* 按钮大小 */
.btn-lg {
    font-size: 1.125rem;
    line-height: 1.5;
}

/* 工伤赔偿案件处理流程标签样式 */
#section-horizontal-timeline h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

/* 垂直时间线 - 紧凑型 */
.vertical-timeline {
    position: relative;
    padding: 10px 0;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .vertical-timeline::before {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 38px;
        margin-bottom: 12px;
    }
    
    .timeline-marker {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        padding: 10px 12px;
        border-left: 2px solid #667eea;
    }
    
    .timeline-title {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .timeline-desc {
        font-size: 0.75rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
}

/* 输入框组图标 */
.input-group-text i {
    width: 16px;
    text-align: center;
}
