/* ================================================================
   刘昊 — 项目作品集
   基于 LiuHao Brand Design System (liuhao-brand.css)
   ================================================================ */

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger */
.projects-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.projects-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.projects-grid .reveal:nth-child(4) { transition-delay: 180ms; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px 0;
  border-bottom: 1px solid var(--lh-border);
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--lh-font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--lh-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--lh-accent);
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-link {
  font-family: var(--lh-font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--lh-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--lh-radius-sm);
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--lh-accent);
  background: var(--lh-accent-soft);
}
.nav-toggle { display: none; }
.nav-overlay { display: none; }

/* ---- Hero ---- */
.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--lh-border);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-kicker {
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-accent);
  margin-bottom: 16px;
}
.hero-name {
  font-family: var(--lh-font-title);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--lh-text);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--lh-font-title);
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--lh-text-soft);
  margin-bottom: 16px;
  max-width: 560px;
}
.hero-lede {
  font-family: var(--lh-font-body);
  font-size: var(--lh-fs-body);
  color: var(--lh-muted);
  line-height: 1.8;
  max-width: 560px;
}
.hero-contact {
  margin-top: 16px;
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-sm);
  font-weight: 600;
  color: var(--lh-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius-sm);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hero-contact a:hover {
  color: var(--lh-accent);
  border-color: var(--lh-accent);
  background: var(--lh-accent-soft);
}
.hero-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hero-portrait {
  flex-shrink: 0;
  text-align: center;
}
.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lh-border);
  margin-bottom: 12px;
}
.portrait-note {
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-xs);
  color: var(--lh-muted);
  line-height: 1.6;
}
.portrait-note strong {
  display: block;
  font-size: 14px;
  color: var(--lh-text);
  margin-bottom: 2px;
}

/* ---- Section ---- */
.section {
  padding: 72px 0;
}
.section + .section {
  border-top: 1px solid var(--lh-border);
}
.section-header {
  margin-bottom: 40px;
}
.section-eyebrow {
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-accent);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--lh-font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--lh-text);
}
.section-desc {
  font-family: var(--lh-font-body);
  font-size: var(--lh-fs-body);
  color: var(--lh-muted);
  margin-top: 12px;
  max-width: 600px;
}

/* ---- Vision Section ---- */
.vision-content {
  max-width: var(--lh-w-read);
}
.vision-lede {
  font-family: var(--lh-font-body);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--lh-text-soft);
  margin-bottom: 32px;
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.vision-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.vision-num {
  font-family: var(--lh-font-title);
  font-size: 28px;
  font-weight: 900;
  color: var(--lh-accent-soft);
  line-height: 1;
  flex-shrink: 0;
}
.vision-item strong {
  display: block;
  font-family: var(--lh-font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--lh-text);
  margin-bottom: 4px;
}
.vision-item p {
  font-family: var(--lh-font-body);
  font-size: 13px;
  color: var(--lh-muted);
  line-height: 1.65;
  margin: 0;
}
.vision-strategy {
  padding: 18px 22px;
  background: var(--lh-accent-soft);
  border-left: 3px solid var(--lh-accent);
  border-radius: 0 var(--lh-radius-sm) var(--lh-radius-sm) 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.strategy-label {
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lh-accent);
  white-space: nowrap;
  padding-top: 1px;
}
.vision-strategy p {
  font-family: var(--lh-font-body);
  font-size: 14px;
  color: var(--lh-accent-deep);
  line-height: 1.7;
  margin: 0;
}

/* ---- Capability Cards ---- */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.capability-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto auto;
  gap: 8px 16px;
  padding: 24px;
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius-md);
  background: var(--lh-white);
  transition: box-shadow 0.2s;
}
.capability-card:hover {
  box-shadow: var(--lh-shadow-card);
}
.capability-icon {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lh-radius-sm);
  background: var(--lh-accent-soft);
  color: var(--lh-accent);
}
.capability-icon svg {
  width: 20px;
  height: 20px;
}
.capability-card h3 {
  font-family: var(--lh-font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--lh-text);
  line-height: 1.3;
}
.capability-card p {
  grid-column: 2;
  font-family: var(--lh-font-body);
  font-size: 14px;
  color: var(--lh-text-soft);
  line-height: 1.7;
  margin: 0;
}
.capability-evidence {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.capability-evidence span {
  font-family: var(--lh-font-title);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--lh-accent-soft);
  color: var(--lh-accent);
  border-radius: var(--lh-radius-sm);
  letter-spacing: 0.03em;
}

/* ---- Project Category Header ---- */
.project-category {
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--lh-border);
}
.project-category:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.category-title {
  font-family: var(--lh-font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--lh-text);
  margin-bottom: 4px;
}
.category-desc {
  font-family: var(--lh-font-body);
  font-size: 14px;
  color: var(--lh-muted);
  line-height: 1.6;
}

/* ---- Project Cards ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.project-card {
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius-md);
  background: var(--lh-white);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: var(--lh-shadow-card);
  transform: translateY(-2px);
}
.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.project-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lh-radius-sm);
  background: var(--lh-accent-soft);
  color: var(--lh-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.project-icon svg {
  width: 20px;
  height: 20px;
}
.project-title {
  font-family: var(--lh-font-title);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--lh-text);
}
.project-detail {
  margin-bottom: 12px;
  padding-left: 56px;
}
.project-detail:last-child {
  margin-bottom: 0;
}
.project-detail-label {
  font-family: var(--lh-font-title);
  font-size: var(--lh-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lh-accent);
  margin-bottom: 4px;
}
.project-detail-text {
  font-family: var(--lh-font-body);
  font-size: 14px;
  color: var(--lh-text-soft);
  line-height: 1.75;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-left: 56px;
}
.project-tags .tag {
  font-family: var(--lh-font-title);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--lh-accent-soft);
  color: var(--lh-accent);
  border-radius: var(--lh-radius-sm);
  letter-spacing: 0.03em;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--lh-border);
  text-align: center;
}
.footer-text {
  font-family: var(--lh-font-body);
  font-size: var(--lh-fs-sm);
  color: var(--lh-muted);
}
.footer-text a {
  color: var(--lh-accent);
  text-decoration: none;
}
.footer-text a:hover {
  text-decoration: underline;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
    align-items: flex-start;
  }
  .hero-portrait {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .hero-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }
  .hero-kicker { margin-bottom: 8px; }
  .hero-name { font-size: clamp(36px, 10vw, 56px); margin-bottom: 12px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 48px 0; }
  .project-card { padding: 20px; }
  .project-detail { padding-left: 0; }
  .project-tags { padding-left: 0; }
  .project-card-header { margin-bottom: 16px; }
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .capability-card {
    grid-template-columns: 32px 1fr;
    gap: 6px 12px;
    padding: 18px;
  }
  .capability-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 520px) {
  .project-detail-label { font-size: 11px; }
  .project-detail-text { font-size: 13px; }
  .section-title { font-size: 26px; }
}

/* ---- Print ---- */
@media print {
  @page { size: A4; margin: 12mm 16mm; }
  body { background: #fff; color: #000; }
  .nav, .nav-overlay, .hero-contact { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .section { padding: 10pt 0 !important; border: 0; }
  .project-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .project-card:hover { transform: none; box-shadow: none; }
}
