/*禁止浏览器自动调整文本*/
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* style.css */
/* 基础样式 */

body {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  min-height: 100vh;
}

/* 页面包裹容器 */
.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 顶部轮播区域 */
.header-banner {
  position: relative;
  width: 100%;
  height: 240px;
  z-index: 100;
  overflow: hidden;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 1s ease;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slider img.active {
  opacity: 1;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  z-index: 200;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.navbar .navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-left: auto;
  margin-right: 60px;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.nav-links li a i {
  font-size: 1.2rem;
  margin-right: 5px;
  transition: color 0.3s;
}

/* 滚动后导航栏样式 */
.navbar.scrolled {
  background: #fff;
  border-bottom: 1px solid #fff;
}

.navbar.scrolled .navbar-logo,
.navbar.scrolled .nav-links li a {
  color: #004097;
}

.navbar.scrolled .nav-links li a i {
  color: #004097;
}

/* 简历内容容器 */
.content-container {
  margin-top: 160px;
  width: 100%;
  display: flex;
  justify-content: center; /* 新增：实现整体居中 */
}

/* 简历主体样式 */
.resume {
  position: relative;
  background: #fff;
  width: 210mm;
  max-width: 95%;
  padding: 20mm;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: auto;
}

.logo {
  position: absolute;
  top: 10mm;
  left: 10mm;
  width: 200px;
  height: auto;
}

.header {
  text-align: center;
  margin-top: 20px;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.section {
  margin-top: 20px;
}

.section h2 {
  border-bottom: 1px solid #ccc;
  color: #004097;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 18px;
}

.section p {
  margin: 5px 0;
  line-height: 1.5;
  font-size: 1rem;
  font-family: Arial, sans-serif;
}

.item {
  margin-bottom: 15px;
}

.back-btn {
  display: inline-block;
  background-color: #fff;
  color: #004097;
  border: 1px solid #004097;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.back-btn-wrapper {
  text-align: center;
  margin-top: 40px;
}

.item-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.item-header span {
  flex: 1;
  min-width: 0;
}

.item-header .item-title {
  text-align: left;
}

.item-header .item-position {
  text-align: center;
}

.item-header .item-time {
  text-align: right;
}
.item-header .item-title,
.item-header .item-position,
.item-header .item-time {
  font-size: 1rem;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.honor-section .item-header .item-title {
  flex: 3;
  white-space: nowrap;
}

.honor-section .item-header .item-position {
  flex: 1;
  text-align: center;
  margin-left: 20px;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 768px) {
  .item-header {
    font-size: 1.03rem; /* 或者 1.04rem，根据视觉调试略微放大 */
  }

  .item-header .item-title,
  .item-header .item-position,
  .item-header .item-time {
    font-size: inherit; /* 继承 .item-header 的字体大小 */
  }
}