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;
}

.portfolio-page {
  position: relative;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.55;
}

.gradient-orb-primary {
  top: 20px;
  right: 40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.26) 0%, rgba(129, 140, 248, 0) 72%);
}

.gradient-orb-secondary {
  left: -30px;
  top: 360px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, rgba(244, 114, 182, 0) 72%);
}

.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;
}

.portfolio-hero-card {
  position: relative;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.portfolio-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(236, 72, 153, 0.04));
  pointer-events: none;
}

.portfolio-hero-copy,
.portfolio-highlight-card {
  position: relative;
  z-index: 1;
}

.portfolio-badge {
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  color: #5b5bd6;
}

.portfolio-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.portfolio-button-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.22);
}

.portfolio-button-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e8edf2;
  color: #374151;
}

.portfolio-highlight-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
  border: 1px solid #edf0f3;
}

.portfolio-panel-title {
  display: inline-block;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.portfolio-highlight-list {
  display: grid;
  gap: 14px;
}

.portfolio-highlight-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #edf1f5;
}

.portfolio-highlight-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #1f2937;
}

.portfolio-highlight-item span {
  color: #6b7280;
}

.portfolio-summary-grid {
  position: relative;
  z-index: 1;
}

.portfolio-anchor-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 237, 242, 0.95);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px);
}

.portfolio-anchor-title {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.portfolio-anchor-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.portfolio-anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e8edf2;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.portfolio-anchor-link:hover {
  transform: translateY(-2px);
  border-color: #dbe3eb;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.summary-gradient-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.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 {
  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,
.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,
.contact-item 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;
}

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

.showcase-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #edf1f5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.showcase-card-large {
  grid-column: span 2;
}

.showcase-cover {
  height: 190px;
}

.showcase-cover-purple {
  background: linear-gradient(135deg, #818cf8 0%, #c4b5fd 45%, #f5d0fe 100%);
}

.showcase-cover-blue {
  background: linear-gradient(135deg, #67e8f9 0%, #60a5fa 50%, #818cf8 100%);
}

.showcase-cover-pink {
  background: linear-gradient(135deg, #f9a8d4 0%, #fbcfe8 45%, #c4b5fd 100%);
}

.showcase-cover-emerald {
  background: linear-gradient(135deg, #6ee7b7 0%, #5eead4 45%, #93c5fd 100%);
}

.showcase-cover-amber {
  background: linear-gradient(135deg, #fcd34d 0%, #fb923c 45%, #f9a8d4 100%);
}

.showcase-content {
  padding: 22px;
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.showcase-type {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.82rem;
}

.showcase-content h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.showcase-content p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.85;
}

.showcase-detail-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.showcase-detail-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #edf1f5;
}

.showcase-detail-item span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.showcase-detail-item strong {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.75;
}

.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
  flex-wrap: wrap;
}

.showcase-footer span {
  color: #94a3b8;
  font-size: 0.88rem;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e6ebf1;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.showcase-link:hover {
  background: #ffffff;
  border-color: #dbe3eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.portfolio-bottom-grid {
  position: relative;
  z-index: 1;
}

.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-stack,
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.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;
}

.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;
}

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

.privacy-detail-grid-single {
  grid-template-columns: 1fr;
}

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

.privacy-block h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
}

.privacy-list {
  margin: 0;
  padding-left: 20px;
  color: #6b7280;
}

.privacy-list li {
  line-height: 1.85;
}

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

.privacy-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  color: #6b7280;
  line-height: 1.85;
}

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

  .portfolio-anchor-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-anchor-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .portfolio-hero-card,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

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

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

  .showcase-card-large {
    grid-column: span 1;
  }
}

@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;
  }

  .portfolio-anchor-panel {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .showcase-cover {
    height: 150px;
  }

  .gradient-orb-primary {
    right: -20px;
    width: 160px;
    height: 160px;
  }

  .gradient-orb-secondary {
    top: 520px;
    width: 180px;
    height: 180px;
  }
}
