/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

p,
b,
i,
h1,
h2,
h3,
h4,
h5,
h6 {
  /* 核心：允许长单词/长文本换行（突破单词边界） */
  overflow-wrap: break-word;
  /* 兼容旧浏览器（可选，现代浏览器已支持overflow-wrap） */
  word-wrap: break-word;
  /* 中文换行规则（可选，默认已支持） */
  word-break: normal;
}

/* 页面容器 */
#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ====== 加载动画样式 ====== */
/* 加载屏幕容器：覆盖全屏 */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000a18;
  /* 黑色背景，可根据官网风格调整 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  /* 最高层级，确保覆盖所有内容 */
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  /* 淡出过渡动画 */
}

/* 加载完成后隐藏动画（JS动态添加） */
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.gegga {
  width: 0;
}

.snurra {
  filter: url(#gegga);
}

.stopp1 {
  stop-color: #0091ff;
}

.stopp2 {
  stop-color: #29e91b;
}

.halvan {
  animation: Snurra1 10s infinite linear;
  stroke-dasharray: 180 800;
  fill: none;
  stroke: url(#gradient);
  stroke-width: 23;
  stroke-linecap: round;
}

.strecken {
  animation: Snurra1 3s infinite linear;
  stroke-dasharray: 26 54;
  fill: none;
  stroke: url(#gradient);
  stroke-width: 23;
  stroke-linecap: round;
}

.skugga {
  filter: blur(5px);
  opacity: 0.3;
  position: absolute;
  transform: translate(3px, 3px);
}

@keyframes Snurra1 {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -403px;
  }
}

/* 旋转动画关键帧 */
/* @keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} */

/* 加载文字样式 */
.loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #00bfff;
  /* 蓝色文字 */
  margin: 0;
}

/* 加载完成后隐藏动画（JS动态添加） */
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 导航栏样式 */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  opacity: 0;
  animation: fadeInDown 0.5s ease-out 0.5s forwards;
  z-index: 99;
}

.logo {
  position: absolute;
  left: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  z-index: 101;
}

.page_transform {
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00bfff;
}

.nav-links a.active {
  color: #00bfff;
}

/* 移动端菜单按钮 */
.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  z-index: 101;
}

.menu-button img {
  width: 30px;
  height: 30px;
}

/* 背景色遮罩层 */
.nav-bgc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #001627;
  height: 5rem;
  z-index: 1;
  display: none;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 102;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu.open {
  right: 0;
}

.close {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.close-text {
  color: #fff;
  font-size: 3rem;
  /* align-self: flex-start; */
  display: inline-block;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  /* align-self: flex-end; */
}

.close-button img {
  width: 30px;
  height: 30px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
  opacity: 0;
  animation: navItemIn 2s ease-out 0.9s forwards;
  /* animation: fadeInUp 1s ease-out 0.9s forwards; */
  padding-left: 2rem;
}

.mobile-nav-links a.active {
  color: #00bfff;
}

/* 侧边导航点 */
.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  align-items: center;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
}

.nav-dot.active {
  width: 12px;
  height: 12px;
  background-color: white;
}

/* 进度条 */
.progress-bar {
  position: fixed;
  right: 5vh;
  width: 5px;
  height: 30vh;
  top: 50%;
  transform: translatey(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 98;
  border-radius: 10px;
}

.progress-fill {
  border-radius: 3px;
  width: 100%;
  background-color: #00bfff;
  /* transition: height 1s ease; */
  border-radius: 10px;
  transition: all 0.8s ease;
}

/* 左边图标 */
.left-contact-icon {
  position: absolute;
  left: 3vh;
  height: 104px;
  top: 50%;
  transform: translatey(-50%);
  z-index: 98;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left-contact-icon::after {
  content: "";
  width: 1px;
  height: 20vh;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  right: 46%;
  bottom: 140px;
  transform: translateX(-50%);
  transition: all 0.3s;
  border-radius: 3px;
}

.left-contact-icon::before {
  content: "";
  width: 1px;
  height: 20vh;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  right: 46%;
  top: 140px;
  transform: translateX(-50%);
  transition: all 0.3s;
  border-radius: 3px;
}

.qq {
  background: url("../image/qq.png") no-repeat;
}

.wx {
  background: url("../image/wx.png") no-repeat;
}

.left_tubiao {
  background-size: cover;
  border-radius: 30px;
  width: 52px;
  height: 52px;
  position: relative;
  display: block;
  transform: scale(0.8, 0.8);
  transition: all 0.2s;
  cursor: pointer;
  z-index: 100;
  opacity: 0.5;
}

.left_tubiao:hover {
  opacity: 1;
  transform: scale(0.9, 0.9);
}

.yichu_qw {
  width: 0px;
  height: 140px;
  position: absolute;
  left: 72px;
  top: -44px;
  border-radius: 16px;
  transition: all 0.3s;
  background-color: #ededed;
  transform: translateX(-20px);
}

.left_tubiao:hover .yichu_qw {
  width: 140px;
  transform: translateX(0px);
}

.left_tubiao::after {
  content: "";
  width: 0;
  height: 0;
  display: inline-block;
  border-width: 0px;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.5s;
}

.left_tubiao:hover::after {
  border-width: 20px;
  opacity: 1;
}

/* 底部版权 */
.bottom-filing {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 3rem;
  height: 30px;
  left: 0;
  right: 0;
  z-index: 99;
  align-items: center;
  padding: 0 4rem;
}

.bottom-filing a {
  transition: all 0.3s;
  text-decoration: none;
  color: #d3d3d39e;
  font-size: 14px;
}

/* 页面容器 */
.pages-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  /* cursor: grab; 移动端触摸时显示抓取样式 */
  /* touch-action: none; 禁用浏览器默认触摸行为 */
  touch-action: manipulation;
  /* manipulation，允许点击/缩放，避免冲突 */
}

.pages-container:active {
  cursor: grabbing;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  margin: 0;
  padding: 0;
  z-index: 1;
}

.page.active {
  z-index: 2;
}

.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

.bg-animate {
  /* 初始放大1.5倍（占满容器且溢出），缩小到cover（刚好适配容器） */
  animation: bgZoomCover 3s linear forwards;
}

.page-bg::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  backdrop-filter: blur(10px);
  /* 模糊程度，值越大越模糊 */
  background-color: #00050c69;
}

