/* =========================================================
   江鹤 · JIFC 官网设计系统
   墨黑 / 宣纸白 / 朱砂红
   ========================================================= */

:root {
  --ink: #0a0a0b;
  --ink-2: #101012;
  --ink-3: #16161a;
  --paper: #f3efe7;
  --paper-2: #e8e2d6;
  --white: #f7f4ee;
  --muted: #9a958b;
  --muted-2: #6f6a61;
  --line: rgba(247, 244, 238, 0.14);
  --line-strong: rgba(247, 244, 238, 0.26);
  --line-dark: rgba(20, 20, 22, 0.14);
  --accent: #c0442f;
  --accent-2: #d8543c;
  --accent-deep: #99311f;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia,
    serif;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(var(--container), calc(100% - clamp(40px, 8vw, 96px)));
  margin-inline: auto;
}

/* ---------- 排版 ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow > span,
.eyebrow::before {
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 36em;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.9;
  color: var(--muted);
}

.copy {
  max-width: 36em;
  color: var(--muted);
}

.copy p + p {
  margin-top: 1em;
}

.display {
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dot {
  color: var(--accent-2);
}

.display .dot {
  color: var(--accent-2);
}

/* ---------- 按钮与链接 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-2);
}

.btn--line {
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--line:hover {
  border-color: var(--accent-2);
  color: #fff;
}

.btn--ghost {
  color: var(--white);
}

.btn--ghost:hover {
  color: var(--accent-2);
}

.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn .arrow {
  font-size: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow .arrow {
  color: var(--accent-2);
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  border-color: var(--accent-2);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

.link-muted {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.link-muted:hover {
  color: var(--white);
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}

/* 菜单展开时不使用 backdrop-filter：
   它会为 fixed 定位的菜单创建包含块，使菜单无法铺满全屏 */
.site-header.is-menu-open {
  background: rgba(10, 10, 11, 0.98);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(var(--container), calc(100% - clamp(40px, 8vw, 96px)));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  border-radius: 3px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand__text small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active,
.nav-trigger[aria-expanded="true"] {
  color: var(--white);
}

.nav-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}

.nav-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(1px);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  background: var(--accent);
}

.has-menu {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(var(--header-h) - 8px);
  left: -18px;
  min-width: 232px;
  padding: 10px;
  background: rgba(16, 16, 18, 0.97);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}

.nav-menu--right {
  left: auto;
  right: 0;
}

.login-menu .nav-menu {
  top: calc(100% + 14px);
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu,
.has-menu.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu a {
  display: block;
  padding: 11px 12px;
  transition: background 0.25s var(--ease);
}

.nav-menu a:hover {
  background: rgba(247, 244, 238, 0.05);
}

.nav-menu a span {
  display: block;
  font-size: 14px;
  color: var(--white);
}

.nav-menu a em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: none;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child {
  top: 15px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-mobile-actions {
  display: none;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: 12%;
  background: radial-gradient(
    circle,
    rgba(192, 68, 47, 0.17),
    rgba(192, 68, 47, 0) 62%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

.hero-copy .display {
  margin-bottom: 26px;
}

.hero-copy .lede {
  max-width: 30em;
  margin-bottom: 38px;
}

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

.hero-meta {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}

.hero-meta dt {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  font-size: 13px;
  color: var(--white);
}

.hero-visual {
  position: relative;
}

.fig-note {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s var(--ease);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--muted), transparent);
}

.scroll-cue:hover {
  color: var(--white);
}

/* ---------- 产品界面示意 ---------- */

.app {
  position: relative;
  background: #0d0d0f;
  border: 1px solid rgba(247, 244, 238, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  font-size: 11px;
  line-height: 1.5;
  color: #cfcabf;
  text-align: left;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: #121214;
  border-bottom: 1px solid rgba(247, 244, 238, 0.07);
}

.app-dots {
  display: flex;
  gap: 5px;
}

.app-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.18);
}

.app-dots i:first-child {
  background: rgba(192, 68, 47, 0.7);
}

.app-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #9a958b;
}

.app-title span {
  opacity: 0.45;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  border-radius: 99px;
  font-size: 9px;
  color: #b9b3a8;
  white-space: nowrap;
}

.pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(216, 84, 60, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(216, 84, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 84, 60, 0);
  }
}

.app-body {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 168px;
  min-height: 330px;
}

.app--wide .app-body {
  grid-template-columns: 124px minmax(0, 1fr) 168px;
}

.app-rail {
  padding: 14px 12px;
  border-right: 1px solid rgba(247, 244, 238, 0.07);
  background: #0b0b0d;
}

.rail-label {
  margin: 12px 0 7px;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6c675f;
}

.rail-label:first-child {
  margin-top: 0;
}

.rail-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 3px;
  font-size: 10px;
  color: #a29c92;
}

.rail-list li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rail-list li em {
  flex: none;
  font-size: 8px;
  font-style: normal;
  color: #5b564f;
}

.rail-list li.is-active {
  background: rgba(247, 244, 238, 0.06);
  color: #f0ece4;
}

.rail-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.rail-nums li {
  display: grid;
  place-items: center;
  height: 24px;
  border: 1px solid rgba(247, 244, 238, 0.08);
  border-radius: 2px;
  font-size: 9px;
  color: #7a756c;
}

.rail-nums li.is-active {
  border-color: rgba(192, 68, 47, 0.6);
  color: #e9c9c1;
  background: rgba(192, 68, 47, 0.1);
}

.app-main {
  padding: 12px;
  min-width: 0;
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 9px;
  color: #7d786f;
}

.app-toolbar strong {
  font-size: 10px;
  font-weight: 500;
  color: #ddd8ce;
}

.app-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #d89a8c;
  white-space: nowrap;
}

.app-progress i {
  width: 46px;
  height: 2px;
  background: rgba(247, 244, 238, 0.12);
  position: relative;
  overflow: hidden;
}

.app-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 68%;
  background: var(--accent-2);
}

.boards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.app--wide .boards {
  grid-template-columns: repeat(3, 1fr);
}

.board {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: #1a2331;
  isolation: isolate;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: polygon(0 78%, 18% 62%, 38% 72%, 58% 48%, 76% 64%, 100% 54%, 100% 100%, 0 100%);
  background: rgba(5, 7, 10, 0.55);
}

.board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.board figcaption {
  position: absolute;
  z-index: 3;
  left: 7px;
  bottom: 5px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.board figcaption span {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.45);
}

.board--1 {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 206, 140, 0.85), transparent 9%),
    linear-gradient(165deg, #0d1a2c 10%, #1c4a63 48%, #c9703f 100%);
}

.board--2 {
  background:
    radial-gradient(circle at 24% 24%, rgba(228, 240, 235, 0.55), transparent 22%),
    linear-gradient(150deg, #16262b 5%, #38605e 52%, #b8a47e 100%);
}

.board--3 {
  background:
    radial-gradient(circle at 66% 34%, rgba(255, 216, 166, 0.7), transparent 12%),
    linear-gradient(200deg, #2b1210 0%, #7a2c1d 55%, #d58a4b 100%);
}

.board--4 {
  background:
    radial-gradient(circle at 40% 26%, rgba(206, 214, 255, 0.6), transparent 16%),
    linear-gradient(160deg, #10142b 5%, #2e3b6e 55%, #8a7fa5 100%);
}

.board--5 {
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 238, 196, 0.75), transparent 12%),
    linear-gradient(150deg, #26200f 0%, #6c5a2b 48%, #c8a96c 100%);
}

.board--6 {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 196, 178, 0.55), transparent 14%),
    linear-gradient(195deg, #180b0b 5%, #4a1512 55%, #a8442f 100%);
}

.board--active {
  outline: 1px solid rgba(216, 84, 60, 0.75);
  outline-offset: -1px;
}

.board--active::before {
  background: linear-gradient(transparent 55%, rgba(192, 68, 47, 0.35));
}

.app-panel {
  padding: 14px 12px;
  border-left: 1px solid rgba(247, 244, 238, 0.07);
  background: #0b0b0d;
}

.panel-label {
  margin: 14px 0 8px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6c675f;
}

.panel-label:first-child {
  margin-top: 0;
}

.character {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: rgba(247, 244, 238, 0.04);
  border-radius: 4px;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, #24445c, #b06a45);
}

.avatar--2 {
  background: linear-gradient(150deg, #3d2c56, #8e6b9e);
}

.avatar--3 {
  background: linear-gradient(150deg, #2c4a3a, #9a9a63);
}

.character strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #e5e0d6;
}

.character small {
  display: block;
  font-size: 8px;
  color: #777168;
}

.panel-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  font-size: 9px;
  color: #777168;
}

.panel-rows b {
  font-weight: 400;
  color: #b8b2a8;
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.panel-chips span {
  padding: 3px 6px;
  border: 1px solid rgba(247, 244, 238, 0.1);
  border-radius: 2px;
  font-size: 8px;
  color: #9d978d;
}

.generate {
  margin-top: 14px;
}

.generate__bar {
  display: block;
  height: 2px;
  margin-bottom: 8px;
  background: rgba(247, 244, 238, 0.1);
  overflow: hidden;
}

.generate__bar i {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--accent);
}

.generate span.btn-like {
  display: grid;
  place-items: center;
  height: 26px;
  background: var(--accent);
  border-radius: 2px;
  font-size: 9px;
  color: #fff;
}

.character + .character {
  margin-top: 6px;
}

.panel-avatars {
  display: flex;
  gap: 6px;
}

.panel-avatars .avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 244, 238, 0.14);
}

