:root {
  --paper: #0e0e10;
  --ink: #f0eee7;
  --muted: #8a8a90;
  --line: #26262b;
  --accent: #ff4a3d;
  --body-copy: #c9c7c0;
  --surface: #141416;
  --badge-line: #34343a;
  --badge-ink: #d9d7d0;
  color-scheme: dark;
  --font-display: "Space Grotesk", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* 跟随系统深浅色设置 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #f4f1e9;
    --ink: #171610;
    --muted: #7b766a;
    --line: #ddd7c9;
    --accent: #e2372b;
    --body-copy: #3b382f;
    --surface: #0d0d0d;
    --badge-line: #cfc7b4;
    --badge-ink: #3b382f;
    color-scheme: light;
  }
}

/* 手动切换：属性优先于系统设置 */
:root[data-theme="light"] {
  --paper: #f4f1e9;
  --ink: #171610;
  --muted: #7b766a;
  --line: #ddd7c9;
  --accent: #e2372b;
  --body-copy: #3b382f;
  --surface: #0d0d0d;
  --badge-line: #cfc7b4;
  --badge-ink: #3b382f;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0e0e10;
  --ink: #f0eee7;
  --muted: #8a8a90;
  --line: #26262b;
  --accent: #ff4a3d;
  --body-copy: #c9c7c0;
  --surface: #141416;
  --badge-line: #34343a;
  --badge-ink: #d9d7d0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.zh { color: var(--muted); font-weight: 400; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 30px;
  height: auto;
  display: block;
}

.site-head nav { display: flex; gap: 28px; }

.site-head nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- layout ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* ---------- hero ---------- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 62px 0 44px;
  border-bottom: 1px solid var(--line);
}

.masthead-logo {
  width: 84px;
  height: auto;
  display: block;
  margin-bottom: 26px;
}

.masthead h1, .detail h1, .card-title, .brand, .button {
  font-family: var(--font-display);
}

.masthead h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.05;
}

.masthead-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 40px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  font-size: 17px;
  color: var(--body-copy);
  max-width: 58ch;
}

/* ---------- work grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
  padding-top: 8px;
}

.card { display: block; position: relative; z-index: 1; }

.card:hover, .card:focus-within { z-index: 30; }

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 1720 / 1600;
  overflow: hidden;
  background: var(--surface);
}

.card-media .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.card:hover .card-video.is-on { opacity: 1; }

/* 悬浮播放动图时，底下那张商品图虚化 */
.card:hover .card-media .cover-img {
  transform: scale(1.06);
  filter: blur(7px) brightness(0.8);
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.card-title { font-weight: 600; letter-spacing: -0.015em; font-size: 19px; }
.card-title em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }

.card-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.badge-live { border-color: #cfc7b4; color: var(--body-copy); }

/* ---------- sections ---------- */
.about, .contact { padding: 88px 0 0; max-width: 760px; }

h2 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 600;
}

.about p, .contact p { font-size: 17px; margin: 0 0 12px; }

/* ---------- detail ---------- */
.detail { padding-top: 56px; max-width: 940px; }

.back {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 40px;
}

.detail h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}

.detail h1 .zh { font-size: 0.5em; margin-left: 12px; }

.meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 44px;
}

.cover { margin: 0 0 72px; }
.cover img { width: 100%; display: block; }

.items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 64px;
}

.items th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ink);
}

.items td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.items td .zh { margin-left: 6px; font-size: 13px; }

.buy-row { padding-top: 8px; }

.button {
  display: inline-block;
  padding: 14px 34px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.button:hover { background: var(--accent); color: #fff; }

.button-off {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 100px;
  padding: 32px 40px 48px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-head, main, .site-foot { padding-left: 22px; padding-right: 22px; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 64px 0 56px; }
  .card-meta { flex-direction: column; gap: 4px; }
  .items td, .items th { font-size: 13px; }
}

/* ---------- archive / coverflow ---------- */
.archive { position: relative; }

.archive h2 { margin-bottom: 26px; }
.archive h2 .zh { font-size: 12px; letter-spacing: 0.1em; margin-left: 8px; }

.coverflow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1600px;
  outline: none;
  --cf-w: 430px;
  --cf-h: 400px;
}

.cf-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  width: var(--cf-w);
  height: var(--cf-h);
  overflow: hidden;
  background: var(--surface);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s var(--ease);
  cursor: pointer;
  will-change: transform;
}

.cf-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.cf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.55;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.cf-card.is-active::after { opacity: 0; }

@media (max-width: 760px) {
  .coverflow { perspective: 1000px; }
}

/* ---------- motion ---------- */
:root { --ease: cubic-bezier(0.22, 0.61, 0.36, 1); }

body { transition: background-color 0.45s var(--ease), color 0.45s var(--ease); }
.site-head, .site-foot, .card-meta, .notice, .items td, .items th {
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease);
}

/* 极淡的流动光晕，只做氛围，不抢内容 */
body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 78% 6%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    radial-gradient(30vmax 30vmax at 12% 92%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 65%);
  animation: drift 34s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  .grid .card:nth-child(2) { transition-delay: 0.08s; }
  .grid .card:nth-child(3) { transition-delay: 0.16s; }
  .grid .card:nth-child(4) { transition-delay: 0.24s; }

  .arch-item:nth-child(3n + 2) { transition-delay: 0.06s; }
  .arch-item:nth-child(3n + 3) { transition-delay: 0.12s; }

  .masthead-logo { transition-delay: 0.05s; }
  .masthead h1, .detail h1, .card-title, .brand, .button {
  font-family: var(--font-display);
}