/* ------------------------------------ 页面背景颜色 ------------------------------------ */
.page:nth-child(1) .page-bg {
  background-color: #186ca5;
  background-image: url(../image/index-bg.png);
}

.page:nth-child(2) .page-bg {
  background-color: #04070d;
}

.page:nth-child(3) .page-bg {
  background-color: #050b18;
}

.page:nth-child(4) .page-bg {
  background-color: #088098;
  /* background-image: url(../image/project-01.jpg); */
}

.page:nth-child(5) .page-bg {
  background-color: #9b59b6;
}

.page:nth-child(6) .page-bg {
  background-color: #1abc9c;
}

.page:nth-child(7) .page-bg {
  background-color: #10161d;
  background-image: url(../image/contact.jpg);
}

.page:nth-child(8) .page-bg {
  background-color: #10191d;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #00bfff;
  border-color: #00bfff;
  color: #5a5a5a;
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.25rem;
}

/* 卡片样式 */
.card {
  background-color: #2b2b2b3e;
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 3s infinite;
}

/* ====== 移动端页面内容滚动容器 ====== */
.page-content-scroll {
  max-height: 100vh;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  /* 移动端弹性滚动 */
  /* padding: 8rem 0; */
  touch-action: auto;
  /* 允许原生滚动 */
}

/* 确保移动端内容区域可点击 */
.page-content {
  padding: 0 2rem;
  text-align: center;
  color: white;
  max-width: 1600px;
  margin: 0 auto;
  z-index: 1;
  max-height: 80vh;
  z-index: 1;
}

/* ====== 滚动条样式 ====== */
.page-content-scroll::-webkit-scrollbar {
  width: 4px;
}

.page-content-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.page-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* 回到顶部按钮 */
.back-to-top {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 50px;
  height: 50px;
  background-color: #277ad2;
  color: #d0d0d0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  visibility: hidden;
  font-size: 22px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top.backBottom {
  background-color: #db624a;
  animation: jumpingUpwards 3s infinite;
}

.back-to-top:hover {
  opacity: 0.6;
  transform: translateY(-4px);
  transition: all 0.3s;
}

/* SVG进度条样式 */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

/* 返回顶部图标内部箭头样式 */
.back-icon {
  position: absolute;
  z-index: 99;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 进度条颜色随按钮状态变化 */
.back-to-top.backBottom .progress-ring-progress {
  stroke: #eb1d02cc;
}

.back-to-top.backBottom:hover .progress-ring-progress {
  stroke: #ff3838;
}

.back-to-top:not(.backBottom) .progress-ring-progress {
  stroke: rgba(0, 191, 255, 0.8);
}

.back-to-top:not(.backBottom):hover .progress-ring-progress {
  stroke: rgba(0, 191, 255, 1);
}

/* 移动端适配：调整按钮和进度条大小 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .progress-ring {
    width: 40px;
    height: 40px;
  }

  .progress-ring-background,
  .progress-ring-progress {
    stroke-width: 2;
    /* 调整移动端圆环宽度 */
  }
}

/* >>>------------------------------------- 内容区域 ----------------------------------------<<< */
.no-hover:hover {
  transform: translateY(0px);
}

.no-bgc {
  background: none;
  backdrop-filter: blur(0px);
}

/* 首页 */
.welcome {
  width: 100%;
  height: 100%;
}

