body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    width: 100vw;
    overflow: hidden;
    margin-top: 5px;
    box-sizing: border-box;
    background-color: #fff;
}

.resume {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff;
}

.sidebar {
    width: 25%;
    padding: 20px;
    background-color: #ffffff;
    border-right: 2px solid #e0e0e0;
    box-sizing: border-box;
    overflow-y: auto; /* 垂直滚动 */
    max-height: calc(100vh - 100px); /* 调整页眉和页脚 */
}

.sidebar label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.sidebar input,
.sidebar textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    box-sizing: border-box;
}

.sidebar input[type="file"] {
    padding: 0;
}

.preview {
    width: 55%;
    padding: 20px;
    background-color: #ffffff;
    border-right: 2px solid #e0e0e0;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 100vh; /* 确保有足够的高度 */
}

.actions {
    width: 20%;
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* 姓名和头像样式 */
.header-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 5px;
    padding-top: 5px;
    border-radius: 5px;
    background-color: #ffffff;
}

.header-info .header-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-right: 20px;
}

.header-info .header-avatar img {
    display: flex;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #dcdcdc;
}

/* 性别、年龄、学历、籍贯、电话、邮箱样式 */
.info-section,
.content {
    margin-bottom: 20px;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    width: 45%; /* 输入字段 */
    align-items: center;
}

.info-item span {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
}

.info-item p {
    margin: 0;
    color: #555;
}



.content h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #007bff;
}

.content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* 顶部菜单样式 */
.topbar {
    background-color: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
}

.topbar nav {
    margin-left: auto;
}

.topbar nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
}

.topbar nav a:hover {
    text-decoration: underline;
}

/* 底部版权信息样式 */
.footer {
    position: relative;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer a {
  color: white;
  text-decoration: none; /* 取消下划线 */
}

/* 文字说明区域样式 */
.description {
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    text-align: center;
}

.description p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* 图片区域样式 */
.advertisement {
    margin-top: 20px;
    text-align: center;
}

.advertisement img {
    max-width: 100%;
    height: auto;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
}


.appearance-settings {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    text-align: left;
    width: 100%; /* 板块宽度占满父容器 */
    box-sizing: border-box; /* 确保宽度包括内边距和边框 */
}

.appearance-settings h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.appearance-settings label {
    display: block;
    margin-bottom: 10px;
}

.appearance-settings input[type="color"],
.appearance-settings input[type="checkbox"] {
    margin-left: 5px; /* 颜色选择器和复选框与标签之间的间距 */
}

.appearance-settings button {
    margin-top: 10px; /* 按钮上方间距 */
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* 按钮宽度占满容器 */
}

.appearance-settings button:hover {
    background-color: #0056b3;
}

/* 手机访问的样式 */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column; /* 改为纵向布局 */
        align-items: center; /* 居中对齐 */
    }

    .sidebar {
        width: 100%;
        border-right: none; /* 移除右边框 */
        border-bottom: 2px solid #e0e0e0;
        max-height: none; /* 移除最大高度限制 */
    }

    .preview {
        width: 100%;
        border-right: none; /* 移除右边框 */
        border-bottom: 2px solid #e0e0e0;
        min-height: auto; /* 自动适应高度 */
    }

    .actions {
        width: 100%;
        border-bottom: none; /* 移除底边框 */
    }
}


/* 默认隐藏手机端标题和菜单 */
.mobile-title,
.mobile-nav {
    display: none;
}

/* 显示手机端标题和菜单 */
@media screen and (max-width: 768px) {
    .desktop-title,
    .desktop-nav {
        display: none; /* 隐藏桌面端标题和菜单 */
    }

    .mobile-title,
    .mobile-nav {
        display: block; /* 显示手机端标题和菜单 */
    }

    .topbar {
        justify-content: center;
        text-align: center;
    }
}


/* 默认隐藏手机端的提示文字 */
.mobile-warning {
    display: none;
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* 显示手机端的提示文字 */
@media screen and (max-width: 768px) {
    .mobile-warning {
        display: block;
    }
}
