/* CueLine 官网。变量和材质类抄自 packages/ui/src/tokens.css 与 materials.css，改那边要记得同步这里 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range:
    U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-ui: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-ui-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, 'PingFang SC', monospace;

  --chassis: #e7eeea;
  --chassis-raised: #f0f5f2;
  --chassis-sunken: #d4dfd8;
  --chassis-line: #c3d1c8;
  --ink: #1b2a25;
  --ink-soft: #52665e;
  --ink-faint: #7f968c;

  --shadow-hi: rgba(255, 255, 255, 0.95);
  --shadow-lo: rgba(40, 72, 60, 0.26);
  --bevel: rgba(255, 255, 255, 0.9);

  --cap-top: #fafdfb;
  --cap-bot: #d4e1da;
  --cap-edge: rgba(40, 72, 60, 0.26);
  --sw-dark: hsl(160 22% 38%);

  --accent: #d6352b;
  --amber: #f0b45a;

  --glass: #1a1d21;
  --glass-ink-soft: #98a1ab;

  --lcd-bg: #c6d19c;
  --lcd-ink: #2c3819;
  --lcd-edge: rgba(26, 36, 12, 0.32);
  --grille-dot: rgba(40, 72, 60, 0.4);

  --desk-a: #c3d1c9;
  --desk-b: #e8efeb;
  --desk-c: #d3dfd8;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --chassis: #24282e;
    --chassis-raised: #2d323a;
    --chassis-sunken: #1c1f24;
    --chassis-line: #3a4049;
    --ink: #e6eaef;
    --ink-soft: #a0a9b4;
    --ink-faint: #6f7883;

    --shadow-hi: rgba(255, 255, 255, 0.04);
    --shadow-lo: rgba(0, 0, 0, 0.55);
    --bevel: rgba(255, 255, 255, 0.07);

    --cap-top: #3b414a;
    --cap-bot: #2a2f36;
    --cap-edge: rgba(0, 0, 0, 0.55);
    --sw-dark: hsl(215 30% 4%);

    --accent: #ef5a4d;

    --glass: #111316;

    --lcd-bg: #94a566;
    --lcd-ink: #1d2810;
    --lcd-edge: rgba(0, 0, 0, 0.55);
    --grille-dot: rgba(0, 0, 0, 0.6);

    --desk-a: #0d0f11;
    --desk-b: #232830;
    --desk-c: #1f2229;

    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 40px 16px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--desk-a);
  background-image:
    radial-gradient(70% 60% at 18% 12%, var(--desk-b), transparent 70%), radial-gradient(60% 70% at 88% 92%, var(--desk-c), transparent 70%);
}

h1,
h2,
p,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 机身：整页是一块塑料面板 */
.chassis {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 56px 28px;
  border-radius: 18px;
  background: var(--noise), var(--chassis);
  box-shadow:
    inset 0 1px 0 var(--bevel),
    0 0 0 1px var(--cap-edge),
    0 2px 4px var(--shadow-lo),
    0 30px 60px -30px var(--shadow-lo);
}

/* ---------- 材质 ---------- */
.cap {
  background: var(--noise), linear-gradient(180deg, var(--cap-top), var(--cap-bot));
  box-shadow:
    inset 0 1px 0 var(--bevel),
    0 0 0 1px var(--cap-edge),
    0 2px 3px var(--shadow-lo),
    0 7px 10px -5px var(--shadow-lo);
  transition:
    transform 90ms ease-out,
    box-shadow 90ms ease-out;
}
.cap:active {
  transform: translateY(1px);
  background: var(--noise), var(--cap-bot);
  box-shadow:
    inset 0 2px 4px var(--shadow-lo),
    0 0 0 1px var(--cap-edge);
}

.lcd {
  position: relative;
  overflow: hidden;
  background: var(--lcd-bg);
  color: var(--lcd-ink);
  box-shadow:
    inset 0 2px 5px var(--lcd-edge),
    inset 0 0 0 1px var(--lcd-edge),
    0 1px 0 var(--shadow-hi);
}
.lcd::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.3), transparent 42%);
}

.grille {
  background-image:
    radial-gradient(circle at 50% 50%, var(--grille-dot) 1.2px, transparent 1.9px),
    radial-gradient(circle at 50% 68%, var(--shadow-hi) 1.5px, transparent 2.2px);
  background-size: 7px 7px;
}

.groove-t {
  border-top: 1px solid var(--chassis-line);
  box-shadow: inset 0 1px 0 var(--shadow-hi);
}

.silk {
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 var(--shadow-hi);
}