.welcome img {
  width: 100%;
  border-radius: 15px;
  padding: 0;
}

.welcome-prompt {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: start;
  background: #2b2b2b3e;
}

.welcome-prompt h1 {
  font-size: 4rem;
  color: #00bfff;
}

.welcome-prompt p {
  font-size: 1.3rem;
}

.welcome-prompt i {
  font-size: 1.1rem;
  color: #81bbd683;
}

/* 关于我 */
.about-me-img {
  width: 100%;
  text-align: right;
  padding: 0;
  background: none;
}

.about-me-img img {
  width: 70%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.progress {
  height: 6px;
  border-radius: 3px;
  paint-order: 2px;
  background-color: #82a3bc90;
  width: 70%;
  float: right;
  margin: 1.5rem 0 1rem 0;
  position: relative;
  backdrop-filter: blur(3px);
  opacity: 0;
}

.progress p {
  position: absolute;
  left: 0;
  top: -1.5rem;
  font-size: 12px;
}

.progress b {
  position: absolute;
  right: 0;
  top: -1.5rem;
  font-size: 12px;
  color: #00bfff;
}

.about-me-text {
  width: 100%;
  text-align: left;
  padding: 0;
  color: #ffffff87;
  background: none;
}

.about-me-text b {
  color: #fff;
}

.about-me-text H1 {
  color: #00bfff;
  margin-bottom: 3rem;
}

.about-me-text span {
  margin-bottom: 2rem;
}

.about-me-text span:nth-last-of-type(2) {
  margin-left: 3rem;
}

.about-me-text span:last-of-type {
  display: block;
  margin-top: 1rem;
}

.about-me-text p {
  margin-top: 4rem;
  line-height: 1.6rem;
}

.progress span {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: inline-block;
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: all 2s ease;
  background-color: #00bfff;
}

/* 工作经验 */

.experience-choice {
  width: 100%;
  height: 100%;
  background: none;
  position: sticky;
  top: 0;
  z-index: 99;
  transition: all 0.3s;
}

.gzjy-btn {
  border-style: 1px dashed #00bfff;
}

.choice {
  background: #2b2b2b65;
  backdrop-filter: blur(8px);
  color: #ffffff86;
  transition: all 0.3s;
  border: 1px solid #ffffff57;
  cursor: pointer;
  /* 鼠标悬停变手型 */
  padding: 1rem;
}

.experience-text {
  width: 100%;
  display: none;
  padding: 0 2rem;
  background: #2b2b2b3e;
}

.exp-text-box {
  margin: 6rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.exp-text-box p {
  line-height: 2rem;
}

.experience-text .exp-text-box:first-of-type {
  margin-top: 2rem;
}

.experience-text .exp-text-box:last-child {
  margin-bottom: 2rem;
}

.timeline {
  width: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-left: 2rem; */
  height: 8rem;
  position: relative;
}

.timeline::after {
  position: absolute;
  left: 50%;
  top: -6rem;
  transform: translateX(-50%);
  content: "";
  width: 1px;
  height: 90%;
  border: 1px;
  background: repeating-linear-gradient(to bottom,
      /* 渐变方向：垂直向下 */
      #0091ff,
      #0091ff 10px,
      transparent 10px,
      /* 实线段长度 10px */
      transparent 18px
      /* 间距 8px（18-10=8） */
    );
  z-index: -1;
}

.timeline::before {
  position: absolute;
  left: 50%;
  bottom: -6rem;
  transform: translateX(-50%);
  content: "";
  width: 1px;
  height: 83%;
  border: 1px;
  background: repeating-linear-gradient(to bottom,
      /* 渐变方向：垂直向下 */
      #0091ff,
      #0091ff 10px,
      transparent 10px,
      /* 实线段长度 10px */
      transparent 18px
      /* 间距 8px（18-10=8） */
    );
  z-index: -1;
}

.lineBottom::before,
.lineTop::after {
  display: none;
}

.timeline-cont {
  width: 4rem;
  height: 4rem;
  border-radius: 3rem;
  backdrop-filter: blur(10px);
  background: #ffffff9a;
  color: #001627;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showContent {
  display: block;
}

.expActive,
.choice:hover {
  background-color: #0091ff92;
  /* border: none; */
  color: #fff;
  border: 1px solid #0091ff92;
}

.text-title {
  display: flex;
  justify-content: space-between;
  /* color: #0091ff92; */
}

.text-title h3 {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  /* color: #0091ff; */
}

/* ===================== 联系我 - 联系方式信息区域 ===================== */
.contact-info-section {
  color: #fff;
}

.contact-me-left {
  padding: 0 2rem;
}

/* 邮箱和电话容器 */
.contact-email-phone {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-around;
  margin-bottom: auto;
  /* 核心：屏幕变小时自动换行 */
}

.contact-item {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.contact-item:hover {
  color: #00bfff;
}

.qrcodes-box {
  display: flex;
  gap: 2rem;
}

/* 收录与二维码的左右布局容器 */
.contact-links-qrcode {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: column;
}

/* 左侧：收录标签 */
.contact-incorporate {
  flex: 1;
  min-width: 200px;
}

.contact-incorporate h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: left;
}

.incorporate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.incorporate-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.incorporate-tag:hover {
  background: #00bfff;
  border-color: #00bfff;
  color: #001627;
}

/* 右侧：二维码图片 */
.contact-qrcodes {
  display: flex;
  justify-content: space-between;
  width: 100%;
  /* 核心：上下换行显示 */
  gap: 1rem;
  align-items: center;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qrcode-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}

.qrcode-item span {
  font-size: 0.9rem;
  color: #ccc;
}

/* 移动端响应式调整 (屏幕小于 768px) */
@media (max-width: 768px) {
  .contact-email-phone {
    flex-direction: column;
    justify-content: space-around;
    /* 邮箱和电话强制上下换行 */
    gap: 1rem;
  }

  .contact-qrcodes {
    flex-direction: column;
    align-items: center;
  }

  .contact-links-qrcode {
    flex-direction: column;

    /* 收录和二维码强制上下换行 */
    align-items: center;
  }

  .contact-incorporate {
    text-align: center;
    width: 100%;
  }

  .incorporate-tags {
    justify-content: center;
  }
}

/* -----------------表单样式----------------- */
.contact-me-right form {
  height: 100%;
  display: flex;
  /* 新增：开启 Flex 布局 */
  flex-direction: column;
  /* 新增：设置 Flex 轴为垂直方向 */
}

/* .contact-me-right form button {
  margin-top: auto;

} */

.form-group {
  margin-bottom: 15px;
  position: relative;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #ffffff7b;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ffffff3d;
  border-radius: 6px;
  background-color: #ffffff3a;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
  /* 仅允许垂直拖动（核心属性） */
}

.form-input::placeholder {
  color: #559fe5a4;
}

.form-input:focus {
  outline: none;
  border-color: #4a90e2;
}

/* 错误状态样式 */
.form-input.error {
  border-color: #e74d3ca4;
}

.error-message {
  color: #e74d3c;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  position: absolute;
  top: -2px;
  right: 0;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.clear-btn {
  width: 24px;
  position: absolute;
  height: 24px;
  line-height: 24px;
  text-align: center;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid #ffffff28;
  border-radius: 18px;
  color: #bbbbbb8e;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.3s;
}

.clear-btn:hover {
  color: #cf594c;
  border-color: #ffffff92;
}

button[type="submit"]:hover {
  background-color: #357abf;
}

button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 提交数据展示区域 */
.submitted-data {
  position: fixed;
  width: 40%;
  height: 40%;
  border-radius: 30px;
  background: #000812f2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  align-items: center;
  overflow: hidden;
  z-index: 99;
  color: #fff;
}

.submitted-data h2 {
  font-size: 2rem;
  color: #0091ff;
  margin-bottom: 10px;
}

.submitted-data div {
  width: 50%;
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.submitted-data .btn {
  margin-top: 2rem;
  width: 50%;
}

pre {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 12px;
  color: #000a18;
}

/* 下载 */
.download {
  position: relative;
}

.download img {
  width: 97%;
  padding: 0;
  max-height: 80vh;
}

.download-text {
  width: 40%;
  height: 40%;
  border-radius: 30px;
  background: #2b2b2bbe;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  align-items: center;
  overflow: hidden;
}

.boxHidden {
  opacity: 0;
  visibility: hidden;
}

.download:hover .download-text,
.boxShow {
  opacity: 1;
  visibility: visible;
}

/* >>>------------------------------------- 默认样式和自适应调整区域 ----------------------------------------<<< */
.fadeInUp_03 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.fadeInUp_06 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.fadeInUp_09 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.fadeInUp_12 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.2s forwards;
}

.fadeInUp_15 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.5s forwards;
}

.fadeInDown_06 {
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.6s forwards;
}

.fadeInDown_09 {
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.9s forwards;
}

.fadeInleft_06 {
  opacity: 0;
  animation: navItemIn 1s ease-out 0.6s forwards;
}

.fadeInleft_09 {
  opacity: 0;
  animation: navItemIn 1s ease-out 0.9s forwards;
}

.fadeInright_06 {
  opacity: 0;
  animation: navItemOut 1s ease-out 0.6s forwards;
}

.fadeInright_09 {
  opacity: 0;
  animation: navItemOut 1s ease-out 0.9s forwards;
}

.progress_Op {
  opacity: 0.3;
  animation: progressOp 1s ease-out 0.5s forwards;
}

/* 动画效果向上跳动 */
@keyframes jumpingUpwards {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* 动画效果向上 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 动画效果向下 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(30px);
  }
}

/* 从右往左缓动 */
@keyframes navItemIn {
  0% {
    opacity: 0;
    transform: translate(50px, -50%);
  }

  100% {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* 从左往右缓动 */
@keyframes navItemOut {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* X图标旋转动画 */
@keyframes closeIconRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(180deg);
  }
}

/* 动画效果显示隐藏 */
@keyframes progressOp {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* 背景图缩放 */
@keyframes bgZoomCover {
  0% {
    transform: scale(1.2);
    /* 沿中心点缩小到80% */
  }

  100% {
    transform: scale(1);
    /* 沿中心点缩小到80% */
  }
}

/* ===================== 兴趣爱好轮播样式 ===================== */
.hobbies-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 60px;
  /* 为左右箭头留出空间 */
}

.hobbies-scroll {
  display: flex;
  gap: 1.5rem;
  /* 卡片间距 */
  overflow-x: auto;
  /* 核心修改：允许横向滚动，确保 scrollTo 生效 */
  overflow-y: hidden;
  scroll-behavior: smooth;
  /* 默认平滑滚动 */
  cursor: grab;
  /* 拖拽鼠标样式 */
  width: 100%;
  padding: 1rem 0;
  /* 防止拖拽时视觉裁剪 */

  /* 隐藏滚动条 */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

/* 隐藏 Webkit 内核浏览器的滚动条 */
.hobbies-scroll::-webkit-scrollbar {
  display: none;
}

.hobbies-scroll:active {
  cursor: grabbing;
}

/* 单个卡片样式：固定宽度，不换行 */
.hobbies-card {
  flex: 0 0 360px;
  background-color: #2b2b2b3e;
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  text-align: center;
  color: white;
  cursor: pointer;
  /* 添加手型鼠标 */
}

/* 新增：图片容器样式 */
.hobbies-img-wrapper {
  width: 100%;
  height: 220px;
  /* 放大图片区域高度 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.hobbies-card:hover {
  transform: translateY(-5px);
}

.hobbies-card:hover .hobbies-img-wrapper {
  transform: scale(1.05);
  /* 悬停时图片微放大 */
}

/* 箭头按钮样式 */
.hobbies-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hobbies-arrow:hover:not(:disabled) {
  background-color: #00bfff;
  border-color: #00bfff;
  color: #001627;
}

.hobbies-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* ===================== 兴趣爱好弹窗样式 ===================== */
.hobbies-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  touch-action: none;
}

.hobbies-modal.active {
  opacity: 1;
  visibility: visible;
}

.hobbies-modal-content {
  position: relative;
  max-width: 80%;
  max-height: 85vh;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

/* .hobbies-modal-content img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 10px;
  object-fit: contain;
} */

.hobbies-modal-close {
  position: absolute;
  top: 3px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.hobbies-modal-close:hover {
  color: #00bfff;
}

/* 弹窗内部大图容器 */
.modal-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
  object-fit: contain;
  transition: opacity 0.3s ease;
  /* 切换图片时加点淡入淡出 */
}

/* 弹窗左右箭头 */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  /* 【修改】增加 opacity 和 transition，让 v-show 切换时有淡入淡出效果 */
  opacity: 1;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

/* 保持原有的 hover 效果 */
.modal-arrow:hover {
  background-color: #00bfff;
  border-color: #00bfff;
  color: #001627;
}

.modal-arrow-left {
  left: 10px;
}

.modal-arrow-right {
  right: 10px;
}

/* 底部缩略图容器 */
.modal-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  /* 允许横向滚动 */
  padding: 10px 5px;
  /* margin: 1rem 0;  */
  justify-content: center;
  scroll-behavior: smooth;
  max-width: 100%;
  /* 限制宽度，超出隐藏 */
}

/* 隐藏缩略图滚动条 */
.modal-thumbnails::-webkit-scrollbar {
  display: none;
}

.modal-thumbnails {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 缩略图单项 */
.thumbnail-item {
  flex: 0 0 80px;
  /* 固定宽度 */
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* 当前选中图片的高亮样式 */
.thumbnail-item.active {
  border-color: #00bfff;
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== 作品展示样式 ===================== */

/* ====== 外层大盒子：左右布局，固定高度 ====== */
.portfolio-box {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  max-height: 75vh;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* ====== 左侧区域：宽度跟随选项卡内容 ====== */
.portfolio-left {
  flex: 0 0 auto;
  /* 不自动撑开，由内容决定宽度 */
  width: fit-content;
  /* 宽度贴合内容 */
  max-width: 300px;
  /* 最大宽度限制 */
  min-width: 220px;
  /* 最小宽度保证可读 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- 选项卡卡片包裹 --- */
.portfolio-tabs-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}

/* --- 选项卡 --- */
.portfolio-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.portfolio-tab {
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.88rem;
  user-select: none;
  white-space: nowrap;
}

.portfolio-tab:hover {
  background: rgba(0, 191, 255, 0.15);
  border-color: #00bfff;
  color: #fff;
}

.portfolio-tab.active {
  background: #00bfff;
  border-color: #00bfff;
  color: #001627;
  font-weight: bold;
}

/* --- 列表区域（超出上下滚动） --- */
.portfolio-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
}

/* 列表滚动条 */
.portfolio-list::-webkit-scrollbar {
  width: 4px;
}

.portfolio-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.portfolio-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.portfolio-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- 单个列表项：左文字 + 右缩略图 --- */
.portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.portfolio-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.portfolio-item.active {
  background: rgba(0, 191, 255, 0.12);
  border-color: #00bfff;
  border-style: dashed;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.15);
}

/* 列表项 - 左侧文字 */
.portfolio-item-info {
  flex: 1;
  text-align: left;
  margin-right: 0.8rem;
  min-width: 0;
}

.portfolio-item-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-item-info p {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* 列表项 - 右侧缩略图 */
.portfolio-item-thumb {
  position: relative;
  width: 90px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-item-thumb img {
  transform: scale(1.08);
}

/* 缩略图右下角 - 共X张 */
.thumb-count {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

/* ====== 右侧区域 ====== */
.portfolio-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 右侧滚动条样式 */
.portfolio-right::-webkit-scrollbar {
  width: 4px;
}

.portfolio-right::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.portfolio-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.portfolio-right::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- 大图展示区 --- */
.portfolio-main-image {
  position: relative;
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  cursor: pointer;
  min-height: 180px;
}

.portfolio-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

/* 大图左右切换箭头 */
.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.portfolio-arrow:hover {
  background-color: #00bfff;
  border-color: #00bfff;
  color: #001627;
}

.portfolio-arrow.left {
  left: 12px;
}

.portfolio-arrow.right {
  right: 12px;
}

/* --- 缩略图横排 --- */
.portfolio-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px;
  margin-bottom: 0.8rem;
  scroll-behavior: smooth;
  flex-shrink: 0;
}

.portfolio-thumbnails::-webkit-scrollbar {
  display: none;
}

.portfolio-thumbnails {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-thumb-item {
  flex: 0 0 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.portfolio-thumb-item.active {
  border-color: #00bfff;
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.portfolio-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 文本信息区：标题 + 数量同行 --- */
.portfolio-info-text {
  text-align: left;
  flex-shrink: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 标题行：标题在左，数量在右 */
.portfolio-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.portfolio-info-header h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.portfolio-info-header .count {
  font-size: 0.82rem;
  color: #00bfff;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}

.portfolio-info-text .desc {
  font-size: 0.88rem;
  color: #bbb;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.portfolio-info-text .remarks {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 0;
}

.portfolio-info-text .remarks b {
  color: #aaa;
}

/* ====== 作品弹窗 ====== */
.portfolio-modal-content {
  max-width: 85%;
  max-height: 90vh;
}

/* ====== 响应式：小屏改为上下布局 ====== */
@media (max-width: 940px) {
  .portfolio-box {
    flex-direction: column;
    height: auto;
    max-height: 78vh;
    gap: 1rem;
  }

  .portfolio-left {
    flex: none;
    max-width: 100%;
    width: 100%;
    max-height: 35vh;
  }

  .portfolio-right {
    flex: none;
  }

  .portfolio-main-image {
    height: 35vh;
    min-height: 160px;
  }

  .portfolio-tabs-card {
    padding: 0.6rem 0.8rem;
  }

  .portfolio-tab {
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
  }

  .portfolio-item-thumb {
    width: 76px;
    height: 52px;
  }

  .portfolio-info-header h3 {
    font-size: 1.1rem;
  }
}

/* ===================== 技术探讨 - 文章样式 ===================== */

/* ====== 主页文章卡片网格 ====== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.article-card {
  cursor: pointer;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 350px;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(1 80 84 / 73%);
  background-color: #20857f;
}

/* 卡片图片区域 */
.article-card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.article-card-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* 卡片文字区域 */
.article-card-body {
  /* padding: 1.2rem; */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.article-card-top h3 {
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
  text-align: left;
  flex: 1;
  margin-right: 1rem;
}

.article-card-meta {
  padding: 10px 4px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  justify-content: space-between;
}

.meta-time {
  font-size: 0.75rem;
  color: #00bfff;
  white-space: nowrap;
}

.meta-views {
  font-size: 0.72rem;
  color: #d3d3d3;
  white-space: nowrap;
}

.article-card-subtitle {
  font-size: 0.88rem;
  color: #c0c0c0;
  line-height: 1.5;
  text-align: left;
  margin: 0;
  white-space: nowrap;
  /* 强制不换行 */
  overflow: hidden;
  /* 隐藏溢出内容 */
  text-overflow: ellipsis;
  /* 用省略号表示溢出 */
}

/* ====== 文章弹窗 ====== */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.article-modal.active {
  opacity: 1;
  visibility: visible;
}

.article-modal-content {
  position: relative;
  display: flex;
  gap: 1.5rem;
  width: 90%;
  max-width: 60vw;
  max-height: 65vh;
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* ====== 弹窗左侧列表 ====== */
.article-modal-left {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-modal-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
}

/* 列表滚动条 */
.article-modal-list::-webkit-scrollbar {
  width: 4px;
}

.article-modal-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.article-modal-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.article-modal-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* 单个列表项 */
.article-modal-item {
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.article-modal-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.article-modal-item.active {
  background: rgba(0, 191, 255, 0.12);
  border-color: #00bfff;
  border-style: dashed;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.15);
}

/* 列表项上半部分：左文字 + 右缩略图 */
.article-modal-item-info {
  text-align: left;
  margin-bottom: 0.5rem;
}

.article-modal-item-info h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-modal-item-info p {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.article-modal-item-thumb {
  position: relative;
  width: 100%;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.article-modal-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 列表项底部：时间 + 浏览量 */
.article-modal-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #777;
  flex-wrap: wrap;
}

.article-modal-item-footer span:last-child {
  color: #8b8b8b;
}

/* ====== 弹窗右侧详情 ====== */
.article-modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 右侧滚动条 */
.article-modal-right::-webkit-scrollbar {
  width: 4px;
}

.article-modal-right::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.article-modal-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* 大图展示区 */
.article-main-image {
  position: relative;
  width: 100%;
  min-height: 250px;
  max-height: 350px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.article-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

/* 大图左右箭头 */
.article-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.article-arrow:hover {
  background-color: #00bfff;
  border-color: #00bfff;
  color: #001627;
}

.article-arrow.left {
  left: 12px;
}

.article-arrow.right {
  right: 12px;
}

/* 缩略图横排 */
.article-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px;
  margin-bottom: 0.8rem;
  scroll-behavior: smooth;
  flex-shrink: 0;
}

.article-thumbnails::-webkit-scrollbar {
  display: none;
}

.article-thumbnails {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.article-thumb-item {
  flex: 0 0 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.3);
}

.article-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.article-thumb-item.active {
  border-color: #00bfff;
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

.article-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文章信息区 */
.article-info-text {
  text-align: left;
  flex-shrink: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.article-info-header h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.article-info-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #888;
  flex-shrink: 0;
  align-items: center;
}

.article-info-meta span:first-child {
  color: #00bfff;
}

.article-subtitle {
  font-size: 0.95rem;
  color: #696969;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.article-content {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ====== 技术探讨响应式 ====== */
@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .article-modal-content {
    flex-direction: column;
    max-height: 90vh;
    width: 95%;
    padding: 1rem;
  }

  .article-modal-left {
    max-width: 100%;
    width: 100%;
    max-height: 30vh;
  }

  .article-modal-item-thumb {
    height: 70px;
  }

  .article-main-image {
    min-height: 180px;
    max-height: 250px;
  }
}

@media (max-width: 700px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card-img {
    height: 150px;
  }

  .article-card-top {
    flex-direction: column;
    gap: 0.3rem;
  }

  .article-card-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }
}

/* 确保这些类默认有 grab 鼠标样式 */
.article-thumbnails,
.modal-thumbnails,
.portfolio-thumbnails {
  cursor: grab;
}

/* 当正在拖动时，JS 会动态添加 grabbing 样式，但也可以在这里写一个类作为备选 */
.is-dragging {
  cursor: grabbing !important;
}

/* ===================== 响应式布局 ===================== */

/*  */
@media (max-width: 940px) {
  .progress-bar {
    /* 移动端隐藏 */
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .page-content h1 {
    font-size: 2.5rem !important;
  }

  .page-content h2 {
    font-size: 2rem !important;
  }

  .card {
    padding: 1.5rem;
  }

  /* 移动端间距调整 */
  .gap-6,
  .gap-8 {
    gap: 1rem;
  }

  .left-contact-icon {
    display: none;
  }

  .bottom-filing {
    flex-direction: column;
  }

  .page-content {
    max-height: 80vh;
  }

  .page-content-scroll {
    padding: 2rem 0;
  }

  .back-to-top {
    bottom: 2rem;
    right: 2.5rem;
  }

  .download-text {
    width: 70%;
    height: 25%;
    top: 12%;
  }

  .about-me-img {
    text-align: center;
  }

  .progress {
    width: 100%;
  }

  .experience-choice {
    top: -2rem;
    gap: 0.5rem !important;
    background-color: #000a18dc;
    backdrop-filter: blur(3px);
    padding: 0.5rem 0;
  }

  .timeline {
    width: 2rem;
  }

  .timeline-cont {
    width: 2rem;
    height: 2rem;
  }

  .text-title h3 {
    font-size: 1rem;
  }

  .exp-text-box p {
    font-size: 14px;
  }

  .hobbies-wrapper {
    width: 50%;
  }

  .left-arrow {
    display: none;
  }

  .right-arrow {
    display: none;
  }
}

/* 小屏手机响应式调整 */
@media (max-width: 480px) {
  .md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }

  .article-modal-content {
    max-width: 100%;
  }

  .page-content {
    padding: 1rem;
  }

  .progress-bar {
    display: none;
  }

  .logo {
    font-size: 1.25rem;
    left: 1rem;
  }

  .menu-button {
    right: 1rem;
  }

  .mobile-menu {
    width: 100%;
  }

  .page-content {
    padding: 1rem;
  }

  .page-content h1 {
    font-size: 2rem !important;
  }

  .page-content h2 {
    font-size: 1.75rem !important;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .bottom-filing a {
    font-size: 12px;
  }

  .bottom-filing {
    bottom: 0.6rem;
  }

  .bottom-filing a:last-child {
    display: none;
  }

  .download-text {
    width: 75%;
    height: 45%;
    top: 2%;
  }

  .progress b,
  .progress p {
    font-size: 8px;
  }

  .about-me-text p {
    font-size: 12px;
  }

  .timeline {
    display: none;
  }

  .exp-text-box p {
    line-height: 1.5rem;
    font-size: 14px;
  }

  .text-title {
    flex-direction: column;
  }

  .hobbies-wrapper {
    width: 30%;
  }

  .contact-text {
    font-size: 12px;
  }

  .incorporate-tag {
    padding: 0.2rem 0.5rem;
  }

  .contact-item {
    font-size: 1rem;
  }
}

/* >>>>>>>> 平板设备响应式调整 <<<<<<< */
@media (min-width: 940px) and (max-width: 1300px) {
  .nav-links {
    gap: 1.5rem;
    padding-left: 10rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .contact-item {
    font-size: 1.1rem;
  }

  .incorporate-tag {
    padding: 0.3rem 0.7rem;
  }

  .contact-qrcodes {
    flex-direction: column;
    align-items: center;
  }

  .nav-container {
    padding: 0;
  }

  .progress-bar {
    right: 1.5rem;
  }

  .left-contact-icon {
    left: 1rem;
  }

  .bottom-filing {
    bottom: 1.5rem;
  }

  .nav-bgc {
    display: block;
  }

  .back-to-top {
    bottom: 7rem;
    right: 2rem;
  }

  .logo {
    padding-left: 2rem;
  }

  .work-experience {
    max-width: 50rem;
  }

  .welcome img {
    max-height: 387px;
  }

  .page-content {
    padding: 0 6rem;
    /* max-height: 82vh; */
  }

  .download-text {
    width: 50%;
    height: 20%;
    top: 15%;
  }

  .about-me-img {
    text-align: center;
  }

  .progress {
    width: 100%;
  }

  .hobbies-wrapper {
    width: 70%;
  }
}

/* 超过 1300 的屏幕 */
@media (min-width: 1300px) {
  .nav-links {
    gap: 2.5rem;
    padding-left: 20rem;
  }

  .hobbies-wrapper {
    width: 90%;
  }
}

/* 超过 1600 的屏幕 */
@media (min-width: 1600px) {
  .work-experience {
    max-width: 72rem;
  }

  .nav-links {
    gap: 3rem;
    padding-left: 18rem;
  }

  .contact-text {
    font-size: 1.4rem;
  }
}

/* 网格布局默认项 */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 默认移动端为单列布局 */
.grid.md\:grid-cols-2,
.grid.md\:grid-cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* =============== 网格排列布局 =============== */

/* 平板及以上设备的网格布局 */
@media (min-width: 0px) and (max-width: 700px) {
  .grid.md\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* 小屏平板的三列网格调整为两列 */
@media (min-width: 700px) and (max-width: 1300px) {
  .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1300px宽度的排列 */
@media (min-width: 1300px) and (max-width: 1600px) {
  .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 1600px宽度的排列 */
@media (min-width: 1600px) {
  .grid.md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 特殊 */
@media (min-width: 940px) {
  .grid.md\:grid-cols-tow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 50rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-8xl {
  max-width: 88rem;
}

.w-full {
  width: 100%;
}

/* 文本样式 */
.text-4xl {
  font-size: 2.5rem;
  line-height: 1;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-0\.5 {
  margin-bottom: 0.125rem;
}

.mb-0\.75 {
  margin-bottom: 0.1875rem;
}

/* 弹性布局 */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.h-48 {
  height: 12rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-1\.25rem {
  font-size: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.mb-0\.5 {
  margin-bottom: 0.125rem;
}

/* 背景透明度 */
.bg-white {
  background-color: white;
}

.bg-opacity-30 {
  background-color: rgba(255, 255, 255, 0.3);
}