@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --navy-dark: #0b1528;
  --navy-btn: #111e38;
  --text-title: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-subtle: #edf2f7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* Container Shell */
.app-frame {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}

/* Top Navbar */
.top-navbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
  padding: 8px 18px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-slogan {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: right;
}

.btn-connect {
  background: var(--navy-btn);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17, 30, 56, 0.2);
}

.btn-connect:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0 28px;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 36px;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-name-cn {
  font-size: 46px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-name-en {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-top: 4px;
  letter-spacing: -0.2px;
}

.hero-roles {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  margin: 18px 0 16px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-roles span {
  color: var(--primary);
  font-weight: 400;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-desc p + p {
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-pill-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.btn-pill-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-pill-outline {
  background: #ffffff;
  color: var(--primary) !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary-border);
  cursor: pointer;
}

.btn-pill-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1.5px);
}

.hero-right-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* Floating Metrics Card */
.metrics-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.6fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
}

.metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.metrics-quote {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
}

.quote-mark {
  font-size: 38px;
  line-height: 1;
  color: #93c5fd;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* Section Header */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  margin-top: 36px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.section-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 2px;
}

.section-num::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.section-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
}

.section-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.section-action:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.section-subtitle-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section 01: About Me */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: stretch;
}

.about-text-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-paragraphs {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.85;
}

.about-paragraphs p + p {
  margin-top: 12px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-pill {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.about-mountain-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  display: flex;
  background: #fff;
  height: 100%;
}

.about-mountain-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section 02: Experience */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.exp-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.exp-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.exp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.exp-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.exp-meta {
  display: flex;
  flex-direction: column;
}

.exp-company {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.2;
}

.exp-date {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.exp-role {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.exp-bullets li {
  position: relative;
  padding-left: 14px;
}

.exp-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--primary);
  font-size: 15px;
}

.exp-inspect-hint {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section 03: Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.project-thumb-wrap {
  width: 100%;
  height: 136px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.04);
}

.project-badge-live {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.project-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.project-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.proj-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.project-action {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Section 04: Skills */
.skills-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.skill-chip {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border-card);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.skill-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
  transform: translateY(-1.5px);
}

.skill-chip.code-prefix {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

/* Section 05: Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.contact-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.contact-box.clickable {
  cursor: pointer;
}

.contact-box.clickable:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.contact-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-main-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.contact-sub-text {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 42px;
  margin-top: 2px;
}

.contact-motto-card {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
}

.motto-svg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn.btn-github:hover {
  background: #181717;
  border-color: #181717;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(24, 23, 23, 0.25);
}

.social-btn.btn-csdn:hover {
  background: #fc5531;
  border-color: #fc5531;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(252, 85, 49, 0.25);
}

.social-btn.btn-xhs:hover {
  background: #ff2442;
  border-color: #ff2442;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 36, 66, 0.25);
}

.social-btn.btn-email:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.social-btn.btn-resume:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 21, 40, 0.25);
}

.contact-mountain-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  background: #ffffff;
  display: flex;
  height: 100%;
}

.contact-mountain-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Redesigned Footer */
.site-footer {
  margin-top: 56px;
  padding: 32px 0 20px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.footer-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-slogan {
  font-weight: 500;
  color: var(--text-main);
}

.footer-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chip-link {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

.footer-chip-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* Interactive Modal / Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
}

.modal-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--text-title);
}

.modal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 56px;
  box-sizing: border-box;
}

.modal-nav-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-tab {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: #f8fafc;
  border: 1px solid var(--border-card);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
  box-sizing: border-box;
}

.modal-tab:hover {
  color: var(--primary);
  background: #eff6ff;
  border-color: var(--primary-border);
}

.modal-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.modal-tab:hover {
  color: var(--primary);
}

.modal-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.75;
}

.modal-section-h {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-h:first-child {
  margin-top: 0;
}

.modal-section-h::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.modal-gallery-item {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #ffffff;
}

.modal-gallery-cap {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.modal-links-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.modal-link-card {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: var(--transition);
}

.modal-link-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.modal-link-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.4;
}

.modal-link-tag {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-dark);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .hero-right-visual {
    margin-top: 12px;
  }
  .metrics-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .metrics-quote {
    grid-column: span 3;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .experience-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-frame {
    padding: 12px 14px 40px;
  }
  .top-navbar {
    padding: 8px 14px;
  }
  .nav-links {
    display: none;
  }
  .nav-slogan {
    display: none;
  }
  .hero-card {
    grid-template-columns: 1fr;
    padding: 12px 0 20px;
    gap: 20px;
  }
  .hero-name-cn {
    font-size: 36px;
  }
  .hero-name-en {
    font-size: 24px;
  }
  .hero-roles {
    font-size: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-buttons .btn-pill-primary,
  .hero-buttons .btn-pill-outline {
    justify-content: center;
    width: 100%;
  }
  .hero-visual-img {
    width: 100%;
    max-width: 100%;
  }
  .metrics-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-quote {
    grid-column: span 2;
  }
  .experience-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .modal-gallery {
    grid-template-columns: 1fr;
  }
  .modal-links-list {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
