/* ===== 清心绝 · 作品集 共享样式 ===== */

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

:root {
  --white: #ffffff;
  --off-white: #f5f5f7;
  --black: #0a0a0a;
  --near-black: #1d1d1f;
  --gray-1: #86868b;
  --gray-2: #424245;
  --gray-3: #d2d2d7;

  --font-cn: "Noto Sans SC", "PingFang SC", "Source Han Sans CN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mix: var(--font-en), var(--font-cn);

  --max-w: 1440px;
  --pad-x: clamp(24px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mix);
  background: var(--white);
  color: var(--near-black);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 12px;
  left: 18px;
  right: 18px;
  height: 56px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.90);
  color: #111111;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.13);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.dark {
  background: rgba(8, 8, 8, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  color: var(--white);
}

.nav a,
.nav-logo,
.nav-links a,
.nav-mobile-actions a {
  color: inherit;
}

.nav:not(.dark) .nav-logo,
.nav:not(.dark) .nav-links a,
.nav:not(.dark) .nav-mobile-actions a {
  color: #111111;
}

.nav.dark .nav-logo,
.nav.dark .nav-links a,
.nav.dark .nav-mobile-actions a {
  color: #ffffff;
}


.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav-links a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  font-weight: 400;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.nav:not(.dark) .nav-links a.active::after {
  background: #111111;
}

.nav.dark .nav-links a.active::after {
  background: #ffffff;
}

/* ===== Footer ===== */
.footer {
  background: var(--off-white);
  color: var(--gray-2);
  padding: 64px var(--pad-x) 40px;
  font-size: 12px;
  line-height: 1.7;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 24px;
}

.footer h4 {
  color: var(--near-black);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--gray-1);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== Section ===== */
.section {
  padding: clamp(100px, 15vh, 180px) var(--pad-x);
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.section.off {
  background: var(--off-white);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-mix);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 16px;
}

.h-display {
  font-family: var(--font-mix);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.h-1 {
  font-family: var(--font-mix);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.h-2 {
  font-family: var(--font-mix);
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 300;
  letter-spacing: -0.008em;
  line-height: 1.14;
}

.h-3 {
  font-family: var(--font-mix);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 300;
  line-height: 1.3;
}

.body-lg {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--gray-2);
  font-weight: 400;
}

.dark .body-lg {
  color: var(--gray-3);
}

.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-2);
}

/* ===== Placeholder image ===== */
.ph {
  position: relative;
  width: 100%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0, 0, 0, 0.025) 20px,
    rgba(0, 0, 0, 0.025) 21px
  );
}

.ph.dark-ph {
  background: #161618;
  color: var(--gray-3);
}

.ph.dark-ph::before {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.025) 20px,
    rgba(255, 255, 255, 0.025) 21px
  );
}

.ph-label {
  position: relative;
  font-family: var(--font-en), monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border: 1px solid var(--gray-3);
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.dark-ph .ph-label {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--gray-3);
}

/* ===== Buttons / link arrow ===== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--near-black);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 10px;
}

.dark .link-arrow {
  color: var(--white);
}

/* ===== Mobile ===== */
@media (max-width: 820px) {
  .nav-links {
    gap: 14px;
    font-size: 11px;
  }
  .nav-links .hide-sm {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 20px;
  }
  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}


@media (max-width: 920px) {
  .nav {
    top: 10px;
    left: 12px;
    right: 12px;
  }
}


/* ===== Nav forced contrast theme fix =====
   White section: white nav / black text. Black section: black nav / white text. */
.nav.light,
.nav:not(.dark) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
}

