@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --primary-red: rgb(235, 57, 18);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.64);
  --bg-main: #000000;
  --border-line: rgba(163, 163, 163, 0.12);
  --header-h: 72px;
  --home-pad: clamp(20px, 4vw, 48px);
}

.foxfolio-root {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: 32px;
}

.foxfolio-grid-lines {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  z-index: 0;
  pointer-events: none;
}

.foxfolio-grid-line {
  width: 1px;
  height: 100%;
  border-right: 1px dashed var(--border-line);
}

/* ========== 首页（第一屏）========== */
.home-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.home-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 28px var(--home-pad) 0;
  position: relative;
  z-index: 10;
}

.home-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.home-nav {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding-top: 2px;
}

.home-nav .rolling-link {
  font-size: 13px;
  font-weight: 400;
  padding: 2px 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-top-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding-top: 2px;
}

.home-cta {
  font-size: 14px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.mouse-trail-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.trail-image-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(148px, 20vw, 240px);
  aspect-ratio: 16 / 9;
  height: auto;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
}

.trail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.home-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.home-rings {
  position: absolute;
  width: min(72vmin, 640px);
  height: min(72vmin, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-rings span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.home-rings span:nth-child(1) {
  width: 100%;
  height: 100%;
}

.home-rings span:nth-child(2) {
  width: 78%;
  height: 78%;
}

.home-rings span:nth-child(3) {
  width: 56%;
  height: 56%;
}

.home-rings span:nth-child(4) {
  width: 34%;
  height: 34%;
}

.home-nebula-img {
  position: relative;
  width: min(72vmin, 720px);
  height: auto;
  max-height: min(52vmin, 480px);
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  opacity: 0.98;
  filter: contrast(1.05);
  pointer-events: none;
  user-select: none;
}

.home-title-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--home-pad);
  z-index: 5;
  pointer-events: none;
}

.home-title-word {
  font-size: clamp(3.5rem, 11.5vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  pointer-events: auto;
}

.home-title-word--left {
  color: var(--text-main);
  align-self: center;
  margin-right: auto;
  max-width: 42%;
}

.home-title-word--right {
  color: var(--primary-red);
  align-self: center;
  margin-left: auto;
  max-width: 42%;
  text-align: right;
}

.home-title-word.rolling-link .letter::after {
  color: var(--primary-red);
}

.home-title-word--right.rolling-link .letter::after {
  color: var(--text-main);
}

.home-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 24px;
  padding: 0 var(--home-pad) clamp(28px, 5vw, 48px);
  position: relative;
  z-index: 10;
}

.home-intro {
  margin: 0 0 10px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.home-tagline {
  margin: 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-date {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-main);
  letter-spacing: -0.02em;
  padding-bottom: 4px;
}

.home-scroll-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s, border-color 0.3s;
}

.home-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.foxfolio-time-badge {
  background-color: var(--primary-red);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.foxfolio-timezone {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.foxfolio-nav {
  display: none;
  gap: clamp(16px, 3vw, 32px);
}

.foxfolio-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* Rolling text hover（Foxfolio 导航字效） */
.rolling-link {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  display: inline-flex;
  vertical-align: bottom;
  line-height: 1.25;
}

.rolling-link .letter {
  display: inline-block;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.rolling-link .letter::after {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--primary-red);
}

.rolling-link:hover .letter {
  transform: translateY(-100%);
}

.rolling-link--muted {
  color: var(--text-muted);
}

.rolling-link--accent {
  color: var(--primary-red);
}

.rolling-link--accent .letter::after {
  color: var(--text-main);
}

.foxfolio-nav .rolling-link {
  font-size: 14px;
  font-weight: 400;
  padding: 4px 2px;
}

.foxfolio-btn-start.rolling-link,
.foxfolio-btn-contact.rolling-link {
  font-size: 14px;
  font-weight: 400;
}

.btn-visit.rolling-link {
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--border-line);
  padding: 14px 28px;
  border-radius: 40px;
  width: fit-content;
  transition: background 0.3s, border-color 0.3s;
}

.btn-visit.rolling-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .rolling-link .letter {
    transition: none;
  }

  .rolling-link:hover .letter {
    transform: none;
  }
}

.foxfolio-btn-contact {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.foxfolio-btn-contact:hover {
  color: var(--text-main);
}

.foxfolio-btn-start {
  color: var(--primary-red);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.foxfolio-btn-start:hover {
  opacity: 0.8;
}

.foxfolio-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.foxfolio-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-main);
}

.foxfolio-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 88px clamp(20px, 4vw, 48px) 1.25rem;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px dashed var(--border-line);
  z-index: 200;
  flex-direction: column;
  gap: 0.75rem;
}

