/*
 * 全站左右边距规则：与视口左右各 120px（变量 --site-inline）
 * 顶栏 .header 除外，顶栏横向内边距独立设置、撑满视口宽度
 * 除非另有明确指令，其余区块的水平内边距 / 定位请使用 var(--site-inline)
 */
:root {
  --site-inline: 120px;
  /* 顶栏（.header）高度估算：logo 48px + 顶/底 padding */
  --header-h: 96px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans SC', 'Blue Sky Noto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  background-color: #010200;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Page Container ===== */
.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  z-index: 100;
}

.logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

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

/* Vertical separator */
.separator {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  text-transform: uppercase;
}

.lang-btn {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

.lang-btn.is-active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

/* ===== Hero Banner ===== */
.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  /* 让顶栏压到首屏 banner 上：不再为 fixed header 预留间距 */
  margin-top: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  line-height: 0;
}

.banner-img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.banner-spotlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Banner 顶部标题 + 左右装饰线 */
.banner-idw-row {
  position: absolute;
  /* 保持文字相对视口的原始位置：banner 上移了 header-h，所以这里补回去 */
  top: calc(var(--header-h) - 4px);
  left: var(--site-inline);
  right: var(--site-inline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 3;
  pointer-events: none;
}

.banner-idw-line {
  flex: 1;
  min-width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.banner-idw {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
}

/* 开屏打字机效果：字符逐个点亮 */
.banner-idw.is-intro-on {
  opacity: 1;
}
.banner-idw-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(0.3px);
}
.banner-idw-char.is-on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: transform 180ms ease, opacity 140ms ease, filter 220ms ease;
}

/* 打字机光标（可选） */
.banner-idw-caret {
  display: inline-block;
  margin-left: 2px;
  opacity: 0.7;
  transform: translateY(-1px);
  animation: banner-caret-blink 900ms steps(1, end) infinite;
}
@keyframes banner-caret-blink {
  0% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.75;
  }
}

/* Banner 右下角职称文案 */
.banner-role {
  position: absolute;
  right: var(--site-inline);
  bottom: 40px;
  text-align: right;
  z-index: 3;
  pointer-events: none;
}

.banner-role-line {
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.5;
  color: #ffffff;
}

.banner-role-line + .banner-role-line {
  margin-top: 4px;
}

/* 底部向下箭头 + 文案 */
.banner-down-cta {
  position: absolute;
  left: var(--site-inline);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
}

.banner-down-cta:hover {
  opacity: 0.8;
}

.banner-down-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: block;
}

.banner-down-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Creativity & Soul - 高度为 banner 的 60%，保持比例、单向无缝滚动 */
.banner-creativity-wrap {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  height: 60%;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
  /* 把 Creativity & Soul 往下挪一点，更贴合首屏观感 */
  transform: translateY(40px);
}

.banner-creativity-track {
  display: flex;
  gap: 120px;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: banner-scroll 15s linear infinite;
}

.banner-creativity {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@keyframes banner-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--marquee-x, -2920px));
  }
}

/* Banner 下方细条：底层 10% 白 + 上层左对齐 25% 宽纯白 */
.banner-hairline-wrap {
  position: relative;
  width: calc(100% - 2 * var(--site-inline));
  margin: 0 var(--site-inline);
  height: 4px;
}

.banner-hairline {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.banner-hairline-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 25%;
  height: 4px;
  background: #ffffff;
}

/* 两侧细条：从中间向外展开 */
.banner-idw-row .banner-idw-line {
  transform: scaleX(0);
  transform-origin: right center;
}
.banner-idw-row .banner-idw-line:nth-of-type(2) {
  transform-origin: left center;
}
.banner-idw-row.is-lines-open .banner-idw-line {
  transform: scaleX(1);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 内容区块：与上方间距 72px；标题与正文 gap 24px；正文块水平居中、文字左对齐 */
.section-welcome,
.section-whatido,
.section-stand-for,
.section-right-fit {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  padding: 0 var(--site-inline) 80px;
  box-sizing: border-box;
}

.section-welcome .title-accent,
.section-whatido .title-accent,
.section-stand-for .title-accent,
.section-right-fit .title-accent {
  align-self: flex-start;
  flex-shrink: 0;
}

/* 标题样式：左侧 24×1 色条 + 右侧文案，可复用 .title-accent */
.title-accent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 300;
  line-height: 1.5;
}

.title-accent-line {
  flex-shrink: 0;
  width: 24px;
  height: 1px;
  background: #e0e93b;
}