.nav.dark {
  background: rgba(8, 8, 8, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.nav.light .nav-logo,
.nav.light .nav-links a,
.nav.light .nav-mobile-actions a,
.nav:not(.dark) .nav-logo,
.nav:not(.dark) .nav-links a,
.nav:not(.dark) .nav-mobile-actions a {
  color: #111111 !important;
}

.nav.dark .nav-logo,
.nav.dark .nav-links a,
.nav.dark .nav-mobile-actions a {
  color: #ffffff !important;
}

/* ===== Creativity description layer · portfolio refinement ===== */
.home-creative {
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.home-creative-label {
  font-family: var(--font-mix);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 14px;
}

.home-creative-title {
  font-family: var(--font-mix);
  font-size: clamp(22px, 2.45vw, 38px);
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: -0.006em;
  color: #fff;
  max-width: 520px;
}

.home-creative-copy {
  max-width: 620px;
  font-family: var(--font-mix);
  font-size: 13px;
  line-height: 1.86;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.60);
  margin-top: 18px;
}

.home-creative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.home-creative-card {
  padding: 26px clamp(18px, 2vw, 32px) 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.home-creative-card:not(:first-child) {
  padding-left: clamp(18px, 2vw, 32px);
}

.home-creative-card:last-child {
  border-right: 0;
}

.home-creative-card span {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 12px;
}

.home-creative-card strong {
  display: block;
  font-family: var(--font-mix);
  font-size: 15px;
  line-height: 1.38;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.home-creative-card p {
  font-family: var(--font-mix);
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.54);
}

.product-creative {
  padding: clamp(70px, 10vh, 118px) var(--pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.product-creative.dark {
  background: #070707;
  color: #ffffff;
}

.product-creative.light {
  background: #f5f5f7;
  color: var(--near-black);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.product-creative-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.product-creative-label {
  font-family: var(--font-mix);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 16px;
}

.product-creative.light .product-creative-label {
  color: rgba(0, 0, 0, 0.38);
}

.product-creative-title {
  font-family: var(--font-mix);
  font-size: clamp(25px, 3vw, 46px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.008em;
  max-width: 650px;
}

.product-creative-copy {
  max-width: 680px;
  font-family: var(--font-mix);
  font-size: 14px;
  line-height: 1.82;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: clamp(28px, 4vw, 46px);
}

.product-creative.light .product-creative-copy {
  color: rgba(0, 0, 0, 0.58);
}

.product-creative-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.product-creative.light .product-creative-points {
  border-top-color: rgba(0, 0, 0, 0.10);
}

.product-creative-point {
  padding: 24px clamp(18px, 2vw, 30px) 4px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.product-creative.light .product-creative-point {
  border-right-color: rgba(0, 0, 0, 0.10);
}

.product-creative-point:not(:first-child) {
  padding-left: clamp(18px, 2vw, 30px);
}

.product-creative-point:last-child {
  border-right: 0;
}

.product-creative-point span {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 11px;
  text-transform: uppercase;
}

.product-creative.light .product-creative-point span {
  color: rgba(0, 0, 0, 0.34);
}

.product-creative-point h3 {
  font-family: var(--font-mix);
  font-size: 15px;
  line-height: 1.38;
  font-weight: 300;
  margin-bottom: 10px;
}

.product-creative-point p {
  font-family: var(--font-mix);
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.52);
}

.product-creative.light .product-creative-point p {
  color: rgba(0, 0, 0, 0.52);
}

@media (max-width: 920px) {
  .home-creative,
  .product-creative-inner,
  .home-creative-grid,
  .product-creative-points {
    grid-template-columns: 1fr;
  }

  .home-creative-card,
  .home-creative-card:not(:first-child),
  .product-creative-point,
  .product-creative-point:not(:first-child) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .product-creative.light .product-creative-point {
    border-bottom-color: rgba(0, 0, 0, 0.10);
  }

  .home-creative-card:last-child,
  .product-creative-point:last-child {
    border-bottom: 0;
  }
}


/* ======================================================================
   CODEX_HERO_COVER_STYLE_DO_NOT_REMOVE
   用途：7 个产品详情页首屏背景图统一效果。
   Codex 适配规则：
   1. 只把图片放到 assets/images/00-hero-covers/，不要改 CSS。
   2. 7 个产品首屏当前全部使用 .project-hero-media.dim-dark。
   3. 首屏效果已经在这里写好：
      - object-fit: cover; object-position: center center;
      - transform: scale(1.1);
      - filter: saturate(0.92) brightness(0.54) contrast(1.03) blur(4px);
      - opacity: 0.44;
      - ::before / ::after 负责渐变遮罩。
   4. 手机端自动使用更轻的 blur(3px) 和 opacity: 0.38。
   5. 不要把首屏图放进 01-kv-posters / 02-robot-vacuum 等正文图文件夹。
   6. 如果用户只上传 7 张首屏图，Codex 只需要按文件名覆盖 00-hero-covers 里的同名文件。
   ====================================================================== */
/* ===== Product hero cover image ===== */
.kv-hero,
.robot-hero,
.speaker-hero,
.humanoid-hero,
.air-hero,
.headphone-hero,
.ar-hero {
  isolation: isolate;
}

.kv-hero-inner,
.robot-hero-inner,
.speaker-hero-inner,
.humanoid-hero-inner,
.air-hero-inner,
.headphone-hero-inner,
.ar-hero-inner {
  position: relative;
  z-index: 3;
}

.project-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-hero-media.has-image {
  opacity: 1;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  will-change: transform, filter, opacity;
}

.project-hero-media.dim-dark img {
  filter: saturate(0.92) brightness(0.54) contrast(1.03) blur(4px);
  opacity: 0.44;
}

.project-hero-media.dim-light img {
  filter: saturate(0.88) brightness(0.86) contrast(0.98) blur(4px);
  opacity: 0.30;
}

.project-hero-media::before,
.project-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-hero-media::before {
  z-index: 1;
}

.project-hero-media::after {
  z-index: 2;
}

.project-hero-media.dim-dark::before {
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 18%, rgba(255,255,255,0.00) 42%),
    radial-gradient(140% 100% at 50% 100%, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.16) 58%, rgba(0,0,0,0.28) 100%);
}

.project-hero-media.dim-dark::after {
  background:
    linear-gradient(180deg, rgba(6,6,7,0.52) 0%, rgba(6,6,7,0.20) 22%, rgba(6,6,7,0.10) 48%, rgba(6,6,7,0.22) 74%, rgba(6,6,7,0.56) 100%),
    linear-gradient(90deg, rgba(6,6,7,0.14) 0%, rgba(6,6,7,0.04) 20%, rgba(6,6,7,0.02) 50%, rgba(6,6,7,0.04) 80%, rgba(6,6,7,0.12) 100%);
}

.project-hero-media.dim-light::before {
  background:
    radial-gradient(120% 84% at 50% 12%, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.34) 26%, rgba(255,255,255,0.05) 56%, rgba(255,255,255,0.00) 72%),
    radial-gradient(120% 90% at 50% 100%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.28) 100%);
}

.project-hero-media.dim-light::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.42) 26%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.34) 74%, rgba(255,255,255,0.72) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 24%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 76%, rgba(255,255,255,0.14) 100%);
}

