/* 简历表格样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

caption {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    caption-side: top;
}

td {
    padding: 15px;
    height: 30px;
    vertical-align: middle;
    border: 1px solid #999;
}

/* 第一列（标题列）的样式 */
tr td:first-child {
    width: 120px;
    background-color: #e0e0e0;
    font-weight: bold;
}

/* 设置不同行的高度 */
tr:nth-child(1), tr:nth-child(2), tr:nth-child(3), tr:nth-child(4) {
    height: 50px;
}

tr:nth-child(5), tr:nth-child(6) {
    height: 80px;
}

tr:nth-child(7), tr:nth-child(8) {
    height: 150px;
}

/* 添加枫叶背景的单元格 */
.leaf-cell {
    background-image: url('../img/leaf.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    opacity: 0.8;
}

/* 多枫叶背景样式 */
.multi-leaf-cell {
    background-image: url('../img/leaf.svg'), url('../img/leaf.svg'), url('../img/leaf.svg'), url('../img/leaf.svg');
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 10% 20%, 30% 70%, 60% 30%, 85% 60%;
    background-size: 30px, 25px, 35px, 40px;
    opacity: 0.7;
}

/* 照片单元格样式 */
.photo-cell {
    width: 120px;
    position: relative;
}

/* 照片图像样式 */
#photo {
    max-width: 200px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    margin-bottom: 5px;
}


/* 高亮行样式 */
.highlighted-row td {
    border-bottom: 2px solid #333;
}

/* 项目经历和自我评价行样式 */
.project-row td, .self-eval-row td {
    height: 150px;
}

/* 表单元素样式 */
input[type="text"], 
input[type="number"], 
input[type="tel"], 
input[type="email"], 
select, 
textarea {
    width: 90%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: "Microsoft YaHei", sans-serif;
}

textarea {
    width: 95%;
    resize: none;
}

#photoPreview {
    width: 100px;
    height: 120px;
    margin: 0 auto;
    margin-top: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: none;
}

/* 按钮组样式 */
.button-group {
    text-align: center;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Microsoft YaHei", sans-serif;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #c0392b;
}

#resetBtn {
    background-color: #7f8c8d;
}

#resetBtn:hover {
    background-color: #5d6768;
}

#printBtn {
    background-color: #2980b9;
}

#printBtn:hover {
    background-color: #1c5983;
} 
