/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
}

/* 容器样式 */
.xunrui-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 主布局：左侧查询，右侧展示 */
.main-layout {
    display: flex;
    gap: 25px;
}

/* 左侧查询卡片 */
.search-card {
    flex: 0 0 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #d63233 0%, #f55b5b 100%);
    color: #fff;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-divider {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 12px;
    border-radius: 2px;
}

.search-card-body {
    padding: 24px;
    flex: 1;
}

.search-card-footer {
    padding: 16px 24px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.footer-note {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 右侧结果展示区域 */
.results-area {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.results-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.results-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* 初始空状态 */
.initial-message {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.empty-state p {
    font-size: 16px;
}

/* 表单样式 */
.xunrui-form {
    margin-bottom: 0;
}

.xunrui-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.xunrui-form-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xunrui-input {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
}

.xunrui-input:focus {
    border-color: #d63233;
    box-shadow: 0 0 0 3px rgba(214, 50, 51, 0.1);
    outline: none;
}

/* 输入框聚焦状态 */
.xunrui-form-row.input-focus .xunrui-form-label {
    color: #d63233;
}

/* 验证码行特殊样式 */
.xunrui-verify-row {
    margin-bottom: 24px;
}

.xunrui-verify-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* .xunrui-verify-input {
    flex: 1;
} */

.xunrui-verify-code {
    width: 100px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: linear-gradient(120deg, #f5f5f5 0%, #eee 100%);
    border-radius: 8px;
    font-size: 18px;
    letter-spacing: 3px;
    color: #d63233;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.xunrui-verify-code:hover {
    background: linear-gradient(120deg, #eee 0%, #e0e0e0 100%);
}

.xunrui-refresh-btn {
    height: 36px !important;
    padding: 0 12px;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.xunrui-refresh-btn:hover {
    background-color: #eee;
    color: #333;
    border-color: #d0d0d0;
}

/* 提交按钮样式 */
.xunrui-form-submit {
    margin-top: 10px;
}

.xunrui-search-btn {
    width: 100%;
    height: 48px !important;
    padding: 0 20px;
    background: linear-gradient(135deg, #d63233 0%, #f55b5b 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.xunrui-search-btn:hover {
    background: linear-gradient(135deg, #c02829 0%, #e84a4b 100%);
    box-shadow: 0 4px 12px rgba(214, 50, 51, 0.2);
    transform: translateY(-2px);
}

.xunrui-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(214, 50, 51, 0.15);
}

/* 提示框样式 */
.xunrui-results {
    margin-top: 0;
}

.xunrui-alert {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: none;
}

.xunrui-alert-info {
    background-color: #e8f3ff;
    color: #d63233;
}

.xunrui-alert-warning {
    background-color: #fff8e6;
    color: #d48806;
}

.xunrui-alert-danger {
    background-color: #ffe8e8;
    color: #c53030;
}

.xunrui-alert i {
    font-size: 18px;
}

/* 人员卡片样式（简历式布局） */
.xunrui-person-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.xunrui-person-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #eee;
}

/* 简历式布局：左侧照片，右侧信息 */
.resume-layout {
    display: flex;
    gap: 24px;
    position: relative;
}

/* 左侧证件照区域（长方形） */
.resume-photo {
    width: 30%;
}

.photo-frame {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.id-photo {
    width: 100%;
    height: 260px; /* 长方形比例 */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* 右侧信息区域 */
.resume-info {
    flex: 1;
    min-width: 0; /* 解决flex子元素溢出问题 */
}

/* 简历头部 */
.resume-header {
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.resume-name {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 详细信息区域 */
.resume-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #d63233;
}

/* 信息网格布局 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

/* 简介内容样式 */
.info-content {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    padding: 4px 0;
    text-align: justify;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .search-card {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .results-area {
        flex: none;
    }
    .info-item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }
    .xunrui-person-card{
        margin-bottom: 0;
    }
    .results-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .xunrui-container {
        margin: 0 auto;
    }
    
    .xunrui-person-card{
        margin-bottom: 0;
    }
    .results-content {
        padding: 0;
    }
    
    .resume-layout {
        flex-direction: column;
    }
    
    .resume-photo {
        flex: none;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .resume-name {
        font-size: 22px;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .search-card {
        flex: none;
        width: 100%;
    }
    
    .xunrui-search-btn {
        height: 44px !important;
        font-size: 15px;
    }
    
    .id-photo {
        height: 220px;
    }
    
    .xunrui-verify-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .xunrui-verify-code {
        width: 100%;
    }
    .info-item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    .xunrui-person-card{
        margin-bottom: 0;
    }
    .results-content {
        padding: 0;
    }
}