/* 画笺 · 校园站 — 园区 lumen 光感浅色科技风 */

:root {
  --bg: #eef3fb;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --ink: #0b1528;
  --ink-2: #1d3a6b;
  --muted: #5a6b85;
  --accent: #1d6fff;
  --accent-strong: #0ea5e9;
  --warm: #7c3aed;
  --line: rgba(29, 111, 255, 0.16);
  --line-strong: rgba(29, 111, 255, 0.28);
  --glow: rgba(29, 111, 255, 0.12);
  --glow-warm: rgba(124, 58, 237, 0.1);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 40px rgba(29, 111, 255, 0.08);
  --font: "Noto Sans SC", "IBM Plex Sans SC", "PingFang SC", sans-serif;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* —— 光感背景层 —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 68% 18%, var(--glow), transparent 55%),
    radial-gradient(ellipse 45% 40% at 14% 85%, var(--glow-warm), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #e8f0fc 48%, var(--bg) 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 111, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 111, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black, transparent);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(14, 165, 233, 0.14), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(124, 58, 237, 0.08), transparent 32%);
}

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

.page {
  position: relative;
  z-index: 2;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* —— 导航 —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(238, 243, 251, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-brand img,
.nav-lockup {
  height: 30px;
  width: auto;
  display: block;
}

.nav-brand {
  font-family: var(--font);
}

.nav-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.08);
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 111, 255, 0.28);
  will-change: transform;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-on-dark {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

/* —— 排版 —— */
.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5.2vw, 58px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

h3 {
  font-size: 18px;
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 34em;
  line-height: 1.75;
}

.fine {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

/* —— Hero 影院式 —— */
.hero-cinema {
  position: relative;
  min-height: min(92vh, 880px);
  display: grid;
  align-items: end;
  padding: clamp(88px, 12vh, 120px) var(--gutter) clamp(48px, 8vh, 72px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(238, 243, 251, 0.94) 0%, rgba(238, 243, 251, 0.72) 38%, rgba(238, 243, 251, 0.2) 68%, transparent 100%),
    linear-gradient(180deg, transparent 50%, rgba(238, 243, 251, 0.92) 100%);
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips span {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* —— 痛点对比带 —— */
.pain-band {
  padding: 64px 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pain-card {
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
}

.pain-card.is-accent {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(29, 111, 255, 0.06));
  box-shadow: var(--shadow-soft);
}

.pain-card h3 {
  margin-bottom: 14px;
}

.pain-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.pain-card li + li {
  margin-top: 8px;
}

/* —— Bento 场景 —— */
.bento {
  padding: 72px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 4;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.bento-card.wide {
  grid-column: span 6;
}

.bento-card.tall {
  grid-column: span 6;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  background: linear-gradient(160deg, #fff 0%, rgba(29, 111, 255, 0.05) 100%);
}

.bento-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.bento-card blockquote {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-2);
  background: rgba(29, 111, 255, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

/* —— 演示 —— */
.demo {
  padding: 72px 0;
}

.demo-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.monitor {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0b1528;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-strong);
}

.monitor-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.monitor-layer.is-on {
  opacity: 1;
}

.monitor-grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.monitor-chrome {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  background: rgba(11, 21, 40, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.monitor-chrome .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.monitor.is-night .monitor-layer.is-on {
  filter: brightness(0.55) saturate(0.85);
}

.monitor-alert {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.story-tag {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.monitor-alert p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.demo-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-chapters li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.demo-chapters li.is-on {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.demo-chapters li span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--warm);
  margin-bottom: 6px;
}

.demo-chapters h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.demo-chapters p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— 流程轨 —— */
.flow-rail {
  padding: 72px 0;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.flow-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  opacity: 0.25;
}

.flow-step {
  position: relative;
  padding: 48px 20px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.flow-step::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  border-radius: 50%;
}

.flow-step h3 {
  font-size: 16px;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— 技术玻璃卡 —— */
.tech-glass {
  padding: 72px 0;
}

.tech-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tech-row article {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
}

.tech-row h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tech-row p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— 产品横带 —— */
.product-band {
  padding: 72px 0;
}

.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, rgba(29, 111, 255, 0.04));
  box-shadow: var(--shadow-soft);
}

.product-split img {
  border-radius: var(--radius);
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.specs div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(29, 111, 255, 0.05);
}

.specs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.specs dd {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
}

/* —— 适配双栏 —— */
.fit-grid {
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fit-panel {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.fit-panel.yes {
  background: linear-gradient(160deg, #fff, rgba(29, 111, 255, 0.05));
}

.fit-panel.no {
  background: rgba(255, 255, 255, 0.5);
}

.fit-panel ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.fit-panel li + li {
  margin-top: 10px;
}

/* —— 联系 —— */
.contact {
  padding: 88px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-shell .card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-shell label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.form-shell input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}

.form-shell .hp {
  position: absolute;
  left: -9999px;
}

.form-err {
  color: #dc2626;
  font-size: 14px;
}

.form-success-panel {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.form-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.form-success-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.form-success-title {
  margin: 6px 0 10px;
}

/* —— 页脚 —— */
.site-foot {
  padding: 56px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.site-foot-inner {
  width: min(var(--max), 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.site-foot-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 22em;
}

.site-foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site-foot-cols h3 {
  font-size: 13px;
  margin-bottom: 12px;
}

.site-foot-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
}

.site-foot-cols a:hover {
  color: var(--ink);
}

.site-foot-bar {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.site-foot-bar a {
  color: var(--muted);
  margin-left: 12px;
}

/* —— 动画预备 —— */
.js-mask .line {
  display: block;
  overflow: hidden;
}

.js-mask .line > span {
  display: block;
}

.has-motion:not(.motion-ready) .hero-in,
.has-motion:not(.motion-ready) .hero-title .line span,
.has-motion:not(.motion-ready) .js-mask,
.has-motion:not(.motion-ready) [data-reveal],
.has-motion:not(.motion-ready) .bento-card,
.has-motion:not(.motion-ready) .monitor,
.has-motion:not(.motion-ready) .demo-chapters li {
  visibility: hidden;
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .nav-tag {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .pain-grid,
  .demo-stage,
  .product-split,
  .contact,
  .fit-grid,
  .site-foot-inner {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide,
  .bento-card.tall {
    grid-column: span 12;
  }

  .flow-track {
    grid-template-columns: 1fr 1fr;
  }

  .flow-track::before {
    display: none;
  }

  .tech-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .flow-track,
  .tech-row,
  .site-foot-cols {
    grid-template-columns: 1fr;
  }

  .hero-cinema {
    min-height: auto;
    padding-top: 100px;
  }

  .hero-media {
    position: relative;
    height: 220px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .hero-veil {
    background: linear-gradient(180deg, transparent, rgba(238, 243, 251, 0.9));
  }
}