@media (max-width: 720px) {
  .project-hero-media img {
    transform: scale(1.12);
  }

  .project-hero-media.dim-dark img {
    opacity: 0.38;
    filter: saturate(0.90) brightness(0.50) contrast(1.03) blur(3px);
  }

  .project-hero-media.dim-light img {
    opacity: 0.24;
    filter: saturate(0.86) brightness(0.88) contrast(0.98) blur(3px);
  }
}

/* ===== Silver gray title gradient · restrained portfolio accent =====
   Scope: only homepage hero H1 and product-page hero H1.
   Keep secondary section titles pure black/white to avoid over-decoration. */
.hero h1,
.kv-hero h1,
.robot-hero h1,
.speaker-hero h1,
.humanoid-hero h1,
.air-hero h1,
.headphone-hero h1,
.ar-hero h1 {
  display: inline-block;
  color: transparent !important;
  background: linear-gradient(
    92deg,
    #7a7a7a 0%,
    #e9e9e9 34%,
    #ffffff 50%,
    #b8b8b8 72%,
    #f1f1f1 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.30) !important;
}

/* Mobile fallback: disable text gradient on small screens.
   Some mobile WebView browsers render background-clip:text as a silver block.
   Desktop keeps the silver gradient; mobile uses a clean solid silver-white title. */
@media (max-width: 720px) {
  .hero h1,
  .kv-hero h1,
  .robot-hero h1,
  .speaker-hero h1,
  .humanoid-hero h1,
  .air-hero h1,
  .headphone-hero h1,
  .ar-hero h1 {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: border-box !important;
    color: #e6e6e6 !important;
    -webkit-text-fill-color: #e6e6e6 !important;
    text-shadow: 0 12px 42px rgba(0, 0, 0, 0.30) !important;
  }
}
