/* 档案去向查询页面样式 - 去卡片化简洁设计 */

/* 基础布局 - 确保页脚在底部 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* 纯白背景 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域 - 减少上边距 */
.grad-container {
    flex: 1;
    max-width: 1400px;
    margin: 100px auto 20px; /* 从100px减少到60px */
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 页面容器 - 去卡片化 */
.panel {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px; /* 从40px减少到20px */
    width: 100%;
    box-sizing: border-box;
}

/* 页面标题 - 减少间距 */
.page-header {
    text-align: center;
    margin-bottom: 25px; /* 从40px减少到25px */
    padding-bottom: 15px; /* 从20px减少到15px */
    border-bottom: 2px solid #e9ecef;
    display: block;
    visibility: visible;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    display: block;
    visibility: visible;
}

/* 备注容器样式 */
.remark-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 0;
    overflow: hidden;
}

.remark-header {
    background-color: #e3f2fd;
    padding: 12px 20px;
    border-bottom: 1px solid #bbdefb;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1976d2;
    font-size: 15px;
}

.remark-header i {
    font-size: 16px;
    color: #1976d2;
}

.remark-content {
    padding: 20px;
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

/* 富文本内容样式 */
.remark-content h1, 
.remark-content h2, 
.remark-content h3, 
.remark-content h4, 
.remark-content h5, 
.remark-content h6 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333333;
}

.remark-content p {
    margin-bottom: 12px;
}

.remark-content ul, 
.remark-content ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.remark-content li {
    margin-bottom: 6px;
}

.remark-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.remark-content video {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.remark-content a {
    color: #1976d2;
    text-decoration: none;
}

.remark-content a:hover {
    text-decoration: underline;
}

.remark-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.remark-content table th,
.remark-content table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
}

.remark-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.remark-content blockquote {
    margin: 12px 0;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #1976d2;
    color: #495057;
}

/* 表单容器 - 减少内边距 */
.form-container {
    background-color: transparent;
    border-radius: 0;
    padding: 20px 0; /* 从30px减少到20px */
    margin-bottom: 25px; /* 从40px减少到25px */
    border: none; /* 去掉边框 */
}

/* 表单布局 */
.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.form-table tr:last-child {
    border-bottom: none;
}

/* 表单项间距 - 减少垂直间距 */
.form-table td {
    padding: 12px 0; /* 从20px减少到12px */
    vertical-align: middle;
}

/* 表单项样式 */
.layui-form-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.layui-form-label {
    width: 140px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
    text-align: right;
    padding-right: 20px;
    flex-shrink: 0;
}

.layui-input-block {
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: 0;
}

/* 输入框和选择框样式 - 减少内边距 */
.layui-input, .layui-textarea, select {
    border: 1px solid #d0d0d0;
    border-radius: 0;
    padding: 8px 12px; /* 从10px 15px减少到8px 12px */
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #fff;
    color: #333333;
    width: 100%;
    height: 38px; /* 从42px减少到38px */
    box-sizing: border-box;
}

.layui-input:focus, .layui-textarea:focus, select:focus {
    border-color: #666666;
    outline: 0;
    box-shadow: none;
}

.layui-input:hover, .layui-textarea:hover, select:hover {
    border-color: #999999;
}

/* 必填标记 */
.remark {
    color: #e74c3c;
    margin-left: 8px;
    font-weight: 600;
}

/* 按钮容器 - 减少内边距 */
.button-container {
    text-align: center;
    padding: 25px 0 15px; /* 从40px 0 20px减少到25px 0 15px */
    border-top: 1px solid #e9ecef;
    margin-top: 20px; /* 从30px减少到20px */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 从20px减少到15px */
    flex-wrap: wrap;
}

/* 按钮样式 - 减少内边距 */
.layui-btn {
    border-radius: 6px;
    padding: 10px 24px; /* 从14px 32px减少到10px 24px */
    font-size: 14px; /* 从15px减少到14px */
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    min-width: 100px; /* 从120px减少到100px */
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* 从8px减少到6px */
    text-decoration: none;
    user-select: none;
}

/* 查询按钮 - 主要按钮 */
.layui-btn-normal-dark {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.layui-btn-normal-dark:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.layui-btn-normal-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* 重置按钮 - 次要按钮 */
.layui-btn-primary {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.layui-btn-primary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.layui-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 按钮图标样式 - 减少间距 */
.layui-btn .btn-icon {
    font-size: 14px; /* 从16px减少到14px */
    margin-right: 4px; /* 从6px减少到4px */
}

/* 按钮加载状态 */
.layui-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.layui-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* 按钮焦点状态 */
.layui-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.layui-btn-normal-dark:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.layui-btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
}

/* 表格容器 - 减少上边距 */
.table-container {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    margin-top: 25px; /* 从40px减少到25px */
    border: none; /* 去掉边框 */
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

/* 表格容器隐藏状态 */
.table-container.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* 表格显示动画 */
.table-container.show {
    opacity: 1;
    transform: translateY(0);
    animation: tableSlideIn 0.4s ease-out;
}

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

/* 表格样式覆盖 */
.layui-table thead tr {
    background-color: #f8f9fa;
}

.layui-table th {
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #e9ecef;
    padding: 12px 8px; /* 从15px 10px减少到12px 8px */
    text-align: center;
}

.layui-table td {
    padding: 12px 8px; /* 从15px 10px减少到12px 8px */
    border-bottom: 1px solid #f0f0f0;
    color: #333333;
}

.layui-table tbody tr {
    transition: background-color 0.2s;
}

.layui-table tbody tr:hover {
    background-color: #f8f9fa;
}

.layui-table td, .layui-table th, .layui-table-body, .layui-table-header, .layui-table-view {
    border-color: #e9ecef;
}

/* 表单项交替背景色 - 更淡 */
.form-table tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.3);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .grad-container {
        margin: 50px auto 15px; /* 从20px减少到15px */
        padding: 0 15px;
    }

    .panel {
        padding: 0;
    }

    .form-container {
        padding: 15px 0; /* 从20px减少到15px */
    }

    .page-title {
        font-size: 24px;
    }

    .page-header {
        margin-bottom: 20px; /* 移动端也减少间距 */
        padding-bottom: 12px;
    }

    /* 移动设备下的备注容器样式 */
    .remark-container {
        margin-bottom: 20px;
    }

    .remark-header {
        padding: 10px 15px;
        font-size: 14px;
    }

    .remark-content {
        padding: 15px;
        font-size: 13px;
    }

    .layui-form-item {
        flex-direction: column;
        align-items: stretch;
    }

    .layui-form-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 6px; /* 从8px减少到6px */
    }

    .layui-input-block {
        margin-left: 0;
    }

    /* 移动端按钮优化 - 减少间距 */
    .button-container {
        flex-direction: column;
        gap: 12px; /* 从15px减少到12px */
        padding: 20px 0 15px; /* 从30px 0 20px减少 */
    }

    .layui-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px; /* 从16px 32px减少到12px 24px */
        font-size: 15px; /* 从16px减少到15px */
    }

    .table-container {
        padding: 0;
        overflow-x: auto;
    }

    .form-table td {
        padding: 10px 0; /* 从15px减少到10px */
    }
} 