.title-accent-label {
  color: #e0e93b;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* 主文案 + 描述：紧跟标题 24px 后；Welcome 区块正文水平居中；What I Do 与标题左对齐 */
.welcome-content-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-content {
  box-sizing: border-box;
  width: min(960px, 100%);
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.section-whatido .welcome-desc {
  max-width: 960px;
}

.section-welcome .welcome-desc {
  max-width: 960px;
}

.welcome-lead {
  margin: 0;
}

.welcome-lead-line {
  margin: 0;
  padding: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
}

.welcome-lead-line + .welcome-lead-line {
  margin-top: 0.25em;
}

.welcome-lead-highlight {
  color: #e0e93b;
}

.welcome-desc {
  margin: 32px 0 0;
  max-width: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* What I Actually Do - tag row (参考 Figma 90:980) */
.whatido-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.whatido-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: none;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 基础描边：常态克制 */
.whatido-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: -1;
}

/* 扫光：左 → 右，周期 5s，仅描边；错峰见下方 nth-child */
.whatido-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.08) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 55% 100%;
  background-repeat: no-repeat;
  background-position: -20% 0;
  filter: blur(0.5px);
  animation: tag-sweep-lr 5s linear infinite;
  z-index: -1;

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.whatido-tag:hover {
  transform: translateY(-1px);
}

.whatido-tag:nth-child(2)::after { animation-delay: 0.2s; }
.whatido-tag:nth-child(3)::after { animation-delay: 0.4s; }
.whatido-tag:nth-child(4)::after { animation-delay: 0.6s; }
.whatido-tag:nth-child(5)::after { animation-delay: 0.8s; }

@keyframes tag-sweep-lr {
  0% {
    background-position: -30% 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    background-position: 130% 0;
    opacity: 0;
  }
}

/* 全站分割线：1px，白 25% 透明，左右遵守 --site-inline */
.site-divider {
  width: calc(100% - 2 * var(--site-inline));
  height: 1px;
  margin: 0 var(--site-inline);
  background: rgba(255, 255, 255, 0.08);
}

/* What I Stand For — 四宫格卡片（Figma 90:1026） */
.stand-for-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  width: 100%;
}

.stand-for-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 48px;
  border-radius: 16px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.stand-for-watermark {
  position: absolute;
  top: -24px;
  right: 8px;
  font-size: clamp(100px, 18vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.stand-for-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.stand-for-num {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
}

.stand-for-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.stand-for-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.stand-for-accent {
  position: relative;
  z-index: 1;
  display: block;
  width: 32px;
  height: 1px;
  background: #e0e93b;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .stand-for-grid {
    grid-template-columns: 1fr;
  }
}

/* The Right Fit — 文案与清单 */
.right-fit-content {
  width: min(960px, 100%);
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.right-fit-lead {
  margin: 24px 0 48px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.right-fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.right-fit-item {
  position: relative;
  margin: 0;
  padding: 32px 0 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.right-fit-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #e0e93b;
}

/* 最后板块：Let's Connec */
.section-connect {
  margin-top: 400px;
  padding: 0 var(--site-inline) 120px;
}

.connect-title {
  margin: 0;
  font-size: 220px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --header-h: 88px;
  }

  .header {
    padding: 20px 24px;
  }

  .banner-creativity-track {
    animation-duration: 12s;
  }

  .nav-links {
    gap: 20px;
    font-size: 16px;
  }

  .nav {
    gap: 20px;
  }

  .right-fit-lead {
    font-size: 40px;
  }

  .right-fit-item {
    font-size: 22px;
  }

  .section-connect {
    margin-top: 280px;
  }

  .connect-title {
    font-size: clamp(120px, 16vw, 220px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 80px;
  }

  .header {
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .banner-creativity-track {
    animation-duration: 10s;
  }

  .brand {
    position: static;
    order: 3;
    flex-basis: 100%;
    text-align: center;
    transform: none;
    margin-top: 8px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

  .lang-toggle {
    font-size: 14px;
  }

  .welcome-lead-line {
    font-size: clamp(28px, 8vw, 48px);
  }

  .welcome-desc {
    font-size: 18px;
  }

  .right-fit-lead {
    margin: 16px 0 32px;
    font-size: clamp(28px, 8vw, 48px);
  }

  .right-fit-item {
    padding: 24px 0 24px 18px;
    font-size: 18px;
  }

  .section-connect {
    margin-top: 180px;
    padding-bottom: 80px;
  }

  .connect-title {
    font-size: clamp(72px, 18vw, 220px);
    line-height: 0.95;
  }
}