.scriptdoc {
  padding: 4px 10px 10px;
  font-size: 10px;
  line-height: 1.75;
  color: #b9b3a8;
}

.scriptdoc h5 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #e5e0d6;
}

.scriptdoc .meta {
  display: flex;
  gap: 14px;
  margin: 8px 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.07);
  font-size: 8px;
  color: #6c675f;
}

.scriptdoc .scene {
  margin-top: 11px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #8f897f;
}

.scriptdoc .action {
  margin-top: 4px;
  color: #a8a297;
}

.scriptdoc .character-name {
  margin-top: 8px;
  font-size: 9px;
  color: #d8d2c8;
}

.scriptdoc .dialogue {
  margin-top: 2px;
  padding-left: 10px;
  border-left: 1px solid rgba(216, 84, 60, 0.5);
  color: #cfc9bf;
}

.scriptdoc mark {
  background: rgba(192, 68, 47, 0.18);
  color: #e9c9c1;
  padding: 0 2px;
}

/* ---------- 通用区块 ---------- */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
}

.section--paper {
  background: var(--paper);
  color: #141416;
  --white: #141416;
  --muted: #6f6a61;
  --muted-2: #6f6a61;
  --line: rgba(20, 20, 22, 0.14);
  --line-strong: rgba(20, 20, 22, 0.28);
}

.section--paper .eyebrow {
  color: var(--muted);
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-top: 22px;
}

.section-head__row .lede,
.section-head__row > p {
  max-width: 32em;
  color: var(--muted);
}

/* ---------- 产品 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.4s var(--ease);
}

.product-card:hover {
  border-color: rgba(192, 68, 47, 0.55);
  background: #121214;
  transform: translateY(-5px);
}

.product-card__visual {
  position: relative;
  min-height: 208px;
  padding: 18px;
  background: #0b0b0d;
  border: 1px solid rgba(247, 244, 238, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.product-card__visual::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 210px;
  background: radial-gradient(
    circle,
    rgba(192, 68, 47, 0.16),
    transparent 65%
  );
}

.mini-boards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-boards .board {
  aspect-ratio: 16 / 10;
}

.mini-timeline {
  position: relative;
  height: 34px;
  margin-top: 14px;
  border-top: 1px solid rgba(247, 244, 238, 0.09);
}

.mini-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(247, 244, 238, 0.12);
}

.mini-timeline i {
  position: absolute;
  top: 12px;
  left: 28%;
  width: 22%;
  height: 1px;
  background: var(--accent);
}

.mini-timeline span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 1px;
  height: 13px;
  background: var(--accent-2);
}

.mini-timeline span::after {
  content: "";
  position: absolute;
  top: 11px;
  left: -2px;
  border: 2.5px solid transparent;
  border-top-color: var(--accent-2);
}

.mini-script {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 4px;
}

.mini-script .line {
  height: 5px;
  background: rgba(247, 244, 238, 0.13);
  border-radius: 2px;
}

.mini-script .line:nth-child(1) {
  width: 38%;
  background: rgba(216, 84, 60, 0.8);
}

.mini-script .line:nth-child(2) {
  width: 82%;
}

.mini-script .line:nth-child(3) {
  width: 68%;
}

.mini-script .line:nth-child(4) {
  width: 74%;
  margin-top: 6px;
}

.mini-script .line:nth-child(5) {
  width: 52%;
}

.mini-script .line:nth-child(6) {
  width: 62%;
}

.mini-script .line:nth-child(7) {
  width: 30%;
  background: rgba(216, 84, 60, 0.55);
  margin-top: 6px;
}

.mini-script .chip-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mini-script .chip {
  padding: 4px 8px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  border-radius: 2px;
  font-size: 8px;
  color: #9a958b;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 26px;
}

.product-card__kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.product-card__kicker em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0.8;
}

.product-card h3 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-card__body > p {
  margin: 14px 0 20px;
  max-width: 30em;
  font-size: 14px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.tags li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  color: var(--muted);
}

.product-card__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- 工作流 ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.flow li {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.flow__num {
  display: block;
  margin-bottom: 34px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.flow h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.flow p {
  margin-top: 10px;
  max-width: 22em;
  font-size: 13px;
  color: var(--muted);
}

.flow-note {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.flow-note span {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.flow-note p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 背书 ---------- */

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.proof__copy .entity {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.proof__copy .lede {
  margin-top: 20px;
  margin-bottom: 26px;
}

.proof__media {
  position: relative;
  background: var(--ink-2);
}

.proof__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.82);
  border: 1px solid var(--line);
}