.foxfolio-mobile-nav.is-open {
  display: flex;
}

.foxfolio-mobile-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-line);
}

@media (min-width: 900px) {
  .home-nav {
    display: flex;
  }

  .home-top-right .home-cta {
    display: inline-flex;
  }

  .foxfolio-menu-btn {
    display: none;
  }
}

@media (max-width: 899px) {
  .home-top {
    grid-template-columns: 1fr auto;
  }

  .home-nav {
    display: none;
  }

  .home-top-right .home-cta {
    display: none;
  }

  .home-title-row {
    flex-direction: column;
    justify-content: center;
    gap: 0.15em;
    padding-top: 12vh;
  }

  .home-title-word--left,
  .home-title-word--right {
    max-width: 100%;
    margin: 0;
    text-align: center;
  }

  .home-bottom {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .home-bottom-left {
    grid-column: 1 / -1;
  }

  .home-date {
    justify-self: start;
  }

  .home-scroll-btn {
    justify-self: end;
  }
}

@media (max-width: 480px) {
  .foxfolio-timezone {
    display: none;
  }
}

/* ========== 实习项目 ========== */
.internship-section {
  padding-top: clamp(80px, 12vw, 140px);
}

.internship-head {
  margin-bottom: clamp(48px, 8vw, 80px);
}

.internship-head__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.05;
}

.internship-head__index {
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text-muted);
  vertical-align: super;
  margin-left: 0.15em;
  letter-spacing: 0;
}

.internship-project__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}

@media (min-width: 900px) {
  .internship-project__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

.internship-project__media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  background: #0a0a0a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.internship-pages-viewport {
  aspect-ratio: 16 / 10;
  cursor: default;
}

.embed-pages-scroller {
  display: flex;
  flex-direction: column;
}

.embed-page {
  flex-shrink: 0;
  overflow: hidden;
  background: #050505;
}

.embed-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.internship-project__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.internship-project__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: clamp(0px, 2vw, 24px);
}

.internship-project__content .work-number {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.internship-project__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.internship-project__role {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.internship-project__desc {
  margin: 0 0 40px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  letter-spacing: -0.01em;
}

.internship-project__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px dashed var(--border-line);
}

.internship-project__meta .meta-value + .meta-value {
  margin-top: 6px;
}

.internship-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  padding-top: clamp(40px, 6vw, 56px);
  border-top: 1px dashed var(--border-line);
}

@media (min-width: 768px) {
  .internship-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.internship-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.internship-stat__value {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary-red);
}

.internship-stat__label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

/* ========== 全局区块 ========== */
.section {
  padding: 120px clamp(20px, 4vw, 48px);
  border-bottom: 1px dashed var(--border-line);
  position: relative;
  z-index: 1;
  background: var(--bg-main);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-main);
}

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

/* ========== 展映集 Portfolio ========== */
.portfolio-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.portfolio-slider.is-dragging {
  cursor: grabbing;
}

.portfolio-slider::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  flex: 0 0 35vw;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.portfolio-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border-line);
}

.portfolio-card--hover-cycle .portfolio-img-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

.portfolio-card--hover-cycle .portfolio-cycle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: none;
  pointer-events: none;
}

.portfolio-card--hover-cycle .portfolio-cycle-img.is-active {
  opacity: 1;
  z-index: 1;
}

.portfolio-card--hover-cycle .portfolio-cycle-img.is-missing {
  display: none;
}