/* AI 在做事：琥珀 LED 从中间往两边起伏 */
.working {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 10px;
}
.working i {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--amber);
  box-shadow: 0 0 4px color-mix(in srgb, var(--amber) 70%, transparent);
  opacity: 0.2;
  animation: working-led 1.2s ease-in-out infinite;
}
.working i:nth-child(1),
.working i:nth-child(7) {
  animation-delay: 0.36s;
}
.working i:nth-child(2),
.working i:nth-child(6) {
  animation-delay: 0.24s;
}
.working i:nth-child(3),
.working i:nth-child(5) {
  animation-delay: 0.12s;
}
@keyframes working-led {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleY(1);
  }
  45% {
    opacity: 1;
    transform: scaleY(1.6);
  }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas:
    'top grille'
    'name grille'
    'line grille'
    'actions grille';
  column-gap: 48px;
}
.hero-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
.hero-name {
  grid-area: name;
  margin-top: 28px;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 var(--shadow-hi);
}
.hero-line {
  grid-area: line;
  margin-top: 16px;
  font-size: 22px;
  color: var(--ink-soft);
}
.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 36px;
}
.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
/* 第二个下载按钮：同样的键帽，灯不亮 */
.download + .download .led {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: none;
}
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.readout {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 5px;
  font-family: var(--font-ui-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-grille {
  grid-area: grille;
  align-self: stretch;
  min-height: 200px;
  border-radius: 12px;
}

/* ---------- 五站：凹槽里的一排长琴键 ---------- */
.stations {
  margin-top: 56px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(180deg, var(--chassis-line) 0 1px, var(--shadow-hi) 1px 2px);
}
.piano {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin-top: 18px;
  padding: 5px;
  list-style: none;
  border-radius: 12px;
  background: var(--chassis-sunken);
  box-shadow:
    inset 0 1px 3px var(--shadow-lo),
    0 1px 0 var(--shadow-hi);
}
.piano-key {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 0 16px 22px;
  border-radius: 3px;
  background: var(--noise), linear-gradient(180deg, var(--cap-top) 0%, var(--cap-top) 55%, var(--cap-bot) 100%);
  box-shadow:
    inset 0 1px 0 var(--bevel),
    inset 0 -6px 0 color-mix(in srgb, var(--cap-bot) 70%, var(--sw-dark)),
    0 0 0 1px var(--cap-edge),
    0 2px 2px var(--shadow-lo);
}
.piano-key:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.piano-key:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.key-mark {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--chassis-line);
  box-shadow: inset 0 1px 1px var(--shadow-lo);
}
.piano-key:first-child .key-mark {
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}
.key-no {
  font-family: var(--font-ui-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.key-name {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.key-line {
  margin-top: 6px;
  min-height: 3.2em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 截图：嵌在机身里的深色玻璃屏 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--glass);
  box-shadow:
    inset 0 1px 6px rgba(0, 0, 0, 0.6),
    0 0 0 4px var(--chassis-sunken),
    0 0 0 5px var(--cap-edge),
    0 1px 0 5px var(--shadow-hi);
}
.screen-wide {
  grid-column: 1 / -1;
}
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.07), transparent 40%);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.6);
  border-radius: inherit;
}
.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ---------- 提示与页脚 ---------- */
.note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-soft);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}
.foot a {
  text-decoration: none;
  color: var(--ink-soft);
}
.foot a:hover {
  text-decoration: underline;
}
.year {
  font-family: var(--font-ui-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .chassis {
    padding: 36px 32px 24px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'top' 'name' 'line' 'actions';
  }
  .hero-grille {
    display: none;
  }
  .piano {
    grid-template-columns: minmax(0, 1fr);
  }
  .piano-key {
    display: grid;
    grid-template-columns: 28px 64px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 10px;
    min-height: 0;
    padding: 16px 18px 20px;
  }
  .piano-key:first-child {
    border-radius: 8px 8px 3px 3px;
  }
  .piano-key:last-child {
    border-radius: 3px 3px 8px 8px;
  }
  .key-mark {
    display: none;
  }
  .key-name,
  .key-line {
    margin-top: 0;
  }
  .key-name {
    font-size: 16px;
  }
  .key-line {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }
  .chassis {
    padding: 28px 18px 20px;
    border-radius: 14px;
  }
  .hero-name {
    margin-top: 22px;
    font-size: 44px;
  }
  .hero-line {
    font-size: 18px;
  }
  .hero-actions {
    margin-top: 28px;
  }
  .download {
    width: 100%;
    justify-content: center;
  }
  .piano-key {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 14px 14px 18px;
  }
  .key-line {
    grid-column: 2;
    margin-top: 2px;
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .stations,
  .shots {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .working i {
    animation: none;
    opacity: 0.7;
  }
  .cap {
    transition: none;
  }
}

/* ---------- 协议和政策页（terms、privacy、data） ---------- */
.doc {
  max-width: 760px;
}
.doc-back {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.doc-back:hover {
  text-decoration: underline;
}
.doc h1 {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.doc .doc-date {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}
.doc h2 {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
}
.doc p,
.doc li {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 1.2em;
  list-style: disc;
}
.doc table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.7;
}
.doc th,
.doc td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--chassis-line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.doc th {
  font-weight: 600;
  color: var(--ink);
}
.doc a {
  color: var(--ink);
}
.foot-links {
  display: flex;
  gap: 16px;
}

/* ---------- 交流群和赞赏 ---------- */
.support {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}
.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.support-card img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--cap-edge);
}
.support-card a {
  color: var(--ink);
}