.masthead h1 { transition-delay: 0.12s; }
  .masthead-sub { transition-delay: 0.2s; }
}

/* 悬停：只做很小的放大和提亮，避免花哨 */
.card-media img { transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); filter: brightness(1.06); }

.card-title { position: relative; }
.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover .card-title::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* 图片揭示：封面从下往上展开，比纯淡入更有质感 */
@media (prefers-reduced-motion: no-preference) {
  .card-media .cover-img, .arch-item img, .cover img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s var(--ease), transform 0.55s var(--ease), filter 0.55s var(--ease);
  }

  .is-in .card-media .cover-img,
  .is-in.arch-item img,
  .is-in .cover img,
  .is-in.cover img,
  .cover.is-in img {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-media .cover-img, .arch-item img, .cover img { clip-path: none; }
}

/* 悬浮某一张时，其余商品图轻微模糊，把焦点让给正在看的那件 */
/* 只有真的悬浮在某张卡片上时才虚化其它卡片，避免划过网格空隙误触发 */
.grid:has(.card:hover) .card {
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.grid:has(.card:hover) .card:not(:hover) {
  filter: blur(4px) saturate(0.85);
  opacity: 0.55;
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .grid:has(.card:hover) .card:not(:hover) { filter: none; opacity: 1; transform: none; }
}

/* ---------- contact icon ---------- */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 4px;
}

.foot-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.icon-mail, .icon-discord {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-link:hover .icon-mail,
.contact-link:hover .icon-discord { opacity: 1; transform: translateY(-1px); }

.contact-label { color: inherit; }

/* 左右两侧的透明点击区 */
.cf-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  z-index: 10;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.cf-zone-left { left: 0; }
.cf-zone-right { right: 0; }

/* 头部右侧：导航 + 主题按钮在同一行 */
.head-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---------- round carousel ---------- */
.ring {
  position: relative;
  height: 700px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 3200px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.ring.is-dragging { cursor: grabbing; }

.ring-stage {
  position: relative;
  width: 480px;
  height: 446px;
  transform-style: preserve-3d;
  will-change: transform;
}

.ring-face {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  background: transparent;
}

.ring-side {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.ring-back {
  transform: rotateY(180deg);
  filter: brightness(0.45) saturate(0.8);
}

.ring-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ring-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.ring-label em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 500;
}

@media (max-width: 760px) {
  .ring { height: 540px; }
  .ring-stage { width: 300px; height: 279px; }
}

/* 圆环卡片悬浮：底图模糊、视频覆盖 */
.ring-face:hover .ring-front > img {
  filter: blur(7px) brightness(0.8);
  transform: scale(1.05);
}

.ring-front > img {
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}

.ring-face:hover .card-video.is-on { opacity: 1; }

.ring-side .card-video {
  border-radius: 16px;
}

/* ---------- notice / heads up ---------- */
.notice {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-copy);
  border-left: 2px solid var(--accent);
  padding: 16px 0 16px 20px;
  margin: 0 0 44px;
  max-width: 68ch;
}

.notice .label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-track span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- section rhythm ---------- */
.block { position: relative; }

.ghost {
  position: absolute;
  top: -6px;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(88px, 14vw, 210px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.sec-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 44px 0 14px;
  margin-bottom: 36px;
}

.sec-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sec-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sec-meta {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.split .sec-head { margin-bottom: 26px; }

.split-body { max-width: 720px; }
.split-body p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.split-body .muted { font-size: 15px; }

/* ---------- footer ---------- */
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 4px 0 30px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.foot-col .label { color: var(--muted); margin-bottom: 2px; }
.foot-col a:hover { color: var(--accent); }

.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.foot-col p { margin: 0; line-height: 1.6; }

.legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
}

@media (max-width: 760px) {
  .ghost { font-size: 64px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- logo hover ---------- */
.brand img {
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.brand:hover img {
  transform: scale(1.14) rotate(-3deg);
}

.masthead-logo {
  transition: transform 0.5s var(--ease);
}
.masthead-logo:hover {
  transform: scale(1.07);
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .site-head {
    padding: 16px 20px;
    gap: 10px;
  }

  .head-right { gap: 12px; }

  .site-head nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-head nav a {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .masthead { padding: 44px 0 30px; }
  .masthead-logo { width: 64px; }
  .masthead h1 { font-size: 32px; }

  .ticker { padding: 10px 0; }

  .sec-head {
    padding: 30px 0 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sec-meta {
    margin-left: 0;
    width: 100%;
    font-size: 10px;
  }

  .ghost {
    font-size: 48px;
    top: 0;
  }

  .ring { height: 400px; margin-bottom: 12px; }
  .ring-stage { width: 240px; height: 223px; }

  .notice { font-size: 14px; padding-left: 14px; }

  .split-body p { font-size: 16px; }

  .detail { padding-top: 28px; }
  .detail h1 { font-size: 30px; }
  .cover { margin-bottom: 44px; }

  .items { font-size: 13px; }
  .items th, .items td { padding-right: 8px; }

  .site-foot { padding: 24px 20px 36px; }
  .foot-row, .foot-grid { gap: 24px; }
}

/* 圆环卡片悬停放大 */
.ring-front { transition: transform 0.4s var(--ease); }
.ring-face:hover .ring-front { transform: scale(1.06); }

/* ---------- more coming soon ---------- */
.more {
  margin-top: 86px;
  padding: 64px 0 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.more-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.more-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .more { margin-top: 56px; padding: 44px 0 4px; }
}