.proof__media figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stats dd {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 影像横幅 ---------- */

.band {
  position: relative;
  min-height: min(64vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 32% 42%, #1b1b1f, #0a0a0b 70%);
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.55) brightness(0.5) contrast(1.05);
  transform: scale(1.02);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.94) 4%,
    rgba(10, 10, 11, 0.35) 48%,
    rgba(10, 10, 11, 0.18)
  );
}

.band__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.band__label {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.band__quote {
  max-width: 14em;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ---------- 结尾 CTA ---------- */

.cta {
  border-top: 1px solid var(--line);
}

.cta__inner {
  text-align: center;
}

.cta__inner .eyebrow {
  justify-content: center;
  margin-bottom: 26px;
}

.cta__title {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta__title span {
  color: var(--muted);
}

.cta .actions {
  justify-content: center;
  margin-top: 44px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 72px 0 30px;
  background: #070708;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 24em;
  font-size: 13px;
  color: var(--muted);
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-col a,
.footer-col p {
  display: inline-block;
  font-size: 13px;
  color: #c8c3b9;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- 内页首屏 ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 112px)) 0 clamp(56px, 7vw, 92px);
  background: radial-gradient(
      circle at 82% 20%,
      rgba(192, 68, 47, 0.13),
      transparent 42%
    ),
    var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero .lede {
  margin-top: 22px;
  max-width: 34em;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  font-size: 12px;
  color: var(--muted);
}

.page-hero__meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: var(--accent);
  vertical-align: 1px;
}

/* ---------- 产品详情页 ---------- */

.product-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(
      circle at 76% 30%,
      rgba(192, 68, 47, 0.15),
      transparent 46%
    ),
    var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.product-hero__copy .eyebrow {
  margin-bottom: 24px;
}

.product-hero__copy h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.9rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.product-hero__copy h1 .dot {
  color: var(--accent-2);
}

.product-hero__copy .lede {
  margin-top: 22px;
  margin-bottom: 34px;
}

.product-hero .actions {
  margin-bottom: 30px;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.product-points span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: var(--accent);
  vertical-align: 2px;
}

.product-stage .app {
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.6);
}

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.audience article {
  padding: 30px clamp(20px, 2.4vw, 32px) 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
}

.section--paper .audience article {
  background: #f9f6ef;
}

.audience span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.audience h3 {
  margin-top: 26px;
  font-size: 1.25rem;
  font-weight: 600;
}

.audience p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.feature {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.feature__num {
  display: block;
  margin-bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.feature p {
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 30px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.steps h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.steps p {
  margin-top: 9px;
  font-size: 13px;
  color: var(--muted);
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.product-cta h2 {
  max-width: 15em;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

/* ---------- 工作室 ---------- */

.studio-hero {
  position: relative;
  min-height: min(78vh, 760px);
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

.studio-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.35) brightness(0.46) contrast(1.06);
}

.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.95) 2%,
    rgba(10, 10, 11, 0.45) 50%,
    rgba(10, 10, 11, 0.25)
  );
}

.studio-hero__content {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 84px);
}

.studio-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.studio-hero .lede {
  margin-top: 20px;
}

.studio-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.split--media-right .split__media {
  order: 2;
}

.split__copy .h2 {
  margin: 18px 0 22px;
}

.split__copy .copy + .copy {
  margin-top: 1em;
}

.split__copy .link-arrow {
  margin-top: 30px;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.04) brightness(0.9);
  border: 1px solid var(--line);
}

.split__media figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.values-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.values-grid small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.values-grid h3 {
  margin-top: 26px;
  font-size: 1.3rem;
  font-weight: 600;
}

.values-grid p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
}

.work-card {
  display: block;
}

.work-card__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.work-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.work-card:hover .work-card__media img {
  transform: scale(1.035);
  filter: grayscale(0.25) contrast(1.03) brightness(0.96);
}

.work-card__body {
  padding-top: 20px;
}

.work-card__body span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

.work-card__body h3 {
  margin-top: 10px;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work-card__body p {
  margin-top: 8px;
  max-width: 30em;
  font-size: 13px;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
}

.service-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.service-list .num {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 5px;
}

.service-list h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.service-list p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.quote-block {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-roster {
  border-top: 1px solid var(--line-strong);
}

.team-roster div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.team-roster span {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.team-roster strong {
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  color: var(--white);
}

.quote-block blockquote {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.quote-block cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 联系 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  padding: clamp(26px, 3vw, 38px);
  background: var(--ink);
}

.contact-card small {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.contact-card h3 {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.contact-card a:hover {
  color: var(--accent-2);
}

.contact-card p {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.demo__copy .h2 {
  margin: 18px 0 20px;
}

.demo__copy .copy {
  margin-bottom: 28px;
}

.demo__note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.demo__note a {
  border-bottom: 1px solid currentColor;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
}

.form .field--full {
  grid-column: 1 / -1;
}

.field {
  display: block;
  min-width: 0;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 20px, calc(100% - 7px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.form .actions,
.form .form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 1.5em;
  font-size: 12px;
  color: var(--muted);
}

.form-status.is-error {
  color: var(--accent);
}

.form-status.is-ok {
  color: #2f7a55;
}

/* ---------- 登录页 ---------- */

.page-auth {
  background: var(--paper);
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  min-height: 100vh;
  min-height: 100svh;
}

.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 56px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.auth__brand::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  bottom: -180px;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(192, 68, 47, 0.28),
    transparent 62%
  );
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth__back {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.auth__back:hover {
  color: var(--white);
}

.auth__brand-body {
  margin-top: auto;
  padding-top: 64px;
}

.auth__brand-body .eyebrow {
  margin-bottom: 22px;
}

.auth__brand-body h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.auth__brand-body h1 .dot {
  color: var(--accent-2);
}

.auth__brand-body p {
  margin-top: 20px;
  max-width: 28em;
  font-size: 14px;
  color: var(--muted);
}

.auth__visual {
  margin-top: clamp(40px, 5vw, 64px);
}

.auth__visual .boards {
  grid-template-columns: repeat(3, 1fr);
  max-width: 480px;
}

.auth__visual .board {
  aspect-ratio: 16 / 10;
}

.auth__script-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.auth__script {
  max-width: 440px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 244, 238, 0.03);
}

.auth__script .mini-script {
  gap: 11px;
}

.auth__script .mini-script .line {
  height: 6px;
}

.auth__panel {
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 72px);
  background: var(--paper);
  color: #141416;
  --muted: #6f6a61;
  --line-strong: rgba(20, 20, 22, 0.22);
}

.auth-form-wrap {
  width: min(400px, 100%);
}

.auth-form-wrap > .eyebrow {
  color: var(--muted-2);
  margin-bottom: 16px;
}

.auth-form-wrap h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-form-wrap > p:not(.eyebrow) {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.auth-form {
  margin-top: 38px;
}

.auth-form .field {
  margin-bottom: 26px;
}

.field__wrap {
  position: relative;
}

.field__wrap input {
  padding-right: 56px;
}

.field__toggle {
  position: absolute;
  right: 0;
  bottom: 10px;
  padding: 2px 0 2px 10px;
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field__toggle:hover {
  color: var(--accent);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.auth-row a:hover {
  color: var(--accent);
}

.auth-form .btn {
  height: 54px;
  background: var(--accent);
  color: #fff;
  border: 0;
}

.auth-form .btn:hover {
  background: var(--accent-2);
}

.auth-form .btn[disabled] {
  opacity: 0.6;
  transform: none;
  cursor: wait;
}

.auth-alt {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--muted);
}

.auth-alt a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.auth-foot {
  margin-top: 40px;
  font-size: 11px;
  color: var(--muted);
}

.auth-panel-inner {
  width: 100%;
  display: grid;
  place-items: center;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 64px;
  background: radial-gradient(
      circle at 78% 22%,
      rgba(192, 68, 47, 0.16),
      transparent 45%
    ),
    var(--ink);
}

.notfound .brand {
  margin-bottom: clamp(56px, 9vw, 104px);
}

.notfound__body .eyebrow {
  margin-bottom: 24px;
}

.notfound__body .display {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.notfound__body .lede {
  margin-bottom: 36px;
}

.notfound__meta {
  margin-top: clamp(56px, 8vw, 96px);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---------- 滚动显影 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .app-body {
    grid-template-columns: 96px minmax(0, 1fr) 150px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
  }

  .footer-col:last-child h4 {
    width: 100%;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    padding: 28px clamp(24px, 6vw, 48px) 40px;
    background: rgba(10, 10, 11, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0.5s;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: 18px 0;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--white);
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 16px;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu--right {
    display: block;
  }

  .has-menu.is-open > .nav-menu {
    display: block;
  }

  .has-menu:hover .nav-menu {
    display: none;
  }

  .has-menu.is-open:hover .nav-menu {
    display: block;
  }

  .nav-menu a {
    padding: 9px 0;
  }

  .nav-menu a span {
    font-size: 15px;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 40px;
  }

  .nav-mobile-actions .btn {
    width: 100%;
  }

  .nav-mobile-login {
    display: flex;
    gap: 24px;
    padding: 6px 0 10px;
    font-size: 13px;
    color: var(--muted);
  }

  .nav-mobile-login a {
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 3px;
  }

  .header-actions .login-menu,
  .header-actions > .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 16px;
  }

  .brand {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy .display {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }

  .hero-meta {
    margin-top: 40px;
  }

  .scroll-cue {
    display: none;
  }

  .fig-note {
    text-align: left;
  }

  .app-body {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .app--wide .app-body {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .app-panel {
    display: none;
  }

  .section-head__row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-inner,
  .product-grid,
  .proof,
  .split,
  .demo,
  .product-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--media-right .split__media {
    order: 0;
  }

  .flow,
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .audience,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }

  .audience article,
  .values-grid article {
    border: 0;
    background: var(--ink);
  }

  .section--paper .audience article,
  .section--paper .values-grid article {
    background: var(--paper);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .proof__media {
    order: -1;
  }

  .band {
    min-height: 460px;
  }

  .auth {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth__brand {
    padding: 28px 24px 40px;
  }

  .auth__brand-body {
    padding-top: 40px;
  }

  .auth__brand-body h1 {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .auth__visual {
    display: none;
  }

  .auth__brand::before {
    bottom: -300px;
  }

  .auth__panel {
    padding: 48px 24px 64px;
  }

  .auth__back {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .h2 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
  }

  .hero-copy .lede {
    font-size: 15px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .hero-meta {
    flex-direction: column;
    gap: 16px;
  }

  .app-body,
  .app--wide .app-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .app-rail {
    display: none;
  }

  .app--wide .boards,
  .boards {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow__num,
  .feature__num,
  .steps li::before {
    margin-bottom: 18px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stats div {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .stats dd {
    margin-top: 0;
  }

  .product-card__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .cta__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .form {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .product-hero__copy h1 {
    font-size: clamp(2.3rem, 9vw, 3.2rem);
  }

  .product-cta {
    align-items: flex-start;
  }

  .band__quote {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
