/* ===== style.css ===== */
/* 全局容器 & 布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

/* ----- 头部 ----- */
header {
  background: #0F52BA;
  color: #ffffff;
  padding: 60px 20px 70px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header p {
  font-size: 1.1rem;
  color: #e0ecff;
  letter-spacing: 2px;
  font-weight: 400;
  opacity: 0.95;
}

/* ----- 导航栏 ----- */
nav {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 50, 100, 0.06);
  padding: 0 20px;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid #e2edf7;
}

nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 25px rgba(0, 60, 120, 0.12);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.nav-placeholder {
  display: block;
  height: 0;
  transition: height 0.3s ease;
}

.nav-placeholder.active {
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  height: 64px;
}

nav a {
  color: #2c3e5c;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  background: transparent;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  margin: 0 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #0F52BA;
  transition: width 0.25s ease;
  border-radius: 4px;
}

nav a:hover {
  color: #0F52BA;
  background: transparent;
}

nav a:hover::after {
  width: 60%;
}

nav a.active-link {
  color: #0F52BA;
  font-weight: 600;
}

nav a.active-link::after {
  width: 60%;
  background: #0F52BA;
}

/* ----- 内容区块 ----- */
.section {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 28px rgba(0, 50, 100, 0.04);
  border: 1px solid #e3eef9;
  transition: box-shadow 0.25s ease;
}

.section:hover {
  box-shadow: 0 14px 32px rgba(0, 60, 120, 0.06);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce8f5;
  position: relative;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 70px;
  height: 2px;
  background: #0F52BA;
}

/* 网格卡片 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.info-card {
  background: #fafdff;
  border-radius: 16px;
  padding: 24px 22px;
  transition: all 0.3s ease;
  border: 1px solid #e0ecf7;
  box-shadow: 0 2px 10px rgba(0, 40, 80, 0.02);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #bdd3ea;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(0, 50, 100, 0.06);
}

.info-card h3 {
  color: #0F52BA;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.25rem;
  border-left: 3px solid #0F52BA;
  padding-left: 14px;
}

/* 列表样式 (经历) */
.section ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
  color: #2c3e5c;
}

.section ul li::before {
  content: "●";
  color: #0F52BA;
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 2px;
}

/* ----- 页脚 ----- */
footer {
  background: #0F52BA;
  color: #ffffff;
  text-align: center;
  padding: 26px 20px;
  margin-top: auto;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

footer p {
  color: #e0ecff;
  opacity: 0.9;
  font-weight: 500;
}

/* ----- 响应式 ----- */
@media (max-width: 768px) {
  header h1 { font-size: 2.3rem; letter-spacing: 3px; }
  header p { font-size: 0.95rem; }
  nav a { padding: 10px 14px; font-size: 0.85rem; }
  .section { padding: 24px 18px; }
  .section-title { font-size: 1.5rem; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-container { height: auto; padding: 8px 0; }
  .nav-placeholder.active { height: auto; min-height: 58px; }
}

@media (max-width: 480px) {
  header { padding: 40px 16px 60px; }
  header h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.35rem; }
}