.portfolio-card--hover-cycle:hover .portfolio-img-wrapper {
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 嵌入网页：悬停时自动向下滚动预览 */
.portfolio-embed-viewport {
  position: relative;
  background: #0a0a0a;
}

.portfolio-embed__scroller {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.portfolio-embed__scroller iframe {
  display: block;
  width: 1280px;
  height: 5800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #050505;
}

.portfolio-embed-hint {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.portfolio-card--embed:hover .portfolio-embed-hint {
  opacity: 0;
}

.portfolio-card--embed:hover .portfolio-img-wrapper {
  transform: none;
}

/* Demo iframe 加载失败兜底（同域名 /demos/ 或海外备用链） */
.demo-embed-wrap {
  position: relative;
}

.demo-embed-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    rgba(30, 30, 40, 0.95),
    rgba(5, 5, 8, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-embed-fallback[hidden] {
  display: none !important;
}

.demo-embed-fallback__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.demo-embed-fallback__hint {
  margin: 0;
  max-width: 22em;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.demo-embed-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.demo-embed-fallback__btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-embed-fallback__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.demo-embed-fallback__btn--muted {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}

.work-agent-phone__screen,
.work-joblens-browser__body {
  position: relative;
}

/* 移动端项目：横版卡片 + 居中手机框 */
.portfolio-img-wrapper--mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse 80% 70% at 50% 55%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}

.portfolio-phone {
  position: relative;
  width: clamp(108px, 14vw, 156px);
  aspect-ratio: 9 / 19.5;
  padding: 7px;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card--mobile:hover .portfolio-phone {
  transform: scale(1.04);
}

.portfolio-phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 5px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.portfolio-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #050505;
}

.portfolio-card--mobile .portfolio-cycle-img {
  object-fit: cover;
  object-position: top center;
}

.portfolio-mobile-tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:not(.portfolio-card--hover-cycle):hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-title {
  color: var(--primary-red);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* 访客：VPN / 网络说明（项目经历区） */
.demo-access-notice {
  max-width: 52rem;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 58, 0, 0.22);
  background: rgba(255, 58, 0, 0.06);
}

.demo-access-notice__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-red, #ff3a00);
}

.demo-access-notice__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.demo-access-notice__body strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.demo-access-notice__meta {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.works-list {
  display: flex;
  flex-direction: column;
}

/* ========== 项目经历 · UniPass 左右分栏 ========== */
.work-feature {
  margin-bottom: clamp(140px, 16vw, 220px);
}

.work-feature__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 960px) {
  .work-feature__layout {
    grid-template-columns: 1fr;
  }
}

.work-feature__head {
  padding: 0;
  max-width: 440px;
}

.work-feature__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.work-feature__year {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-feature__title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--text-main);
}

.work-feature__tagline {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary-red);
}

.work-feature__lead {
  margin: 0 0 clamp(28px, 4vw, 36px);
  max-width: 640px;
  font-size: clamp(15px, 1.75vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.01em;
}

.work-feature__pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(28px, 4vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-feature__pillar {
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-feature__pillar:last-child {
  border-right: none;
}

.work-feature__pillar strong {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #9e7dff;
}

.work-feature__pillar span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .work-feature__pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-feature__pillar:nth-child(2n) {
    border-right: none;
  }

  .work-feature__pillar:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.work-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(32px, 4vw, 40px);
  padding: 0;
  list-style: none;
}

.work-feature__tags li {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.03);
}

.work-feature__actions {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.work-demo-network-hint {
  margin: 10px 0 0;
  max-width: 28rem;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.work-feature__meta {
  padding-top: clamp(32px, 4vw, 40px);
  border-top: 1px dashed var(--border-line);
  max-width: 720px;
}

.work-feature__stage {
  position: relative;
  width: 100%;
  padding: clamp(8px, 1vw, 16px) 0;
  background: transparent;
}

@media (min-width: 961px) {
  .work-feature__stage {
    position: sticky;
    top: calc(var(--header-h) + 12px);
  }
}

/* Mac 风格笔记本蒙版 */
.work-laptop {
  width: 100%;
  filter: drop-shadow(0 48px 80px rgba(0, 0, 0, 0.55));
}

.work-laptop__screen {
  padding: 10px 10px 8px;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 8%, #0d0d0d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.work-laptop__bezel-top {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.work-laptop__camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

.work-laptop__hinge {
  height: 4px;
  margin: 0 6%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent
  );
}

.work-laptop__base {
  height: clamp(12px, 1.6vw, 18px);
  margin: 0 4%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #2e2e2e 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.work-feature__viewport {
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
  min-height: clamp(560px, 78vh, 960px);
  border: none;
  border-radius: 6px;
  background: #050505;
}

.work-feature__hint {
  bottom: clamp(14px, 2vw, 22px);
  font-size: 11px;
}

.work-slideshow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.work-slideshow.is-interactive {
  cursor: pointer;
}

.work-slideshow.is-paused .work-slideshow__counter {
  border-color: rgba(235, 57, 18, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.work-slideshow__stage {
  position: absolute;
  inset: 0;
  background: #080808;
}

.work-slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  will-change: opacity;
}

.work-slideshow__img.is-active {
  opacity: 1;
  z-index: 1;
}

.work-slideshow__counter {
  position: absolute;
  z-index: 3;
  top: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.portfolio-card--embed:hover .portfolio-img-wrapper,
.work-feature__viewport:hover {
  transform: none;
}

/* ========== 项目经历 · 002 本地出行 Agent ========== */
.work-agent {
  margin-bottom: clamp(140px, 16vw, 200px);
}

.work-agent__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

@media (max-width: 960px) {
  .work-agent__layout {
    grid-template-columns: 1fr;
  }

  .work-agent__device-col {
    order: -1;
  }
}

.work-agent__device-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.work-agent__glow {
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(
    ellipse 70% 65% at 50% 48%,
    rgba(52, 211, 153, 0.16) 0%,
    rgba(16, 185, 129, 0.05) 40%,
    transparent 72%
  );
  pointer-events: none;
}

.work-agent-phone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(460px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 17;
  height: auto;
  padding: 14px;
  border-radius: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, #222 0%, #0a0a0a 55%, #050505 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

@media (min-width: 961px) {
  .work-agent-phone {
    max-width: min(480px, 100%);
    margin: 0 auto;
  }
}

.work-agent-phone__chrome {
  display: flex;
  gap: 6px;
  padding: 4px 6px 10px;
}

.work-agent-phone__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.work-agent-phone__dot:first-child {
  background: rgba(52, 211, 153, 0.75);
}

.work-agent-phone__screen {
  flex: 1;
  min-height: 0;
  margin-top: 4px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.work-agent-live {
  display: flex;
  flex-direction: column;
}

.work-agent-live__frame {
  flex: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 19.5;
  min-height: 0;
  border: 0;
  display: block;
  background: #050505;
}

@media (min-width: 961px) {
  .work-agent-live__frame {
    min-height: 0;
  }
}

.work-agent__hint {
  position: relative;
  z-index: 1;
  margin: clamp(16px, 2vw, 20px) 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(52, 211, 153, 0.75);
  text-align: center;
}

.work-agent__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  max-width: 480px;
  padding-top: clamp(8px, 2vw, 24px);
}

@media (min-width: 961px) {
  .work-agent__copy {
    max-width: none;
    padding-top: clamp(24px, 4vw, 48px);
  }
}

.work-agent__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text-main);
}

.work-agent__kicker {
  margin: -8px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(52, 211, 153, 0.95);
  letter-spacing: -0.02em;
}

.work-agent__desc {
  margin: 0;
  max-width: none;
}

.work-agent__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-agent__highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.work-agent__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-red);
}

.work-agent__meta {
  padding-top: clamp(28px, 4vw, 36px);
  margin-top: 8px;
  border-top: 1px dashed var(--border-line);
}

/* ========== 项目经历 · 003 joblens ========== */
.work-joblens {
  margin-top: clamp(80px, 10vw, 120px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px dashed var(--border-line);
}

.work-joblens__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

@media (max-width: 960px) {
  .work-joblens__layout {
    grid-template-columns: 1fr;
  }

  .work-joblens__preview {
    order: -1;
  }
}

.work-joblens__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 26px);
  max-width: 560px;
  padding-top: clamp(8px, 2vw, 20px);
}

@media (min-width: 961px) {
  .work-joblens__copy {
    max-width: none;
    padding-top: clamp(20px, 3vw, 40px);
  }
}

.work-joblens__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.work-joblens__badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.work-joblens__title {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.work-joblens__kicker {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: rgba(147, 197, 253, 0.95);
  letter-spacing: -0.02em;
}

.work-joblens__desc {
  margin: 0;
  max-width: none;
}

.work-joblens__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-joblens__features li {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.02);
}

.work-joblens__features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.work-joblens__features span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.work-joblens__meta {
  padding-top: clamp(24px, 3vw, 32px);
  margin-top: 4px;
  border-top: 1px dashed var(--border-line);
}

.work-joblens__preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: start;
}

@media (min-width: 961px) {
  .work-joblens__preview {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}

.work-joblens-browser {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #2a2a2a 0%, #101010 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.work-joblens-browser__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.work-joblens-browser__dots {
  display: flex;
  gap: 6px;
}

.work-joblens-browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.work-joblens-browser__dots span:nth-child(1) {
  background: #ff5f56;
}

.work-joblens-browser__dots span:nth-child(2) {
  background: #ffbd2e;
}

.work-joblens-browser__dots span:nth-child(3) {
  background: #27c93f;
}

.work-joblens-browser__url {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-joblens-browser__tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
}

.work-joblens-browser__body {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #050505;
}

.work-joblens-browser__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #050505;
}

.work-joblens__hint {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
  color: rgba(147, 197, 253, 0.7);
  letter-spacing: 0.04em;
}

/* ========== 项目经历 Works ========== */
.work-item {
  display: flex;
  gap: clamp(32px, 8vw, 80px);
  margin-bottom: 160px;
  align-items: center;
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-item--reverse {
  flex-direction: row-reverse;
}

.work-img-wrapper {
  flex: 1.2;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-line);
}

.work-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-img-wrapper:hover .work-img {
  transform: scale(1.05);
}

.work-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-number {
  color: var(--primary-red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.work-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1.1;
}

.work-desc {
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  max-width: 480px;
}

.btn-visit:not(.rolling-link) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  border: 1px solid var(--border-line);
  padding: 14px 28px;
  border-radius: 40px;
  width: fit-content;
  transition: background 0.3s, border-color 0.3s;
}

.btn-visit:not(.rolling-link):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 64px);
  padding-top: 40px;
  border-top: 1px dashed var(--border-line);
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.meta-value {
  font-size: 15px;
  color: var(--text-main);
}

