body {
  font-family: 'Montserrat', sans-serif;
  background: url('../imgs/body_main.png') no-repeat center center fixed;
  background-size: 100vw auto;       /* 横向填满，纵向自适应，高度可能留白 */
  background-color: #132044;         /* 留白区域底色与图片协调 */
  color: #222222;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 43vw;       /* 视口宽度的45% */
  min-width: 320px;      /* 可选：防止手机屏幕太窄 */
  margin: 0 auto;
  padding: 10px 4px;
}

header {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  text-align: center;
}

header h1 {
  font-size: 2.3rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: #fff;
  text-shadow: 2px 3px 12px #004d66, 0 2px 12px #0ff0fc;
}
header .email {
  font-size: 1.03rem;
  color: #fffde4;
  font-weight: 500;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
  text-shadow: 1px 1.5px 8px #0ff0fc;
}
nav {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  width: 100%;
}

nav a,
.nav-link {
  color: #eaffff;
  text-decoration: none;
  margin: 0 10px;         /* 控制导航项间距 */
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.4px;
  border-bottom: none;
  background: none;
  outline: none;
  transition: border-color 0.3s, color 0.2s;
  position: relative;
  white-space: nowrap;
}

nav a.active,
nav a:hover,
nav a:focus-visible {
  color: #fff8bb !important;
  border-bottom: 3px solid #fff8bb;
  background: none;
}

@media (max-width: 900px) {
  .container {
    width: 94vw;
    max-width: 98vw;
    min-width: 0;
    padding: 6px 1vw;
  }
  nav a,
  .nav-link {
    font-size: 0.96rem;
    margin: 0 5px;
  }
}


/* ---- 标题与区域间距精细调整 ---- */
main {
  margin-top: 10px;       /* 使主区域更紧凑 */
  padding-bottom: 60px;
}

/* 卡片整体样式和字体 */
.card {
  background: rgba(255,255,255,0.88);
  color: #222222;
  border-radius: 18px;
  padding: 18px 20px 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0,80,120,0.08);
  font-size: 1.08rem;
  text-align: left;
}

/* 二级标题精细样式 */
h2 {
  color: #00bcd4;
  margin-top: 0;          /* 去除标题上方多余空间 */
  margin-bottom: 10px;    /* 标题下方间距更紧凑 */
  border-bottom: 3px solid #00bcd4;
  padding-bottom: 3px;
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: 0.5px;
}

/* 无序列表及条目精细间距 */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 4px 0;     /* 列表与下方元素间距减少 */
}
ul li {
  margin-bottom: 6px;    /* 更紧凑的条目间距 */
  font-size: 1.08rem;    /* 和card字体保持一致 */
}
ul li strong {
  color: #007f7f;
  font-weight: 700;
}

a {
  color: #00695c;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: #00897b;
}
em {
  color: #888;
}

/* section锚点跳转留出header高度 */
section {
  scroll-margin-top: 180px;
  margin-top: 0;
  padding-top: 0;
}

/* 响应式优化（适配小屏） */
@media (max-width: 600px) {
  .container {
    padding: 6px 1vw;
  }
  .card {
    padding: 7px 3px 9px 3px;
    font-size: 0.99rem;
  }
  h2 {
    font-size: 1.03rem;
    margin-bottom: 6px;
  }
  nav a {
    font-size: 0.98rem;
    margin: 0 6px;
  }
}
.card ul,
.card li,
.card blockquote,
.card p {
  font-size: 1.08rem; 
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,188,212,0.6);
}

footer {
  height: 3.5vh;                         /* 占屏幕高度的 4% */
  padding: 0 12px;                     /* 左右内边距 */
  background: rgba(0, 51, 68, 0.80);   /* 半透明深蓝背景 */
  color: #00e5ff;
  font-weight: 500;
  font-size: 0.88rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0,188,212,0.5);
  z-index: 100;

  display: flex;                      /* 启用Flex布局 */
  justify-content: center;           /* 水平居中 */
  align-items: center;               /* 垂直居中 */
  backdrop-filter: blur(4px);        /* 可选：磨砂效果 */
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  background: #f7fbfc;
  border-radius: 9px;
  padding: 14px 18px 10px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 120, 140, 0.06);
  border-left: 4px solid #00bcd4;
  transition: box-shadow 0.2s;
}
.project-list li:hover {
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.13);
  border-left: 4px solid #0097a7;
}
.proj-title {
  font-size: 1.12rem;
  color: #0097a7;
  font-weight: 700;
  margin-bottom: 4px;
}
.proj-topic {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 4px;
  font-weight: 500;
}
.proj-meta {
  font-size: 0.98rem;
  color: #789;
  font-style: italic;
}

.fake-link {
  color: #00796b;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.fake-link:hover {
  color: #00897b;
  text-decoration: underline;
}
