/* Global theme for Jiahao Li homepage */
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --accent: #2563eb;
  --accent-2: #9333ea;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-2);
}



.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 64px;
  padding: 0 56px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04); */

  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
  0 8px 32px rgba(15, 23, 42, 0.08),
  inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
}

.top-nav .nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
}

.top-nav .nav-brand span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}


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

.top-nav .nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.top-nav .nav-links a:hover {
  color: var(--accent);
}


.top-nav .nav-links a.active {
  color: var(--accent);
}

.top-nav .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 64px) 72px;
}


.sidebar-brand {
  padding: 0 22px 14px;
  color: #e5e7eb;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.sidebar-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.4px;
}


.hero {
  margin-top: 20px;
  display: grid;
  position: relative;
  grid-template-columns: 120px 1.2fr 200px;
  align-items: center;
  gap: 26px;
  padding: 34px 36px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}



.hero img {
  border-radius: 12px;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.hero h1 {
  font-size: 28px;
  letter-spacing: 0.4px;
}

.hero h2 {
  font-size: 15px;
  color: var(--muted);
}

.quick-links {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.section {
  margin-top: 40px;
  background: var(--panel);
  padding: 26px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.section h2 {
  font-size: 20px;
  letter-spacing: 0.3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

table tr:nth-child(even) {
  background: #f8fafc;
}

table tr:hover {
  background: #eef2ff;
}

/* #gg {
  position: fixed;
  bottom: 0;
  background: #111827;
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
} */

/* #gg a {
  color: #e5e7eb;
} */

#gg {
  position: sticky;
  bottom: 0;

  padding: 14px 20px;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-top: 1px solid rgba(255, 255, 255, 0.5);

  text-align: center;
  font-size: 13px;
  color: var(--muted);
}



#gg a {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease;
}

#gg a:hover {
  color: var(--accent);
}





.spacer {
  height: 90px;
}

@media (max-width: 900px) {
  .top-nav {
    padding: 0 20px;
  }

  .top-nav .nav-links {
    gap: 16px;
  }

  .content {
    padding: 28px 20px 72px;
  }
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 6px;
  }

  .top-nav .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
}


.map-box {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);

  width: 180px;
  height: 180px;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  opacity: 0.9;
  pointer-events: none;
}

.map-box iframe,
.map-box canvas {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  display: block !important;
}


.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  background: #000;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 14px 16px 16px;
}

.video-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.video-info p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.video-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