@media (max-width: 900px) {
  .section {
    padding: 80px clamp(20px, 4vw, 32px);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .work-item,
  .work-item--reverse {
    flex-direction: column;
    margin-bottom: 100px;
    gap: 32px;
  }

  .portfolio-card {
    flex: 0 0 78vw;
  }
}

/* ========== 成长路径 Growth Path ========== */
.growth-path-section {
  padding-top: clamp(96px, 13vw, 160px);
  padding-bottom: clamp(96px, 13vw, 160px);
}

.growth-path-subtitle {
  margin: 0 0 clamp(36px, 5vw, 52px);
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.growth-path-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  padding-top: 28px;
}

.growth-path-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 1px;
  background: rgba(158, 125, 255, 0.35);
}

.growth-path-item {
  position: relative;
}

.growth-path-item::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9e7dff;
  box-shadow: 0 0 0 6px rgba(158, 125, 255, 0.16);
}

.growth-path-year {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  margin: 0 0 18px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d9ccff;
  border: 1px solid rgba(158, 125, 255, 0.45);
  background: rgba(112, 67, 255, 0.12);
}

.growth-path-card {
  min-height: 170px;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.growth-path-card h3 {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.growth-path-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1180px) {
  .growth-path-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-path-track::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .growth-path-track {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }

  .growth-path-item::before {
    left: 10px;
    top: 12px;
  }

  .growth-path-year {
    margin-left: 28px;
  }

  .growth-path-card {
    min-height: 0;
  }
}

/* ========== 核心能力：左右交错 + 阶梯入场 ========== */
.cap-list {
  --cap-spring: cubic-bezier(0.22, 1.12, 0.36, 1);
  --cap-duration: 1.05s;
  --cap-line-duration: 1.15s;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.cap-item {
  --cap-stagger: calc(var(--cap-delay, 0) * 0.1s);
  width: 100%;
  max-width: min(52%, 40rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.cap-item--left {
  align-self: flex-start;
}

.cap-item--right {
  align-self: flex-end;
}

.cap-list:not(.is-inview) .cap-item__line {
  transform: scaleX(0);
}

.cap-item__line {
  display: block;
  height: 1px;
  width: 100%;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.1);
  transform-origin: left center;
  will-change: transform;
}

.cap-item__reveal {
  overflow: hidden;
}

.cap-list:not(.is-inview) .cap-item__inner {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}

.cap-item__inner {
  will-change: transform, opacity;
}

.cap-list.is-reset .cap-item__line,
.cap-list.is-reset .cap-item__inner {
  transition: none !important;
}

.cap-item__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.cap-item__desc {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.cap-list.is-inview .cap-item__line {
  transform: scaleX(1);
  transition: transform var(--cap-line-duration) var(--cap-spring);
  transition-delay: var(--cap-stagger);
}

.cap-list.is-inview .cap-item__inner {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform var(--cap-duration) var(--cap-spring),
    opacity 0.65s ease;
  transition-delay: var(--cap-stagger);
}

@media (max-width: 768px) {
  .cap-item {
    max-width: 100%;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap-item__line,
  .cap-item__inner {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ========== About Me: Tool Stack 单行滚动标签 ========== */
.tool-marquee {
  position: relative;
  display: flex;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.tool-marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  min-width: max-content;
  animation: tool-marquee-scroll 24s linear infinite;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

@keyframes tool-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 12px));
  }
}

@media (max-width: 768px) {
  .tool-pill {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ========== Hardware Hub ========== */
.hardware-hub {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hardware-hub__head {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 40px);
}

.hardware-hub__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hardware-hub__title {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  font-weight: 500;
}

.hardware-hub__desc {
  margin: 14px 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.hw-project {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Hardware: Aura 专题区 ========== */

.hardware-aura-hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hardware-aura-hero__bg-wrap {
  position: absolute;
  inset: 0;
}

.hardware-aura-hero__bg {
  position: absolute;
  inset: -10% 0 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  opacity: 0;
  transition: opacity 1s ease;
}

.hardware-aura-hero__bg.is-active {
  opacity: 1;
}

.hardware-aura-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.82)),
    radial-gradient(60% 45% at 55% 55%, rgba(255, 120, 40, 0.26), rgba(0, 0, 0, 0));
}

.hardware-aura-hero__content {
  position: relative;
  z-index: 1;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(20px, 4vw, 48px);
  max-width: 920px;
}

.hardware-aura-hero__index {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.hardware-aura-hero__title {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.hardware-aura-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.hardware-aura-hero__tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.36);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.hardware-aura__container {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) clamp(20px, 4vw, 48px);
}

.hardware-aura-section-index {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hardware-aura-insight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  margin-bottom: clamp(52px, 8vw, 88px);
}

.hardware-aura-insight__copy h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hardware-aura-insight__copy .aura-reveal-item:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.hardware-aura-insight__media {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  min-height: 320px;
}

.hardware-aura-insight__media img,
.hardware-aura-card img,
.hardware-aura-proto__figure img,
.hardware-aura-hero__bg {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.hardware-aura-insight__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

[data-aura-reveal] .aura-reveal-item {
  opacity: 0;
  transform: translateY(28px);
}

[data-aura-reveal].is-inview .aura-reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.62s ease,
    transform 0.72s cubic-bezier(0.2, 0.9, 0.25, 1);
  transition-delay: var(--aura-delay, 0s);
}

.hardware-aura-arch {
  margin-bottom: clamp(52px, 8vw, 88px);
}

.hardware-aura-arch__head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.hardware-aura-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  align-items: start;
}

.hardware-aura-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  transition: opacity 0.28s ease, border-color 0.3s ease, transform 0.32s ease;
  transform-origin: center center;
  transform: scale(1);
  will-change: transform;
}

.hardware-aura-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.hardware-aura-card p {
  margin: 8px 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.hardware-aura-card img {
  width: 100%;
  border-radius: 10px;
  min-height: 170px;
  object-fit: cover;
}

.aura-media-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
}

.aura-media-carousel--wide {
  aspect-ratio: 2 / 1;
  max-height: min(48vh, 460px);
}

.aura-media-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.aura-media-carousel img.is-active {
  opacity: 1;
  z-index: 1;
}

.aura-media-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 90%;
  transform: translateX(-50%);
}

.aura-media-carousel__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}

.aura-media-carousel__dots span.is-active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.15);
}

