/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f7fb;
  font-family: 'Inter', sans-serif;
  color: #1e1e2a;
  line-height: 1.5;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.2s ease;
}

/* ===== 导航栏 ===== */
.navbar {
  background: #0b1120;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid #facc15;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}
.brand-name span {
  color: #facc15;
}
.brand-sub {
  color: #a0b3d9;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav-lang {
  display: flex;
  gap: 0.4rem;
  background: #1e293b;
  padding: 0.3rem 0.6rem;
  border-radius: 60px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #9aaec9;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.15s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.lang-btn.active {
  background: #facc15;
  color: #0b1120;
}
.lang-btn:hover:not(.active) {
  color: white;
  background: #2d3a50;
}

/* 英雄区 */
.hero {
  background: linear-gradient(145deg, #0b1120 0%, #1a2639 100%);
  padding: 1.8rem 2.5rem 1.8rem 2.5rem;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2d3a50;
}

.hero-left .subhead {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero-left .subhead i {
  color: #facc15;
}
.badge-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.badge i {
  color: #facc15;
  font-size: 0.7rem;
}

.hero-right {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 1.4rem;
  border-radius: 60px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}
.hero-right .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #e4e7f0;
}
.hero-right .contact-item i {
  color: #facc15;
  width: 1.2rem;
}
.hero-right .contact-item a {
  color: white;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.2);
  transition: 0.2s;
}
.hero-right .contact-item a:hover {
  color: #facc15;
  border-bottom-color: #facc15;
}

/* 主体网格 */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0;
  background: #fafcff;
}

/* 侧栏 */
.sidebar {
  background: #f0f3f8;
  padding: 2.2rem 2rem;
  border-right: 1px solid #e2e8f0;
}

.sidebar-section {
  margin-bottom: 2.5rem;
}
.sidebar-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #3f4a5e;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d0d9e6;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sidebar-section h3 i {
  color: #facc15;
  background: #1e293b;
  padding: 0.2rem 0.4rem;
  border-radius: 20px;
  font-size: 0.7rem;
}

.skill-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin-top: 0.2rem;
}
.skill-tag span {
  background: white;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  border: 1px solid #dce2ec;
}
.skill-tag span i {
  margin-right: 0.3rem;
  color: #facc15;
  font-size: 0.6rem;
}

.lang-item, .info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #dce2ec;
}
.lang-item:last-child, .info-item:last-child {
  border-bottom: none;
}
.lang-item span:first-child {
  font-weight: 500;
}
.lang-item span:last-child {
  color: #2c3a4e;
  background: #e4eaf3;
  padding: 0 0.8rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
}

.info-item i {
  width: 1.4rem;
  color: #facc15;
}

.profile-text {
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.6;
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.02);
  border: 1px solid #e8edf5;
}

/* 右侧内容 */
.content {
  padding: 2.2rem 2.5rem 2.5rem 2.5rem;
  background: white;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #1e293b;
  margin: 1.8rem 0 1.2rem 0;
  border-bottom: 3px solid #facc15;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.section-title:first-of-type {
  margin-top: 0;
}

.exp-item, .project-item {
  margin-bottom: 1.6rem;
}
.exp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.exp-header h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b1a2b;
}
.exp-header .sub {
  font-weight: 500;
  color: #4b5b70;
  font-size: 0.8rem;
  background: #edf2f9;
  padding: 0.1rem 0.7rem;
  border-radius: 40px;
}
.exp-desc {
  font-size: 0.9rem;
  color: #2c3a4e;
  padding-left: 0.2rem;
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
}
.exp-desc i {
  color: #facc15;
  width: 1.2rem;
  font-size: 0.7rem;
}

.project-item {
  background: #f8faff;
  padding: 0.8rem 1.2rem 1rem 1.2rem;
  border-radius: 1.2rem;
  border-left: 6px solid #facc15;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.project-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0b1a2b;
  margin-bottom: 0.2rem;
}
.project-item .tech {
  font-size: 0.7rem;
  color: #4b5b70;
  background: #e9eef6;
  padding: 0.1rem 0.7rem;
  border-radius: 40px;
  display: inline-block;
  margin: 0.2rem 0 0.2rem 0;
  font-weight: 500;
}
.project-item p {
  font-size: 0.88rem;
  color: #1f2b3b;
  margin-top: 0.2rem;
  line-height: 1.5;
}

.work-item {
  background: #fbfdff;
  padding: 0.6rem 0 0.6rem 1rem;
  border-radius: 0.8rem;
  border-bottom: 1px solid #e9eff6;
}
.work-item .work-role {
  font-weight: 700;
  color: #0b1a2b;
}
.work-item .work-meta {
  font-size: 0.75rem;
  color: #5b6d85;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.1rem;
}
.work-item .work-meta i {
  color: #facc15;
  margin-right: 0.2rem;
}

.award-badge {
  display: inline-block;
  background: #fef9e0;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #7f6b1a;
  border: 1px solid #f5e3a0;
}

footer {
  background: #f0f3f8;
  padding: 0.8rem 2.5rem;
  font-size: 0.8rem;
  color: #3f4a5e;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #dce2ec;
}
footer i {
  color: #facc15;
  margin: 0 0.3rem;
}

/* 响应式 */
@media screen and (max-width: 850px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #dce2ec;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem 1.5rem;
  }
  .hero-right {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    flex-wrap: wrap;
  }
  .content {
    padding: 1.8rem 1.5rem;
  }
  .navbar {
    padding: 0.8rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .nav-lang {
    align-self: flex-start;
  }
}
@media screen and (max-width: 480px) {
  body { padding: 0.8rem; }
  .brand-name { font-size: 1.5rem; }
  .hero-left .subhead { font-size: 0.9rem; }
}