/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 查询页面样式 */
body.query-page {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.query-container {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.query-container h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.typing-container {
    margin: 20px 0 30px;
    padding: 15px 20px;
    background-color: #f8fafc;
    border-left: 3px solid #3498db;
    min-height: 50px;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 0 4px 4px 0;
}

#typing-text {
    color: #2c3e50;
    font-size: 16px;
}

#typing-text::after {
    content: "|";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.query-input {
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.query-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.error {
    color: #e74c3c;
    padding: 12px;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* 简历样式 */
.resume-page {
    background-color: #f5f7fa;
    padding: 30px;
    color: #333;
    line-height: 1.6;
}

.resume-container {
    width: 210mm;  /* A4宽度 */
    min-height: 297mm;  /* A4高度 */
    margin: 0 auto;
    background: white;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.print-btn:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* 简历布局 */
.resume-wrapper {
    display: flex;
    height: 100%;
}

/* 左侧个人信息区域 */
.personal-info {
    width: 28%;
    background-color: #f8fafc;
    color: #333;
    padding: 30px 25px;
    min-height: 297mm;
    border-right: 1px solid #eee;
    font-size: 13px;
    line-height: 1.5;
}

/* 右侧内容区域 */
.content-area {
    width: 72%;
    padding: 35px 45px;
}

/* 左侧标题样式 */
.personal-info h2 {
    font-size: 16px;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
    font-weight: 600;
}

/* 个人简历标题 */
.resume-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.resume-title small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-top: 3px;
}

/* 照片容器 - 缩小照片尺寸 */
.photo-container {
    text-align: center;
    margin: 0 0 18px;
}

.photo {
    width: 100px;  /* 进一步缩小照片 */
    height: 130px;
    background-color: #e0e0e0;
    border: 5px solid white;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左侧信息项 */
.info-item {
    margin-bottom: 12px;
}

.info-item p {
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.info-item p strong {
    min-width: 60px;
    color: #2c3e50;
    font-size: 13px;
}

/* 技能特长列表 */
.skills-list {
    list-style-type: none;
}

.skills-list li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.skills-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 技能进度条 */
.skill-level {
    margin-top: 3px;
    margin-bottom: 8px;
    height: 5px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #3498db;
}

/* 右侧标题样式 */
.content-section h2 {
    font-size: 18px;
    color: #2c3e50;
    margin: 25px 0 18px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h2 i {
    color: #3498db;
}

/* 工作经历样式 - 取消时间线 */
.experience-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 0;  /* 移除左侧内边距 */
}

/* 取消时间线圆点和线条 */
.experience-item:before, .experience-item:after {
    display: none;
}

.education-item:before {
    display: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.company-name {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.period {
    font-size: 13px;
    color: #666;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
}

.position {
    font-size: 14px;
    color: #3498db;
    margin-bottom: 8px;
    font-weight: 500;
}

.description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #444;
}

.description li {
    margin-bottom: 6px;
    margin-left: 20px;
    padding-left: 5px;
}

.description li strong {
    color: #2c3e50;
}

/* 教育背景样式 */
.education-item {
    margin-bottom: 22px;
    position: relative;
    padding-left: 0;  /* 移除左侧内边距 */
}

.university {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.major {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.courses {
    font-size: 13.5px;
    color: #444;
    margin-top: 5px;
    background-color: #f8fafc;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

/* 证书样式 */
.certificate-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.certificate-item:last-child {
    border-bottom: none;
}

/* 打印样式设置 */
@media print {
    body.resume-page {
        background-color: white;
        padding: 0;
    }
    
    .resume-container {
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .print-btn {
        display: none;
    }
    
    /* 确保左侧区域在每一页都显示 */
    .personal-info {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 28%;
        padding: 30px 20px;
    }
    
    .content-area {
        margin-left: 28%;
        padding: 30px 35px;
    }
    
    /* 打印时去掉背景色以节省墨水 */
    .period, .courses {
        background-color: transparent;
        border: none;
    }
}

/* 可添加到 style.css 中，适配提示样式 */
.flash-message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

p i {
  position: relative;
  top: 4.5px; /* 侧边栏-联系方式的图标位置调整 */
}