.hardware-aura-card--wide {
  grid-column: 1 / 2;
}

.hardware-aura-bento:hover .hardware-aura-card {
  opacity: 0.3;
  transform: scale(0.985);
}

.hardware-aura-bento .hardware-aura-card:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.04) translateY(-4px);
  z-index: 2;
}

.hardware-aura-card--expandable {
  cursor: pointer;
}

.hardware-aura-card__hint {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}

.hardware-aura-card--expandable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

/* Aura 架构区全屏灯箱 */
.aura-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.aura-lightbox[hidden] {
  display: none !important;
}

.aura-lightbox.is-open {
  display: flex;
}

.aura-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.aura-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1280px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: aura-lightbox-in 0.32s ease;
}

@keyframes aura-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.aura-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aura-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.aura-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 56px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aura-lightbox__head h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}

.aura-lightbox__counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.aura-lightbox__stage {
  position: relative;
  flex: 1;
  min-height: min(72vh, 720px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 18px;
}

.aura-lightbox__figure {
  margin: 0;
  height: min(72vh, 720px);
  display: grid;
  place-items: center;
}

.aura-lightbox__figure img {
  max-width: 100%;
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.aura-lightbox__nav {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.aura-lightbox__stage:hover .aura-lightbox__nav,
.aura-lightbox__stage:focus-within .aura-lightbox__nav {
  opacity: 1;
  pointer-events: auto;
}

.aura-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.aura-lightbox__nav:disabled {
  opacity: 0.25 !important;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 768px) {
  .aura-lightbox__nav {
    opacity: 0.92;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .aura-lightbox__stage {
    min-height: 52vh;
    grid-template-columns: auto 1fr auto;
    padding: 8px 4px 14px;
  }

  .aura-lightbox__figure {
    height: 52vh;
  }

  .aura-lightbox__figure img {
    max-height: 52vh;
  }
}

.hardware-aura-proto--compact {
  padding-bottom: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hardware-aura-proto__layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 8px;
}

.hardware-aura-proto--compact .hardware-aura-proto__head {
  flex: 1 1 280px;
  max-width: 36rem;
}

.hardware-aura-proto--compact .hardware-aura-proto__head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.hardware-aura-proto--compact .hardware-aura-section-index {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.hardware-aura-proto__lead {
  margin: 10px 0 0;
  max-width: 32rem;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
}

.hardware-aura-proto__figure {
  flex: 0 1 min(380px, 42vw);
  margin: 0;
  opacity: 0.88;
}

.hardware-aura-proto__figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
}

.hardware-aura-proto__figure figcaption {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: right;
}

@media (max-width: 1024px) {
  .hardware-aura-insight {
    grid-template-columns: 1fr;
  }

  .hardware-aura-bento {
    grid-template-columns: 1fr 1fr;
  }

  .hardware-aura-card--wide {
    grid-column: 1 / -1;
  }

  .hardware-aura-proto__layout {
    flex-direction: column;
  }

  .hardware-aura-proto__figure {
    flex-basis: auto;
    max-width: min(360px, 100%);
    align-self: flex-end;
  }
}

@media (max-width: 680px) {
  .hardware-aura-hero {
    min-height: 72vh;
  }

  .hardware-aura-hero__content {
    min-height: 72vh;
  }

  .hardware-aura-bento {
    grid-template-columns: 1fr;
  }

  .hardware-aura-proto__figure {
    align-self: stretch;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hardware-aura-hero__bg {
    transform: none !important;
  }

  [data-aura-reveal] .aura-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== 项目二 & 项目三：统一左右分栏 ========== */
.hw-project--bond {
  background: #1c1917;
  color: #f5f0eb;
}

.hw-project--safety {
  background: #080808;
  color: #f0f0f0;
}

.hw-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hw-project--bond .hw-row + .hw-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hw-project--safety .hw-row + .hw-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-row--flip .hw-row__media {
  order: -1;
}

/* 首屏：16:9 图 + 入场动效 */
.hw-row--hero {
  max-width: 1200px;
  min-height: auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1.56fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hw-row--hero .hw-row__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  padding: 0;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hw-row--hero .hw-row__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
}

/* 浅色背景媒体区（产品渲染图）用 contain 避免裁切主体 */
.hw-row--hero .hw-row__media--light {
  background: #ebe6df;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.hw-row--hero .hw-row__media--light img {
  object-fit: contain;
  object-position: center;
}

.hw-row--hero[data-hw-reveal] .hw-row__copy > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hw-row--hero[data-hw-reveal] .hw-row__copy > *:nth-child(1) { transition-delay: 0.05s; }
.hw-row--hero[data-hw-reveal] .hw-row__copy > *:nth-child(2) { transition-delay: 0.12s; }
.hw-row--hero[data-hw-reveal] .hw-row__copy > *:nth-child(3) { transition-delay: 0.19s; }
.hw-row--hero[data-hw-reveal] .hw-row__copy > *:nth-child(4) { transition-delay: 0.26s; }
.hw-row--hero[data-hw-reveal] .hw-row__copy > *:nth-child(5) { transition-delay: 0.33s; }

.hw-row--hero[data-hw-reveal] .hw-row__media {
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.hw-row--hero[data-hw-reveal].is-inview .hw-row__copy > *,
.hw-row--hero[data-hw-reveal].is-inview .hw-row__media {
  opacity: 1;
  transform: none;
}

.hw-row--hero.is-inview .hw-row__media:not(.hw-row__media--light) img {
  animation: hw-hero-float 5.5s ease-in-out infinite;
}

.hw-row--hero.is-inview .hw-row__media--light img {
  animation: none;
}

.hw-row--hero.is-inview .hw-row__tags span {
  animation: hw-tag-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hw-row--hero.is-inview .hw-row__tags span:nth-child(1) { animation-delay: 0.45s; }
.hw-row--hero.is-inview .hw-row__tags span:nth-child(2) { animation-delay: 0.52s; }
.hw-row--hero.is-inview .hw-row__tags span:nth-child(3) { animation-delay: 0.59s; }

@keyframes hw-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hw-tag-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hw-row__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hw-project--bond .hw-row__eyebrow {
  color: rgba(255, 220, 190, 0.55);
}

.hw-row__title {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hw-row__heading {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hw-row__lead {
  margin: 14px 0 0;
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
}

.hw-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hw-row__tags span {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hw-project--bond .hw-row__tags span {
  border-color: rgba(255, 180, 100, 0.35);
  background: rgba(255, 140, 60, 0.1);
  color: rgba(255, 230, 200, 0.95);
}

.hw-row__bullets {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-row__bullets li {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

.hw-row__bullets strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hw-row__metrics {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-metric {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hw-metric__value {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.hw-metric__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 20rem;
}

.hw-row__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  line-height: 0;
}

.hw-row__media--light {
  background: #ebe6df;
  border-color: rgba(0, 0, 0, 0.08);
}

.hw-row__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hw-row__media--zoom {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hw-row__media--zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.hw-row__media--zoom:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.hw-row__zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hw-row__media--light .hw-row__zoom-hint {
  color: rgba(30, 30, 30, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.hw-row__media--zoom:hover .hw-row__zoom-hint,
.hw-row__media--zoom:focus-visible .hw-row__zoom-hint {
  opacity: 1;
}

/* 项目二/三 图片放大灯箱 */
.hw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}

.hw-lightbox[hidden] {
  display: none !important;
}

.hw-lightbox.is-open {
  display: flex;
}

.hw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.hw-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: hw-lightbox-in 0.3s ease;
}

@keyframes hw-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hw-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.hw-lightbox__figure {
  margin: 0;
  width: 100%;
  max-height: calc(94vh - 48px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.hw-lightbox__figure img {
  max-width: 100%;
  max-height: calc(94vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.hw-lightbox__caption {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 960px) {
  .hw-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 28px);
  }

  .hw-row--hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 28px);
  }

  .hw-row--hero .hw-row__media {
    order: -1;
  }

  .hw-row--hero .hw-row__media img {
    max-height: none;
  }

  .hw-row--hero[data-hw-reveal] .hw-row__media {
    transform: translateY(20px) scale(0.97);
  }

  .hw-row--flip .hw-row__media {
    order: 0;
  }

  .hw-row__lead {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-row--hero[data-hw-reveal] .hw-row__copy > *,
  .hw-row--hero[data-hw-reveal] .hw-row__media {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hw-row--hero.is-inview .hw-row__media img,
  .hw-row--hero.is-inview .hw-row__tags span {
    animation: none;
  }
}


.site-build-tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
}

/* ========== FAQ 键盘焦点样式 ========== */
.faq-btn:focus-visible {
  outline: 2px solid rgba(255, 58, 0, 0.7);
  outline-offset: -2px;
  border-radius: 4px;
}

/* ========== 展映集：包装层 + 滚动引导箭头 ========== */
.portfolio-slider-wrap {
  position: relative;
}

.portfolio-slider-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 120px;
  height: calc(100% - 32px);
  background: linear-gradient(to right, transparent, var(--bg, #0a0a0a) 90%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-slider-wrap.is-at-end::after {
  opacity: 0;
}

.portfolio-scroll-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(calc(-50% - 16px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.85);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.portfolio-scroll-arrow:hover {
  background: rgba(255, 58, 0, 0.85);
  color: #fff;
  transform: translateY(calc(-50% - 16px)) scale(1.08);
}

.portfolio-scroll-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* copy-btn 复制成功反馈 */
.copy-btn.is-copied {
  color: #4ade80;
  transition: color 0.2s ease;
}

/* ========== 展映集：硬件合并卡角标 ========== */
.portfolio-hw-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ========== 硬件 Hub：「学术课题」定性标签 ========== */
.hardware-hub__type-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* ========== 硬件课题：三列概览卡 ========== */
.hw-overview-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.hw-overview-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  color: inherit;
  font: inherit;
  padding: 0;
  width: 100%;
}

.hw-overview-card:hover,
.hw-overview-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 58, 0, 0.45);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  outline: none;
}

.hw-overview-card:focus-visible {
  outline: 2px solid rgba(255, 58, 0, 0.6);
  outline-offset: 3px;
}

.hw-overview-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  line-height: 0;
}

.hw-overview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hw-overview-card:hover .hw-overview-card__media img {
  transform: scale(1.04);
}

.hw-overview-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: clamp(16px, 2.5vw, 20px);
}

.hw-overview-card__index {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
}

.hw-overview-card__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hw-overview-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  flex: 1;
}

.hw-overview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hw-overview-card__tags span {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
}

.hw-overview-card--safety .hw-overview-card__tags span {
  border-color: rgba(255, 255, 255, 0.12);
}

.hw-overview-card__cta {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #ff3a00;
}

/* ========== 硬件课题：全屏详情 Modal ========== */
.hw-detail-store {
  display: none;
}

.hw-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 195;
}

.hw-detail-modal[hidden] {
  display: none !important;
}

.hw-detail-modal.is-open {
  display: block;
}

.hw-detail-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.hw-detail-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  animation: hw-modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hw-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hw-detail-modal__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(10px);
}

.hw-detail-modal__title {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.hw-detail-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hw-detail-modal__close:hover {
  background: rgba(255, 58, 0, 0.85);
  border-color: transparent;
}

.hw-detail-modal__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hw-detail-modal__body .hw-project {
  border-top: 0;
}

@media (max-width: 960px) {
  .hw-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-detail-modal__panel {
    animation: none;
  }

  .hw-overview-card:hover .hw-overview-card__media img {
    transform: none;
  }
}
