html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  color: #1f2937;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
}

.app-navbar {
  margin: 16px auto 0;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  max-width: 1200px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.app-shell {
  padding-top: 24px;
  padding-bottom: 32px;
}

.intro-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro-hero-card,
.intro-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #edf0f3;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.intro-hero-card {
  padding: 40px;
  display: grid;
  gap: 28px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.intro-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.intro-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.9;
}

.intro-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-item {
  padding: 20px;
  background: #f9fafb;
  border-radius: 22px;
  border: 1px solid #eef1f4;
}

.summary-label,
.contact-list span {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 0.88rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.intro-card {
  padding: 28px;
}

.intro-card-wide {
  grid-column: span 2;
}

.intro-card h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading p,
.tag-note,
.project-experience-head p,
.contact-item small {
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.section-caption {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  color: #94a3b8;
  font-size: 0.82rem;
  white-space: nowrap;
}

.intro-card p,
.timeline-item p,
.feature-list li,
.contact-list strong {
  color: #6b7280;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  color: #374151;
}

.project-experience-list {
  display: grid;
  gap: 18px;
}

.project-experience-card {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #edf1f5;
  border-radius: 24px;
}

.project-experience-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.project-experience-head h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.project-period {
  display: inline-flex;
  align-items: center;
  height: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.82rem;
  white-space: nowrap;
}

.project-meta,
.project-stack,
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-meta {
  margin-bottom: 14px;
}

.project-meta span,
.project-stack span,
.profile-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #e8edf2;
  background: #fff;
  color: #475569;
  font-size: 0.9rem;
}

.profile-tags span {
  background: #f8fafc;
}

.tag-note {
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: block;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #edf1f5;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: #dbe3eb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
}

.contact-item small {
  display: block;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fbfbfc;
  border: 1px solid #eef1f4;
  border-radius: 22px;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.footer {
  padding: 0 0 24px;
}

.footer .container {
  padding-top: 18px;
  color: #9ca3af;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-record {
  color: #6b7280;
  text-decoration: none;
}

.footer-record:hover {
  color: #374151;
}

@media (max-width: 991.98px) {
  .intro-summary-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-card-wide {
    grid-column: span 1;
  }

  .section-heading,
  .project-experience-head {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .app-navbar {
    margin: 12px;
    border-radius: 18px;
  }

  .app-shell {
    padding-top: 12px;
  }

  .intro-hero-card,
  .intro-card {
    border-radius: 22px;
  }

  .intro-hero-card {
    padding: 24px;
  }

  .intro-card {
    padding: 22px;
  }
}
